1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk8'
 590 PACKAGE_STRING='OpenJDK jdk8'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 UCRT_DLL_DIR
 644 MSVCP_DLL
 645 MSVCR_DLL
 646 LIBCXX
 647 LLVM_LIBS
 648 LLVM_LDFLAGS
 649 LLVM_CFLAGS
 650 LLVM_CONFIG
 651 LIBFFI_LIBS
 652 LIBFFI_CFLAGS
 653 STATIC_CXX_SETTING
 654 LIBDL
 655 LIBM
 656 LIBZIP_CAN_USE_MMAP
 657 USE_EXTERNAL_LIBZ
 658 USE_EXTERNAL_LIBGIF
 659 USE_EXTERNAL_LIBJPEG
 660 FONTCONFIG_CFLAGS
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 X_EXTRA_LIBS
 668 X_LIBS
 669 X_PRE_LIBS
 670 X_CFLAGS
 671 XMKMF
 672 FIXPATH
 673 ZIP_DEBUGINFO_FILES
 674 DEBUG_BINARIES
 675 STRIP_POLICY
 676 ENABLE_DEBUG_SYMBOLS
 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 678 ZERO_ARCHFLAG
 679 LDFLAGS_CXX_JDK
 680 LDFLAGS_JDKEXE_SUFFIX
 681 LDFLAGS_JDKLIB_SUFFIX
 682 LDFLAGS_JDKEXE
 683 LDFLAGS_JDKLIB
 684 CXXFLAGS_JDKEXE
 685 CXXFLAGS_JDKLIB
 686 CFLAGS_JDKEXE
 687 CFLAGS_JDKLIB
 688 MACOSX_VERSION_MIN
 689 FDLIBM_CFLAGS
 690 NO_LIFETIME_DSE_CFLAG
 691 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 692 LEGACY_EXTRA_LDFLAGS
 693 LEGACY_EXTRA_CXXFLAGS
 694 LEGACY_EXTRA_CFLAGS
 695 CXXSTD_CXXFLAG
 696 CXX_O_FLAG_NONE
 697 CXX_O_FLAG_NORM
 698 CXX_O_FLAG_HI
 699 CXX_O_FLAG_HIGHEST
 700 C_O_FLAG_NONE
 701 C_O_FLAG_NORM
 702 C_O_FLAG_HI
 703 C_O_FLAG_HIGHEST
 704 CXXFLAGS_DEBUG_SYMBOLS
 705 CFLAGS_DEBUG_SYMBOLS
 706 ASFLAGS_DEBUG_SYMBOLS
 707 CXX_FLAG_DEPS
 708 C_FLAG_DEPS
 709 SET_SHARED_LIBRARY_MAPFILE
 710 SET_SHARED_LIBRARY_NAME
 711 SET_SHARED_LIBRARY_ORIGIN
 712 SET_EXECUTABLE_ORIGIN
 713 SHARED_LIBRARY_FLAGS
 714 CXX_FLAG_REORDER
 715 C_FLAG_REORDER
 716 SYSROOT_LDFLAGS
 717 SYSROOT_CFLAGS
 718 RC_FLAGS
 719 AR_OUT_OPTION
 720 LD_OUT_OPTION
 721 EXE_OUT_OPTION
 722 CC_OUT_OPTION
 723 POST_MCS_CMD
 724 POST_STRIP_CMD
 725 ARFLAGS
 726 COMPILER_TARGET_BITS_FLAG
 727 JT_HOME
 728 JTREGEXE
 729 USING_BROKEN_SUSE_LD
 730 PACKAGE_PATH
 731 LDEXECXX
 732 LDEXE
 733 USE_CLANG
 734 HOTSPOT_LD
 735 HOTSPOT_CXX
 736 HOTSPOT_RC
 737 HOTSPOT_MT
 738 BUILD_LD
 739 BUILD_CXX
 740 BUILD_CC
 741 ac_ct_OBJDUMP
 742 OBJDUMP
 743 ac_ct_OBJCOPY
 744 OBJCOPY
 745 ac_ct_NM
 746 OTOOL
 747 ac_ct_STRIP
 748 MCS
 749 GNM
 750 NM
 751 STRIP
 752 MSBUILD
 753 DUMPBIN
 754 RC
 755 MT
 756 LIPO
 757 ac_ct_OBJC
 758 OBJCFLAGS
 759 OBJC
 760 ac_ct_AR
 761 AR
 762 AS
 763 LDCXX
 764 LD
 765 CXXCPP
 766 CPP
 767 CXX_VERSION_NUMBER
 768 CC_VERSION_NUMBER
 769 ac_ct_CXX
 770 CXXFLAGS
 771 CXX
 772 ac_ct_PROPER_COMPILER_CXX
 773 PROPER_COMPILER_CXX
 774 TOOLCHAIN_PATH_CXX
 775 POTENTIAL_CXX
 776 OBJEXT
 777 EXEEXT
 778 ac_ct_CC
 779 CPPFLAGS
 780 LDFLAGS
 781 CFLAGS
 782 CC
 783 ac_ct_PROPER_COMPILER_CC
 784 PROPER_COMPILER_CC
 785 TOOLCHAIN_PATH_CC
 786 POTENTIAL_CC
 787 SDKPATH
 788 XCODEBUILD
 789 SET_DEVELOPER_DIR
 790 VS_LIB
 791 VS_INCLUDE
 792 VS_PATH
 793 CYGWIN_LINK
 794 EXE_SUFFIX
 795 OBJ_SUFFIX
 796 STATIC_LIBRARY
 797 SHARED_LIBRARY
 798 STATIC_LIBRARY_SUFFIX
 799 SHARED_LIBRARY_SUFFIX
 800 LIBRARY_PREFIX
 801 TOOLCHAIN_TYPE
 802 BUILD_HOTSPOT
 803 HOTSPOT_DIST
 804 BUILD_OUTPUT
 805 OVERRIDE_SRC_ROOT
 806 ADD_SRC_ROOT
 807 JDK_TOPDIR
 808 NASHORN_TOPDIR
 809 HOTSPOT_TOPDIR
 810 JAXWS_TOPDIR
 811 JAXP_TOPDIR
 812 CORBA_TOPDIR
 813 LANGTOOLS_TOPDIR
 814 JAVA_FLAGS_SMALL
 815 JAVA_FLAGS_BIG
 816 JAVA_FLAGS
 817 BOOT_JDK_BITS
 818 JAVAC_FLAGS
 819 BOOT_JDK_SOURCETARGET
 820 BOOT_JDK
 821 BOOT_TOOLSJAR
 822 BOOT_RTJAR
 823 JAVA_CHECK
 824 JAVAC_CHECK
 825 COOKED_BUILD_NUMBER
 826 COOKED_JDK_UPDATE_VERSION
 827 JDK_VERSION
 828 COPYRIGHT_YEAR
 829 VENDOR_URL_VM_BUG
 830 VENDOR_URL_BUG
 831 VENDOR_URL
 832 COMPANY_NAME
 833 MACOSX_BUNDLE_ID_BASE
 834 MACOSX_BUNDLE_NAME_BASE
 835 JDK_RC_PLATFORM_NAME
 836 PRODUCT_SUFFIX
 837 PRODUCT_NAME
 838 LAUNCHER_NAME
 839 MILESTONE
 840 JDK_BUILD_NUMBER
 841 JDK_UPDATE_VERSION
 842 JDK_MICRO_VERSION
 843 JDK_MINOR_VERSION
 844 JDK_MAJOR_VERSION
 845 USER_RELEASE_SUFFIX
 846 COMPRESS_JARS
 847 UNLIMITED_CRYPTO
 848 CACERTS_FILE
 849 TEST_IN_BUILD
 850 BUILD_HEADLESS
 851 SUPPORT_HEADFUL
 852 SUPPORT_HEADLESS
 853 BDEPS_FTP
 854 BDEPS_UNZIP
 855 OS_VERSION_MICRO
 856 OS_VERSION_MINOR
 857 OS_VERSION_MAJOR
 858 PKG_CONFIG
 859 CODESIGN
 860 XATTR
 861 DSYMUTIL
 862 IS_GNU_TIME
 863 TIME
 864 STAT
 865 HG
 866 READELF
 867 LDD
 868 ZIP
 869 UNZIP
 870 FIND_DELETE
 871 MAKE
 872 CHECK_TOOLSDIR_MAKE
 873 CHECK_TOOLSDIR_GMAKE
 874 CHECK_MAKE
 875 CHECK_GMAKE
 876 PKGHANDLER
 877 OUTPUT_ROOT
 878 CONF_NAME
 879 SPEC
 880 DEVKIT_LIB_DIR
 881 BUILD_VARIANT_RELEASE
 882 DEBUG_CLASSFILES
 883 FASTDEBUG
 884 VARIANT
 885 DEBUG_LEVEL
 886 MACOSX_UNIVERSAL
 887 INCLUDE_SA
 888 JVM_VARIANT_CORE
 889 JVM_VARIANT_ZEROSHARK
 890 JVM_VARIANT_ZERO
 891 JVM_VARIANT_KERNEL
 892 JVM_VARIANT_MINIMAL1
 893 JVM_VARIANT_CLIENT
 894 JVM_VARIANT_SERVER
 895 JVM_VARIANTS
 896 JVM_INTERPRETER
 897 JDK_VARIANT
 898 SET_OPENJDK
 899 BUILD_LOG_WRAPPER
 900 BUILD_LOG_PREVIOUS
 901 BUILD_LOG
 902 TOPDIR
 903 PATH_SEP
 904 ZERO_ARCHDEF
 905 DEFINE_CROSS_COMPILE_ARCH
 906 LP64
 907 OPENJDK_TARGET_OS_EXPORT_DIR
 908 OPENJDK_TARGET_OS_API_DIR
 909 OPENJDK_TARGET_CPU_JLI_CFLAGS
 910 OPENJDK_TARGET_CPU_OSARCH
 911 OPENJDK_TARGET_CPU_ISADIR
 912 OPENJDK_TARGET_CPU_LIBDIR
 913 OPENJDK_TARGET_CPU_LEGACY_LIB
 914 OPENJDK_TARGET_CPU_LEGACY
 915 REQUIRED_OS_VERSION
 916 REQUIRED_OS_NAME
 917 COMPILE_TYPE
 918 OPENJDK_TARGET_CPU_ENDIAN
 919 OPENJDK_TARGET_CPU_BITS
 920 OPENJDK_TARGET_CPU_ARCH
 921 OPENJDK_TARGET_CPU
 922 OPENJDK_TARGET_OS_ENV
 923 OPENJDK_TARGET_OS_API
 924 OPENJDK_TARGET_OS
 925 OPENJDK_BUILD_CPU_ENDIAN
 926 OPENJDK_BUILD_CPU_BITS
 927 OPENJDK_BUILD_CPU_ARCH
 928 OPENJDK_BUILD_CPU
 929 OPENJDK_BUILD_OS_ENV
 930 OPENJDK_BUILD_OS_API
 931 OPENJDK_BUILD_OS
 932 OPENJDK_BUILD_AUTOCONF_NAME
 933 OPENJDK_TARGET_AUTOCONF_NAME
 934 target_os
 935 target_vendor
 936 target_cpu
 937 target
 938 host_os
 939 host_vendor
 940 host_cpu
 941 host
 942 build_os
 943 build_vendor
 944 build_cpu
 945 build
 946 CPIO
 947 SETFILE
 948 DF
 949 READLINK
 950 CYGPATH
 951 SED
 952 FGREP
 953 EGREP
 954 GREP
 955 AWK
 956 XARGS
 957 WHICH
 958 WC
 959 UNIQ
 960 UNAME
 961 TR
 962 TOUCH
 963 TEE
 964 TAR
 965 TAIL
 966 SORT
 967 SH
 968 RM
 969 PRINTF
 970 NAWK
 971 MV
 972 MKTEMP
 973 MKDIR
 974 LS
 975 LN
 976 HEAD
 977 FIND
 978 FILE
 979 EXPR
 980 ECHO
 981 DIRNAME
 982 DIFF
 983 DATE
 984 CUT
 985 CP
 986 COMM
 987 CMP
 988 CHMOD
 989 CAT
 990 BASH
 991 BASENAME
 992 DATE_WHEN_CONFIGURED
 993 CONFIGURE_COMMAND_LINE
 994 CUSTOM_MAKE_DIR
 995 target_alias
 996 host_alias
 997 build_alias
 998 LIBS
 999 ECHO_T
1000 ECHO_N
1001 ECHO_C
1002 DEFS
1003 mandir
1004 localedir
1005 libdir
1006 psdir
1007 pdfdir
1008 dvidir
1009 htmldir
1010 infodir
1011 docdir
1012 oldincludedir
1013 includedir
1014 localstatedir
1015 sharedstatedir
1016 sysconfdir
1017 datadir
1018 datarootdir
1019 libexecdir
1020 sbindir
1021 bindir
1022 program_transform_name
1023 prefix
1024 exec_prefix
1025 PACKAGE_URL
1026 PACKAGE_BUGREPORT
1027 PACKAGE_STRING
1028 PACKAGE_VERSION
1029 PACKAGE_TARNAME
1030 PACKAGE_NAME
1031 PATH_SEPARATOR
1032 SHELL'
1033 ac_subst_files=''
1034 ac_user_opts='
1035 enable_option_checking
1036 with_custom_make_dir
1037 with_target_bits
1038 enable_openjdk_only
1039 with_jdk_variant
1040 with_jvm_interpreter
1041 with_jvm_variants
1042 enable_debug
1043 with_debug_level
1044 with_devkit
1045 with_sys_root
1046 with_sysroot
1047 with_tools_dir
1048 with_toolchain_path
1049 with_extra_path
1050 with_xcode_path
1051 with_conf_name
1052 with_builddeps_conf
1053 with_builddeps_server
1054 with_builddeps_dir
1055 with_builddeps_group
1056 enable_headful
1057 enable_hotspot_test_in_build
1058 with_cacerts_file
1059 enable_unlimited_crypto
1060 with_milestone
1061 with_update_version
1062 with_user_release_suffix
1063 with_build_number
1064 with_vendor_name
1065 with_vendor_url
1066 with_vendor_bug_url
1067 with_vendor_vm_bug_url
1068 with_copyright_year
1069 with_boot_jdk
1070 with_boot_jdk_jvmargs
1071 with_add_source_root
1072 with_override_source_root
1073 with_adds_and_overrides
1074 with_override_langtools
1075 with_override_corba
1076 with_override_jaxp
1077 with_override_jaxws
1078 with_override_hotspot
1079 with_override_nashorn
1080 with_override_jdk
1081 with_import_hotspot
1082 with_toolchain_type
1083 with_toolchain_version
1084 with_jtreg
1085 with_extra_cflags
1086 with_extra_cxxflags
1087 with_extra_ldflags
1088 enable_debug_symbols
1089 enable_zip_debug_info
1090 with_native_debug_symbols
1091 enable_macosx_runtime_support
1092 with_x
1093 with_cups
1094 with_cups_include
1095 with_freetype
1096 with_freetype_include
1097 with_freetype_lib
1098 with_freetype_src
1099 enable_freetype_bundling
1100 with_alsa
1101 with_alsa_include
1102 with_alsa_lib
1103 with_fontconfig
1104 with_fontconfig_include
1105 with_giflib
1106 with_zlib
1107 with_stdc__lib
1108 with_msvcr_dll
1109 with_msvcp_dll
1110 with_ucrt_dll_dir
1111 with_dxsdk
1112 with_dxsdk_lib
1113 with_dxsdk_include
1114 with_num_cores
1115 with_memory_size
1116 with_jobs
1117 with_sjavac_server_java
1118 enable_sjavac
1119 enable_precompiled_headers
1120 enable_ccache
1121 with_ccache_dir
1122 '
1123       ac_precious_vars='build_alias
1124 host_alias
1125 target_alias
1126 BASENAME
1127 BASH
1128 CAT
1129 CHMOD
1130 CMP
1131 COMM
1132 CP
1133 CUT
1134 DATE
1135 DIFF
1136 DIRNAME
1137 ECHO
1138 EXPR
1139 FILE
1140 FIND
1141 HEAD
1142 LN
1143 LS
1144 MKDIR
1145 MKTEMP
1146 MV
1147 NAWK
1148 PRINTF
1149 RM
1150 SH
1151 SORT
1152 TAIL
1153 TAR
1154 TEE
1155 TOUCH
1156 TR
1157 UNAME
1158 UNIQ
1159 WC
1160 WHICH
1161 XARGS
1162 AWK
1163 GREP
1164 EGREP
1165 FGREP
1166 SED
1167 CYGPATH
1168 READLINK
1169 DF
1170 SETFILE
1171 CPIO
1172 UNZIP
1173 ZIP
1174 LDD
1175 READELF
1176 HG
1177 STAT
1178 TIME
1179 DSYMUTIL
1180 XATTR
1181 CODESIGN
1182 PKG_CONFIG
1183 CC
1184 CFLAGS
1185 LDFLAGS
1186 LIBS
1187 CPPFLAGS
1188 CXX
1189 CXXFLAGS
1190 CCC
1191 CPP
1192 CXXCPP
1193 AS
1194 AR
1195 OBJC
1196 OBJCFLAGS
1197 LIPO
1198 STRIP
1199 NM
1200 GNM
1201 MCS
1202 OBJCOPY
1203 OBJDUMP
1204 BUILD_CC
1205 BUILD_CXX
1206 BUILD_LD
1207 JTREGEXE
1208 XMKMF
1209 FREETYPE_CFLAGS
1210 FREETYPE_LIBS
1211 ALSA_CFLAGS
1212 ALSA_LIBS
1213 LIBFFI_CFLAGS
1214 LIBFFI_LIBS
1215 CCACHE'
1216 
1217 
1218 # Initialize some variables set by options.
1219 ac_init_help=
1220 ac_init_version=false
1221 ac_unrecognized_opts=
1222 ac_unrecognized_sep=
1223 # The variables have the same names as the options, with
1224 # dashes changed to underlines.
1225 cache_file=/dev/null
1226 exec_prefix=NONE
1227 no_create=
1228 no_recursion=
1229 prefix=NONE
1230 program_prefix=NONE
1231 program_suffix=NONE
1232 program_transform_name=s,x,x,
1233 silent=
1234 site=
1235 srcdir=
1236 verbose=
1237 x_includes=NONE
1238 x_libraries=NONE
1239 
1240 # Installation directory options.
1241 # These are left unexpanded so users can "make install exec_prefix=/foo"
1242 # and all the variables that are supposed to be based on exec_prefix
1243 # by default will actually change.
1244 # Use braces instead of parens because sh, perl, etc. also accept them.
1245 # (The list follows the same order as the GNU Coding Standards.)
1246 bindir='${exec_prefix}/bin'
1247 sbindir='${exec_prefix}/sbin'
1248 libexecdir='${exec_prefix}/libexec'
1249 datarootdir='${prefix}/share'
1250 datadir='${datarootdir}'
1251 sysconfdir='${prefix}/etc'
1252 sharedstatedir='${prefix}/com'
1253 localstatedir='${prefix}/var'
1254 includedir='${prefix}/include'
1255 oldincludedir='/usr/include'
1256 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1257 infodir='${datarootdir}/info'
1258 htmldir='${docdir}'
1259 dvidir='${docdir}'
1260 pdfdir='${docdir}'
1261 psdir='${docdir}'
1262 libdir='${exec_prefix}/lib'
1263 localedir='${datarootdir}/locale'
1264 mandir='${datarootdir}/man'
1265 
1266 ac_prev=
1267 ac_dashdash=
1268 for ac_option
1269 do
1270   # If the previous option needs an argument, assign it.
1271   if test -n "$ac_prev"; then
1272     eval $ac_prev=\$ac_option
1273     ac_prev=
1274     continue
1275   fi
1276 
1277   case $ac_option in
1278   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1279   *=)   ac_optarg= ;;
1280   *)    ac_optarg=yes ;;
1281   esac
1282 
1283   # Accept the important Cygnus configure options, so we can diagnose typos.
1284 
1285   case $ac_dashdash$ac_option in
1286   --)
1287     ac_dashdash=yes ;;
1288 
1289   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1290     ac_prev=bindir ;;
1291   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1292     bindir=$ac_optarg ;;
1293 
1294   -build | --build | --buil | --bui | --bu)
1295     ac_prev=build_alias ;;
1296   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1297     build_alias=$ac_optarg ;;
1298 
1299   -cache-file | --cache-file | --cache-fil | --cache-fi \
1300   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1301     ac_prev=cache_file ;;
1302   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1303   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1304     cache_file=$ac_optarg ;;
1305 
1306   --config-cache | -C)
1307     cache_file=config.cache ;;
1308 
1309   -datadir | --datadir | --datadi | --datad)
1310     ac_prev=datadir ;;
1311   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1312     datadir=$ac_optarg ;;
1313 
1314   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1315   | --dataroo | --dataro | --datar)
1316     ac_prev=datarootdir ;;
1317   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1318   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1319     datarootdir=$ac_optarg ;;
1320 
1321   -disable-* | --disable-*)
1322     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1323     # Reject names that are not valid shell variable names.
1324     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325       as_fn_error $? "invalid feature name: $ac_useropt"
1326     ac_useropt_orig=$ac_useropt
1327     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328     case $ac_user_opts in
1329       *"
1330 "enable_$ac_useropt"
1331 "*) ;;
1332       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1333          ac_unrecognized_sep=', ';;
1334     esac
1335     eval enable_$ac_useropt=no ;;
1336 
1337   -docdir | --docdir | --docdi | --doc | --do)
1338     ac_prev=docdir ;;
1339   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1340     docdir=$ac_optarg ;;
1341 
1342   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1343     ac_prev=dvidir ;;
1344   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1345     dvidir=$ac_optarg ;;
1346 
1347   -enable-* | --enable-*)
1348     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1349     # Reject names that are not valid shell variable names.
1350     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1351       as_fn_error $? "invalid feature name: $ac_useropt"
1352     ac_useropt_orig=$ac_useropt
1353     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354     case $ac_user_opts in
1355       *"
1356 "enable_$ac_useropt"
1357 "*) ;;
1358       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1359          ac_unrecognized_sep=', ';;
1360     esac
1361     eval enable_$ac_useropt=\$ac_optarg ;;
1362 
1363   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1364   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1365   | --exec | --exe | --ex)
1366     ac_prev=exec_prefix ;;
1367   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1368   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1369   | --exec=* | --exe=* | --ex=*)
1370     exec_prefix=$ac_optarg ;;
1371 
1372   -gas | --gas | --ga | --g)
1373     # Obsolete; use --with-gas.
1374     with_gas=yes ;;
1375 
1376   -help | --help | --hel | --he | -h)
1377     ac_init_help=long ;;
1378   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1379     ac_init_help=recursive ;;
1380   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1381     ac_init_help=short ;;
1382 
1383   -host | --host | --hos | --ho)
1384     ac_prev=host_alias ;;
1385   -host=* | --host=* | --hos=* | --ho=*)
1386     host_alias=$ac_optarg ;;
1387 
1388   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1389     ac_prev=htmldir ;;
1390   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1391   | --ht=*)
1392     htmldir=$ac_optarg ;;
1393 
1394   -includedir | --includedir | --includedi | --included | --include \
1395   | --includ | --inclu | --incl | --inc)
1396     ac_prev=includedir ;;
1397   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1398   | --includ=* | --inclu=* | --incl=* | --inc=*)
1399     includedir=$ac_optarg ;;
1400 
1401   -infodir | --infodir | --infodi | --infod | --info | --inf)
1402     ac_prev=infodir ;;
1403   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1404     infodir=$ac_optarg ;;
1405 
1406   -libdir | --libdir | --libdi | --libd)
1407     ac_prev=libdir ;;
1408   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1409     libdir=$ac_optarg ;;
1410 
1411   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1412   | --libexe | --libex | --libe)
1413     ac_prev=libexecdir ;;
1414   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1415   | --libexe=* | --libex=* | --libe=*)
1416     libexecdir=$ac_optarg ;;
1417 
1418   -localedir | --localedir | --localedi | --localed | --locale)
1419     ac_prev=localedir ;;
1420   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1421     localedir=$ac_optarg ;;
1422 
1423   -localstatedir | --localstatedir | --localstatedi | --localstated \
1424   | --localstate | --localstat | --localsta | --localst | --locals)
1425     ac_prev=localstatedir ;;
1426   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1427   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1428     localstatedir=$ac_optarg ;;
1429 
1430   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1431     ac_prev=mandir ;;
1432   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1433     mandir=$ac_optarg ;;
1434 
1435   -nfp | --nfp | --nf)
1436     # Obsolete; use --without-fp.
1437     with_fp=no ;;
1438 
1439   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1440   | --no-cr | --no-c | -n)
1441     no_create=yes ;;
1442 
1443   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1444   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1445     no_recursion=yes ;;
1446 
1447   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1448   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1449   | --oldin | --oldi | --old | --ol | --o)
1450     ac_prev=oldincludedir ;;
1451   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1452   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1453   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1454     oldincludedir=$ac_optarg ;;
1455 
1456   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1457     ac_prev=prefix ;;
1458   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1459     prefix=$ac_optarg ;;
1460 
1461   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1462   | --program-pre | --program-pr | --program-p)
1463     ac_prev=program_prefix ;;
1464   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1465   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1466     program_prefix=$ac_optarg ;;
1467 
1468   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1469   | --program-suf | --program-su | --program-s)
1470     ac_prev=program_suffix ;;
1471   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1472   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1473     program_suffix=$ac_optarg ;;
1474 
1475   -program-transform-name | --program-transform-name \
1476   | --program-transform-nam | --program-transform-na \
1477   | --program-transform-n | --program-transform- \
1478   | --program-transform | --program-transfor \
1479   | --program-transfo | --program-transf \
1480   | --program-trans | --program-tran \
1481   | --progr-tra | --program-tr | --program-t)
1482     ac_prev=program_transform_name ;;
1483   -program-transform-name=* | --program-transform-name=* \
1484   | --program-transform-nam=* | --program-transform-na=* \
1485   | --program-transform-n=* | --program-transform-=* \
1486   | --program-transform=* | --program-transfor=* \
1487   | --program-transfo=* | --program-transf=* \
1488   | --program-trans=* | --program-tran=* \
1489   | --progr-tra=* | --program-tr=* | --program-t=*)
1490     program_transform_name=$ac_optarg ;;
1491 
1492   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1493     ac_prev=pdfdir ;;
1494   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1495     pdfdir=$ac_optarg ;;
1496 
1497   -psdir | --psdir | --psdi | --psd | --ps)
1498     ac_prev=psdir ;;
1499   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1500     psdir=$ac_optarg ;;
1501 
1502   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1503   | -silent | --silent | --silen | --sile | --sil)
1504     silent=yes ;;
1505 
1506   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1507     ac_prev=sbindir ;;
1508   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1509   | --sbi=* | --sb=*)
1510     sbindir=$ac_optarg ;;
1511 
1512   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1513   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1514   | --sharedst | --shareds | --shared | --share | --shar \
1515   | --sha | --sh)
1516     ac_prev=sharedstatedir ;;
1517   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1518   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1519   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1520   | --sha=* | --sh=*)
1521     sharedstatedir=$ac_optarg ;;
1522 
1523   -site | --site | --sit)
1524     ac_prev=site ;;
1525   -site=* | --site=* | --sit=*)
1526     site=$ac_optarg ;;
1527 
1528   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1529     ac_prev=srcdir ;;
1530   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1531     srcdir=$ac_optarg ;;
1532 
1533   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1534   | --syscon | --sysco | --sysc | --sys | --sy)
1535     ac_prev=sysconfdir ;;
1536   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1537   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1538     sysconfdir=$ac_optarg ;;
1539 
1540   -target | --target | --targe | --targ | --tar | --ta | --t)
1541     ac_prev=target_alias ;;
1542   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1543     target_alias=$ac_optarg ;;
1544 
1545   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1546     verbose=yes ;;
1547 
1548   -version | --version | --versio | --versi | --vers | -V)
1549     ac_init_version=: ;;
1550 
1551   -with-* | --with-*)
1552     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1553     # Reject names that are not valid shell variable names.
1554     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1555       as_fn_error $? "invalid package name: $ac_useropt"
1556     ac_useropt_orig=$ac_useropt
1557     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1558     case $ac_user_opts in
1559       *"
1560 "with_$ac_useropt"
1561 "*) ;;
1562       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1563          ac_unrecognized_sep=', ';;
1564     esac
1565     eval with_$ac_useropt=\$ac_optarg ;;
1566 
1567   -without-* | --without-*)
1568     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1569     # Reject names that are not valid shell variable names.
1570     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1571       as_fn_error $? "invalid package name: $ac_useropt"
1572     ac_useropt_orig=$ac_useropt
1573     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1574     case $ac_user_opts in
1575       *"
1576 "with_$ac_useropt"
1577 "*) ;;
1578       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1579          ac_unrecognized_sep=', ';;
1580     esac
1581     eval with_$ac_useropt=no ;;
1582 
1583   --x)
1584     # Obsolete; use --with-x.
1585     with_x=yes ;;
1586 
1587   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1588   | --x-incl | --x-inc | --x-in | --x-i)
1589     ac_prev=x_includes ;;
1590   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1591   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1592     x_includes=$ac_optarg ;;
1593 
1594   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1595   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1596     ac_prev=x_libraries ;;
1597   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1598   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1599     x_libraries=$ac_optarg ;;
1600 
1601   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1602 Try \`$0 --help' for more information"
1603     ;;
1604 
1605   *=*)
1606     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1607     # Reject names that are not valid shell variable names.
1608     case $ac_envvar in #(
1609       '' | [0-9]* | *[!_$as_cr_alnum]* )
1610       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1611     esac
1612     eval $ac_envvar=\$ac_optarg
1613     export $ac_envvar ;;
1614 
1615   *)
1616     # FIXME: should be removed in autoconf 3.0.
1617     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1618     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1619       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1620     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1621     ;;
1622 
1623   esac
1624 done
1625 
1626 if test -n "$ac_prev"; then
1627   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1628   as_fn_error $? "missing argument to $ac_option"
1629 fi
1630 
1631 if test -n "$ac_unrecognized_opts"; then
1632   case $enable_option_checking in
1633     no) ;;
1634     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1635     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1636   esac
1637 fi
1638 
1639 # Check all directory arguments for consistency.
1640 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1641                 datadir sysconfdir sharedstatedir localstatedir includedir \
1642                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1643                 libdir localedir mandir
1644 do
1645   eval ac_val=\$$ac_var
1646   # Remove trailing slashes.
1647   case $ac_val in
1648     */ )
1649       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1650       eval $ac_var=\$ac_val;;
1651   esac
1652   # Be sure to have absolute directory names.
1653   case $ac_val in
1654     [\\/$]* | ?:[\\/]* )  continue;;
1655     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1656   esac
1657   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1658 done
1659 
1660 # There might be people who depend on the old broken behavior: `$host'
1661 # used to hold the argument of --host etc.
1662 # FIXME: To remove some day.
1663 build=$build_alias
1664 host=$host_alias
1665 target=$target_alias
1666 
1667 # FIXME: To remove some day.
1668 if test "x$host_alias" != x; then
1669   if test "x$build_alias" = x; then
1670     cross_compiling=maybe
1671   elif test "x$build_alias" != "x$host_alias"; then
1672     cross_compiling=yes
1673   fi
1674 fi
1675 
1676 ac_tool_prefix=
1677 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1678 
1679 test "$silent" = yes && exec 6>/dev/null
1680 
1681 
1682 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1683 ac_ls_di=`ls -di .` &&
1684 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1685   as_fn_error $? "working directory cannot be determined"
1686 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1687   as_fn_error $? "pwd does not report name of working directory"
1688 
1689 
1690 # Find the source files, if location was not specified.
1691 if test -z "$srcdir"; then
1692   ac_srcdir_defaulted=yes
1693   # Try the directory containing this script, then the parent directory.
1694   ac_confdir=`$as_dirname -- "$as_myself" ||
1695 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1696          X"$as_myself" : 'X\(//\)[^/]' \| \
1697          X"$as_myself" : 'X\(//\)$' \| \
1698          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1699 $as_echo X"$as_myself" |
1700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1701             s//\1/
1702             q
1703           }
1704           /^X\(\/\/\)[^/].*/{
1705             s//\1/
1706             q
1707           }
1708           /^X\(\/\/\)$/{
1709             s//\1/
1710             q
1711           }
1712           /^X\(\/\).*/{
1713             s//\1/
1714             q
1715           }
1716           s/.*/./; q'`
1717   srcdir=$ac_confdir
1718   if test ! -r "$srcdir/$ac_unique_file"; then
1719     srcdir=..
1720   fi
1721 else
1722   ac_srcdir_defaulted=no
1723 fi
1724 if test ! -r "$srcdir/$ac_unique_file"; then
1725   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1726   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1727 fi
1728 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1729 ac_abs_confdir=`(
1730         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1731         pwd)`
1732 # When building in place, set srcdir=.
1733 if test "$ac_abs_confdir" = "$ac_pwd"; then
1734   srcdir=.
1735 fi
1736 # Remove unnecessary trailing slashes from srcdir.
1737 # Double slashes in file names in object file debugging info
1738 # mess up M-x gdb in Emacs.
1739 case $srcdir in
1740 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1741 esac
1742 for ac_var in $ac_precious_vars; do
1743   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1744   eval ac_env_${ac_var}_value=\$${ac_var}
1745   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1746   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1747 done
1748 
1749 #
1750 # Report the --help message.
1751 #
1752 if test "$ac_init_help" = "long"; then
1753   # Omit some internal or obsolete options to make the list less imposing.
1754   # This message is too long to be a string in the A/UX 3.1 sh.
1755   cat <<_ACEOF
1756 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1757 
1758 Usage: $0 [OPTION]... [VAR=VALUE]...
1759 
1760 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1761 VAR=VALUE.  See below for descriptions of some of the useful variables.
1762 
1763 Defaults for the options are specified in brackets.
1764 
1765 Configuration:
1766   -h, --help              display this help and exit
1767       --help=short        display options specific to this package
1768       --help=recursive    display the short help of all the included packages
1769   -V, --version           display version information and exit
1770   -q, --quiet, --silent   do not print \`checking ...' messages
1771       --cache-file=FILE   cache test results in FILE [disabled]
1772   -C, --config-cache      alias for \`--cache-file=config.cache'
1773   -n, --no-create         do not create output files
1774       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1775 
1776 Installation directories:
1777   --prefix=PREFIX         install architecture-independent files in PREFIX
1778                           [$ac_default_prefix]
1779   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1780                           [PREFIX]
1781 
1782 By default, \`make install' will install all the files in
1783 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1784 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1785 for instance \`--prefix=\$HOME'.
1786 
1787 For better control, use the options below.
1788 
1789 Fine tuning of the installation directories:
1790   --bindir=DIR            user executables [EPREFIX/bin]
1791   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1792   --libexecdir=DIR        program executables [EPREFIX/libexec]
1793   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1794   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1795   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1796   --libdir=DIR            object code libraries [EPREFIX/lib]
1797   --includedir=DIR        C header files [PREFIX/include]
1798   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1799   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1800   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1801   --infodir=DIR           info documentation [DATAROOTDIR/info]
1802   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1803   --mandir=DIR            man documentation [DATAROOTDIR/man]
1804   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1805   --htmldir=DIR           html documentation [DOCDIR]
1806   --dvidir=DIR            dvi documentation [DOCDIR]
1807   --pdfdir=DIR            pdf documentation [DOCDIR]
1808   --psdir=DIR             ps documentation [DOCDIR]
1809 _ACEOF
1810 
1811   cat <<\_ACEOF
1812 
1813 X features:
1814   --x-includes=DIR    X include files are in DIR
1815   --x-libraries=DIR   X library files are in DIR
1816 
1817 System types:
1818   --build=BUILD     configure for building on BUILD [guessed]
1819   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1820   --target=TARGET   configure for building compilers for TARGET [HOST]
1821 _ACEOF
1822 fi
1823 
1824 if test -n "$ac_init_help"; then
1825   case $ac_init_help in
1826      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1827    esac
1828   cat <<\_ACEOF
1829 
1830 Optional Features:
1831   --disable-option-checking  ignore unrecognized --enable/--with options
1832   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1833   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1834   --enable-openjdk-only   suppress building custom source even if present
1835                           [disabled]
1836   --enable-debug          set the debug level to fastdebug (shorthand for
1837                           --with-debug-level=fastdebug) [disabled]
1838   --disable-headful       disable building headful support (graphical UI
1839                           support) [enabled]
1840   --enable-hotspot-test-in-build
1841                           run the Queens test after Hotspot build [disabled]
1842   --enable-unlimited-crypto
1843                           Enable unlimited crypto policy [disabled]
1844   --disable-debug-symbols disable generation of debug symbols [enabled]
1845   --disable-zip-debug-info
1846                           disable zipping of debug-info files [enabled]
1847   --enable-macosx-runtime-support
1848                           Deprecated. Option is kept for backwards
1849                           compatibility and is ignored
1850   --disable-freetype-bundling
1851                           disable bundling of the freetype library with the
1852                           build result [enabled on Windows or when using
1853                           --with-freetype, disabled otherwise]
1854   --enable-sjavac         use sjavac to do fast incremental compiles
1855                           [disabled]
1856   --disable-precompiled-headers
1857                           disable using precompiled headers when compiling C++
1858                           [enabled]
1859   --enable-ccache         enable using ccache to speed up recompilations
1860                           [disabled]
1861 
1862 Optional Packages:
1863   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1864   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1865   --with-custom-make-dir  use this directory for custom build/make files
1866   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1867                           support it), e.g. --with-target-bits=32 [guessed]
1868   --with-jdk-variant      JDK variant to build (normal) [normal]
1869   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1870   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1871                           client, minimal1, kernel, zero, zeroshark, core)
1872                           [server]
1873   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1874                           [release]
1875   --with-devkit           use this devkit for compilers, tools and resources
1876   --with-sys-root         alias for --with-sysroot for backwards compatability
1877   --with-sysroot          use this directory as sysroot)
1878   --with-tools-dir        alias for --with-toolchain-path for backwards
1879                           compatibility
1880   --with-toolchain-path   prepend these directories when searching for
1881                           toolchain binaries (compilers etc)
1882   --with-extra-path       prepend these directories to the default path
1883   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1884                           10.9 and later)
1885   --with-conf-name        use this as the name of the configuration [generated
1886                           from important configuration options]
1887   --with-builddeps-conf   use this configuration file for the builddeps
1888   --with-builddeps-server download and use build dependencies from this server
1889                           url
1890   --with-builddeps-dir    store downloaded build dependencies here
1891                           [/localhome/builddeps]
1892   --with-builddeps-group  chgrp the downloaded build dependencies to this
1893                           group
1894   --with-cacerts-file     specify alternative cacerts file
1895   --with-milestone        Set milestone value for build [internal]
1896   --with-update-version   Set update version value for build [b00]
1897   --with-user-release-suffix
1898                           Add a custom string to the version string if build
1899                           number isn't set.[username_builddateb00]
1900   --with-build-number     Set build number value for build [b00]
1901   --with-vendor-name      Set vendor name. Among others, used to set the
1902                           'java.vendor' and 'java.vm.vendor' system
1903                           properties. [not specified]
1904   --with-vendor-url       Set the 'java.vendor.url' system property [not
1905                           specified]
1906   --with-vendor-bug-url   Set the 'java.vendor.url.bug' system property [not
1907                           specified]
1908   --with-vendor-vm-bug-url
1909                           Sets the bug URL which will be displayed when the VM
1910                           crashes [not specified]
1911   --with-copyright-year   Set copyright year value for build [current year]
1912   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1913   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1914                           invocations of the Boot JDK, overriding the default
1915                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1916                           -enableassertions"
1917   --with-add-source-root  for each and every source directory, look in this
1918                           additional source root for the same directory; if it
1919                           exists and have files in it, include it in the build
1920   --with-override-source-root
1921                           for each and every source directory, look in this
1922                           override source root for the same directory; if it
1923                           exists, use that directory instead and ignore the
1924                           directory in the original source root
1925   --with-adds-and-overrides
1926                           use the subdirs 'adds' and 'overrides' in the
1927                           specified directory as add-source-root and
1928                           override-source-root
1929   --with-override-langtools
1930                           use this langtools dir for the build
1931   --with-override-corba   use this corba dir for the build
1932   --with-override-jaxp    use this jaxp dir for the build
1933   --with-override-jaxws   use this jaxws dir for the build
1934   --with-override-hotspot use this hotspot dir for the build
1935   --with-override-nashorn use this nashorn dir for the build
1936   --with-override-jdk     use this jdk dir for the build
1937   --with-import-hotspot   import hotspot binaries from this jdk image or
1938                           hotspot build dist dir instead of building from
1939                           source
1940   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1941                           to show possible values [platform dependent]
1942   --with-toolchain-version
1943                           the version of the toolchain to look for, use
1944                           '--help' to show possible values [platform
1945                           dependent]
1946   --with-jtreg            Regression Test Harness [probed]
1947   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1948   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1949   --with-extra-ldflags    extra flags to be used when linking jdk
1950   --with-native-debug-symbols
1951                           set the native debug symbol configuration (none,
1952                           internal, external, zipped) [varying]
1953   --with-x                use the X Window System
1954   --with-cups             specify prefix directory for the cups package
1955                           (expecting the headers under PATH/include)
1956   --with-cups-include     specify directory for the cups include files
1957   --with-freetype         specify prefix directory for the freetype package
1958                           (expecting the libraries under PATH/lib and the
1959                           headers under PATH/include)
1960   --with-freetype-include specify directory for the freetype include files
1961   --with-freetype-lib     specify directory for the freetype library
1962   --with-freetype-src     specify directory with freetype sources to
1963                           automatically build the library (experimental,
1964                           Windows-only)
1965   --with-alsa             specify prefix directory for the alsa package
1966                           (expecting the libraries under PATH/lib and the
1967                           headers under PATH/include)
1968   --with-alsa-include     specify directory for the alsa include files
1969   --with-alsa-lib         specify directory for the alsa library
1970   --with-fontconfig       specify prefix directory for the fontconfig package
1971                           (expecting the headers under PATH/include)
1972   --with-fontconfig-include
1973                           specify directory for the fontconfig include files
1974   --with-giflib           use giflib from build system or OpenJDK source
1975                           (system, bundled) [bundled]
1976   --with-zlib             use zlib from build system or OpenJDK source
1977                           (system, bundled) [bundled]
1978   --with-stdc++lib=<static>,<dynamic>,<default>
1979                           force linking of the C++ runtime on Linux to either
1980                           static or dynamic, default is static with dynamic as
1981                           fallback
1982   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1983                           (Windows only) [probed]
1984   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1985                           (Windows only) [probed]
1986   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
1987                           only) [probed]
1988   --with-dxsdk            Deprecated. Option is kept for backwards
1989                           compatibility and is ignored
1990   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1991                           compatibility and is ignored
1992   --with-dxsdk-include    Deprecated. Option is kept for backwards
1993                           compatibility and is ignored
1994   --with-num-cores        number of cores in the build system, e.g.
1995                           --with-num-cores=8 [probed]
1996   --with-memory-size      memory (in MB) available in the build system, e.g.
1997                           --with-memory-size=1024 [probed]
1998   --with-jobs             number of parallel jobs to let make run [calculated
1999                           based on cores and memory]
2000   --with-sjavac-server-java
2001                           use this java binary for running the sjavac
2002                           background server [Boot JDK java]
2003   --with-ccache-dir       where to store ccache files [~/.ccache]
2004 
2005 Some influential environment variables:
2006   BASENAME    Override default value for BASENAME
2007   BASH        Override default value for BASH
2008   CAT         Override default value for CAT
2009   CHMOD       Override default value for CHMOD
2010   CMP         Override default value for CMP
2011   COMM        Override default value for COMM
2012   CP          Override default value for CP
2013   CUT         Override default value for CUT
2014   DATE        Override default value for DATE
2015   DIFF        Override default value for DIFF
2016   DIRNAME     Override default value for DIRNAME
2017   ECHO        Override default value for ECHO
2018   EXPR        Override default value for EXPR
2019   FILE        Override default value for FILE
2020   FIND        Override default value for FIND
2021   HEAD        Override default value for HEAD
2022   LN          Override default value for LN
2023   LS          Override default value for LS
2024   MKDIR       Override default value for MKDIR
2025   MKTEMP      Override default value for MKTEMP
2026   MV          Override default value for MV
2027   NAWK        Override default value for NAWK
2028   PRINTF      Override default value for PRINTF
2029   RM          Override default value for RM
2030   SH          Override default value for SH
2031   SORT        Override default value for SORT
2032   TAIL        Override default value for TAIL
2033   TAR         Override default value for TAR
2034   TEE         Override default value for TEE
2035   TOUCH       Override default value for TOUCH
2036   TR          Override default value for TR
2037   UNAME       Override default value for UNAME
2038   UNIQ        Override default value for UNIQ
2039   WC          Override default value for WC
2040   WHICH       Override default value for WHICH
2041   XARGS       Override default value for XARGS
2042   AWK         Override default value for AWK
2043   GREP        Override default value for GREP
2044   EGREP       Override default value for EGREP
2045   FGREP       Override default value for FGREP
2046   SED         Override default value for SED
2047   CYGPATH     Override default value for CYGPATH
2048   READLINK    Override default value for READLINK
2049   DF          Override default value for DF
2050   SETFILE     Override default value for SETFILE
2051   CPIO        Override default value for CPIO
2052   UNZIP       Override default value for UNZIP
2053   ZIP         Override default value for ZIP
2054   LDD         Override default value for LDD
2055   READELF     Override default value for READELF
2056   HG          Override default value for HG
2057   STAT        Override default value for STAT
2058   TIME        Override default value for TIME
2059   DSYMUTIL    Override default value for DSYMUTIL
2060   XATTR       Override default value for XATTR
2061   CODESIGN    Override default value for CODESIGN
2062   PKG_CONFIG  path to pkg-config utility
2063   CC          C compiler command
2064   CFLAGS      C compiler flags
2065   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2066               nonstandard directory <lib dir>
2067   LIBS        libraries to pass to the linker, e.g. -l<library>
2068   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2069               you have headers in a nonstandard directory <include dir>
2070   CXX         C++ compiler command
2071   CXXFLAGS    C++ compiler flags
2072   CPP         C preprocessor
2073   CXXCPP      C++ preprocessor
2074   AS          Override default value for AS
2075   AR          Override default value for AR
2076   OBJC        Objective C compiler command
2077   OBJCFLAGS   Objective C compiler flags
2078   LIPO        Override default value for LIPO
2079   STRIP       Override default value for STRIP
2080   NM          Override default value for NM
2081   GNM         Override default value for GNM
2082   MCS         Override default value for MCS
2083   OBJCOPY     Override default value for OBJCOPY
2084   OBJDUMP     Override default value for OBJDUMP
2085   BUILD_CC    Override default value for BUILD_CC
2086   BUILD_CXX   Override default value for BUILD_CXX
2087   BUILD_LD    Override default value for BUILD_LD
2088   JTREGEXE    Override default value for JTREGEXE
2089   XMKMF       Path to xmkmf, Makefile generator for X Window System
2090   FREETYPE_CFLAGS
2091               C compiler flags for FREETYPE, overriding pkg-config
2092   FREETYPE_LIBS
2093               linker flags for FREETYPE, overriding pkg-config
2094   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2095   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2096   LIBFFI_CFLAGS
2097               C compiler flags for LIBFFI, overriding pkg-config
2098   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2099   CCACHE      Override default value for CCACHE
2100 
2101 Use these variables to override the choices made by `configure' or to help
2102 it to find libraries and programs with nonstandard names/locations.
2103 
2104 Report bugs to <build-dev@openjdk.java.net>.
2105 OpenJDK home page: <http://openjdk.java.net>.
2106 _ACEOF
2107 ac_status=$?
2108 fi
2109 
2110 if test "$ac_init_help" = "recursive"; then
2111   # If there are subdirs, report their specific --help.
2112   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2113     test -d "$ac_dir" ||
2114       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2115       continue
2116     ac_builddir=.
2117 
2118 case "$ac_dir" in
2119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2120 *)
2121   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2122   # A ".." for each directory in $ac_dir_suffix.
2123   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2124   case $ac_top_builddir_sub in
2125   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2126   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2127   esac ;;
2128 esac
2129 ac_abs_top_builddir=$ac_pwd
2130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2131 # for backward compatibility:
2132 ac_top_builddir=$ac_top_build_prefix
2133 
2134 case $srcdir in
2135   .)  # We are building in place.
2136     ac_srcdir=.
2137     ac_top_srcdir=$ac_top_builddir_sub
2138     ac_abs_top_srcdir=$ac_pwd ;;
2139   [\\/]* | ?:[\\/]* )  # Absolute name.
2140     ac_srcdir=$srcdir$ac_dir_suffix;
2141     ac_top_srcdir=$srcdir
2142     ac_abs_top_srcdir=$srcdir ;;
2143   *) # Relative name.
2144     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2145     ac_top_srcdir=$ac_top_build_prefix$srcdir
2146     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2147 esac
2148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2149 
2150     cd "$ac_dir" || { ac_status=$?; continue; }
2151     # Check for guested configure.
2152     if test -f "$ac_srcdir/configure.gnu"; then
2153       echo &&
2154       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2155     elif test -f "$ac_srcdir/configure"; then
2156       echo &&
2157       $SHELL "$ac_srcdir/configure" --help=recursive
2158     else
2159       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2160     fi || ac_status=$?
2161     cd "$ac_pwd" || { ac_status=$?; break; }
2162   done
2163 fi
2164 
2165 test -n "$ac_init_help" && exit $ac_status
2166 if $ac_init_version; then
2167   cat <<\_ACEOF
2168 OpenJDK configure jdk8
2169 generated by GNU Autoconf 2.69
2170 
2171 Copyright (C) 2012 Free Software Foundation, Inc.
2172 This configure script is free software; the Free Software Foundation
2173 gives unlimited permission to copy, distribute and modify it.
2174 _ACEOF
2175   exit
2176 fi
2177 
2178 ## ------------------------ ##
2179 ## Autoconf initialization. ##
2180 ## ------------------------ ##
2181 
2182 # ac_fn_c_try_compile LINENO
2183 # --------------------------
2184 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2185 ac_fn_c_try_compile ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   rm -f conftest.$ac_objext
2189   if { { ac_try="$ac_compile"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196   (eval "$ac_compile") 2>conftest.err
2197   ac_status=$?
2198   if test -s conftest.err; then
2199     grep -v '^ *+' conftest.err >conftest.er1
2200     cat conftest.er1 >&5
2201     mv -f conftest.er1 conftest.err
2202   fi
2203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204   test $ac_status = 0; } && {
2205          test -z "$ac_c_werror_flag" ||
2206          test ! -s conftest.err
2207        } && test -s conftest.$ac_objext; then :
2208   ac_retval=0
2209 else
2210   $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212 
2213         ac_retval=1
2214 fi
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216   as_fn_set_status $ac_retval
2217 
2218 } # ac_fn_c_try_compile
2219 
2220 # ac_fn_cxx_try_compile LINENO
2221 # ----------------------------
2222 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_cxx_try_compile ()
2224 {
2225   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226   rm -f conftest.$ac_objext
2227   if { { ac_try="$ac_compile"
2228 case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234   (eval "$ac_compile") 2>conftest.err
2235   ac_status=$?
2236   if test -s conftest.err; then
2237     grep -v '^ *+' conftest.err >conftest.er1
2238     cat conftest.er1 >&5
2239     mv -f conftest.er1 conftest.err
2240   fi
2241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242   test $ac_status = 0; } && {
2243          test -z "$ac_cxx_werror_flag" ||
2244          test ! -s conftest.err
2245        } && test -s conftest.$ac_objext; then :
2246   ac_retval=0
2247 else
2248   $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250 
2251         ac_retval=1
2252 fi
2253   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254   as_fn_set_status $ac_retval
2255 
2256 } # ac_fn_cxx_try_compile
2257 
2258 # ac_fn_c_try_cpp LINENO
2259 # ----------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_c_try_cpp ()
2262 {
2263   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264   if { { ac_try="$ac_cpp conftest.$ac_ext"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2272   ac_status=$?
2273   if test -s conftest.err; then
2274     grep -v '^ *+' conftest.err >conftest.er1
2275     cat conftest.er1 >&5
2276     mv -f conftest.er1 conftest.err
2277   fi
2278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279   test $ac_status = 0; } > conftest.i && {
2280          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2281          test ! -s conftest.err
2282        }; then :
2283   ac_retval=0
2284 else
2285   $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287 
2288     ac_retval=1
2289 fi
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291   as_fn_set_status $ac_retval
2292 
2293 } # ac_fn_c_try_cpp
2294 
2295 # ac_fn_cxx_try_cpp LINENO
2296 # ------------------------
2297 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_cxx_try_cpp ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   if { { ac_try="$ac_cpp conftest.$ac_ext"
2302 case "(($ac_try" in
2303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304   *) ac_try_echo=$ac_try;;
2305 esac
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2309   ac_status=$?
2310   if test -s conftest.err; then
2311     grep -v '^ *+' conftest.err >conftest.er1
2312     cat conftest.er1 >&5
2313     mv -f conftest.er1 conftest.err
2314   fi
2315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316   test $ac_status = 0; } > conftest.i && {
2317          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2318          test ! -s conftest.err
2319        }; then :
2320   ac_retval=0
2321 else
2322   $as_echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324 
2325     ac_retval=1
2326 fi
2327   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328   as_fn_set_status $ac_retval
2329 
2330 } # ac_fn_cxx_try_cpp
2331 
2332 # ac_fn_objc_try_compile LINENO
2333 # -----------------------------
2334 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2335 ac_fn_objc_try_compile ()
2336 {
2337   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338   rm -f conftest.$ac_objext
2339   if { { ac_try="$ac_compile"
2340 case "(($ac_try" in
2341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342   *) ac_try_echo=$ac_try;;
2343 esac
2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2345 $as_echo "$ac_try_echo"; } >&5
2346   (eval "$ac_compile") 2>conftest.err
2347   ac_status=$?
2348   if test -s conftest.err; then
2349     grep -v '^ *+' conftest.err >conftest.er1
2350     cat conftest.er1 >&5
2351     mv -f conftest.er1 conftest.err
2352   fi
2353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354   test $ac_status = 0; } && {
2355          test -z "$ac_objc_werror_flag" ||
2356          test ! -s conftest.err
2357        } && test -s conftest.$ac_objext; then :
2358   ac_retval=0
2359 else
2360   $as_echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362 
2363         ac_retval=1
2364 fi
2365   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366   as_fn_set_status $ac_retval
2367 
2368 } # ac_fn_objc_try_compile
2369 
2370 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2371 # ---------------------------------------------------------
2372 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2373 # the include files in INCLUDES and setting the cache variable VAR
2374 # accordingly.
2375 ac_fn_cxx_check_header_mongrel ()
2376 {
2377   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378   if eval \${$3+:} false; then :
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382   $as_echo_n "(cached) " >&6
2383 fi
2384 eval ac_res=\$$3
2385                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 else
2388   # Is the header compilable?
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2390 $as_echo_n "checking $2 usability... " >&6; }
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h.  */
2393 $4
2394 #include <$2>
2395 _ACEOF
2396 if ac_fn_cxx_try_compile "$LINENO"; then :
2397   ac_header_compiler=yes
2398 else
2399   ac_header_compiler=no
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2403 $as_echo "$ac_header_compiler" >&6; }
2404 
2405 # Is the header present?
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2407 $as_echo_n "checking $2 presence... " >&6; }
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h.  */
2410 #include <$2>
2411 _ACEOF
2412 if ac_fn_cxx_try_cpp "$LINENO"; then :
2413   ac_header_preproc=yes
2414 else
2415   ac_header_preproc=no
2416 fi
2417 rm -f conftest.err conftest.i conftest.$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2419 $as_echo "$ac_header_preproc" >&6; }
2420 
2421 # So?  What about this header?
2422 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2423   yes:no: )
2424     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2425 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2427 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2428     ;;
2429   no:yes:* )
2430     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2431 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2432     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2433 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2434     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2435 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2436     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2437 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2438     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2439 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2440 ( $as_echo "## ----------------------------------------- ##
2441 ## Report this to build-dev@openjdk.java.net ##
2442 ## ----------------------------------------- ##"
2443      ) | sed "s/^/$as_me: WARNING:     /" >&2
2444     ;;
2445 esac
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if eval \${$3+:} false; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   eval "$3=\$ac_header_compiler"
2452 fi
2453 eval ac_res=\$$3
2454                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 fi
2457   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 
2459 } # ac_fn_cxx_check_header_mongrel
2460 
2461 # ac_fn_cxx_try_run LINENO
2462 # ------------------------
2463 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2464 # that executables *can* be run.
2465 ac_fn_cxx_try_run ()
2466 {
2467   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468   if { { ac_try="$ac_link"
2469 case "(($ac_try" in
2470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471   *) ac_try_echo=$ac_try;;
2472 esac
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 $as_echo "$ac_try_echo"; } >&5
2475   (eval "$ac_link") 2>&5
2476   ac_status=$?
2477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2478   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2479   { { case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484 $as_echo "$ac_try_echo"; } >&5
2485   (eval "$ac_try") 2>&5
2486   ac_status=$?
2487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2488   test $ac_status = 0; }; }; then :
2489   ac_retval=0
2490 else
2491   $as_echo "$as_me: program exited with status $ac_status" >&5
2492        $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494 
2495        ac_retval=$ac_status
2496 fi
2497   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2498   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499   as_fn_set_status $ac_retval
2500 
2501 } # ac_fn_cxx_try_run
2502 
2503 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2504 # ---------------------------------------------------------
2505 # Tests whether HEADER exists and can be compiled using the include files in
2506 # INCLUDES, setting the cache variable VAR accordingly.
2507 ac_fn_cxx_check_header_compile ()
2508 {
2509   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2511 $as_echo_n "checking for $2... " >&6; }
2512 if eval \${$3+:} false; then :
2513   $as_echo_n "(cached) " >&6
2514 else
2515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h.  */
2517 $4
2518 #include <$2>
2519 _ACEOF
2520 if ac_fn_cxx_try_compile "$LINENO"; then :
2521   eval "$3=yes"
2522 else
2523   eval "$3=no"
2524 fi
2525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 fi
2527 eval ac_res=\$$3
2528                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531 
2532 } # ac_fn_cxx_check_header_compile
2533 
2534 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2535 # ----------------------------------------------
2536 # Tries to find the compile-time value of EXPR in a program that includes
2537 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2538 # computed
2539 ac_fn_cxx_compute_int ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   if test "$cross_compiling" = yes; then
2543     # Depending upon the size, compute the lo and hi bounds.
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 int
2548 main ()
2549 {
2550 static int test_array [1 - 2 * !(($2) >= 0)];
2551 test_array [0] = 0;
2552 return test_array [0];
2553 
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_cxx_try_compile "$LINENO"; then :
2559   ac_lo=0 ac_mid=0
2560   while :; do
2561     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h.  */
2563 $4
2564 int
2565 main ()
2566 {
2567 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2568 test_array [0] = 0;
2569 return test_array [0];
2570 
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 if ac_fn_cxx_try_compile "$LINENO"; then :
2576   ac_hi=$ac_mid; break
2577 else
2578   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2579                         if test $ac_lo -le $ac_mid; then
2580                           ac_lo= ac_hi=
2581                           break
2582                         fi
2583                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586   done
2587 else
2588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h.  */
2590 $4
2591 int
2592 main ()
2593 {
2594 static int test_array [1 - 2 * !(($2) < 0)];
2595 test_array [0] = 0;
2596 return test_array [0];
2597 
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 if ac_fn_cxx_try_compile "$LINENO"; then :
2603   ac_hi=-1 ac_mid=-1
2604   while :; do
2605     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606 /* end confdefs.h.  */
2607 $4
2608 int
2609 main ()
2610 {
2611 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2612 test_array [0] = 0;
2613 return test_array [0];
2614 
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 if ac_fn_cxx_try_compile "$LINENO"; then :
2620   ac_lo=$ac_mid; break
2621 else
2622   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2623                         if test $ac_mid -le $ac_hi; then
2624                           ac_lo= ac_hi=
2625                           break
2626                         fi
2627                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630   done
2631 else
2632   ac_lo= ac_hi=
2633 fi
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 # Binary search between lo and hi bounds.
2638 while test "x$ac_lo" != "x$ac_hi"; do
2639   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h.  */
2642 $4
2643 int
2644 main ()
2645 {
2646 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2647 test_array [0] = 0;
2648 return test_array [0];
2649 
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 if ac_fn_cxx_try_compile "$LINENO"; then :
2655   ac_hi=$ac_mid
2656 else
2657   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2658 fi
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 done
2661 case $ac_lo in #((
2662 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2663 '') ac_retval=1 ;;
2664 esac
2665   else
2666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h.  */
2668 $4
2669 static long int longval () { return $2; }
2670 static unsigned long int ulongval () { return $2; }
2671 #include <stdio.h>
2672 #include <stdlib.h>
2673 int
2674 main ()
2675 {
2676 
2677   FILE *f = fopen ("conftest.val", "w");
2678   if (! f)
2679     return 1;
2680   if (($2) < 0)
2681     {
2682       long int i = longval ();
2683       if (i != ($2))
2684         return 1;
2685       fprintf (f, "%ld", i);
2686     }
2687   else
2688     {
2689       unsigned long int i = ulongval ();
2690       if (i != ($2))
2691         return 1;
2692       fprintf (f, "%lu", i);
2693     }
2694   /* Do not output a trailing newline, as this causes \r\n confusion
2695      on some platforms.  */
2696   return ferror (f) || fclose (f) != 0;
2697 
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 if ac_fn_cxx_try_run "$LINENO"; then :
2703   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2704 else
2705   ac_retval=1
2706 fi
2707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2708   conftest.$ac_objext conftest.beam conftest.$ac_ext
2709 rm -f conftest.val
2710 
2711   fi
2712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2713   as_fn_set_status $ac_retval
2714 
2715 } # ac_fn_cxx_compute_int
2716 
2717 # ac_fn_cxx_try_link LINENO
2718 # -------------------------
2719 # Try to link conftest.$ac_ext, and return whether this succeeded.
2720 ac_fn_cxx_try_link ()
2721 {
2722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723   rm -f conftest.$ac_objext conftest$ac_exeext
2724   if { { ac_try="$ac_link"
2725 case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730 $as_echo "$ac_try_echo"; } >&5
2731   (eval "$ac_link") 2>conftest.err
2732   ac_status=$?
2733   if test -s conftest.err; then
2734     grep -v '^ *+' conftest.err >conftest.er1
2735     cat conftest.er1 >&5
2736     mv -f conftest.er1 conftest.err
2737   fi
2738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739   test $ac_status = 0; } && {
2740          test -z "$ac_cxx_werror_flag" ||
2741          test ! -s conftest.err
2742        } && test -s conftest$ac_exeext && {
2743          test "$cross_compiling" = yes ||
2744          test -x conftest$ac_exeext
2745        }; then :
2746   ac_retval=0
2747 else
2748   $as_echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750 
2751         ac_retval=1
2752 fi
2753   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2754   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2755   # interfere with the next link command; also delete a directory that is
2756   # left behind by Apple's compiler.  We do this before executing the actions.
2757   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759   as_fn_set_status $ac_retval
2760 
2761 } # ac_fn_cxx_try_link
2762 
2763 # ac_fn_cxx_check_func LINENO FUNC VAR
2764 # ------------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_cxx_check_func ()
2767 {
2768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if eval \${$3+:} false; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2778 #define $2 innocuous_$2
2779 
2780 /* System header to define __stub macros and hopefully few prototypes,
2781     which can conflict with char $2 (); below.
2782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783     <limits.h> exists even on freestanding compilers.  */
2784 
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790 
2791 #undef $2
2792 
2793 /* Override any GCC internal prototype to avoid an error.
2794    Use char because int might match the return type of a GCC
2795    builtin and then its argument prototype would still apply.  */
2796 #ifdef __cplusplus
2797 extern "C"
2798 #endif
2799 char $2 ();
2800 /* The GNU C library defines this for functions which it implements
2801     to always fail with ENOSYS.  Some functions are actually named
2802     something starting with __ and the normal name is an alias.  */
2803 #if defined __stub_$2 || defined __stub___$2
2804 choke me
2805 #endif
2806 
2807 int
2808 main ()
2809 {
2810 return $2 ();
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_cxx_try_link "$LINENO"; then :
2816   eval "$3=yes"
2817 else
2818   eval "$3=no"
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext \
2821     conftest$ac_exeext conftest.$ac_ext
2822 fi
2823 eval ac_res=\$$3
2824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2827 
2828 } # ac_fn_cxx_check_func
2829 
2830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2831 # -------------------------------------------------------
2832 # Tests whether HEADER exists and can be compiled using the include files in
2833 # INCLUDES, setting the cache variable VAR accordingly.
2834 ac_fn_c_check_header_compile ()
2835 {
2836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2838 $as_echo_n "checking for $2... " >&6; }
2839 if eval \${$3+:} false; then :
2840   $as_echo_n "(cached) " >&6
2841 else
2842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h.  */
2844 $4
2845 #include <$2>
2846 _ACEOF
2847 if ac_fn_c_try_compile "$LINENO"; then :
2848   eval "$3=yes"
2849 else
2850   eval "$3=no"
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 fi
2854 eval ac_res=\$$3
2855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2856 $as_echo "$ac_res" >&6; }
2857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2858 
2859 } # ac_fn_c_check_header_compile
2860 cat >config.log <<_ACEOF
2861 This file contains any messages produced by compilers while
2862 running configure, to aid debugging if configure makes a mistake.
2863 
2864 It was created by OpenJDK $as_me jdk8, which was
2865 generated by GNU Autoconf 2.69.  Invocation command line was
2866 
2867   $ $0 $@
2868 
2869 _ACEOF
2870 exec 5>>config.log
2871 {
2872 cat <<_ASUNAME
2873 ## --------- ##
2874 ## Platform. ##
2875 ## --------- ##
2876 
2877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2882 
2883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2884 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2885 
2886 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2887 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2889 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2890 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2891 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2892 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2893 
2894 _ASUNAME
2895 
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     $as_echo "PATH: $as_dir"
2902   done
2903 IFS=$as_save_IFS
2904 
2905 } >&5
2906 
2907 cat >&5 <<_ACEOF
2908 
2909 
2910 ## ----------- ##
2911 ## Core tests. ##
2912 ## ----------- ##
2913 
2914 _ACEOF
2915 
2916 
2917 # Keep a trace of the command line.
2918 # Strip out --no-create and --no-recursion so they do not pile up.
2919 # Strip out --silent because we don't want to record it for future runs.
2920 # Also quote any args containing shell meta-characters.
2921 # Make two passes to allow for proper duplicate-argument suppression.
2922 ac_configure_args=
2923 ac_configure_args0=
2924 ac_configure_args1=
2925 ac_must_keep_next=false
2926 for ac_pass in 1 2
2927 do
2928   for ac_arg
2929   do
2930     case $ac_arg in
2931     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2932     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2933     | -silent | --silent | --silen | --sile | --sil)
2934       continue ;;
2935     *\'*)
2936       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2937     esac
2938     case $ac_pass in
2939     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2940     2)
2941       as_fn_append ac_configure_args1 " '$ac_arg'"
2942       if test $ac_must_keep_next = true; then
2943         ac_must_keep_next=false # Got value, back to normal.
2944       else
2945         case $ac_arg in
2946           *=* | --config-cache | -C | -disable-* | --disable-* \
2947           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2948           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2949           | -with-* | --with-* | -without-* | --without-* | --x)
2950             case "$ac_configure_args0 " in
2951               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2952             esac
2953             ;;
2954           -* ) ac_must_keep_next=true ;;
2955         esac
2956       fi
2957       as_fn_append ac_configure_args " '$ac_arg'"
2958       ;;
2959     esac
2960   done
2961 done
2962 { ac_configure_args0=; unset ac_configure_args0;}
2963 { ac_configure_args1=; unset ac_configure_args1;}
2964 
2965 # When interrupted or exit'd, cleanup temporary files, and complete
2966 # config.log.  We remove comments because anyway the quotes in there
2967 # would cause problems or look ugly.
2968 # WARNING: Use '\'' to represent an apostrophe within the trap.
2969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2970 trap 'exit_status=$?
2971   # Save into config.log some information that might help in debugging.
2972   {
2973     echo
2974 
2975     $as_echo "## ---------------- ##
2976 ## Cache variables. ##
2977 ## ---------------- ##"
2978     echo
2979     # The following way of writing the cache mishandles newlines in values,
2980 (
2981   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2982     eval ac_val=\$$ac_var
2983     case $ac_val in #(
2984     *${as_nl}*)
2985       case $ac_var in #(
2986       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2988       esac
2989       case $ac_var in #(
2990       _ | IFS | as_nl) ;; #(
2991       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2992       *) { eval $ac_var=; unset $ac_var;} ;;
2993       esac ;;
2994     esac
2995   done
2996   (set) 2>&1 |
2997     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2998     *${as_nl}ac_space=\ *)
2999       sed -n \
3000         "s/'\''/'\''\\\\'\'''\''/g;
3001           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3002       ;; #(
3003     *)
3004       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3005       ;;
3006     esac |
3007     sort
3008 )
3009     echo
3010 
3011     $as_echo "## ----------------- ##
3012 ## Output variables. ##
3013 ## ----------------- ##"
3014     echo
3015     for ac_var in $ac_subst_vars
3016     do
3017       eval ac_val=\$$ac_var
3018       case $ac_val in
3019       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3020       esac
3021       $as_echo "$ac_var='\''$ac_val'\''"
3022     done | sort
3023     echo
3024 
3025     if test -n "$ac_subst_files"; then
3026       $as_echo "## ------------------- ##
3027 ## File substitutions. ##
3028 ## ------------------- ##"
3029       echo
3030       for ac_var in $ac_subst_files
3031       do
3032         eval ac_val=\$$ac_var
3033         case $ac_val in
3034         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3035         esac
3036         $as_echo "$ac_var='\''$ac_val'\''"
3037       done | sort
3038       echo
3039     fi
3040 
3041     if test -s confdefs.h; then
3042       $as_echo "## ----------- ##
3043 ## confdefs.h. ##
3044 ## ----------- ##"
3045       echo
3046       cat confdefs.h
3047       echo
3048     fi
3049     test "$ac_signal" != 0 &&
3050       $as_echo "$as_me: caught signal $ac_signal"
3051     $as_echo "$as_me: exit $exit_status"
3052   } >&5
3053   rm -f core *.core core.conftest.* &&
3054     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3055     exit $exit_status
3056 ' 0
3057 for ac_signal in 1 2 13 15; do
3058   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3059 done
3060 ac_signal=0
3061 
3062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3063 rm -f -r conftest* confdefs.h
3064 
3065 $as_echo "/* confdefs.h */" > confdefs.h
3066 
3067 # Predefined preprocessor variables.
3068 
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_NAME "$PACKAGE_NAME"
3071 _ACEOF
3072 
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3075 _ACEOF
3076 
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3079 _ACEOF
3080 
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_STRING "$PACKAGE_STRING"
3083 _ACEOF
3084 
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3087 _ACEOF
3088 
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_URL "$PACKAGE_URL"
3091 _ACEOF
3092 
3093 
3094 # Let the site file select an alternate cache file if it wants to.
3095 # Prefer an explicitly selected file to automatically selected ones.
3096 ac_site_file1=NONE
3097 ac_site_file2=NONE
3098 if test -n "$CONFIG_SITE"; then
3099   # We do not want a PATH search for config.site.
3100   case $CONFIG_SITE in #((
3101     -*)  ac_site_file1=./$CONFIG_SITE;;
3102     */*) ac_site_file1=$CONFIG_SITE;;
3103     *)   ac_site_file1=./$CONFIG_SITE;;
3104   esac
3105 elif test "x$prefix" != xNONE; then
3106   ac_site_file1=$prefix/share/config.site
3107   ac_site_file2=$prefix/etc/config.site
3108 else
3109   ac_site_file1=$ac_default_prefix/share/config.site
3110   ac_site_file2=$ac_default_prefix/etc/config.site
3111 fi
3112 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3113 do
3114   test "x$ac_site_file" = xNONE && continue
3115   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3116     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3117 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3118     sed 's/^/| /' "$ac_site_file" >&5
3119     . "$ac_site_file" \
3120       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error $? "failed to load site script $ac_site_file
3123 See \`config.log' for more details" "$LINENO" 5; }
3124   fi
3125 done
3126 
3127 if test -r "$cache_file"; then
3128   # Some versions of bash will fail to source /dev/null (special files
3129   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3130   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3131     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3132 $as_echo "$as_me: loading cache $cache_file" >&6;}
3133     case $cache_file in
3134       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3135       *)                      . "./$cache_file";;
3136     esac
3137   fi
3138 else
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3140 $as_echo "$as_me: creating cache $cache_file" >&6;}
3141   >$cache_file
3142 fi
3143 
3144 # Check that the precious variables saved in the cache have kept the same
3145 # value.
3146 ac_cache_corrupted=false
3147 for ac_var in $ac_precious_vars; do
3148   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3149   eval ac_new_set=\$ac_env_${ac_var}_set
3150   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3151   eval ac_new_val=\$ac_env_${ac_var}_value
3152   case $ac_old_set,$ac_new_set in
3153     set,)
3154       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3156       ac_cache_corrupted=: ;;
3157     ,set)
3158       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3160       ac_cache_corrupted=: ;;
3161     ,);;
3162     *)
3163       if test "x$ac_old_val" != "x$ac_new_val"; then
3164         # differences in whitespace do not lead to failure.
3165         ac_old_val_w=`echo x $ac_old_val`
3166         ac_new_val_w=`echo x $ac_new_val`
3167         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3168           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3170           ac_cache_corrupted=:
3171         else
3172           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3174           eval $ac_var=\$ac_old_val
3175         fi
3176         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3177 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3178         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3179 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3180       fi;;
3181   esac
3182   # Pass precious variables to config.status.
3183   if test "$ac_new_set" = set; then
3184     case $ac_new_val in
3185     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3186     *) ac_arg=$ac_var=$ac_new_val ;;
3187     esac
3188     case " $ac_configure_args " in
3189       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3190       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3191     esac
3192   fi
3193 done
3194 if $ac_cache_corrupted; then
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3199   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3200 fi
3201 ## -------------------- ##
3202 ## Main body of script. ##
3203 ## -------------------- ##
3204 
3205 ac_ext=c
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 
3211 
3212 
3213 ac_aux_dir=
3214 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3215   if test -f "$ac_dir/install-sh"; then
3216     ac_aux_dir=$ac_dir
3217     ac_install_sh="$ac_aux_dir/install-sh -c"
3218     break
3219   elif test -f "$ac_dir/install.sh"; then
3220     ac_aux_dir=$ac_dir
3221     ac_install_sh="$ac_aux_dir/install.sh -c"
3222     break
3223   elif test -f "$ac_dir/shtool"; then
3224     ac_aux_dir=$ac_dir
3225     ac_install_sh="$ac_aux_dir/shtool install -c"
3226     break
3227   fi
3228 done
3229 if test -z "$ac_aux_dir"; then
3230   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
3231 fi
3232 
3233 # These three variables are undocumented and unsupported,
3234 # and are intended to be withdrawn in a future Autoconf release.
3235 # They can cause serious problems if a builder's source tree is in a directory
3236 # whose full name contains unusual characters.
3237 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3238 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3239 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3240 
3241 
3242 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3243 
3244 #
3245 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3246 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3247 #
3248 # This code is free software; you can redistribute it and/or modify it
3249 # under the terms of the GNU General Public License version 2 only, as
3250 # published by the Free Software Foundation.  Oracle designates this
3251 # particular file as subject to the "Classpath" exception as provided
3252 # by Oracle in the LICENSE file that accompanied this code.
3253 #
3254 # This code is distributed in the hope that it will be useful, but WITHOUT
3255 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3256 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3257 # version 2 for more details (a copy is included in the LICENSE file that
3258 # accompanied this code).
3259 #
3260 # You should have received a copy of the GNU General Public License version
3261 # 2 along with this work; if not, write to the Free Software Foundation,
3262 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3263 #
3264 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3265 # or visit www.oracle.com if you need additional information or have any
3266 # questions.
3267 #
3268 
3269 #
3270 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3271 #
3272 # This program is free software; you can redistribute it and/or modify
3273 # it under the terms of the GNU General Public License as published by
3274 # the Free Software Foundation; either version 2 of the License, or
3275 # (at your option) any later version.
3276 #
3277 # This program is distributed in the hope that it will be useful, but
3278 # WITHOUT ANY WARRANTY; without even the implied warranty of
3279 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3280 # General Public License for more details.
3281 #
3282 # You should have received a copy of the GNU General Public License
3283 # along with this program; if not, write to the Free Software
3284 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3285 #
3286 # As a special exception to the GNU General Public License, if you
3287 # distribute this file as part of a program that contains a
3288 # configuration script generated by Autoconf, you may include it under
3289 # the same distribution terms that you use for the rest of that program.
3290 
3291 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3292 # ----------------------------------
3293 # PKG_PROG_PKG_CONFIG
3294 
3295 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3296 #
3297 # Check to see whether a particular set of modules exists.  Similar
3298 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3299 #
3300 #
3301 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3302 # this or PKG_CHECK_MODULES is called, or make sure to call
3303 # PKG_CHECK_EXISTS manually
3304 # --------------------------------------------------------------
3305 
3306 
3307 
3308 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3309 # ---------------------------------------------
3310 # _PKG_CONFIG
3311 
3312 # _PKG_SHORT_ERRORS_SUPPORTED
3313 # -----------------------------
3314 # _PKG_SHORT_ERRORS_SUPPORTED
3315 
3316 
3317 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3318 # [ACTION-IF-NOT-FOUND])
3319 #
3320 #
3321 # Note that if there is a possibility the first call to
3322 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3323 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3324 #
3325 #
3326 # --------------------------------------------------------------
3327 # PKG_CHECK_MODULES
3328 
3329 
3330 # Include these first...
3331 #
3332 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3333 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3334 #
3335 # This code is free software; you can redistribute it and/or modify it
3336 # under the terms of the GNU General Public License version 2 only, as
3337 # published by the Free Software Foundation.  Oracle designates this
3338 # particular file as subject to the "Classpath" exception as provided
3339 # by Oracle in the LICENSE file that accompanied this code.
3340 #
3341 # This code is distributed in the hope that it will be useful, but WITHOUT
3342 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3343 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3344 # version 2 for more details (a copy is included in the LICENSE file that
3345 # accompanied this code).
3346 #
3347 # You should have received a copy of the GNU General Public License version
3348 # 2 along with this work; if not, write to the Free Software Foundation,
3349 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3350 #
3351 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3352 # or visit www.oracle.com if you need additional information or have any
3353 # questions.
3354 #
3355 
3356 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3357 # If so, then append $1 to $2 \
3358 # Also set JVM_ARG_OK to true/false depending on outcome.
3359 
3360 
3361 # Appends a string to a path variable, only adding the : when needed.
3362 
3363 
3364 # Prepends a string to a path variable, only adding the : when needed.
3365 
3366 
3367 # This will make sure the given variable points to a full and proper
3368 # path. This means:
3369 # 1) There will be no spaces in the path. On posix platforms,
3370 #    spaces in the path will result in an error. On Windows,
3371 #    the path will be rewritten using short-style to be space-free.
3372 # 2) The path will be absolute, and it will be in unix-style (on
3373 #     cygwin).
3374 # $1: The name of the variable to fix
3375 
3376 
3377 # This will make sure the given variable points to a executable
3378 # with a full and proper path. This means:
3379 # 1) There will be no spaces in the path. On posix platforms,
3380 #    spaces in the path will result in an error. On Windows,
3381 #    the path will be rewritten using short-style to be space-free.
3382 # 2) The path will be absolute, and it will be in unix-style (on
3383 #     cygwin).
3384 # Any arguments given to the executable is preserved.
3385 # If the input variable does not have a directory specification, then
3386 # it need to be in the PATH.
3387 # $1: The name of the variable to fix
3388 
3389 
3390 
3391 
3392 # Register a --with argument but mark it as deprecated
3393 # $1: The name of the with argument to deprecate, not including --with-
3394 
3395 
3396 # Register a --enable argument but mark it as deprecated
3397 # $1: The name of the with argument to deprecate, not including --enable-
3398 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3399 
3400 
3401 
3402 
3403 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3404 # $1: variable to check
3405 
3406 
3407 # Check that there are no unprocessed overridden variables left.
3408 # If so, they are an incorrect argument and we will exit with an error.
3409 
3410 
3411 # Setup a tool for the given variable. If correctly specified by the user,
3412 # use that value, otherwise search for the tool using the supplied code snippet.
3413 # $1: variable to set
3414 # $2: code snippet to call to look for the tool
3415 
3416 
3417 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3418 # $1: variable to set
3419 # $2: executable name (or list of names) to look for
3420 
3421 
3422 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3423 # $1: variable to set
3424 # $2: executable name (or list of names) to look for
3425 
3426 
3427 # Like BASIC_PATH_PROGS but fails if no tool was found.
3428 # $1: variable to set
3429 # $2: executable name (or list of names) to look for
3430 
3431 
3432 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3433 # $1: variable to set
3434 # $2: autoconf macro to call to look for the special tool
3435 
3436 
3437 # Setup the most fundamental tools that relies on not much else to set up,
3438 # but is used by much of the early bootstrap code.
3439 
3440 
3441 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3442 
3443 
3444 # Evaluates platform specific overrides for devkit variables.
3445 # $1: Name of variable
3446 
3447 
3448 
3449 
3450 
3451 
3452 
3453 
3454 
3455 #%%% Simple tools %%%
3456 
3457 # Check if we have found a usable version of make
3458 # $1: the path to a potential make binary (or empty)
3459 # $2: the description on how we found this
3460 
3461 
3462 # Goes looking for a usable version of GNU make.
3463 
3464 
3465 
3466 
3467 
3468 
3469 # Check if build directory is on local disk. If not possible to determine,
3470 # we prefer to claim it's local.
3471 # Argument 1: directory to test
3472 # Argument 2: what to do if it is on local disk
3473 # Argument 3: what to do otherwise (remote disk or failure)
3474 
3475 
3476 # Check that source files have basic read permissions set. This might
3477 # not be the case in cygwin in certain conditions.
3478 
3479 
3480 
3481 
3482 #
3483 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3484 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3485 #
3486 # This code is free software; you can redistribute it and/or modify it
3487 # under the terms of the GNU General Public License version 2 only, as
3488 # published by the Free Software Foundation.  Oracle designates this
3489 # particular file as subject to the "Classpath" exception as provided
3490 # by Oracle in the LICENSE file that accompanied this code.
3491 #
3492 # This code is distributed in the hope that it will be useful, but WITHOUT
3493 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3494 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3495 # version 2 for more details (a copy is included in the LICENSE file that
3496 # accompanied this code).
3497 #
3498 # You should have received a copy of the GNU General Public License version
3499 # 2 along with this work; if not, write to the Free Software Foundation,
3500 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3501 #
3502 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3503 # or visit www.oracle.com if you need additional information or have any
3504 # questions.
3505 #
3506 
3507 
3508 
3509 
3510 
3511 # Helper function which possibly converts a path using DOS-style short mode.
3512 # If so, the updated path is stored in $new_path.
3513 # $1: The path to check
3514 
3515 
3516 # Helper function which possibly converts a path using DOS-style short mode.
3517 # If so, the updated path is stored in $new_path.
3518 # $1: The path to check
3519 
3520 
3521 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3522 # and could probably be heavily simplified. However, all changes in this
3523 # area tend to need lot of testing in different scenarios, and in lack of
3524 # proper unit testing, cleaning this up has not been deemed worth the effort
3525 # at the moment.
3526 
3527 
3528 
3529 
3530 
3531 
3532 
3533 
3534 
3535 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3536 
3537 
3538 
3539 
3540 #
3541 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3542 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3543 #
3544 # This code is free software; you can redistribute it and/or modify it
3545 # under the terms of the GNU General Public License version 2 only, as
3546 # published by the Free Software Foundation.  Oracle designates this
3547 # particular file as subject to the "Classpath" exception as provided
3548 # by Oracle in the LICENSE file that accompanied this code.
3549 #
3550 # This code is distributed in the hope that it will be useful, but WITHOUT
3551 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3552 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3553 # version 2 for more details (a copy is included in the LICENSE file that
3554 # accompanied this code).
3555 #
3556 # You should have received a copy of the GNU General Public License version
3557 # 2 along with this work; if not, write to the Free Software Foundation,
3558 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3559 #
3560 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3561 # or visit www.oracle.com if you need additional information or have any
3562 # questions.
3563 #
3564 
3565 
3566 
3567 
3568 
3569 
3570 
3571 
3572 
3573 
3574 
3575 # ... then the rest
3576 #
3577 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3578 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3579 #
3580 # This code is free software; you can redistribute it and/or modify it
3581 # under the terms of the GNU General Public License version 2 only, as
3582 # published by the Free Software Foundation.  Oracle designates this
3583 # particular file as subject to the "Classpath" exception as provided
3584 # by Oracle in the LICENSE file that accompanied this code.
3585 #
3586 # This code is distributed in the hope that it will be useful, but WITHOUT
3587 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3588 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3589 # version 2 for more details (a copy is included in the LICENSE file that
3590 # accompanied this code).
3591 #
3592 # You should have received a copy of the GNU General Public License version
3593 # 2 along with this work; if not, write to the Free Software Foundation,
3594 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3595 #
3596 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3597 # or visit www.oracle.com if you need additional information or have any
3598 # questions.
3599 #
3600 
3601 # Execute the check given as argument, and verify the result
3602 # If the Boot JDK was previously found, do nothing
3603 # $1 A command line (typically autoconf macro) to execute
3604 
3605 
3606 # Test: Is bootjdk explicitely set by command line arguments?
3607 
3608 
3609 # Test: Is bootjdk available from builddeps?
3610 
3611 
3612 # Test: Is $JAVA_HOME set?
3613 
3614 
3615 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3616 
3617 
3618 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3619 
3620 
3621 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3622 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3623 # $1 = Path to directory containing jdk installations.
3624 # $2 = String to append to the found JDK directory to get the proper JDK home
3625 
3626 
3627 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3628 # environmental variable as base for where to look.
3629 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3630 
3631 
3632 # Test: Is there a JDK installed in default, well-known locations?
3633 
3634 
3635 # Check that a command-line tool in the Boot JDK is correct
3636 # $1 = name of variable to assign
3637 # $2 = name of binary
3638 
3639 
3640 ###############################################################################
3641 #
3642 # We need a Boot JDK to bootstrap the build.
3643 #
3644 
3645 
3646 
3647 
3648 
3649 #
3650 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3651 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3652 #
3653 # This code is free software; you can redistribute it and/or modify it
3654 # under the terms of the GNU General Public License version 2 only, as
3655 # published by the Free Software Foundation.  Oracle designates this
3656 # particular file as subject to the "Classpath" exception as provided
3657 # by Oracle in the LICENSE file that accompanied this code.
3658 #
3659 # This code is distributed in the hope that it will be useful, but WITHOUT
3660 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3661 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3662 # version 2 for more details (a copy is included in the LICENSE file that
3663 # accompanied this code).
3664 #
3665 # You should have received a copy of the GNU General Public License version
3666 # 2 along with this work; if not, write to the Free Software Foundation,
3667 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3668 #
3669 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3670 # or visit www.oracle.com if you need additional information or have any
3671 # questions.
3672 #
3673 
3674 
3675 
3676 
3677 
3678 
3679 
3680 
3681 
3682 
3683 
3684 
3685 
3686 
3687 
3688 
3689 
3690 
3691 
3692 
3693 #
3694 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3695 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3696 #
3697 # This code is free software; you can redistribute it and/or modify it
3698 # under the terms of the GNU General Public License version 2 only, as
3699 # published by the Free Software Foundation.  Oracle designates this
3700 # particular file as subject to the "Classpath" exception as provided
3701 # by Oracle in the LICENSE file that accompanied this code.
3702 #
3703 # This code is distributed in the hope that it will be useful, but WITHOUT
3704 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3705 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3706 # version 2 for more details (a copy is included in the LICENSE file that
3707 # accompanied this code).
3708 #
3709 # You should have received a copy of the GNU General Public License version
3710 # 2 along with this work; if not, write to the Free Software Foundation,
3711 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3712 #
3713 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3714 # or visit www.oracle.com if you need additional information or have any
3715 # questions.
3716 #
3717 
3718 
3719 
3720 
3721 
3722 # Documentation on common flags used for solstudio in HIGHEST.
3723 #
3724 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3725 #          done with care, there are some assumptions below that need to
3726 #          be understood about the use of pointers, and IEEE behavior.
3727 #
3728 # -fns: Use non-standard floating point mode (not IEEE 754)
3729 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3730 # -fsingle: Use single precision floating point with 'float'
3731 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3732 #   (Source with excessing pointer casting and data access with mixed
3733 #    pointer types are not recommended)
3734 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3735 #   (If you expect perfect errno behavior, do not use this)
3736 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3737 # -xrestrict: Pointer parameters to functions do not overlap
3738 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3739 #    If you pass in multiple pointers to the same data, do not use this)
3740 # -xlibmil: Inline some library routines
3741 #   (If you expect perfect errno behavior, do not use this)
3742 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3743 #   (If you expect perfect errno behavior, do not use this)
3744 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3745 
3746     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3747     # Bug?
3748     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3749     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3750     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3751     #fi
3752 
3753 
3754 
3755 
3756 
3757 
3758 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3759 #                                  [RUN-IF-FALSE])
3760 # ------------------------------------------------------------
3761 # Check that the C compiler supports an argument
3762 
3763 
3764 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3765 #                                    [RUN-IF-FALSE])
3766 # ------------------------------------------------------------
3767 # Check that the C++ compiler supports an argument
3768 
3769 
3770 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3771 #                                [RUN-IF-FALSE])
3772 # ------------------------------------------------------------
3773 # Check that the C and C++ compilers support an argument
3774 
3775 
3776 
3777 
3778 
3779 
3780 
3781 #
3782 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3783 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3784 #
3785 # This code is free software; you can redistribute it and/or modify it
3786 # under the terms of the GNU General Public License version 2 only, as
3787 # published by the Free Software Foundation.  Oracle designates this
3788 # particular file as subject to the "Classpath" exception as provided
3789 # by Oracle in the LICENSE file that accompanied this code.
3790 #
3791 # This code is distributed in the hope that it will be useful, but WITHOUT
3792 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3793 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3794 # version 2 for more details (a copy is included in the LICENSE file that
3795 # accompanied this code).
3796 #
3797 # You should have received a copy of the GNU General Public License version
3798 # 2 along with this work; if not, write to the Free Software Foundation,
3799 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3800 #
3801 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3802 # or visit www.oracle.com if you need additional information or have any
3803 # questions.
3804 #
3805 
3806 
3807 
3808 
3809 
3810 cygwin_help() {
3811   case $1 in
3812     unzip)
3813       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3814       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3815       ;;
3816     zip)
3817       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3818       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3819       ;;
3820     make)
3821       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3822       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3823       ;;
3824     freetype)
3825       HELP_MSG="
3826 The freetype library can now be build during the configure process.
3827 Download the freetype sources and unpack them into an arbitrary directory:
3828 
3829 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3830 tar -xzf freetype-2.5.3.tar.gz
3831 
3832 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3833 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3834 builds or into '<freetype_src>/lib32' for 32-bit builds.
3835 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3836 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3837       ;;
3838   esac
3839 }
3840 
3841 msys_help() {
3842   PKGHANDLER_COMMAND=""
3843 }
3844 
3845 apt_help() {
3846   case $1 in
3847     devkit)
3848       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3849     openjdk)
3850       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3851     alsa)
3852       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3853     cups)
3854       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3855     fontconfig)
3856       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3857     freetype)
3858       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3859     pulse)
3860       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3861     x11)
3862       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3863     ccache)
3864       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3865   esac
3866 }
3867 
3868 yum_help() {
3869   case $1 in
3870     devkit)
3871       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3872     openjdk)
3873       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3874     alsa)
3875       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3876     cups)
3877       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3878     fontconfig)
3879       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3880     freetype)
3881       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3882     pulse)
3883       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3884     x11)
3885       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3886     ccache)
3887       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3888   esac
3889 }
3890 
3891 port_help() {
3892   PKGHANDLER_COMMAND=""
3893 }
3894 
3895 pkgutil_help() {
3896   PKGHANDLER_COMMAND=""
3897 }
3898 
3899 pkgadd_help() {
3900   PKGHANDLER_COMMAND=""
3901 }
3902 
3903 # This function will check if we're called from the "configure" wrapper while
3904 # printing --help. If so, we will print out additional information that can
3905 # only be extracted within the autoconf script, and then exit. This must be
3906 # called at the very beginning in configure.ac.
3907 
3908 
3909 
3910 
3911 #
3912 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3913 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3914 #
3915 # This code is free software; you can redistribute it and/or modify it
3916 # under the terms of the GNU General Public License version 2 only, as
3917 # published by the Free Software Foundation.  Oracle designates this
3918 # particular file as subject to the "Classpath" exception as provided
3919 # by Oracle in the LICENSE file that accompanied this code.
3920 #
3921 # This code is distributed in the hope that it will be useful, but WITHOUT
3922 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3923 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3924 # version 2 for more details (a copy is included in the LICENSE file that
3925 # accompanied this code).
3926 #
3927 # You should have received a copy of the GNU General Public License version
3928 # 2 along with this work; if not, write to the Free Software Foundation,
3929 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3930 #
3931 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3932 # or visit www.oracle.com if you need additional information or have any
3933 # questions.
3934 #
3935 
3936 
3937 
3938 
3939 
3940 
3941 
3942 
3943 
3944 
3945 ###############################################################################
3946 #
3947 # Should we build only OpenJDK even if closed sources are present?
3948 #
3949 
3950 
3951 
3952 
3953 ###############################################################################
3954 #
3955 # Setup version numbers
3956 #
3957 
3958 
3959 
3960 
3961 
3962 
3963 # Support for customization of the build process. Some build files
3964 # will include counterparts from this location, if they exist. This allows
3965 # for a degree of customization of the build targets and the rules/recipes
3966 # to create them
3967 
3968 # Check whether --with-custom-make-dir was given.
3969 if test "${with_custom_make_dir+set}" = set; then :
3970   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3971 fi
3972 
3973 
3974 
3975 #
3976 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3977 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3978 #
3979 # This code is free software; you can redistribute it and/or modify it
3980 # under the terms of the GNU General Public License version 2 only, as
3981 # published by the Free Software Foundation.  Oracle designates this
3982 # particular file as subject to the "Classpath" exception as provided
3983 # by Oracle in the LICENSE file that accompanied this code.
3984 #
3985 # This code is distributed in the hope that it will be useful, but WITHOUT
3986 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3987 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3988 # version 2 for more details (a copy is included in the LICENSE file that
3989 # accompanied this code).
3990 #
3991 # You should have received a copy of the GNU General Public License version
3992 # 2 along with this work; if not, write to the Free Software Foundation,
3993 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3994 #
3995 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3996 # or visit www.oracle.com if you need additional information or have any
3997 # questions.
3998 #
3999 
4000 
4001 
4002 
4003 
4004 
4005 
4006 
4007 
4008 
4009 
4010 
4011 
4012 
4013 
4014 ################################################################################
4015 # Setup fontconfig
4016 ################################################################################
4017 
4018 
4019 
4020 
4021 
4022 
4023 
4024 
4025 #
4026 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4027 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4028 #
4029 # This code is free software; you can redistribute it and/or modify it
4030 # under the terms of the GNU General Public License version 2 only, as
4031 # published by the Free Software Foundation.  Oracle designates this
4032 # particular file as subject to the "Classpath" exception as provided
4033 # by Oracle in the LICENSE file that accompanied this code.
4034 #
4035 # This code is distributed in the hope that it will be useful, but WITHOUT
4036 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4037 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4038 # version 2 for more details (a copy is included in the LICENSE file that
4039 # accompanied this code).
4040 #
4041 # You should have received a copy of the GNU General Public License version
4042 # 2 along with this work; if not, write to the Free Software Foundation,
4043 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4044 #
4045 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4046 # or visit www.oracle.com if you need additional information or have any
4047 # questions.
4048 #
4049 
4050 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4051 # Converts autoconf style CPU name to OpenJDK style, into
4052 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4053 
4054 
4055 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4056 # Converts autoconf style OS name to OpenJDK style, into
4057 # VAR_OS and VAR_OS_API.
4058 
4059 
4060 # Expects $host_os $host_cpu $build_os and $build_cpu
4061 # and $with_target_bits to have been setup!
4062 #
4063 # Translate the standard triplet(quadruplet) definition
4064 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4065 # OPENJDK_BUILD_OS, etc.
4066 
4067 
4068 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4069 # accordingly. Must be done after setting up build and target system, but before
4070 # doing anything else with these values.
4071 
4072 
4073 # Setup the legacy variables, for controlling the old makefiles.
4074 #
4075 
4076 
4077 
4078 
4079 #%%% Build and target systems %%%
4080 
4081 
4082 
4083 
4084 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4085 # Add -mX to various FLAGS variables.
4086 
4087 
4088 
4089 
4090 
4091 
4092 #
4093 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4094 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4095 #
4096 # This code is free software; you can redistribute it and/or modify it
4097 # under the terms of the GNU General Public License version 2 only, as
4098 # published by the Free Software Foundation.  Oracle designates this
4099 # particular file as subject to the "Classpath" exception as provided
4100 # by Oracle in the LICENSE file that accompanied this code.
4101 #
4102 # This code is distributed in the hope that it will be useful, but WITHOUT
4103 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4104 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4105 # version 2 for more details (a copy is included in the LICENSE file that
4106 # accompanied this code).
4107 #
4108 # You should have received a copy of the GNU General Public License version
4109 # 2 along with this work; if not, write to the Free Software Foundation,
4110 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4111 #
4112 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4113 # or visit www.oracle.com if you need additional information or have any
4114 # questions.
4115 #
4116 
4117 
4118 
4119 
4120 
4121 
4122 
4123 
4124 #
4125 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4126 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4127 #
4128 # This code is free software; you can redistribute it and/or modify it
4129 # under the terms of the GNU General Public License version 2 only, as
4130 # published by the Free Software Foundation.  Oracle designates this
4131 # particular file as subject to the "Classpath" exception as provided
4132 # by Oracle in the LICENSE file that accompanied this code.
4133 #
4134 # This code is distributed in the hope that it will be useful, but WITHOUT
4135 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4136 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4137 # version 2 for more details (a copy is included in the LICENSE file that
4138 # accompanied this code).
4139 #
4140 # You should have received a copy of the GNU General Public License version
4141 # 2 along with this work; if not, write to the Free Software Foundation,
4142 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4143 #
4144 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4145 # or visit www.oracle.com if you need additional information or have any
4146 # questions.
4147 #
4148 
4149 ########################################################################
4150 # This file is responsible for detecting, verifying and setting up the
4151 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4152 # proper paths to the binaries, but it will not setup any flags.
4153 #
4154 # The binaries used is determined by the toolchain type, which is the family of
4155 # compilers and related tools that are used.
4156 ########################################################################
4157 
4158 
4159 # All valid toolchains, regardless of platform (used by help.m4)
4160 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4161 
4162 # These toolchains are valid on different platforms
4163 VALID_TOOLCHAINS_linux="gcc clang"
4164 VALID_TOOLCHAINS_solaris="solstudio"
4165 VALID_TOOLCHAINS_macosx="gcc clang"
4166 VALID_TOOLCHAINS_aix="xlc"
4167 VALID_TOOLCHAINS_windows="microsoft"
4168 
4169 # Toolchain descriptions
4170 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4171 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4172 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4173 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4174 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4175 
4176 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4177 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4178 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4179 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4180 
4181 
4182 # Check if the configured compiler (C and C++) is of a specific version or
4183 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4184 #
4185 # Arguments:
4186 #   $1:   The version string to check against the found version
4187 #   $2:   block to run if the compiler is at least this version (>=)
4188 #   $3:   block to run if the compiler is older than this version (<)
4189 
4190 
4191 
4192 # Setup a number of variables describing how native output files are
4193 # named on this platform/toolchain.
4194 
4195 
4196 # Determine which toolchain type to use, and make sure it is valid for this
4197 # platform. Setup various information about the selected toolchain.
4198 
4199 
4200 # Before we start detecting the toolchain executables, we might need some
4201 # special setup, e.g. additional paths etc.
4202 
4203 
4204 # Restore path, etc
4205 
4206 
4207 # Check if a compiler is of the toolchain type we expect, and save the version
4208 # information from it. If the compiler does not match the expected type,
4209 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4210 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4211 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4212 #
4213 # $1 = compiler to test (CC or CXX)
4214 # $2 = human readable name of compiler (C or C++)
4215 
4216 
4217 
4218 # Try to locate the given C or C++ compiler in the path, or otherwise.
4219 #
4220 # $1 = compiler to test (CC or CXX)
4221 # $2 = human readable name of compiler (C or C++)
4222 # $3 = list of compiler names to search for
4223 
4224 
4225 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4226 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4227 # archiver (AR). Verify that the compilers are correct according to the
4228 # toolchain type.
4229 
4230 
4231 # Setup additional tools that is considered a part of the toolchain, but not the
4232 # core part. Many of these are highly platform-specific and do not exist,
4233 # and/or are not needed on all platforms.
4234 
4235 
4236 # Setup the build tools (i.e, the compiler and linker used to build programs
4237 # that should be run on the build platform, not the target platform, as a build
4238 # helper). Since the non-cross-compile case uses the normal, target compilers
4239 # for this, we can only do this after these have been setup.
4240 
4241 
4242 # Setup legacy variables that are still needed as alternative ways to refer to
4243 # parts of the toolchain.
4244 
4245 
4246 # Do some additional checks on the detected tools.
4247 
4248 
4249 # Setup the JTReg Regression Test Harness.
4250 
4251 
4252 
4253 #
4254 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4255 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4256 #
4257 # This code is free software; you can redistribute it and/or modify it
4258 # under the terms of the GNU General Public License version 2 only, as
4259 # published by the Free Software Foundation.  Oracle designates this
4260 # particular file as subject to the "Classpath" exception as provided
4261 # by Oracle in the LICENSE file that accompanied this code.
4262 #
4263 # This code is distributed in the hope that it will be useful, but WITHOUT
4264 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4265 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4266 # version 2 for more details (a copy is included in the LICENSE file that
4267 # accompanied this code).
4268 #
4269 # You should have received a copy of the GNU General Public License version
4270 # 2 along with this work; if not, write to the Free Software Foundation,
4271 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4272 #
4273 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4274 # or visit www.oracle.com if you need additional information or have any
4275 # questions.
4276 #
4277 
4278 ################################################################################
4279 # The order of these defines the priority by which we try to find them.
4280 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4281 
4282 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4283 VS_VERSION_INTERNAL_2010=100
4284 VS_MSVCR_2010=msvcr100.dll
4285 # We don't use msvcp on Visual Studio 2010
4286 #VS_MSVCP_2010=msvcp100.dll
4287 VS_ENVVAR_2010="VS100COMNTOOLS"
4288 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4289 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4290 VS_VS_PLATFORM_NAME_2010="v100"
4291 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4292 
4293 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4294 VS_VERSION_INTERNAL_2012=110
4295 VS_MSVCR_2012=msvcr110.dll
4296 VS_MSVCP_2012=msvcp110.dll
4297 VS_ENVVAR_2012="VS110COMNTOOLS"
4298 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4299 VS_SDK_INSTALLDIR_2012=
4300 VS_VS_PLATFORM_NAME_2012="v110"
4301 VS_SDK_PLATFORM_NAME_2012=
4302 
4303 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4304 VS_VERSION_INTERNAL_2013=120
4305 VS_MSVCR_2013=msvcr120.dll
4306 VS_MSVCP_2013=msvcp120.dll
4307 VS_ENVVAR_2013="VS120COMNTOOLS"
4308 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4309 VS_SDK_INSTALLDIR_2013=
4310 VS_VS_PLATFORM_NAME_2013="v120"
4311 VS_SDK_PLATFORM_NAME_2013=
4312 
4313 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4314 VS_VERSION_INTERNAL_2015=140
4315 VS_MSVCR_2015=vcruntime140.dll
4316 VS_MSVCP_2015=msvcp140.dll
4317 VS_ENVVAR_2015="VS140COMNTOOLS"
4318 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4319 VS_SDK_INSTALLDIR_2015=
4320 VS_VS_PLATFORM_NAME_2015="v140"
4321 VS_SDK_PLATFORM_NAME_2015=
4322 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4323 # explicitly specifying Windows Kit 8.1 to be used.
4324 VS_ENV_ARGS_2015="8.1"
4325 
4326 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4327 VS_VERSION_INTERNAL_2017=141
4328 VS_MSVCR_2017=vcruntime140.dll
4329 VS_MSVCP_2017=msvcp140.dll
4330 VS_ENVVAR_2017="VS150COMNTOOLS"
4331 VS_USE_UCRT_2017="true"
4332 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4333 VS_EDITIONS_2017="Community Professional Enterprise"
4334 VS_SDK_INSTALLDIR_2017=
4335 VS_VS_PLATFORM_NAME_2017="v141"
4336 VS_SDK_PLATFORM_NAME_2017=
4337 
4338 ################################################################################
4339 
4340 
4341 
4342 ################################################################################
4343 
4344 
4345 
4346 ################################################################################
4347 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4348 # build environment and assigns it to VS_ENV_CMD
4349 
4350 
4351 ################################################################################
4352 
4353 
4354 
4355 ################################################################################
4356 # Check if the VS env variables were setup prior to running configure.
4357 # If not, then find vcvarsall.bat and run it automatically, and integrate
4358 # the set env variables into the spec file.
4359 
4360 
4361 
4362 
4363 
4364 
4365 
4366 
4367 
4368 
4369 
4370 
4371 
4372 
4373 # This line needs to be here, verbatim, after all includes and the dummy hook
4374 # definitions. It is replaced with custom functionality when building
4375 # custom sources.
4376 #CUSTOM_AUTOCONF_INCLUDE
4377 
4378 # Do not change or remove the following line, it is needed for consistency checks:
4379 DATE_WHEN_GENERATED=1560366811
4380 
4381 ###############################################################################
4382 #
4383 # Initialization / Boot-strapping
4384 #
4385 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4386 # thus it jumps back and forth, each time gaining something needed later on.
4387 #
4388 ###############################################################################
4389 
4390 # If we are requested to print additional help, do that and then exit.
4391 # This must be the very first call.
4392 
4393   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4394     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4395     $PRINTF "Which are valid to use depends on the build platform.\n"
4396     for toolchain in $VALID_TOOLCHAINS_all; do
4397       # Use indirect variable referencing
4398       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4399       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4400       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4401     done
4402 
4403     # And now exit directly
4404     exit 0
4405   fi
4406 
4407 
4408 # Basic initialization that must happen first of all in the normal process.
4409 
4410   # Save the original command line. This is passed to us by the wrapper configure script.
4411 
4412   DATE_WHEN_CONFIGURED=`LANG=C date`
4413 
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4415 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4417 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4418 
4419 
4420   # Start with tools that do not need have cross compilation support
4421   # and can be expected to be found in the default PATH. These tools are
4422   # used by configure. Nor are these tools expected to be found in the
4423   # devkit from the builddeps server either, since they are
4424   # needed to download the devkit.
4425 
4426   # First are all the simple required tools.
4427 
4428 
4429 
4430   # Publish this variable in the help.
4431 
4432 
4433   if test "x$BASENAME" = x; then
4434     # The variable is not set by user, try to locate tool using the code snippet
4435     for ac_prog in basename
4436 do
4437   # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_path_BASENAME+:} false; then :
4442   $as_echo_n "(cached) " >&6
4443 else
4444   case $BASENAME in
4445   [\\/]* | ?:[\\/]*)
4446   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4447   ;;
4448   *)
4449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452   IFS=$as_save_IFS
4453   test -z "$as_dir" && as_dir=.
4454     for ac_exec_ext in '' $ac_executable_extensions; do
4455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458     break 2
4459   fi
4460 done
4461   done
4462 IFS=$as_save_IFS
4463 
4464   ;;
4465 esac
4466 fi
4467 BASENAME=$ac_cv_path_BASENAME
4468 if test -n "$BASENAME"; then
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4470 $as_echo "$BASENAME" >&6; }
4471 else
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4475 
4476 
4477   test -n "$BASENAME" && break
4478 done
4479 
4480   else
4481     # The variable is set, but is it from the command line or the environment?
4482 
4483     # Try to remove the string !BASENAME! from our list.
4484     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4485     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4486       # If it failed, the variable was not from the command line. Ignore it,
4487       # but warn the user (except for BASH, which is always set by the calling BASH).
4488       if test "xBASENAME" != xBASH; then
4489         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4490 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4491       fi
4492       # Try to locate tool using the code snippet
4493       for ac_prog in basename
4494 do
4495   # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_path_BASENAME+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   case $BASENAME in
4503   [\\/]* | ?:[\\/]*)
4504   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4505   ;;
4506   *)
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519   done
4520 IFS=$as_save_IFS
4521 
4522   ;;
4523 esac
4524 fi
4525 BASENAME=$ac_cv_path_BASENAME
4526 if test -n "$BASENAME"; then
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4528 $as_echo "$BASENAME" >&6; }
4529 else
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4532 fi
4533 
4534 
4535   test -n "$BASENAME" && break
4536 done
4537 
4538     else
4539       # If it succeeded, then it was overridden by the user. We will use it
4540       # for the tool.
4541 
4542       # First remove it from the list of overridden variables, so we can test
4543       # for unknown variables in the end.
4544       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4545 
4546       # Check if the provided tool contains a complete path.
4547       tool_specified="$BASENAME"
4548       tool_basename="${tool_specified##*/}"
4549       if test "x$tool_basename" = "x$tool_specified"; then
4550         # A command without a complete path is provided, search $PATH.
4551         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4552 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4553         # Extract the first word of "$tool_basename", so it can be a program name with args.
4554 set dummy $tool_basename; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_path_BASENAME+:} false; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   case $BASENAME in
4561   [\\/]* | ?:[\\/]*)
4562   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4563   ;;
4564   *)
4565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4567 do
4568   IFS=$as_save_IFS
4569   test -z "$as_dir" && as_dir=.
4570     for ac_exec_ext in '' $ac_executable_extensions; do
4571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574     break 2
4575   fi
4576 done
4577   done
4578 IFS=$as_save_IFS
4579 
4580   ;;
4581 esac
4582 fi
4583 BASENAME=$ac_cv_path_BASENAME
4584 if test -n "$BASENAME"; then
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4586 $as_echo "$BASENAME" >&6; }
4587 else
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4590 fi
4591 
4592 
4593         if test "x$BASENAME" = x; then
4594           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4595         fi
4596       else
4597         # Otherwise we believe it is a complete path. Use it as it is.
4598         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4599 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4600         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4601 $as_echo_n "checking for BASENAME... " >&6; }
4602         if test ! -x "$tool_specified"; then
4603           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4604 $as_echo "not found" >&6; }
4605           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4606         fi
4607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4608 $as_echo "$tool_specified" >&6; }
4609       fi
4610     fi
4611   fi
4612 
4613 
4614 
4615   if test "x$BASENAME" = x; then
4616     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4617   fi
4618 
4619 
4620 
4621 
4622 
4623   # Publish this variable in the help.
4624 
4625 
4626   if test "x$BASH" = x; then
4627     # The variable is not set by user, try to locate tool using the code snippet
4628     for ac_prog in bash
4629 do
4630   # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy $ac_prog; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if ${ac_cv_path_BASH+:} false; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   case $BASH in
4638   [\\/]* | ?:[\\/]*)
4639   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4640   ;;
4641   *)
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654   done
4655 IFS=$as_save_IFS
4656 
4657   ;;
4658 esac
4659 fi
4660 BASH=$ac_cv_path_BASH
4661 if test -n "$BASH"; then
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4663 $as_echo "$BASH" >&6; }
4664 else
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668 
4669 
4670   test -n "$BASH" && break
4671 done
4672 
4673   else
4674     # The variable is set, but is it from the command line or the environment?
4675 
4676     # Try to remove the string !BASH! from our list.
4677     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4678     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4679       # If it failed, the variable was not from the command line. Ignore it,
4680       # but warn the user (except for BASH, which is always set by the calling BASH).
4681       if test "xBASH" != xBASH; then
4682         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4683 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4684       fi
4685       # Try to locate tool using the code snippet
4686       for ac_prog in bash
4687 do
4688   # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy $ac_prog; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if ${ac_cv_path_BASH+:} false; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695   case $BASH in
4696   [\\/]* | ?:[\\/]*)
4697   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4698   ;;
4699   *)
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_exec_ext in '' $ac_executable_extensions; do
4706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712   done
4713 IFS=$as_save_IFS
4714 
4715   ;;
4716 esac
4717 fi
4718 BASH=$ac_cv_path_BASH
4719 if test -n "$BASH"; then
4720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4721 $as_echo "$BASH" >&6; }
4722 else
4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726 
4727 
4728   test -n "$BASH" && break
4729 done
4730 
4731     else
4732       # If it succeeded, then it was overridden by the user. We will use it
4733       # for the tool.
4734 
4735       # First remove it from the list of overridden variables, so we can test
4736       # for unknown variables in the end.
4737       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4738 
4739       # Check if the provided tool contains a complete path.
4740       tool_specified="$BASH"
4741       tool_basename="${tool_specified##*/}"
4742       if test "x$tool_basename" = "x$tool_specified"; then
4743         # A command without a complete path is provided, search $PATH.
4744         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4745 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4746         # Extract the first word of "$tool_basename", so it can be a program name with args.
4747 set dummy $tool_basename; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_path_BASH+:} false; then :
4751   $as_echo_n "(cached) " >&6
4752 else
4753   case $BASH in
4754   [\\/]* | ?:[\\/]*)
4755   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4756   ;;
4757   *)
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763     for ac_exec_ext in '' $ac_executable_extensions; do
4764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770   done
4771 IFS=$as_save_IFS
4772 
4773   ;;
4774 esac
4775 fi
4776 BASH=$ac_cv_path_BASH
4777 if test -n "$BASH"; then
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4779 $as_echo "$BASH" >&6; }
4780 else
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784 
4785 
4786         if test "x$BASH" = x; then
4787           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4788         fi
4789       else
4790         # Otherwise we believe it is a complete path. Use it as it is.
4791         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4792 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4794 $as_echo_n "checking for BASH... " >&6; }
4795         if test ! -x "$tool_specified"; then
4796           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4797 $as_echo "not found" >&6; }
4798           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4799         fi
4800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4801 $as_echo "$tool_specified" >&6; }
4802       fi
4803     fi
4804   fi
4805 
4806 
4807 
4808   if test "x$BASH" = x; then
4809     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4810   fi
4811 
4812 
4813 
4814 
4815 
4816   # Publish this variable in the help.
4817 
4818 
4819   if test "x$CAT" = x; then
4820     # The variable is not set by user, try to locate tool using the code snippet
4821     for ac_prog in cat
4822 do
4823   # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_path_CAT+:} false; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   case $CAT in
4831   [\\/]* | ?:[\\/]*)
4832   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4833   ;;
4834   *)
4835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4837 do
4838   IFS=$as_save_IFS
4839   test -z "$as_dir" && as_dir=.
4840     for ac_exec_ext in '' $ac_executable_extensions; do
4841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844     break 2
4845   fi
4846 done
4847   done
4848 IFS=$as_save_IFS
4849 
4850   ;;
4851 esac
4852 fi
4853 CAT=$ac_cv_path_CAT
4854 if test -n "$CAT"; then
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4856 $as_echo "$CAT" >&6; }
4857 else
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861 
4862 
4863   test -n "$CAT" && break
4864 done
4865 
4866   else
4867     # The variable is set, but is it from the command line or the environment?
4868 
4869     # Try to remove the string !CAT! from our list.
4870     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4871     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4872       # If it failed, the variable was not from the command line. Ignore it,
4873       # but warn the user (except for BASH, which is always set by the calling BASH).
4874       if test "xCAT" != xBASH; then
4875         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4876 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4877       fi
4878       # Try to locate tool using the code snippet
4879       for ac_prog in cat
4880 do
4881   # Extract the first word of "$ac_prog", so it can be a program name with args.
4882 set dummy $ac_prog; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_path_CAT+:} false; then :
4886   $as_echo_n "(cached) " >&6
4887 else
4888   case $CAT in
4889   [\\/]* | ?:[\\/]*)
4890   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4891   ;;
4892   *)
4893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896   IFS=$as_save_IFS
4897   test -z "$as_dir" && as_dir=.
4898     for ac_exec_ext in '' $ac_executable_extensions; do
4899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903   fi
4904 done
4905   done
4906 IFS=$as_save_IFS
4907 
4908   ;;
4909 esac
4910 fi
4911 CAT=$ac_cv_path_CAT
4912 if test -n "$CAT"; then
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4914 $as_echo "$CAT" >&6; }
4915 else
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919 
4920 
4921   test -n "$CAT" && break
4922 done
4923 
4924     else
4925       # If it succeeded, then it was overridden by the user. We will use it
4926       # for the tool.
4927 
4928       # First remove it from the list of overridden variables, so we can test
4929       # for unknown variables in the end.
4930       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4931 
4932       # Check if the provided tool contains a complete path.
4933       tool_specified="$CAT"
4934       tool_basename="${tool_specified##*/}"
4935       if test "x$tool_basename" = "x$tool_specified"; then
4936         # A command without a complete path is provided, search $PATH.
4937         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4938 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4939         # Extract the first word of "$tool_basename", so it can be a program name with args.
4940 set dummy $tool_basename; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_path_CAT+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   case $CAT in
4947   [\\/]* | ?:[\\/]*)
4948   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4949   ;;
4950   *)
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965 
4966   ;;
4967 esac
4968 fi
4969 CAT=$ac_cv_path_CAT
4970 if test -n "$CAT"; then
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4972 $as_echo "$CAT" >&6; }
4973 else
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977 
4978 
4979         if test "x$CAT" = x; then
4980           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4981         fi
4982       else
4983         # Otherwise we believe it is a complete path. Use it as it is.
4984         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4985 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4987 $as_echo_n "checking for CAT... " >&6; }
4988         if test ! -x "$tool_specified"; then
4989           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4990 $as_echo "not found" >&6; }
4991           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4992         fi
4993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4994 $as_echo "$tool_specified" >&6; }
4995       fi
4996     fi
4997   fi
4998 
4999 
5000 
5001   if test "x$CAT" = x; then
5002     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5003   fi
5004 
5005 
5006 
5007 
5008 
5009   # Publish this variable in the help.
5010 
5011 
5012   if test "x$CHMOD" = x; then
5013     # The variable is not set by user, try to locate tool using the code snippet
5014     for ac_prog in chmod
5015 do
5016   # Extract the first word of "$ac_prog", so it can be a program name with args.
5017 set dummy $ac_prog; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_path_CHMOD+:} false; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   case $CHMOD in
5024   [\\/]* | ?:[\\/]*)
5025   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5026   ;;
5027   *)
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_exec_ext in '' $ac_executable_extensions; do
5034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040   done
5041 IFS=$as_save_IFS
5042 
5043   ;;
5044 esac
5045 fi
5046 CHMOD=$ac_cv_path_CHMOD
5047 if test -n "$CHMOD"; then
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5049 $as_echo "$CHMOD" >&6; }
5050 else
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054 
5055 
5056   test -n "$CHMOD" && break
5057 done
5058 
5059   else
5060     # The variable is set, but is it from the command line or the environment?
5061 
5062     # Try to remove the string !CHMOD! from our list.
5063     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5064     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5065       # If it failed, the variable was not from the command line. Ignore it,
5066       # but warn the user (except for BASH, which is always set by the calling BASH).
5067       if test "xCHMOD" != xBASH; then
5068         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5069 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5070       fi
5071       # Try to locate tool using the code snippet
5072       for ac_prog in chmod
5073 do
5074   # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_path_CHMOD+:} false; then :
5079   $as_echo_n "(cached) " >&6
5080 else
5081   case $CHMOD in
5082   [\\/]* | ?:[\\/]*)
5083   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5084   ;;
5085   *)
5086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091     for ac_exec_ext in '' $ac_executable_extensions; do
5092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095     break 2
5096   fi
5097 done
5098   done
5099 IFS=$as_save_IFS
5100 
5101   ;;
5102 esac
5103 fi
5104 CHMOD=$ac_cv_path_CHMOD
5105 if test -n "$CHMOD"; then
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5107 $as_echo "$CHMOD" >&6; }
5108 else
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112 
5113 
5114   test -n "$CHMOD" && break
5115 done
5116 
5117     else
5118       # If it succeeded, then it was overridden by the user. We will use it
5119       # for the tool.
5120 
5121       # First remove it from the list of overridden variables, so we can test
5122       # for unknown variables in the end.
5123       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5124 
5125       # Check if the provided tool contains a complete path.
5126       tool_specified="$CHMOD"
5127       tool_basename="${tool_specified##*/}"
5128       if test "x$tool_basename" = "x$tool_specified"; then
5129         # A command without a complete path is provided, search $PATH.
5130         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5131 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5132         # Extract the first word of "$tool_basename", so it can be a program name with args.
5133 set dummy $tool_basename; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_path_CHMOD+:} false; then :
5137   $as_echo_n "(cached) " >&6
5138 else
5139   case $CHMOD in
5140   [\\/]* | ?:[\\/]*)
5141   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5142   ;;
5143   *)
5144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147   IFS=$as_save_IFS
5148   test -z "$as_dir" && as_dir=.
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153     break 2
5154   fi
5155 done
5156   done
5157 IFS=$as_save_IFS
5158 
5159   ;;
5160 esac
5161 fi
5162 CHMOD=$ac_cv_path_CHMOD
5163 if test -n "$CHMOD"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5165 $as_echo "$CHMOD" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170 
5171 
5172         if test "x$CHMOD" = x; then
5173           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5174         fi
5175       else
5176         # Otherwise we believe it is a complete path. Use it as it is.
5177         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5178 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5180 $as_echo_n "checking for CHMOD... " >&6; }
5181         if test ! -x "$tool_specified"; then
5182           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5183 $as_echo "not found" >&6; }
5184           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5185         fi
5186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5187 $as_echo "$tool_specified" >&6; }
5188       fi
5189     fi
5190   fi
5191 
5192 
5193 
5194   if test "x$CHMOD" = x; then
5195     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5196   fi
5197 
5198 
5199 
5200 
5201 
5202   # Publish this variable in the help.
5203 
5204 
5205   if test "x$CMP" = x; then
5206     # The variable is not set by user, try to locate tool using the code snippet
5207     for ac_prog in cmp
5208 do
5209   # Extract the first word of "$ac_prog", so it can be a program name with args.
5210 set dummy $ac_prog; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_path_CMP+:} false; then :
5214   $as_echo_n "(cached) " >&6
5215 else
5216   case $CMP in
5217   [\\/]* | ?:[\\/]*)
5218   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5219   ;;
5220   *)
5221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226     for ac_exec_ext in '' $ac_executable_extensions; do
5227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233   done
5234 IFS=$as_save_IFS
5235 
5236   ;;
5237 esac
5238 fi
5239 CMP=$ac_cv_path_CMP
5240 if test -n "$CMP"; then
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5242 $as_echo "$CMP" >&6; }
5243 else
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246 fi
5247 
5248 
5249   test -n "$CMP" && break
5250 done
5251 
5252   else
5253     # The variable is set, but is it from the command line or the environment?
5254 
5255     # Try to remove the string !CMP! from our list.
5256     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5257     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5258       # If it failed, the variable was not from the command line. Ignore it,
5259       # but warn the user (except for BASH, which is always set by the calling BASH).
5260       if test "xCMP" != xBASH; then
5261         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5262 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5263       fi
5264       # Try to locate tool using the code snippet
5265       for ac_prog in cmp
5266 do
5267   # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_path_CMP+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   case $CMP in
5275   [\\/]* | ?:[\\/]*)
5276   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5277   ;;
5278   *)
5279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282   IFS=$as_save_IFS
5283   test -z "$as_dir" && as_dir=.
5284     for ac_exec_ext in '' $ac_executable_extensions; do
5285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288     break 2
5289   fi
5290 done
5291   done
5292 IFS=$as_save_IFS
5293 
5294   ;;
5295 esac
5296 fi
5297 CMP=$ac_cv_path_CMP
5298 if test -n "$CMP"; then
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5300 $as_echo "$CMP" >&6; }
5301 else
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305 
5306 
5307   test -n "$CMP" && break
5308 done
5309 
5310     else
5311       # If it succeeded, then it was overridden by the user. We will use it
5312       # for the tool.
5313 
5314       # First remove it from the list of overridden variables, so we can test
5315       # for unknown variables in the end.
5316       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5317 
5318       # Check if the provided tool contains a complete path.
5319       tool_specified="$CMP"
5320       tool_basename="${tool_specified##*/}"
5321       if test "x$tool_basename" = "x$tool_specified"; then
5322         # A command without a complete path is provided, search $PATH.
5323         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5324 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5325         # Extract the first word of "$tool_basename", so it can be a program name with args.
5326 set dummy $tool_basename; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_path_CMP+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   case $CMP in
5333   [\\/]* | ?:[\\/]*)
5334   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5335   ;;
5336   *)
5337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340   IFS=$as_save_IFS
5341   test -z "$as_dir" && as_dir=.
5342     for ac_exec_ext in '' $ac_executable_extensions; do
5343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346     break 2
5347   fi
5348 done
5349   done
5350 IFS=$as_save_IFS
5351 
5352   ;;
5353 esac
5354 fi
5355 CMP=$ac_cv_path_CMP
5356 if test -n "$CMP"; then
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5358 $as_echo "$CMP" >&6; }
5359 else
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5362 fi
5363 
5364 
5365         if test "x$CMP" = x; then
5366           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5367         fi
5368       else
5369         # Otherwise we believe it is a complete path. Use it as it is.
5370         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5371 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5373 $as_echo_n "checking for CMP... " >&6; }
5374         if test ! -x "$tool_specified"; then
5375           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5376 $as_echo "not found" >&6; }
5377           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5378         fi
5379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5380 $as_echo "$tool_specified" >&6; }
5381       fi
5382     fi
5383   fi
5384 
5385 
5386 
5387   if test "x$CMP" = x; then
5388     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5389   fi
5390 
5391 
5392 
5393 
5394 
5395   # Publish this variable in the help.
5396 
5397 
5398   if test "x$COMM" = x; then
5399     # The variable is not set by user, try to locate tool using the code snippet
5400     for ac_prog in comm
5401 do
5402   # Extract the first word of "$ac_prog", so it can be a program name with args.
5403 set dummy $ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_path_COMM+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   case $COMM in
5410   [\\/]* | ?:[\\/]*)
5411   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5412   ;;
5413   *)
5414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417   IFS=$as_save_IFS
5418   test -z "$as_dir" && as_dir=.
5419     for ac_exec_ext in '' $ac_executable_extensions; do
5420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423     break 2
5424   fi
5425 done
5426   done
5427 IFS=$as_save_IFS
5428 
5429   ;;
5430 esac
5431 fi
5432 COMM=$ac_cv_path_COMM
5433 if test -n "$COMM"; then
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5435 $as_echo "$COMM" >&6; }
5436 else
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5439 fi
5440 
5441 
5442   test -n "$COMM" && break
5443 done
5444 
5445   else
5446     # The variable is set, but is it from the command line or the environment?
5447 
5448     # Try to remove the string !COMM! from our list.
5449     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5450     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5451       # If it failed, the variable was not from the command line. Ignore it,
5452       # but warn the user (except for BASH, which is always set by the calling BASH).
5453       if test "xCOMM" != xBASH; then
5454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5455 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5456       fi
5457       # Try to locate tool using the code snippet
5458       for ac_prog in comm
5459 do
5460   # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_path_COMM+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   case $COMM in
5468   [\\/]* | ?:[\\/]*)
5469   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5470   ;;
5471   *)
5472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477     for ac_exec_ext in '' $ac_executable_extensions; do
5478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484   done
5485 IFS=$as_save_IFS
5486 
5487   ;;
5488 esac
5489 fi
5490 COMM=$ac_cv_path_COMM
5491 if test -n "$COMM"; then
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5493 $as_echo "$COMM" >&6; }
5494 else
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5497 fi
5498 
5499 
5500   test -n "$COMM" && break
5501 done
5502 
5503     else
5504       # If it succeeded, then it was overridden by the user. We will use it
5505       # for the tool.
5506 
5507       # First remove it from the list of overridden variables, so we can test
5508       # for unknown variables in the end.
5509       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5510 
5511       # Check if the provided tool contains a complete path.
5512       tool_specified="$COMM"
5513       tool_basename="${tool_specified##*/}"
5514       if test "x$tool_basename" = "x$tool_specified"; then
5515         # A command without a complete path is provided, search $PATH.
5516         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5517 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5518         # Extract the first word of "$tool_basename", so it can be a program name with args.
5519 set dummy $tool_basename; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_path_COMM+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   case $COMM in
5526   [\\/]* | ?:[\\/]*)
5527   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5528   ;;
5529   *)
5530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533   IFS=$as_save_IFS
5534   test -z "$as_dir" && as_dir=.
5535     for ac_exec_ext in '' $ac_executable_extensions; do
5536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539     break 2
5540   fi
5541 done
5542   done
5543 IFS=$as_save_IFS
5544 
5545   ;;
5546 esac
5547 fi
5548 COMM=$ac_cv_path_COMM
5549 if test -n "$COMM"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5551 $as_echo "$COMM" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556 
5557 
5558         if test "x$COMM" = x; then
5559           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5560         fi
5561       else
5562         # Otherwise we believe it is a complete path. Use it as it is.
5563         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5564 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5566 $as_echo_n "checking for COMM... " >&6; }
5567         if test ! -x "$tool_specified"; then
5568           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5569 $as_echo "not found" >&6; }
5570           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5571         fi
5572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5573 $as_echo "$tool_specified" >&6; }
5574       fi
5575     fi
5576   fi
5577 
5578 
5579 
5580   if test "x$COMM" = x; then
5581     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5582   fi
5583 
5584 
5585 
5586 
5587 
5588   # Publish this variable in the help.
5589 
5590 
5591   if test "x$CP" = x; then
5592     # The variable is not set by user, try to locate tool using the code snippet
5593     for ac_prog in cp
5594 do
5595   # Extract the first word of "$ac_prog", so it can be a program name with args.
5596 set dummy $ac_prog; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_path_CP+:} false; then :
5600   $as_echo_n "(cached) " >&6
5601 else
5602   case $CP in
5603   [\\/]* | ?:[\\/]*)
5604   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5605   ;;
5606   *)
5607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610   IFS=$as_save_IFS
5611   test -z "$as_dir" && as_dir=.
5612     for ac_exec_ext in '' $ac_executable_extensions; do
5613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616     break 2
5617   fi
5618 done
5619   done
5620 IFS=$as_save_IFS
5621 
5622   ;;
5623 esac
5624 fi
5625 CP=$ac_cv_path_CP
5626 if test -n "$CP"; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5628 $as_echo "$CP" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633 
5634 
5635   test -n "$CP" && break
5636 done
5637 
5638   else
5639     # The variable is set, but is it from the command line or the environment?
5640 
5641     # Try to remove the string !CP! from our list.
5642     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5643     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5644       # If it failed, the variable was not from the command line. Ignore it,
5645       # but warn the user (except for BASH, which is always set by the calling BASH).
5646       if test "xCP" != xBASH; then
5647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5648 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5649       fi
5650       # Try to locate tool using the code snippet
5651       for ac_prog in cp
5652 do
5653   # Extract the first word of "$ac_prog", so it can be a program name with args.
5654 set dummy $ac_prog; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_path_CP+:} false; then :
5658   $as_echo_n "(cached) " >&6
5659 else
5660   case $CP in
5661   [\\/]* | ?:[\\/]*)
5662   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5663   ;;
5664   *)
5665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5667 do
5668   IFS=$as_save_IFS
5669   test -z "$as_dir" && as_dir=.
5670     for ac_exec_ext in '' $ac_executable_extensions; do
5671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5672     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5674     break 2
5675   fi
5676 done
5677   done
5678 IFS=$as_save_IFS
5679 
5680   ;;
5681 esac
5682 fi
5683 CP=$ac_cv_path_CP
5684 if test -n "$CP"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5686 $as_echo "$CP" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 fi
5691 
5692 
5693   test -n "$CP" && break
5694 done
5695 
5696     else
5697       # If it succeeded, then it was overridden by the user. We will use it
5698       # for the tool.
5699 
5700       # First remove it from the list of overridden variables, so we can test
5701       # for unknown variables in the end.
5702       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5703 
5704       # Check if the provided tool contains a complete path.
5705       tool_specified="$CP"
5706       tool_basename="${tool_specified##*/}"
5707       if test "x$tool_basename" = "x$tool_specified"; then
5708         # A command without a complete path is provided, search $PATH.
5709         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5710 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5711         # Extract the first word of "$tool_basename", so it can be a program name with args.
5712 set dummy $tool_basename; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_path_CP+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   case $CP in
5719   [\\/]* | ?:[\\/]*)
5720   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5721   ;;
5722   *)
5723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728     for ac_exec_ext in '' $ac_executable_extensions; do
5729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735   done
5736 IFS=$as_save_IFS
5737 
5738   ;;
5739 esac
5740 fi
5741 CP=$ac_cv_path_CP
5742 if test -n "$CP"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5744 $as_echo "$CP" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749 
5750 
5751         if test "x$CP" = x; then
5752           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5753         fi
5754       else
5755         # Otherwise we believe it is a complete path. Use it as it is.
5756         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5757 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5759 $as_echo_n "checking for CP... " >&6; }
5760         if test ! -x "$tool_specified"; then
5761           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5762 $as_echo "not found" >&6; }
5763           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5764         fi
5765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5766 $as_echo "$tool_specified" >&6; }
5767       fi
5768     fi
5769   fi
5770 
5771 
5772 
5773   if test "x$CP" = x; then
5774     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5775   fi
5776 
5777 
5778 
5779 
5780 
5781   # Publish this variable in the help.
5782 
5783 
5784   if test "x$CUT" = x; then
5785     # The variable is not set by user, try to locate tool using the code snippet
5786     for ac_prog in cut
5787 do
5788   # Extract the first word of "$ac_prog", so it can be a program name with args.
5789 set dummy $ac_prog; ac_word=$2
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 $as_echo_n "checking for $ac_word... " >&6; }
5792 if ${ac_cv_path_CUT+:} false; then :
5793   $as_echo_n "(cached) " >&6
5794 else
5795   case $CUT in
5796   [\\/]* | ?:[\\/]*)
5797   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5798   ;;
5799   *)
5800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805     for ac_exec_ext in '' $ac_executable_extensions; do
5806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812   done
5813 IFS=$as_save_IFS
5814 
5815   ;;
5816 esac
5817 fi
5818 CUT=$ac_cv_path_CUT
5819 if test -n "$CUT"; then
5820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5821 $as_echo "$CUT" >&6; }
5822 else
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5825 fi
5826 
5827 
5828   test -n "$CUT" && break
5829 done
5830 
5831   else
5832     # The variable is set, but is it from the command line or the environment?
5833 
5834     # Try to remove the string !CUT! from our list.
5835     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5836     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5837       # If it failed, the variable was not from the command line. Ignore it,
5838       # but warn the user (except for BASH, which is always set by the calling BASH).
5839       if test "xCUT" != xBASH; then
5840         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5841 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5842       fi
5843       # Try to locate tool using the code snippet
5844       for ac_prog in cut
5845 do
5846   # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy $ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_path_CUT+:} false; then :
5851   $as_echo_n "(cached) " >&6
5852 else
5853   case $CUT in
5854   [\\/]* | ?:[\\/]*)
5855   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5856   ;;
5857   *)
5858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863     for ac_exec_ext in '' $ac_executable_extensions; do
5864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870   done
5871 IFS=$as_save_IFS
5872 
5873   ;;
5874 esac
5875 fi
5876 CUT=$ac_cv_path_CUT
5877 if test -n "$CUT"; then
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5879 $as_echo "$CUT" >&6; }
5880 else
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884 
5885 
5886   test -n "$CUT" && break
5887 done
5888 
5889     else
5890       # If it succeeded, then it was overridden by the user. We will use it
5891       # for the tool.
5892 
5893       # First remove it from the list of overridden variables, so we can test
5894       # for unknown variables in the end.
5895       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5896 
5897       # Check if the provided tool contains a complete path.
5898       tool_specified="$CUT"
5899       tool_basename="${tool_specified##*/}"
5900       if test "x$tool_basename" = "x$tool_specified"; then
5901         # A command without a complete path is provided, search $PATH.
5902         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5903 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5904         # Extract the first word of "$tool_basename", so it can be a program name with args.
5905 set dummy $tool_basename; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_path_CUT+:} false; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911   case $CUT in
5912   [\\/]* | ?:[\\/]*)
5913   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5914   ;;
5915   *)
5916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921     for ac_exec_ext in '' $ac_executable_extensions; do
5922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928   done
5929 IFS=$as_save_IFS
5930 
5931   ;;
5932 esac
5933 fi
5934 CUT=$ac_cv_path_CUT
5935 if test -n "$CUT"; then
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5937 $as_echo "$CUT" >&6; }
5938 else
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942 
5943 
5944         if test "x$CUT" = x; then
5945           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5946         fi
5947       else
5948         # Otherwise we believe it is a complete path. Use it as it is.
5949         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5950 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5952 $as_echo_n "checking for CUT... " >&6; }
5953         if test ! -x "$tool_specified"; then
5954           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5955 $as_echo "not found" >&6; }
5956           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5957         fi
5958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5959 $as_echo "$tool_specified" >&6; }
5960       fi
5961     fi
5962   fi
5963 
5964 
5965 
5966   if test "x$CUT" = x; then
5967     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5968   fi
5969 
5970 
5971 
5972 
5973 
5974   # Publish this variable in the help.
5975 
5976 
5977   if test "x$DATE" = x; then
5978     # The variable is not set by user, try to locate tool using the code snippet
5979     for ac_prog in date
5980 do
5981   # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_path_DATE+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   case $DATE in
5989   [\\/]* | ?:[\\/]*)
5990   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5991   ;;
5992   *)
5993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998     for ac_exec_ext in '' $ac_executable_extensions; do
5999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005   done
6006 IFS=$as_save_IFS
6007 
6008   ;;
6009 esac
6010 fi
6011 DATE=$ac_cv_path_DATE
6012 if test -n "$DATE"; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6014 $as_echo "$DATE" >&6; }
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019 
6020 
6021   test -n "$DATE" && break
6022 done
6023 
6024   else
6025     # The variable is set, but is it from the command line or the environment?
6026 
6027     # Try to remove the string !DATE! from our list.
6028     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6029     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6030       # If it failed, the variable was not from the command line. Ignore it,
6031       # but warn the user (except for BASH, which is always set by the calling BASH).
6032       if test "xDATE" != xBASH; then
6033         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6034 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6035       fi
6036       # Try to locate tool using the code snippet
6037       for ac_prog in date
6038 do
6039   # Extract the first word of "$ac_prog", so it can be a program name with args.
6040 set dummy $ac_prog; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if ${ac_cv_path_DATE+:} false; then :
6044   $as_echo_n "(cached) " >&6
6045 else
6046   case $DATE in
6047   [\\/]* | ?:[\\/]*)
6048   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6049   ;;
6050   *)
6051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063   done
6064 IFS=$as_save_IFS
6065 
6066   ;;
6067 esac
6068 fi
6069 DATE=$ac_cv_path_DATE
6070 if test -n "$DATE"; then
6071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6072 $as_echo "$DATE" >&6; }
6073 else
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077 
6078 
6079   test -n "$DATE" && break
6080 done
6081 
6082     else
6083       # If it succeeded, then it was overridden by the user. We will use it
6084       # for the tool.
6085 
6086       # First remove it from the list of overridden variables, so we can test
6087       # for unknown variables in the end.
6088       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6089 
6090       # Check if the provided tool contains a complete path.
6091       tool_specified="$DATE"
6092       tool_basename="${tool_specified##*/}"
6093       if test "x$tool_basename" = "x$tool_specified"; then
6094         # A command without a complete path is provided, search $PATH.
6095         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6096 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6097         # Extract the first word of "$tool_basename", so it can be a program name with args.
6098 set dummy $tool_basename; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_path_DATE+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   case $DATE in
6105   [\\/]* | ?:[\\/]*)
6106   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6107   ;;
6108   *)
6109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114     for ac_exec_ext in '' $ac_executable_extensions; do
6115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121   done
6122 IFS=$as_save_IFS
6123 
6124   ;;
6125 esac
6126 fi
6127 DATE=$ac_cv_path_DATE
6128 if test -n "$DATE"; then
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6130 $as_echo "$DATE" >&6; }
6131 else
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135 
6136 
6137         if test "x$DATE" = x; then
6138           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6139         fi
6140       else
6141         # Otherwise we believe it is a complete path. Use it as it is.
6142         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6143 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6145 $as_echo_n "checking for DATE... " >&6; }
6146         if test ! -x "$tool_specified"; then
6147           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6148 $as_echo "not found" >&6; }
6149           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6150         fi
6151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6152 $as_echo "$tool_specified" >&6; }
6153       fi
6154     fi
6155   fi
6156 
6157 
6158 
6159   if test "x$DATE" = x; then
6160     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6161   fi
6162 
6163 
6164 
6165 
6166 
6167   # Publish this variable in the help.
6168 
6169 
6170   if test "x$DIFF" = x; then
6171     # The variable is not set by user, try to locate tool using the code snippet
6172     for ac_prog in gdiff diff
6173 do
6174   # Extract the first word of "$ac_prog", so it can be a program name with args.
6175 set dummy $ac_prog; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_path_DIFF+:} false; then :
6179   $as_echo_n "(cached) " >&6
6180 else
6181   case $DIFF in
6182   [\\/]* | ?:[\\/]*)
6183   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6184   ;;
6185   *)
6186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191     for ac_exec_ext in '' $ac_executable_extensions; do
6192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6193     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198   done
6199 IFS=$as_save_IFS
6200 
6201   ;;
6202 esac
6203 fi
6204 DIFF=$ac_cv_path_DIFF
6205 if test -n "$DIFF"; then
6206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6207 $as_echo "$DIFF" >&6; }
6208 else
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 $as_echo "no" >&6; }
6211 fi
6212 
6213 
6214   test -n "$DIFF" && break
6215 done
6216 
6217   else
6218     # The variable is set, but is it from the command line or the environment?
6219 
6220     # Try to remove the string !DIFF! from our list.
6221     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6222     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6223       # If it failed, the variable was not from the command line. Ignore it,
6224       # but warn the user (except for BASH, which is always set by the calling BASH).
6225       if test "xDIFF" != xBASH; then
6226         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6227 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6228       fi
6229       # Try to locate tool using the code snippet
6230       for ac_prog in gdiff diff
6231 do
6232   # Extract the first word of "$ac_prog", so it can be a program name with args.
6233 set dummy $ac_prog; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if ${ac_cv_path_DIFF+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   case $DIFF in
6240   [\\/]* | ?:[\\/]*)
6241   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6242   ;;
6243   *)
6244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249     for ac_exec_ext in '' $ac_executable_extensions; do
6250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256   done
6257 IFS=$as_save_IFS
6258 
6259   ;;
6260 esac
6261 fi
6262 DIFF=$ac_cv_path_DIFF
6263 if test -n "$DIFF"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6265 $as_echo "$DIFF" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270 
6271 
6272   test -n "$DIFF" && break
6273 done
6274 
6275     else
6276       # If it succeeded, then it was overridden by the user. We will use it
6277       # for the tool.
6278 
6279       # First remove it from the list of overridden variables, so we can test
6280       # for unknown variables in the end.
6281       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6282 
6283       # Check if the provided tool contains a complete path.
6284       tool_specified="$DIFF"
6285       tool_basename="${tool_specified##*/}"
6286       if test "x$tool_basename" = "x$tool_specified"; then
6287         # A command without a complete path is provided, search $PATH.
6288         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6289 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6290         # Extract the first word of "$tool_basename", so it can be a program name with args.
6291 set dummy $tool_basename; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_path_DIFF+:} false; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   case $DIFF in
6298   [\\/]* | ?:[\\/]*)
6299   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6300   ;;
6301   *)
6302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307     for ac_exec_ext in '' $ac_executable_extensions; do
6308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314   done
6315 IFS=$as_save_IFS
6316 
6317   ;;
6318 esac
6319 fi
6320 DIFF=$ac_cv_path_DIFF
6321 if test -n "$DIFF"; then
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6323 $as_echo "$DIFF" >&6; }
6324 else
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328 
6329 
6330         if test "x$DIFF" = x; then
6331           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6332         fi
6333       else
6334         # Otherwise we believe it is a complete path. Use it as it is.
6335         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6336 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6338 $as_echo_n "checking for DIFF... " >&6; }
6339         if test ! -x "$tool_specified"; then
6340           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6341 $as_echo "not found" >&6; }
6342           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6343         fi
6344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6345 $as_echo "$tool_specified" >&6; }
6346       fi
6347     fi
6348   fi
6349 
6350 
6351 
6352   if test "x$DIFF" = x; then
6353     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6354   fi
6355 
6356 
6357 
6358 
6359 
6360   # Publish this variable in the help.
6361 
6362 
6363   if test "x$DIRNAME" = x; then
6364     # The variable is not set by user, try to locate tool using the code snippet
6365     for ac_prog in dirname
6366 do
6367   # Extract the first word of "$ac_prog", so it can be a program name with args.
6368 set dummy $ac_prog; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_path_DIRNAME+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   case $DIRNAME in
6375   [\\/]* | ?:[\\/]*)
6376   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6377   ;;
6378   *)
6379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384     for ac_exec_ext in '' $ac_executable_extensions; do
6385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391   done
6392 IFS=$as_save_IFS
6393 
6394   ;;
6395 esac
6396 fi
6397 DIRNAME=$ac_cv_path_DIRNAME
6398 if test -n "$DIRNAME"; then
6399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6400 $as_echo "$DIRNAME" >&6; }
6401 else
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405 
6406 
6407   test -n "$DIRNAME" && break
6408 done
6409 
6410   else
6411     # The variable is set, but is it from the command line or the environment?
6412 
6413     # Try to remove the string !DIRNAME! from our list.
6414     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6415     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6416       # If it failed, the variable was not from the command line. Ignore it,
6417       # but warn the user (except for BASH, which is always set by the calling BASH).
6418       if test "xDIRNAME" != xBASH; then
6419         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6420 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6421       fi
6422       # Try to locate tool using the code snippet
6423       for ac_prog in dirname
6424 do
6425   # Extract the first word of "$ac_prog", so it can be a program name with args.
6426 set dummy $ac_prog; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_path_DIRNAME+:} false; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   case $DIRNAME in
6433   [\\/]* | ?:[\\/]*)
6434   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6435   ;;
6436   *)
6437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442     for ac_exec_ext in '' $ac_executable_extensions; do
6443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449   done
6450 IFS=$as_save_IFS
6451 
6452   ;;
6453 esac
6454 fi
6455 DIRNAME=$ac_cv_path_DIRNAME
6456 if test -n "$DIRNAME"; then
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6458 $as_echo "$DIRNAME" >&6; }
6459 else
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463 
6464 
6465   test -n "$DIRNAME" && break
6466 done
6467 
6468     else
6469       # If it succeeded, then it was overridden by the user. We will use it
6470       # for the tool.
6471 
6472       # First remove it from the list of overridden variables, so we can test
6473       # for unknown variables in the end.
6474       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6475 
6476       # Check if the provided tool contains a complete path.
6477       tool_specified="$DIRNAME"
6478       tool_basename="${tool_specified##*/}"
6479       if test "x$tool_basename" = "x$tool_specified"; then
6480         # A command without a complete path is provided, search $PATH.
6481         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6482 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6483         # Extract the first word of "$tool_basename", so it can be a program name with args.
6484 set dummy $tool_basename; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_path_DIRNAME+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   case $DIRNAME in
6491   [\\/]* | ?:[\\/]*)
6492   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6493   ;;
6494   *)
6495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_exec_ext in '' $ac_executable_extensions; do
6501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507   done
6508 IFS=$as_save_IFS
6509 
6510   ;;
6511 esac
6512 fi
6513 DIRNAME=$ac_cv_path_DIRNAME
6514 if test -n "$DIRNAME"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6516 $as_echo "$DIRNAME" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521 
6522 
6523         if test "x$DIRNAME" = x; then
6524           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6525         fi
6526       else
6527         # Otherwise we believe it is a complete path. Use it as it is.
6528         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6529 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6530         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6531 $as_echo_n "checking for DIRNAME... " >&6; }
6532         if test ! -x "$tool_specified"; then
6533           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6534 $as_echo "not found" >&6; }
6535           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6536         fi
6537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6538 $as_echo "$tool_specified" >&6; }
6539       fi
6540     fi
6541   fi
6542 
6543 
6544 
6545   if test "x$DIRNAME" = x; then
6546     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6547   fi
6548 
6549 
6550 
6551 
6552 
6553   # Publish this variable in the help.
6554 
6555 
6556   if test "x$ECHO" = x; then
6557     # The variable is not set by user, try to locate tool using the code snippet
6558     for ac_prog in echo
6559 do
6560   # Extract the first word of "$ac_prog", so it can be a program name with args.
6561 set dummy $ac_prog; ac_word=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_path_ECHO+:} false; then :
6565   $as_echo_n "(cached) " >&6
6566 else
6567   case $ECHO in
6568   [\\/]* | ?:[\\/]*)
6569   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6570   ;;
6571   *)
6572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577     for ac_exec_ext in '' $ac_executable_extensions; do
6578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584   done
6585 IFS=$as_save_IFS
6586 
6587   ;;
6588 esac
6589 fi
6590 ECHO=$ac_cv_path_ECHO
6591 if test -n "$ECHO"; then
6592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6593 $as_echo "$ECHO" >&6; }
6594 else
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598 
6599 
6600   test -n "$ECHO" && break
6601 done
6602 
6603   else
6604     # The variable is set, but is it from the command line or the environment?
6605 
6606     # Try to remove the string !ECHO! from our list.
6607     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6608     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6609       # If it failed, the variable was not from the command line. Ignore it,
6610       # but warn the user (except for BASH, which is always set by the calling BASH).
6611       if test "xECHO" != xBASH; then
6612         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6613 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6614       fi
6615       # Try to locate tool using the code snippet
6616       for ac_prog in echo
6617 do
6618   # Extract the first word of "$ac_prog", so it can be a program name with args.
6619 set dummy $ac_prog; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_path_ECHO+:} false; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   case $ECHO in
6626   [\\/]* | ?:[\\/]*)
6627   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6628   ;;
6629   *)
6630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635     for ac_exec_ext in '' $ac_executable_extensions; do
6636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642   done
6643 IFS=$as_save_IFS
6644 
6645   ;;
6646 esac
6647 fi
6648 ECHO=$ac_cv_path_ECHO
6649 if test -n "$ECHO"; then
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6651 $as_echo "$ECHO" >&6; }
6652 else
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6655 fi
6656 
6657 
6658   test -n "$ECHO" && break
6659 done
6660 
6661     else
6662       # If it succeeded, then it was overridden by the user. We will use it
6663       # for the tool.
6664 
6665       # First remove it from the list of overridden variables, so we can test
6666       # for unknown variables in the end.
6667       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6668 
6669       # Check if the provided tool contains a complete path.
6670       tool_specified="$ECHO"
6671       tool_basename="${tool_specified##*/}"
6672       if test "x$tool_basename" = "x$tool_specified"; then
6673         # A command without a complete path is provided, search $PATH.
6674         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6675 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6676         # Extract the first word of "$tool_basename", so it can be a program name with args.
6677 set dummy $tool_basename; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_path_ECHO+:} false; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   case $ECHO in
6684   [\\/]* | ?:[\\/]*)
6685   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6686   ;;
6687   *)
6688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693     for ac_exec_ext in '' $ac_executable_extensions; do
6694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700   done
6701 IFS=$as_save_IFS
6702 
6703   ;;
6704 esac
6705 fi
6706 ECHO=$ac_cv_path_ECHO
6707 if test -n "$ECHO"; then
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6709 $as_echo "$ECHO" >&6; }
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714 
6715 
6716         if test "x$ECHO" = x; then
6717           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6718         fi
6719       else
6720         # Otherwise we believe it is a complete path. Use it as it is.
6721         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6722 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6723         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6724 $as_echo_n "checking for ECHO... " >&6; }
6725         if test ! -x "$tool_specified"; then
6726           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6727 $as_echo "not found" >&6; }
6728           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6729         fi
6730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6731 $as_echo "$tool_specified" >&6; }
6732       fi
6733     fi
6734   fi
6735 
6736 
6737 
6738   if test "x$ECHO" = x; then
6739     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6740   fi
6741 
6742 
6743 
6744 
6745 
6746   # Publish this variable in the help.
6747 
6748 
6749   if test "x$EXPR" = x; then
6750     # The variable is not set by user, try to locate tool using the code snippet
6751     for ac_prog in expr
6752 do
6753   # Extract the first word of "$ac_prog", so it can be a program name with args.
6754 set dummy $ac_prog; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_path_EXPR+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   case $EXPR in
6761   [\\/]* | ?:[\\/]*)
6762   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6763   ;;
6764   *)
6765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777   done
6778 IFS=$as_save_IFS
6779 
6780   ;;
6781 esac
6782 fi
6783 EXPR=$ac_cv_path_EXPR
6784 if test -n "$EXPR"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6786 $as_echo "$EXPR" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791 
6792 
6793   test -n "$EXPR" && break
6794 done
6795 
6796   else
6797     # The variable is set, but is it from the command line or the environment?
6798 
6799     # Try to remove the string !EXPR! from our list.
6800     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6801     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6802       # If it failed, the variable was not from the command line. Ignore it,
6803       # but warn the user (except for BASH, which is always set by the calling BASH).
6804       if test "xEXPR" != xBASH; then
6805         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6806 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6807       fi
6808       # Try to locate tool using the code snippet
6809       for ac_prog in expr
6810 do
6811   # Extract the first word of "$ac_prog", so it can be a program name with args.
6812 set dummy $ac_prog; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_path_EXPR+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   case $EXPR in
6819   [\\/]* | ?:[\\/]*)
6820   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6821   ;;
6822   *)
6823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828     for ac_exec_ext in '' $ac_executable_extensions; do
6829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835   done
6836 IFS=$as_save_IFS
6837 
6838   ;;
6839 esac
6840 fi
6841 EXPR=$ac_cv_path_EXPR
6842 if test -n "$EXPR"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6844 $as_echo "$EXPR" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849 
6850 
6851   test -n "$EXPR" && break
6852 done
6853 
6854     else
6855       # If it succeeded, then it was overridden by the user. We will use it
6856       # for the tool.
6857 
6858       # First remove it from the list of overridden variables, so we can test
6859       # for unknown variables in the end.
6860       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6861 
6862       # Check if the provided tool contains a complete path.
6863       tool_specified="$EXPR"
6864       tool_basename="${tool_specified##*/}"
6865       if test "x$tool_basename" = "x$tool_specified"; then
6866         # A command without a complete path is provided, search $PATH.
6867         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6868 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6869         # Extract the first word of "$tool_basename", so it can be a program name with args.
6870 set dummy $tool_basename; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_path_EXPR+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   case $EXPR in
6877   [\\/]* | ?:[\\/]*)
6878   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6879   ;;
6880   *)
6881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895 
6896   ;;
6897 esac
6898 fi
6899 EXPR=$ac_cv_path_EXPR
6900 if test -n "$EXPR"; then
6901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6902 $as_echo "$EXPR" >&6; }
6903 else
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6906 fi
6907 
6908 
6909         if test "x$EXPR" = x; then
6910           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6911         fi
6912       else
6913         # Otherwise we believe it is a complete path. Use it as it is.
6914         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6915 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6917 $as_echo_n "checking for EXPR... " >&6; }
6918         if test ! -x "$tool_specified"; then
6919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6920 $as_echo "not found" >&6; }
6921           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6922         fi
6923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6924 $as_echo "$tool_specified" >&6; }
6925       fi
6926     fi
6927   fi
6928 
6929 
6930 
6931   if test "x$EXPR" = x; then
6932     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6933   fi
6934 
6935 
6936 
6937 
6938 
6939   # Publish this variable in the help.
6940 
6941 
6942   if test "x$FILE" = x; then
6943     # The variable is not set by user, try to locate tool using the code snippet
6944     for ac_prog in file
6945 do
6946   # Extract the first word of "$ac_prog", so it can be a program name with args.
6947 set dummy $ac_prog; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_path_FILE+:} false; then :
6951   $as_echo_n "(cached) " >&6
6952 else
6953   case $FILE in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6956   ;;
6957   *)
6958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963     for ac_exec_ext in '' $ac_executable_extensions; do
6964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970   done
6971 IFS=$as_save_IFS
6972 
6973   ;;
6974 esac
6975 fi
6976 FILE=$ac_cv_path_FILE
6977 if test -n "$FILE"; then
6978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6979 $as_echo "$FILE" >&6; }
6980 else
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984 
6985 
6986   test -n "$FILE" && break
6987 done
6988 
6989   else
6990     # The variable is set, but is it from the command line or the environment?
6991 
6992     # Try to remove the string !FILE! from our list.
6993     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6994     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6995       # If it failed, the variable was not from the command line. Ignore it,
6996       # but warn the user (except for BASH, which is always set by the calling BASH).
6997       if test "xFILE" != xBASH; then
6998         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6999 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7000       fi
7001       # Try to locate tool using the code snippet
7002       for ac_prog in file
7003 do
7004   # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_path_FILE+:} false; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   case $FILE in
7012   [\\/]* | ?:[\\/]*)
7013   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7014   ;;
7015   *)
7016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021     for ac_exec_ext in '' $ac_executable_extensions; do
7022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025     break 2
7026   fi
7027 done
7028   done
7029 IFS=$as_save_IFS
7030 
7031   ;;
7032 esac
7033 fi
7034 FILE=$ac_cv_path_FILE
7035 if test -n "$FILE"; then
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7037 $as_echo "$FILE" >&6; }
7038 else
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042 
7043 
7044   test -n "$FILE" && break
7045 done
7046 
7047     else
7048       # If it succeeded, then it was overridden by the user. We will use it
7049       # for the tool.
7050 
7051       # First remove it from the list of overridden variables, so we can test
7052       # for unknown variables in the end.
7053       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7054 
7055       # Check if the provided tool contains a complete path.
7056       tool_specified="$FILE"
7057       tool_basename="${tool_specified##*/}"
7058       if test "x$tool_basename" = "x$tool_specified"; then
7059         # A command without a complete path is provided, search $PATH.
7060         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7061 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7062         # Extract the first word of "$tool_basename", so it can be a program name with args.
7063 set dummy $tool_basename; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_path_FILE+:} false; then :
7067   $as_echo_n "(cached) " >&6
7068 else
7069   case $FILE in
7070   [\\/]* | ?:[\\/]*)
7071   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7072   ;;
7073   *)
7074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079     for ac_exec_ext in '' $ac_executable_extensions; do
7080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086   done
7087 IFS=$as_save_IFS
7088 
7089   ;;
7090 esac
7091 fi
7092 FILE=$ac_cv_path_FILE
7093 if test -n "$FILE"; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7095 $as_echo "$FILE" >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100 
7101 
7102         if test "x$FILE" = x; then
7103           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7104         fi
7105       else
7106         # Otherwise we believe it is a complete path. Use it as it is.
7107         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7108 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7110 $as_echo_n "checking for FILE... " >&6; }
7111         if test ! -x "$tool_specified"; then
7112           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7113 $as_echo "not found" >&6; }
7114           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7115         fi
7116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7117 $as_echo "$tool_specified" >&6; }
7118       fi
7119     fi
7120   fi
7121 
7122 
7123 
7124   if test "x$FILE" = x; then
7125     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7126   fi
7127 
7128 
7129 
7130 
7131 
7132   # Publish this variable in the help.
7133 
7134 
7135   if test "x$FIND" = x; then
7136     # The variable is not set by user, try to locate tool using the code snippet
7137     for ac_prog in find
7138 do
7139   # Extract the first word of "$ac_prog", so it can be a program name with args.
7140 set dummy $ac_prog; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_path_FIND+:} false; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146   case $FIND in
7147   [\\/]* | ?:[\\/]*)
7148   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7149   ;;
7150   *)
7151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165 
7166   ;;
7167 esac
7168 fi
7169 FIND=$ac_cv_path_FIND
7170 if test -n "$FIND"; then
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7172 $as_echo "$FIND" >&6; }
7173 else
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7176 fi
7177 
7178 
7179   test -n "$FIND" && break
7180 done
7181 
7182   else
7183     # The variable is set, but is it from the command line or the environment?
7184 
7185     # Try to remove the string !FIND! from our list.
7186     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7187     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7188       # If it failed, the variable was not from the command line. Ignore it,
7189       # but warn the user (except for BASH, which is always set by the calling BASH).
7190       if test "xFIND" != xBASH; then
7191         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7192 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7193       fi
7194       # Try to locate tool using the code snippet
7195       for ac_prog in find
7196 do
7197   # Extract the first word of "$ac_prog", so it can be a program name with args.
7198 set dummy $ac_prog; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_path_FIND+:} false; then :
7202   $as_echo_n "(cached) " >&6
7203 else
7204   case $FIND in
7205   [\\/]* | ?:[\\/]*)
7206   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7207   ;;
7208   *)
7209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214     for ac_exec_ext in '' $ac_executable_extensions; do
7215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221   done
7222 IFS=$as_save_IFS
7223 
7224   ;;
7225 esac
7226 fi
7227 FIND=$ac_cv_path_FIND
7228 if test -n "$FIND"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7230 $as_echo "$FIND" >&6; }
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235 
7236 
7237   test -n "$FIND" && break
7238 done
7239 
7240     else
7241       # If it succeeded, then it was overridden by the user. We will use it
7242       # for the tool.
7243 
7244       # First remove it from the list of overridden variables, so we can test
7245       # for unknown variables in the end.
7246       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7247 
7248       # Check if the provided tool contains a complete path.
7249       tool_specified="$FIND"
7250       tool_basename="${tool_specified##*/}"
7251       if test "x$tool_basename" = "x$tool_specified"; then
7252         # A command without a complete path is provided, search $PATH.
7253         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7254 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7255         # Extract the first word of "$tool_basename", so it can be a program name with args.
7256 set dummy $tool_basename; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_path_FIND+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   case $FIND in
7263   [\\/]* | ?:[\\/]*)
7264   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7265   ;;
7266   *)
7267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281 
7282   ;;
7283 esac
7284 fi
7285 FIND=$ac_cv_path_FIND
7286 if test -n "$FIND"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7288 $as_echo "$FIND" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293 
7294 
7295         if test "x$FIND" = x; then
7296           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7297         fi
7298       else
7299         # Otherwise we believe it is a complete path. Use it as it is.
7300         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7301 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7303 $as_echo_n "checking for FIND... " >&6; }
7304         if test ! -x "$tool_specified"; then
7305           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7306 $as_echo "not found" >&6; }
7307           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7308         fi
7309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7310 $as_echo "$tool_specified" >&6; }
7311       fi
7312     fi
7313   fi
7314 
7315 
7316 
7317   if test "x$FIND" = x; then
7318     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7319   fi
7320 
7321 
7322 
7323 
7324 
7325   # Publish this variable in the help.
7326 
7327 
7328   if test "x$HEAD" = x; then
7329     # The variable is not set by user, try to locate tool using the code snippet
7330     for ac_prog in head
7331 do
7332   # Extract the first word of "$ac_prog", so it can be a program name with args.
7333 set dummy $ac_prog; ac_word=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if ${ac_cv_path_HEAD+:} false; then :
7337   $as_echo_n "(cached) " >&6
7338 else
7339   case $HEAD in
7340   [\\/]* | ?:[\\/]*)
7341   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7342   ;;
7343   *)
7344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358 
7359   ;;
7360 esac
7361 fi
7362 HEAD=$ac_cv_path_HEAD
7363 if test -n "$HEAD"; then
7364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7365 $as_echo "$HEAD" >&6; }
7366 else
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370 
7371 
7372   test -n "$HEAD" && break
7373 done
7374 
7375   else
7376     # The variable is set, but is it from the command line or the environment?
7377 
7378     # Try to remove the string !HEAD! from our list.
7379     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7380     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7381       # If it failed, the variable was not from the command line. Ignore it,
7382       # but warn the user (except for BASH, which is always set by the calling BASH).
7383       if test "xHEAD" != xBASH; then
7384         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7385 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7386       fi
7387       # Try to locate tool using the code snippet
7388       for ac_prog in head
7389 do
7390   # Extract the first word of "$ac_prog", so it can be a program name with args.
7391 set dummy $ac_prog; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_path_HEAD+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   case $HEAD in
7398   [\\/]* | ?:[\\/]*)
7399   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7400   ;;
7401   *)
7402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416 
7417   ;;
7418 esac
7419 fi
7420 HEAD=$ac_cv_path_HEAD
7421 if test -n "$HEAD"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7423 $as_echo "$HEAD" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428 
7429 
7430   test -n "$HEAD" && break
7431 done
7432 
7433     else
7434       # If it succeeded, then it was overridden by the user. We will use it
7435       # for the tool.
7436 
7437       # First remove it from the list of overridden variables, so we can test
7438       # for unknown variables in the end.
7439       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7440 
7441       # Check if the provided tool contains a complete path.
7442       tool_specified="$HEAD"
7443       tool_basename="${tool_specified##*/}"
7444       if test "x$tool_basename" = "x$tool_specified"; then
7445         # A command without a complete path is provided, search $PATH.
7446         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7447 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7448         # Extract the first word of "$tool_basename", so it can be a program name with args.
7449 set dummy $tool_basename; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_path_HEAD+:} false; then :
7453   $as_echo_n "(cached) " >&6
7454 else
7455   case $HEAD in
7456   [\\/]* | ?:[\\/]*)
7457   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7458   ;;
7459   *)
7460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465     for ac_exec_ext in '' $ac_executable_extensions; do
7466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472   done
7473 IFS=$as_save_IFS
7474 
7475   ;;
7476 esac
7477 fi
7478 HEAD=$ac_cv_path_HEAD
7479 if test -n "$HEAD"; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7481 $as_echo "$HEAD" >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486 
7487 
7488         if test "x$HEAD" = x; then
7489           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7490         fi
7491       else
7492         # Otherwise we believe it is a complete path. Use it as it is.
7493         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7494 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7496 $as_echo_n "checking for HEAD... " >&6; }
7497         if test ! -x "$tool_specified"; then
7498           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7499 $as_echo "not found" >&6; }
7500           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7501         fi
7502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7503 $as_echo "$tool_specified" >&6; }
7504       fi
7505     fi
7506   fi
7507 
7508 
7509 
7510   if test "x$HEAD" = x; then
7511     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7512   fi
7513 
7514 
7515 
7516 
7517 
7518   # Publish this variable in the help.
7519 
7520 
7521   if test "x$LN" = x; then
7522     # The variable is not set by user, try to locate tool using the code snippet
7523     for ac_prog in ln
7524 do
7525   # Extract the first word of "$ac_prog", so it can be a program name with args.
7526 set dummy $ac_prog; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_path_LN+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   case $LN in
7533   [\\/]* | ?:[\\/]*)
7534   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7535   ;;
7536   *)
7537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540   IFS=$as_save_IFS
7541   test -z "$as_dir" && as_dir=.
7542     for ac_exec_ext in '' $ac_executable_extensions; do
7543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546     break 2
7547   fi
7548 done
7549   done
7550 IFS=$as_save_IFS
7551 
7552   ;;
7553 esac
7554 fi
7555 LN=$ac_cv_path_LN
7556 if test -n "$LN"; then
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7558 $as_echo "$LN" >&6; }
7559 else
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7562 fi
7563 
7564 
7565   test -n "$LN" && break
7566 done
7567 
7568   else
7569     # The variable is set, but is it from the command line or the environment?
7570 
7571     # Try to remove the string !LN! from our list.
7572     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7573     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7574       # If it failed, the variable was not from the command line. Ignore it,
7575       # but warn the user (except for BASH, which is always set by the calling BASH).
7576       if test "xLN" != xBASH; then
7577         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7578 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7579       fi
7580       # Try to locate tool using the code snippet
7581       for ac_prog in ln
7582 do
7583   # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 $as_echo_n "checking for $ac_word... " >&6; }
7587 if ${ac_cv_path_LN+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   case $LN in
7591   [\\/]* | ?:[\\/]*)
7592   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7593   ;;
7594   *)
7595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609 
7610   ;;
7611 esac
7612 fi
7613 LN=$ac_cv_path_LN
7614 if test -n "$LN"; then
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7616 $as_echo "$LN" >&6; }
7617 else
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621 
7622 
7623   test -n "$LN" && break
7624 done
7625 
7626     else
7627       # If it succeeded, then it was overridden by the user. We will use it
7628       # for the tool.
7629 
7630       # First remove it from the list of overridden variables, so we can test
7631       # for unknown variables in the end.
7632       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7633 
7634       # Check if the provided tool contains a complete path.
7635       tool_specified="$LN"
7636       tool_basename="${tool_specified##*/}"
7637       if test "x$tool_basename" = "x$tool_specified"; then
7638         # A command without a complete path is provided, search $PATH.
7639         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7640 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7641         # Extract the first word of "$tool_basename", so it can be a program name with args.
7642 set dummy $tool_basename; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_path_LN+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   case $LN in
7649   [\\/]* | ?:[\\/]*)
7650   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7651   ;;
7652   *)
7653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658     for ac_exec_ext in '' $ac_executable_extensions; do
7659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665   done
7666 IFS=$as_save_IFS
7667 
7668   ;;
7669 esac
7670 fi
7671 LN=$ac_cv_path_LN
7672 if test -n "$LN"; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7674 $as_echo "$LN" >&6; }
7675 else
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679 
7680 
7681         if test "x$LN" = x; then
7682           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7683         fi
7684       else
7685         # Otherwise we believe it is a complete path. Use it as it is.
7686         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7687 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7689 $as_echo_n "checking for LN... " >&6; }
7690         if test ! -x "$tool_specified"; then
7691           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7692 $as_echo "not found" >&6; }
7693           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7694         fi
7695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7696 $as_echo "$tool_specified" >&6; }
7697       fi
7698     fi
7699   fi
7700 
7701 
7702 
7703   if test "x$LN" = x; then
7704     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7705   fi
7706 
7707 
7708 
7709 
7710 
7711   # Publish this variable in the help.
7712 
7713 
7714   if test "x$LS" = x; then
7715     # The variable is not set by user, try to locate tool using the code snippet
7716     for ac_prog in ls
7717 do
7718   # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_path_LS+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   case $LS in
7726   [\\/]* | ?:[\\/]*)
7727   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7728   ;;
7729   *)
7730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735     for ac_exec_ext in '' $ac_executable_extensions; do
7736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742   done
7743 IFS=$as_save_IFS
7744 
7745   ;;
7746 esac
7747 fi
7748 LS=$ac_cv_path_LS
7749 if test -n "$LS"; then
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7751 $as_echo "$LS" >&6; }
7752 else
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756 
7757 
7758   test -n "$LS" && break
7759 done
7760 
7761   else
7762     # The variable is set, but is it from the command line or the environment?
7763 
7764     # Try to remove the string !LS! from our list.
7765     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7766     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7767       # If it failed, the variable was not from the command line. Ignore it,
7768       # but warn the user (except for BASH, which is always set by the calling BASH).
7769       if test "xLS" != xBASH; then
7770         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7771 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7772       fi
7773       # Try to locate tool using the code snippet
7774       for ac_prog in ls
7775 do
7776   # Extract the first word of "$ac_prog", so it can be a program name with args.
7777 set dummy $ac_prog; ac_word=$2
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779 $as_echo_n "checking for $ac_word... " >&6; }
7780 if ${ac_cv_path_LS+:} false; then :
7781   $as_echo_n "(cached) " >&6
7782 else
7783   case $LS in
7784   [\\/]* | ?:[\\/]*)
7785   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7786   ;;
7787   *)
7788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7790 do
7791   IFS=$as_save_IFS
7792   test -z "$as_dir" && as_dir=.
7793     for ac_exec_ext in '' $ac_executable_extensions; do
7794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797     break 2
7798   fi
7799 done
7800   done
7801 IFS=$as_save_IFS
7802 
7803   ;;
7804 esac
7805 fi
7806 LS=$ac_cv_path_LS
7807 if test -n "$LS"; then
7808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7809 $as_echo "$LS" >&6; }
7810 else
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814 
7815 
7816   test -n "$LS" && break
7817 done
7818 
7819     else
7820       # If it succeeded, then it was overridden by the user. We will use it
7821       # for the tool.
7822 
7823       # First remove it from the list of overridden variables, so we can test
7824       # for unknown variables in the end.
7825       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7826 
7827       # Check if the provided tool contains a complete path.
7828       tool_specified="$LS"
7829       tool_basename="${tool_specified##*/}"
7830       if test "x$tool_basename" = "x$tool_specified"; then
7831         # A command without a complete path is provided, search $PATH.
7832         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7833 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7834         # Extract the first word of "$tool_basename", so it can be a program name with args.
7835 set dummy $tool_basename; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_path_LS+:} false; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   case $LS in
7842   [\\/]* | ?:[\\/]*)
7843   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7844   ;;
7845   *)
7846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849   IFS=$as_save_IFS
7850   test -z "$as_dir" && as_dir=.
7851     for ac_exec_ext in '' $ac_executable_extensions; do
7852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7853     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855     break 2
7856   fi
7857 done
7858   done
7859 IFS=$as_save_IFS
7860 
7861   ;;
7862 esac
7863 fi
7864 LS=$ac_cv_path_LS
7865 if test -n "$LS"; then
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7867 $as_echo "$LS" >&6; }
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872 
7873 
7874         if test "x$LS" = x; then
7875           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7876         fi
7877       else
7878         # Otherwise we believe it is a complete path. Use it as it is.
7879         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7880 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7882 $as_echo_n "checking for LS... " >&6; }
7883         if test ! -x "$tool_specified"; then
7884           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7885 $as_echo "not found" >&6; }
7886           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7887         fi
7888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7889 $as_echo "$tool_specified" >&6; }
7890       fi
7891     fi
7892   fi
7893 
7894 
7895 
7896   if test "x$LS" = x; then
7897     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7898   fi
7899 
7900 
7901 
7902 
7903 
7904   # Publish this variable in the help.
7905 
7906 
7907   if test "x$MKDIR" = x; then
7908     # The variable is not set by user, try to locate tool using the code snippet
7909     for ac_prog in mkdir
7910 do
7911   # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_path_MKDIR+:} false; then :
7916   $as_echo_n "(cached) " >&6
7917 else
7918   case $MKDIR in
7919   [\\/]* | ?:[\\/]*)
7920   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7921   ;;
7922   *)
7923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926   IFS=$as_save_IFS
7927   test -z "$as_dir" && as_dir=.
7928     for ac_exec_ext in '' $ac_executable_extensions; do
7929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932     break 2
7933   fi
7934 done
7935   done
7936 IFS=$as_save_IFS
7937 
7938   ;;
7939 esac
7940 fi
7941 MKDIR=$ac_cv_path_MKDIR
7942 if test -n "$MKDIR"; then
7943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7944 $as_echo "$MKDIR" >&6; }
7945 else
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949 
7950 
7951   test -n "$MKDIR" && break
7952 done
7953 
7954   else
7955     # The variable is set, but is it from the command line or the environment?
7956 
7957     # Try to remove the string !MKDIR! from our list.
7958     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7959     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7960       # If it failed, the variable was not from the command line. Ignore it,
7961       # but warn the user (except for BASH, which is always set by the calling BASH).
7962       if test "xMKDIR" != xBASH; then
7963         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7964 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7965       fi
7966       # Try to locate tool using the code snippet
7967       for ac_prog in mkdir
7968 do
7969   # Extract the first word of "$ac_prog", so it can be a program name with args.
7970 set dummy $ac_prog; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if ${ac_cv_path_MKDIR+:} false; then :
7974   $as_echo_n "(cached) " >&6
7975 else
7976   case $MKDIR in
7977   [\\/]* | ?:[\\/]*)
7978   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7979   ;;
7980   *)
7981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986     for ac_exec_ext in '' $ac_executable_extensions; do
7987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990     break 2
7991   fi
7992 done
7993   done
7994 IFS=$as_save_IFS
7995 
7996   ;;
7997 esac
7998 fi
7999 MKDIR=$ac_cv_path_MKDIR
8000 if test -n "$MKDIR"; then
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8002 $as_echo "$MKDIR" >&6; }
8003 else
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8006 fi
8007 
8008 
8009   test -n "$MKDIR" && break
8010 done
8011 
8012     else
8013       # If it succeeded, then it was overridden by the user. We will use it
8014       # for the tool.
8015 
8016       # First remove it from the list of overridden variables, so we can test
8017       # for unknown variables in the end.
8018       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8019 
8020       # Check if the provided tool contains a complete path.
8021       tool_specified="$MKDIR"
8022       tool_basename="${tool_specified##*/}"
8023       if test "x$tool_basename" = "x$tool_specified"; then
8024         # A command without a complete path is provided, search $PATH.
8025         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8026 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8027         # Extract the first word of "$tool_basename", so it can be a program name with args.
8028 set dummy $tool_basename; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if ${ac_cv_path_MKDIR+:} false; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   case $MKDIR in
8035   [\\/]* | ?:[\\/]*)
8036   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8037   ;;
8038   *)
8039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044     for ac_exec_ext in '' $ac_executable_extensions; do
8045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051   done
8052 IFS=$as_save_IFS
8053 
8054   ;;
8055 esac
8056 fi
8057 MKDIR=$ac_cv_path_MKDIR
8058 if test -n "$MKDIR"; then
8059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8060 $as_echo "$MKDIR" >&6; }
8061 else
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8064 fi
8065 
8066 
8067         if test "x$MKDIR" = x; then
8068           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8069         fi
8070       else
8071         # Otherwise we believe it is a complete path. Use it as it is.
8072         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8073 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8075 $as_echo_n "checking for MKDIR... " >&6; }
8076         if test ! -x "$tool_specified"; then
8077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8078 $as_echo "not found" >&6; }
8079           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8080         fi
8081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8082 $as_echo "$tool_specified" >&6; }
8083       fi
8084     fi
8085   fi
8086 
8087 
8088 
8089   if test "x$MKDIR" = x; then
8090     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8091   fi
8092 
8093 
8094 
8095 
8096 
8097   # Publish this variable in the help.
8098 
8099 
8100   if test "x$MKTEMP" = x; then
8101     # The variable is not set by user, try to locate tool using the code snippet
8102     for ac_prog in mktemp
8103 do
8104   # Extract the first word of "$ac_prog", so it can be a program name with args.
8105 set dummy $ac_prog; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if ${ac_cv_path_MKTEMP+:} false; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111   case $MKTEMP in
8112   [\\/]* | ?:[\\/]*)
8113   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8114   ;;
8115   *)
8116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119   IFS=$as_save_IFS
8120   test -z "$as_dir" && as_dir=.
8121     for ac_exec_ext in '' $ac_executable_extensions; do
8122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125     break 2
8126   fi
8127 done
8128   done
8129 IFS=$as_save_IFS
8130 
8131   ;;
8132 esac
8133 fi
8134 MKTEMP=$ac_cv_path_MKTEMP
8135 if test -n "$MKTEMP"; then
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8137 $as_echo "$MKTEMP" >&6; }
8138 else
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142 
8143 
8144   test -n "$MKTEMP" && break
8145 done
8146 
8147   else
8148     # The variable is set, but is it from the command line or the environment?
8149 
8150     # Try to remove the string !MKTEMP! from our list.
8151     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8152     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8153       # If it failed, the variable was not from the command line. Ignore it,
8154       # but warn the user (except for BASH, which is always set by the calling BASH).
8155       if test "xMKTEMP" != xBASH; then
8156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8157 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8158       fi
8159       # Try to locate tool using the code snippet
8160       for ac_prog in mktemp
8161 do
8162   # Extract the first word of "$ac_prog", so it can be a program name with args.
8163 set dummy $ac_prog; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if ${ac_cv_path_MKTEMP+:} false; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   case $MKTEMP in
8170   [\\/]* | ?:[\\/]*)
8171   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8172   ;;
8173   *)
8174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8176 do
8177   IFS=$as_save_IFS
8178   test -z "$as_dir" && as_dir=.
8179     for ac_exec_ext in '' $ac_executable_extensions; do
8180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8181     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183     break 2
8184   fi
8185 done
8186   done
8187 IFS=$as_save_IFS
8188 
8189   ;;
8190 esac
8191 fi
8192 MKTEMP=$ac_cv_path_MKTEMP
8193 if test -n "$MKTEMP"; then
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8195 $as_echo "$MKTEMP" >&6; }
8196 else
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8199 fi
8200 
8201 
8202   test -n "$MKTEMP" && break
8203 done
8204 
8205     else
8206       # If it succeeded, then it was overridden by the user. We will use it
8207       # for the tool.
8208 
8209       # First remove it from the list of overridden variables, so we can test
8210       # for unknown variables in the end.
8211       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8212 
8213       # Check if the provided tool contains a complete path.
8214       tool_specified="$MKTEMP"
8215       tool_basename="${tool_specified##*/}"
8216       if test "x$tool_basename" = "x$tool_specified"; then
8217         # A command without a complete path is provided, search $PATH.
8218         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8219 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8220         # Extract the first word of "$tool_basename", so it can be a program name with args.
8221 set dummy $tool_basename; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if ${ac_cv_path_MKTEMP+:} false; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   case $MKTEMP in
8228   [\\/]* | ?:[\\/]*)
8229   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8230   ;;
8231   *)
8232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235   IFS=$as_save_IFS
8236   test -z "$as_dir" && as_dir=.
8237     for ac_exec_ext in '' $ac_executable_extensions; do
8238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241     break 2
8242   fi
8243 done
8244   done
8245 IFS=$as_save_IFS
8246 
8247   ;;
8248 esac
8249 fi
8250 MKTEMP=$ac_cv_path_MKTEMP
8251 if test -n "$MKTEMP"; then
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8253 $as_echo "$MKTEMP" >&6; }
8254 else
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258 
8259 
8260         if test "x$MKTEMP" = x; then
8261           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8262         fi
8263       else
8264         # Otherwise we believe it is a complete path. Use it as it is.
8265         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8266 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8268 $as_echo_n "checking for MKTEMP... " >&6; }
8269         if test ! -x "$tool_specified"; then
8270           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8271 $as_echo "not found" >&6; }
8272           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8273         fi
8274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8275 $as_echo "$tool_specified" >&6; }
8276       fi
8277     fi
8278   fi
8279 
8280 
8281 
8282   if test "x$MKTEMP" = x; then
8283     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8284   fi
8285 
8286 
8287 
8288 
8289 
8290   # Publish this variable in the help.
8291 
8292 
8293   if test "x$MV" = x; then
8294     # The variable is not set by user, try to locate tool using the code snippet
8295     for ac_prog in mv
8296 do
8297   # Extract the first word of "$ac_prog", so it can be a program name with args.
8298 set dummy $ac_prog; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_path_MV+:} false; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   case $MV in
8305   [\\/]* | ?:[\\/]*)
8306   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8307   ;;
8308   *)
8309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312   IFS=$as_save_IFS
8313   test -z "$as_dir" && as_dir=.
8314     for ac_exec_ext in '' $ac_executable_extensions; do
8315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8316     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318     break 2
8319   fi
8320 done
8321   done
8322 IFS=$as_save_IFS
8323 
8324   ;;
8325 esac
8326 fi
8327 MV=$ac_cv_path_MV
8328 if test -n "$MV"; then
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8330 $as_echo "$MV" >&6; }
8331 else
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335 
8336 
8337   test -n "$MV" && break
8338 done
8339 
8340   else
8341     # The variable is set, but is it from the command line or the environment?
8342 
8343     # Try to remove the string !MV! from our list.
8344     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8345     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8346       # If it failed, the variable was not from the command line. Ignore it,
8347       # but warn the user (except for BASH, which is always set by the calling BASH).
8348       if test "xMV" != xBASH; then
8349         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8350 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8351       fi
8352       # Try to locate tool using the code snippet
8353       for ac_prog in mv
8354 do
8355   # Extract the first word of "$ac_prog", so it can be a program name with args.
8356 set dummy $ac_prog; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_path_MV+:} false; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362   case $MV in
8363   [\\/]* | ?:[\\/]*)
8364   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8365   ;;
8366   *)
8367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370   IFS=$as_save_IFS
8371   test -z "$as_dir" && as_dir=.
8372     for ac_exec_ext in '' $ac_executable_extensions; do
8373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8374     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376     break 2
8377   fi
8378 done
8379   done
8380 IFS=$as_save_IFS
8381 
8382   ;;
8383 esac
8384 fi
8385 MV=$ac_cv_path_MV
8386 if test -n "$MV"; then
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8388 $as_echo "$MV" >&6; }
8389 else
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8392 fi
8393 
8394 
8395   test -n "$MV" && break
8396 done
8397 
8398     else
8399       # If it succeeded, then it was overridden by the user. We will use it
8400       # for the tool.
8401 
8402       # First remove it from the list of overridden variables, so we can test
8403       # for unknown variables in the end.
8404       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8405 
8406       # Check if the provided tool contains a complete path.
8407       tool_specified="$MV"
8408       tool_basename="${tool_specified##*/}"
8409       if test "x$tool_basename" = "x$tool_specified"; then
8410         # A command without a complete path is provided, search $PATH.
8411         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8412 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8413         # Extract the first word of "$tool_basename", so it can be a program name with args.
8414 set dummy $tool_basename; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if ${ac_cv_path_MV+:} false; then :
8418   $as_echo_n "(cached) " >&6
8419 else
8420   case $MV in
8421   [\\/]* | ?:[\\/]*)
8422   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8423   ;;
8424   *)
8425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428   IFS=$as_save_IFS
8429   test -z "$as_dir" && as_dir=.
8430     for ac_exec_ext in '' $ac_executable_extensions; do
8431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8432     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434     break 2
8435   fi
8436 done
8437   done
8438 IFS=$as_save_IFS
8439 
8440   ;;
8441 esac
8442 fi
8443 MV=$ac_cv_path_MV
8444 if test -n "$MV"; then
8445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8446 $as_echo "$MV" >&6; }
8447 else
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 fi
8451 
8452 
8453         if test "x$MV" = x; then
8454           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8455         fi
8456       else
8457         # Otherwise we believe it is a complete path. Use it as it is.
8458         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8459 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8461 $as_echo_n "checking for MV... " >&6; }
8462         if test ! -x "$tool_specified"; then
8463           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8464 $as_echo "not found" >&6; }
8465           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8466         fi
8467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8468 $as_echo "$tool_specified" >&6; }
8469       fi
8470     fi
8471   fi
8472 
8473 
8474 
8475   if test "x$MV" = x; then
8476     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8477   fi
8478 
8479 
8480 
8481 
8482 
8483   # Publish this variable in the help.
8484 
8485 
8486   if test "x$NAWK" = x; then
8487     # The variable is not set by user, try to locate tool using the code snippet
8488     for ac_prog in nawk gawk awk
8489 do
8490   # Extract the first word of "$ac_prog", so it can be a program name with args.
8491 set dummy $ac_prog; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_path_NAWK+:} false; then :
8495   $as_echo_n "(cached) " >&6
8496 else
8497   case $NAWK in
8498   [\\/]* | ?:[\\/]*)
8499   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8500   ;;
8501   *)
8502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505   IFS=$as_save_IFS
8506   test -z "$as_dir" && as_dir=.
8507     for ac_exec_ext in '' $ac_executable_extensions; do
8508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511     break 2
8512   fi
8513 done
8514   done
8515 IFS=$as_save_IFS
8516 
8517   ;;
8518 esac
8519 fi
8520 NAWK=$ac_cv_path_NAWK
8521 if test -n "$NAWK"; then
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8523 $as_echo "$NAWK" >&6; }
8524 else
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8527 fi
8528 
8529 
8530   test -n "$NAWK" && break
8531 done
8532 
8533   else
8534     # The variable is set, but is it from the command line or the environment?
8535 
8536     # Try to remove the string !NAWK! from our list.
8537     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8538     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8539       # If it failed, the variable was not from the command line. Ignore it,
8540       # but warn the user (except for BASH, which is always set by the calling BASH).
8541       if test "xNAWK" != xBASH; then
8542         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8543 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8544       fi
8545       # Try to locate tool using the code snippet
8546       for ac_prog in nawk gawk awk
8547 do
8548   # Extract the first word of "$ac_prog", so it can be a program name with args.
8549 set dummy $ac_prog; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_path_NAWK+:} false; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   case $NAWK in
8556   [\\/]* | ?:[\\/]*)
8557   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8558   ;;
8559   *)
8560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563   IFS=$as_save_IFS
8564   test -z "$as_dir" && as_dir=.
8565     for ac_exec_ext in '' $ac_executable_extensions; do
8566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569     break 2
8570   fi
8571 done
8572   done
8573 IFS=$as_save_IFS
8574 
8575   ;;
8576 esac
8577 fi
8578 NAWK=$ac_cv_path_NAWK
8579 if test -n "$NAWK"; then
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8581 $as_echo "$NAWK" >&6; }
8582 else
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586 
8587 
8588   test -n "$NAWK" && break
8589 done
8590 
8591     else
8592       # If it succeeded, then it was overridden by the user. We will use it
8593       # for the tool.
8594 
8595       # First remove it from the list of overridden variables, so we can test
8596       # for unknown variables in the end.
8597       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8598 
8599       # Check if the provided tool contains a complete path.
8600       tool_specified="$NAWK"
8601       tool_basename="${tool_specified##*/}"
8602       if test "x$tool_basename" = "x$tool_specified"; then
8603         # A command without a complete path is provided, search $PATH.
8604         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8605 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8606         # Extract the first word of "$tool_basename", so it can be a program name with args.
8607 set dummy $tool_basename; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if ${ac_cv_path_NAWK+:} false; then :
8611   $as_echo_n "(cached) " >&6
8612 else
8613   case $NAWK in
8614   [\\/]* | ?:[\\/]*)
8615   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8616   ;;
8617   *)
8618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in $PATH
8620 do
8621   IFS=$as_save_IFS
8622   test -z "$as_dir" && as_dir=.
8623     for ac_exec_ext in '' $ac_executable_extensions; do
8624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8625     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627     break 2
8628   fi
8629 done
8630   done
8631 IFS=$as_save_IFS
8632 
8633   ;;
8634 esac
8635 fi
8636 NAWK=$ac_cv_path_NAWK
8637 if test -n "$NAWK"; then
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8639 $as_echo "$NAWK" >&6; }
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644 
8645 
8646         if test "x$NAWK" = x; then
8647           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8648         fi
8649       else
8650         # Otherwise we believe it is a complete path. Use it as it is.
8651         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8652 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8653         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8654 $as_echo_n "checking for NAWK... " >&6; }
8655         if test ! -x "$tool_specified"; then
8656           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8657 $as_echo "not found" >&6; }
8658           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8659         fi
8660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8661 $as_echo "$tool_specified" >&6; }
8662       fi
8663     fi
8664   fi
8665 
8666 
8667 
8668   if test "x$NAWK" = x; then
8669     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8670   fi
8671 
8672 
8673 
8674 
8675 
8676   # Publish this variable in the help.
8677 
8678 
8679   if test "x$PRINTF" = x; then
8680     # The variable is not set by user, try to locate tool using the code snippet
8681     for ac_prog in printf
8682 do
8683   # Extract the first word of "$ac_prog", so it can be a program name with args.
8684 set dummy $ac_prog; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if ${ac_cv_path_PRINTF+:} false; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   case $PRINTF in
8691   [\\/]* | ?:[\\/]*)
8692   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8693   ;;
8694   *)
8695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8697 do
8698   IFS=$as_save_IFS
8699   test -z "$as_dir" && as_dir=.
8700     for ac_exec_ext in '' $ac_executable_extensions; do
8701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8702     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704     break 2
8705   fi
8706 done
8707   done
8708 IFS=$as_save_IFS
8709 
8710   ;;
8711 esac
8712 fi
8713 PRINTF=$ac_cv_path_PRINTF
8714 if test -n "$PRINTF"; then
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8716 $as_echo "$PRINTF" >&6; }
8717 else
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721 
8722 
8723   test -n "$PRINTF" && break
8724 done
8725 
8726   else
8727     # The variable is set, but is it from the command line or the environment?
8728 
8729     # Try to remove the string !PRINTF! from our list.
8730     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8731     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8732       # If it failed, the variable was not from the command line. Ignore it,
8733       # but warn the user (except for BASH, which is always set by the calling BASH).
8734       if test "xPRINTF" != xBASH; then
8735         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8736 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8737       fi
8738       # Try to locate tool using the code snippet
8739       for ac_prog in printf
8740 do
8741   # Extract the first word of "$ac_prog", so it can be a program name with args.
8742 set dummy $ac_prog; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_path_PRINTF+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   case $PRINTF in
8749   [\\/]* | ?:[\\/]*)
8750   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8751   ;;
8752   *)
8753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8755 do
8756   IFS=$as_save_IFS
8757   test -z "$as_dir" && as_dir=.
8758     for ac_exec_ext in '' $ac_executable_extensions; do
8759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762     break 2
8763   fi
8764 done
8765   done
8766 IFS=$as_save_IFS
8767 
8768   ;;
8769 esac
8770 fi
8771 PRINTF=$ac_cv_path_PRINTF
8772 if test -n "$PRINTF"; then
8773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8774 $as_echo "$PRINTF" >&6; }
8775 else
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8778 fi
8779 
8780 
8781   test -n "$PRINTF" && break
8782 done
8783 
8784     else
8785       # If it succeeded, then it was overridden by the user. We will use it
8786       # for the tool.
8787 
8788       # First remove it from the list of overridden variables, so we can test
8789       # for unknown variables in the end.
8790       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8791 
8792       # Check if the provided tool contains a complete path.
8793       tool_specified="$PRINTF"
8794       tool_basename="${tool_specified##*/}"
8795       if test "x$tool_basename" = "x$tool_specified"; then
8796         # A command without a complete path is provided, search $PATH.
8797         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8798 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8799         # Extract the first word of "$tool_basename", so it can be a program name with args.
8800 set dummy $tool_basename; ac_word=$2
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802 $as_echo_n "checking for $ac_word... " >&6; }
8803 if ${ac_cv_path_PRINTF+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   case $PRINTF in
8807   [\\/]* | ?:[\\/]*)
8808   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8809   ;;
8810   *)
8811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814   IFS=$as_save_IFS
8815   test -z "$as_dir" && as_dir=.
8816     for ac_exec_ext in '' $ac_executable_extensions; do
8817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820     break 2
8821   fi
8822 done
8823   done
8824 IFS=$as_save_IFS
8825 
8826   ;;
8827 esac
8828 fi
8829 PRINTF=$ac_cv_path_PRINTF
8830 if test -n "$PRINTF"; then
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8832 $as_echo "$PRINTF" >&6; }
8833 else
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837 
8838 
8839         if test "x$PRINTF" = x; then
8840           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8841         fi
8842       else
8843         # Otherwise we believe it is a complete path. Use it as it is.
8844         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8845 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8847 $as_echo_n "checking for PRINTF... " >&6; }
8848         if test ! -x "$tool_specified"; then
8849           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8850 $as_echo "not found" >&6; }
8851           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8852         fi
8853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8854 $as_echo "$tool_specified" >&6; }
8855       fi
8856     fi
8857   fi
8858 
8859 
8860 
8861   if test "x$PRINTF" = x; then
8862     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8863   fi
8864 
8865 
8866 
8867 
8868 
8869   # Publish this variable in the help.
8870 
8871 
8872   if test "x$RM" = x; then
8873     # The variable is not set by user, try to locate tool using the code snippet
8874     for ac_prog in rm
8875 do
8876   # Extract the first word of "$ac_prog", so it can be a program name with args.
8877 set dummy $ac_prog; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if ${ac_cv_path_RM+:} false; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   case $RM in
8884   [\\/]* | ?:[\\/]*)
8885   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8886   ;;
8887   *)
8888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891   IFS=$as_save_IFS
8892   test -z "$as_dir" && as_dir=.
8893     for ac_exec_ext in '' $ac_executable_extensions; do
8894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897     break 2
8898   fi
8899 done
8900   done
8901 IFS=$as_save_IFS
8902 
8903   ;;
8904 esac
8905 fi
8906 RM=$ac_cv_path_RM
8907 if test -n "$RM"; then
8908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8909 $as_echo "$RM" >&6; }
8910 else
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913 fi
8914 
8915 
8916   test -n "$RM" && break
8917 done
8918 
8919   else
8920     # The variable is set, but is it from the command line or the environment?
8921 
8922     # Try to remove the string !RM! from our list.
8923     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8924     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8925       # If it failed, the variable was not from the command line. Ignore it,
8926       # but warn the user (except for BASH, which is always set by the calling BASH).
8927       if test "xRM" != xBASH; then
8928         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8929 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8930       fi
8931       # Try to locate tool using the code snippet
8932       for ac_prog in rm
8933 do
8934   # Extract the first word of "$ac_prog", so it can be a program name with args.
8935 set dummy $ac_prog; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if ${ac_cv_path_RM+:} false; then :
8939   $as_echo_n "(cached) " >&6
8940 else
8941   case $RM in
8942   [\\/]* | ?:[\\/]*)
8943   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8944   ;;
8945   *)
8946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949   IFS=$as_save_IFS
8950   test -z "$as_dir" && as_dir=.
8951     for ac_exec_ext in '' $ac_executable_extensions; do
8952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958   done
8959 IFS=$as_save_IFS
8960 
8961   ;;
8962 esac
8963 fi
8964 RM=$ac_cv_path_RM
8965 if test -n "$RM"; then
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8967 $as_echo "$RM" >&6; }
8968 else
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8971 fi
8972 
8973 
8974   test -n "$RM" && break
8975 done
8976 
8977     else
8978       # If it succeeded, then it was overridden by the user. We will use it
8979       # for the tool.
8980 
8981       # First remove it from the list of overridden variables, so we can test
8982       # for unknown variables in the end.
8983       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8984 
8985       # Check if the provided tool contains a complete path.
8986       tool_specified="$RM"
8987       tool_basename="${tool_specified##*/}"
8988       if test "x$tool_basename" = "x$tool_specified"; then
8989         # A command without a complete path is provided, search $PATH.
8990         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8991 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8992         # Extract the first word of "$tool_basename", so it can be a program name with args.
8993 set dummy $tool_basename; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if ${ac_cv_path_RM+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   case $RM in
9000   [\\/]* | ?:[\\/]*)
9001   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9002   ;;
9003   *)
9004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007   IFS=$as_save_IFS
9008   test -z "$as_dir" && as_dir=.
9009     for ac_exec_ext in '' $ac_executable_extensions; do
9010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013     break 2
9014   fi
9015 done
9016   done
9017 IFS=$as_save_IFS
9018 
9019   ;;
9020 esac
9021 fi
9022 RM=$ac_cv_path_RM
9023 if test -n "$RM"; then
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9025 $as_echo "$RM" >&6; }
9026 else
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9029 fi
9030 
9031 
9032         if test "x$RM" = x; then
9033           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9034         fi
9035       else
9036         # Otherwise we believe it is a complete path. Use it as it is.
9037         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9038 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9040 $as_echo_n "checking for RM... " >&6; }
9041         if test ! -x "$tool_specified"; then
9042           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9043 $as_echo "not found" >&6; }
9044           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9045         fi
9046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9047 $as_echo "$tool_specified" >&6; }
9048       fi
9049     fi
9050   fi
9051 
9052 
9053 
9054   if test "x$RM" = x; then
9055     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9056   fi
9057 
9058 
9059 
9060 
9061 
9062   # Publish this variable in the help.
9063 
9064 
9065   if test "x$SH" = x; then
9066     # The variable is not set by user, try to locate tool using the code snippet
9067     for ac_prog in sh
9068 do
9069   # Extract the first word of "$ac_prog", so it can be a program name with args.
9070 set dummy $ac_prog; ac_word=$2
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072 $as_echo_n "checking for $ac_word... " >&6; }
9073 if ${ac_cv_path_SH+:} false; then :
9074   $as_echo_n "(cached) " >&6
9075 else
9076   case $SH in
9077   [\\/]* | ?:[\\/]*)
9078   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9079   ;;
9080   *)
9081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in $PATH
9083 do
9084   IFS=$as_save_IFS
9085   test -z "$as_dir" && as_dir=.
9086     for ac_exec_ext in '' $ac_executable_extensions; do
9087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9088     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090     break 2
9091   fi
9092 done
9093   done
9094 IFS=$as_save_IFS
9095 
9096   ;;
9097 esac
9098 fi
9099 SH=$ac_cv_path_SH
9100 if test -n "$SH"; then
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9102 $as_echo "$SH" >&6; }
9103 else
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9106 fi
9107 
9108 
9109   test -n "$SH" && break
9110 done
9111 
9112   else
9113     # The variable is set, but is it from the command line or the environment?
9114 
9115     # Try to remove the string !SH! from our list.
9116     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9117     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9118       # If it failed, the variable was not from the command line. Ignore it,
9119       # but warn the user (except for BASH, which is always set by the calling BASH).
9120       if test "xSH" != xBASH; then
9121         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9122 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9123       fi
9124       # Try to locate tool using the code snippet
9125       for ac_prog in sh
9126 do
9127   # Extract the first word of "$ac_prog", so it can be a program name with args.
9128 set dummy $ac_prog; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_path_SH+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   case $SH in
9135   [\\/]* | ?:[\\/]*)
9136   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9137   ;;
9138   *)
9139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9141 do
9142   IFS=$as_save_IFS
9143   test -z "$as_dir" && as_dir=.
9144     for ac_exec_ext in '' $ac_executable_extensions; do
9145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9146     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148     break 2
9149   fi
9150 done
9151   done
9152 IFS=$as_save_IFS
9153 
9154   ;;
9155 esac
9156 fi
9157 SH=$ac_cv_path_SH
9158 if test -n "$SH"; then
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9160 $as_echo "$SH" >&6; }
9161 else
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9164 fi
9165 
9166 
9167   test -n "$SH" && break
9168 done
9169 
9170     else
9171       # If it succeeded, then it was overridden by the user. We will use it
9172       # for the tool.
9173 
9174       # First remove it from the list of overridden variables, so we can test
9175       # for unknown variables in the end.
9176       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9177 
9178       # Check if the provided tool contains a complete path.
9179       tool_specified="$SH"
9180       tool_basename="${tool_specified##*/}"
9181       if test "x$tool_basename" = "x$tool_specified"; then
9182         # A command without a complete path is provided, search $PATH.
9183         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9184 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9185         # Extract the first word of "$tool_basename", so it can be a program name with args.
9186 set dummy $tool_basename; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if ${ac_cv_path_SH+:} false; then :
9190   $as_echo_n "(cached) " >&6
9191 else
9192   case $SH in
9193   [\\/]* | ?:[\\/]*)
9194   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9195   ;;
9196   *)
9197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9199 do
9200   IFS=$as_save_IFS
9201   test -z "$as_dir" && as_dir=.
9202     for ac_exec_ext in '' $ac_executable_extensions; do
9203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9204     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206     break 2
9207   fi
9208 done
9209   done
9210 IFS=$as_save_IFS
9211 
9212   ;;
9213 esac
9214 fi
9215 SH=$ac_cv_path_SH
9216 if test -n "$SH"; then
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9218 $as_echo "$SH" >&6; }
9219 else
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9222 fi
9223 
9224 
9225         if test "x$SH" = x; then
9226           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9227         fi
9228       else
9229         # Otherwise we believe it is a complete path. Use it as it is.
9230         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9231 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9233 $as_echo_n "checking for SH... " >&6; }
9234         if test ! -x "$tool_specified"; then
9235           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9236 $as_echo "not found" >&6; }
9237           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9238         fi
9239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9240 $as_echo "$tool_specified" >&6; }
9241       fi
9242     fi
9243   fi
9244 
9245 
9246 
9247   if test "x$SH" = x; then
9248     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9249   fi
9250 
9251 
9252 
9253 
9254 
9255   # Publish this variable in the help.
9256 
9257 
9258   if test "x$SORT" = x; then
9259     # The variable is not set by user, try to locate tool using the code snippet
9260     for ac_prog in sort
9261 do
9262   # Extract the first word of "$ac_prog", so it can be a program name with args.
9263 set dummy $ac_prog; ac_word=$2
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if ${ac_cv_path_SORT+:} false; then :
9267   $as_echo_n "(cached) " >&6
9268 else
9269   case $SORT in
9270   [\\/]* | ?:[\\/]*)
9271   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9272   ;;
9273   *)
9274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 for as_dir in $PATH
9276 do
9277   IFS=$as_save_IFS
9278   test -z "$as_dir" && as_dir=.
9279     for ac_exec_ext in '' $ac_executable_extensions; do
9280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9281     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9283     break 2
9284   fi
9285 done
9286   done
9287 IFS=$as_save_IFS
9288 
9289   ;;
9290 esac
9291 fi
9292 SORT=$ac_cv_path_SORT
9293 if test -n "$SORT"; then
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9295 $as_echo "$SORT" >&6; }
9296 else
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9298 $as_echo "no" >&6; }
9299 fi
9300 
9301 
9302   test -n "$SORT" && break
9303 done
9304 
9305   else
9306     # The variable is set, but is it from the command line or the environment?
9307 
9308     # Try to remove the string !SORT! from our list.
9309     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9310     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9311       # If it failed, the variable was not from the command line. Ignore it,
9312       # but warn the user (except for BASH, which is always set by the calling BASH).
9313       if test "xSORT" != xBASH; then
9314         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9315 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9316       fi
9317       # Try to locate tool using the code snippet
9318       for ac_prog in sort
9319 do
9320   # Extract the first word of "$ac_prog", so it can be a program name with args.
9321 set dummy $ac_prog; ac_word=$2
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323 $as_echo_n "checking for $ac_word... " >&6; }
9324 if ${ac_cv_path_SORT+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   case $SORT in
9328   [\\/]* | ?:[\\/]*)
9329   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9330   ;;
9331   *)
9332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 for as_dir in $PATH
9334 do
9335   IFS=$as_save_IFS
9336   test -z "$as_dir" && as_dir=.
9337     for ac_exec_ext in '' $ac_executable_extensions; do
9338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9339     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9341     break 2
9342   fi
9343 done
9344   done
9345 IFS=$as_save_IFS
9346 
9347   ;;
9348 esac
9349 fi
9350 SORT=$ac_cv_path_SORT
9351 if test -n "$SORT"; then
9352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9353 $as_echo "$SORT" >&6; }
9354 else
9355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9357 fi
9358 
9359 
9360   test -n "$SORT" && break
9361 done
9362 
9363     else
9364       # If it succeeded, then it was overridden by the user. We will use it
9365       # for the tool.
9366 
9367       # First remove it from the list of overridden variables, so we can test
9368       # for unknown variables in the end.
9369       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9370 
9371       # Check if the provided tool contains a complete path.
9372       tool_specified="$SORT"
9373       tool_basename="${tool_specified##*/}"
9374       if test "x$tool_basename" = "x$tool_specified"; then
9375         # A command without a complete path is provided, search $PATH.
9376         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9377 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9378         # Extract the first word of "$tool_basename", so it can be a program name with args.
9379 set dummy $tool_basename; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if ${ac_cv_path_SORT+:} false; then :
9383   $as_echo_n "(cached) " >&6
9384 else
9385   case $SORT in
9386   [\\/]* | ?:[\\/]*)
9387   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9388   ;;
9389   *)
9390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 for as_dir in $PATH
9392 do
9393   IFS=$as_save_IFS
9394   test -z "$as_dir" && as_dir=.
9395     for ac_exec_ext in '' $ac_executable_extensions; do
9396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9397     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399     break 2
9400   fi
9401 done
9402   done
9403 IFS=$as_save_IFS
9404 
9405   ;;
9406 esac
9407 fi
9408 SORT=$ac_cv_path_SORT
9409 if test -n "$SORT"; then
9410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9411 $as_echo "$SORT" >&6; }
9412 else
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9415 fi
9416 
9417 
9418         if test "x$SORT" = x; then
9419           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9420         fi
9421       else
9422         # Otherwise we believe it is a complete path. Use it as it is.
9423         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9424 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9426 $as_echo_n "checking for SORT... " >&6; }
9427         if test ! -x "$tool_specified"; then
9428           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9429 $as_echo "not found" >&6; }
9430           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9431         fi
9432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9433 $as_echo "$tool_specified" >&6; }
9434       fi
9435     fi
9436   fi
9437 
9438 
9439 
9440   if test "x$SORT" = x; then
9441     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9442   fi
9443 
9444 
9445 
9446 
9447 
9448   # Publish this variable in the help.
9449 
9450 
9451   if test "x$TAIL" = x; then
9452     # The variable is not set by user, try to locate tool using the code snippet
9453     for ac_prog in tail
9454 do
9455   # Extract the first word of "$ac_prog", so it can be a program name with args.
9456 set dummy $ac_prog; ac_word=$2
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458 $as_echo_n "checking for $ac_word... " >&6; }
9459 if ${ac_cv_path_TAIL+:} false; then :
9460   $as_echo_n "(cached) " >&6
9461 else
9462   case $TAIL in
9463   [\\/]* | ?:[\\/]*)
9464   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9465   ;;
9466   *)
9467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 for as_dir in $PATH
9469 do
9470   IFS=$as_save_IFS
9471   test -z "$as_dir" && as_dir=.
9472     for ac_exec_ext in '' $ac_executable_extensions; do
9473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9474     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9476     break 2
9477   fi
9478 done
9479   done
9480 IFS=$as_save_IFS
9481 
9482   ;;
9483 esac
9484 fi
9485 TAIL=$ac_cv_path_TAIL
9486 if test -n "$TAIL"; then
9487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9488 $as_echo "$TAIL" >&6; }
9489 else
9490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9492 fi
9493 
9494 
9495   test -n "$TAIL" && break
9496 done
9497 
9498   else
9499     # The variable is set, but is it from the command line or the environment?
9500 
9501     # Try to remove the string !TAIL! from our list.
9502     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9503     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9504       # If it failed, the variable was not from the command line. Ignore it,
9505       # but warn the user (except for BASH, which is always set by the calling BASH).
9506       if test "xTAIL" != xBASH; then
9507         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9508 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9509       fi
9510       # Try to locate tool using the code snippet
9511       for ac_prog in tail
9512 do
9513   # Extract the first word of "$ac_prog", so it can be a program name with args.
9514 set dummy $ac_prog; ac_word=$2
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516 $as_echo_n "checking for $ac_word... " >&6; }
9517 if ${ac_cv_path_TAIL+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520   case $TAIL in
9521   [\\/]* | ?:[\\/]*)
9522   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9523   ;;
9524   *)
9525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9527 do
9528   IFS=$as_save_IFS
9529   test -z "$as_dir" && as_dir=.
9530     for ac_exec_ext in '' $ac_executable_extensions; do
9531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9532     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534     break 2
9535   fi
9536 done
9537   done
9538 IFS=$as_save_IFS
9539 
9540   ;;
9541 esac
9542 fi
9543 TAIL=$ac_cv_path_TAIL
9544 if test -n "$TAIL"; then
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9546 $as_echo "$TAIL" >&6; }
9547 else
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9550 fi
9551 
9552 
9553   test -n "$TAIL" && break
9554 done
9555 
9556     else
9557       # If it succeeded, then it was overridden by the user. We will use it
9558       # for the tool.
9559 
9560       # First remove it from the list of overridden variables, so we can test
9561       # for unknown variables in the end.
9562       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9563 
9564       # Check if the provided tool contains a complete path.
9565       tool_specified="$TAIL"
9566       tool_basename="${tool_specified##*/}"
9567       if test "x$tool_basename" = "x$tool_specified"; then
9568         # A command without a complete path is provided, search $PATH.
9569         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9570 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9571         # Extract the first word of "$tool_basename", so it can be a program name with args.
9572 set dummy $tool_basename; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if ${ac_cv_path_TAIL+:} false; then :
9576   $as_echo_n "(cached) " >&6
9577 else
9578   case $TAIL in
9579   [\\/]* | ?:[\\/]*)
9580   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9581   ;;
9582   *)
9583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9585 do
9586   IFS=$as_save_IFS
9587   test -z "$as_dir" && as_dir=.
9588     for ac_exec_ext in '' $ac_executable_extensions; do
9589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592     break 2
9593   fi
9594 done
9595   done
9596 IFS=$as_save_IFS
9597 
9598   ;;
9599 esac
9600 fi
9601 TAIL=$ac_cv_path_TAIL
9602 if test -n "$TAIL"; then
9603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9604 $as_echo "$TAIL" >&6; }
9605 else
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9608 fi
9609 
9610 
9611         if test "x$TAIL" = x; then
9612           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9613         fi
9614       else
9615         # Otherwise we believe it is a complete path. Use it as it is.
9616         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9617 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9619 $as_echo_n "checking for TAIL... " >&6; }
9620         if test ! -x "$tool_specified"; then
9621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9622 $as_echo "not found" >&6; }
9623           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9624         fi
9625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9626 $as_echo "$tool_specified" >&6; }
9627       fi
9628     fi
9629   fi
9630 
9631 
9632 
9633   if test "x$TAIL" = x; then
9634     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9635   fi
9636 
9637 
9638 
9639 
9640 
9641   # Publish this variable in the help.
9642 
9643 
9644   if test "x$TAR" = x; then
9645     # The variable is not set by user, try to locate tool using the code snippet
9646     for ac_prog in tar
9647 do
9648   # Extract the first word of "$ac_prog", so it can be a program name with args.
9649 set dummy $ac_prog; ac_word=$2
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9651 $as_echo_n "checking for $ac_word... " >&6; }
9652 if ${ac_cv_path_TAR+:} false; then :
9653   $as_echo_n "(cached) " >&6
9654 else
9655   case $TAR in
9656   [\\/]* | ?:[\\/]*)
9657   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9658   ;;
9659   *)
9660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9662 do
9663   IFS=$as_save_IFS
9664   test -z "$as_dir" && as_dir=.
9665     for ac_exec_ext in '' $ac_executable_extensions; do
9666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9667     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669     break 2
9670   fi
9671 done
9672   done
9673 IFS=$as_save_IFS
9674 
9675   ;;
9676 esac
9677 fi
9678 TAR=$ac_cv_path_TAR
9679 if test -n "$TAR"; then
9680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9681 $as_echo "$TAR" >&6; }
9682 else
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9685 fi
9686 
9687 
9688   test -n "$TAR" && break
9689 done
9690 
9691   else
9692     # The variable is set, but is it from the command line or the environment?
9693 
9694     # Try to remove the string !TAR! from our list.
9695     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9696     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9697       # If it failed, the variable was not from the command line. Ignore it,
9698       # but warn the user (except for BASH, which is always set by the calling BASH).
9699       if test "xTAR" != xBASH; then
9700         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9701 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9702       fi
9703       # Try to locate tool using the code snippet
9704       for ac_prog in tar
9705 do
9706   # Extract the first word of "$ac_prog", so it can be a program name with args.
9707 set dummy $ac_prog; ac_word=$2
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9709 $as_echo_n "checking for $ac_word... " >&6; }
9710 if ${ac_cv_path_TAR+:} false; then :
9711   $as_echo_n "(cached) " >&6
9712 else
9713   case $TAR in
9714   [\\/]* | ?:[\\/]*)
9715   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9716   ;;
9717   *)
9718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721   IFS=$as_save_IFS
9722   test -z "$as_dir" && as_dir=.
9723     for ac_exec_ext in '' $ac_executable_extensions; do
9724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727     break 2
9728   fi
9729 done
9730   done
9731 IFS=$as_save_IFS
9732 
9733   ;;
9734 esac
9735 fi
9736 TAR=$ac_cv_path_TAR
9737 if test -n "$TAR"; then
9738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9739 $as_echo "$TAR" >&6; }
9740 else
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 $as_echo "no" >&6; }
9743 fi
9744 
9745 
9746   test -n "$TAR" && break
9747 done
9748 
9749     else
9750       # If it succeeded, then it was overridden by the user. We will use it
9751       # for the tool.
9752 
9753       # First remove it from the list of overridden variables, so we can test
9754       # for unknown variables in the end.
9755       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9756 
9757       # Check if the provided tool contains a complete path.
9758       tool_specified="$TAR"
9759       tool_basename="${tool_specified##*/}"
9760       if test "x$tool_basename" = "x$tool_specified"; then
9761         # A command without a complete path is provided, search $PATH.
9762         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9763 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9764         # Extract the first word of "$tool_basename", so it can be a program name with args.
9765 set dummy $tool_basename; ac_word=$2
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767 $as_echo_n "checking for $ac_word... " >&6; }
9768 if ${ac_cv_path_TAR+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   case $TAR in
9772   [\\/]* | ?:[\\/]*)
9773   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9774   ;;
9775   *)
9776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 for as_dir in $PATH
9778 do
9779   IFS=$as_save_IFS
9780   test -z "$as_dir" && as_dir=.
9781     for ac_exec_ext in '' $ac_executable_extensions; do
9782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9785     break 2
9786   fi
9787 done
9788   done
9789 IFS=$as_save_IFS
9790 
9791   ;;
9792 esac
9793 fi
9794 TAR=$ac_cv_path_TAR
9795 if test -n "$TAR"; then
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9797 $as_echo "$TAR" >&6; }
9798 else
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9801 fi
9802 
9803 
9804         if test "x$TAR" = x; then
9805           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9806         fi
9807       else
9808         # Otherwise we believe it is a complete path. Use it as it is.
9809         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9810 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9812 $as_echo_n "checking for TAR... " >&6; }
9813         if test ! -x "$tool_specified"; then
9814           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9815 $as_echo "not found" >&6; }
9816           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9817         fi
9818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9819 $as_echo "$tool_specified" >&6; }
9820       fi
9821     fi
9822   fi
9823 
9824 
9825 
9826   if test "x$TAR" = x; then
9827     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9828   fi
9829 
9830 
9831 
9832 
9833 
9834   # Publish this variable in the help.
9835 
9836 
9837   if test "x$TEE" = x; then
9838     # The variable is not set by user, try to locate tool using the code snippet
9839     for ac_prog in tee
9840 do
9841   # Extract the first word of "$ac_prog", so it can be a program name with args.
9842 set dummy $ac_prog; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_path_TEE+:} false; then :
9846   $as_echo_n "(cached) " >&6
9847 else
9848   case $TEE in
9849   [\\/]* | ?:[\\/]*)
9850   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9851   ;;
9852   *)
9853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9855 do
9856   IFS=$as_save_IFS
9857   test -z "$as_dir" && as_dir=.
9858     for ac_exec_ext in '' $ac_executable_extensions; do
9859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862     break 2
9863   fi
9864 done
9865   done
9866 IFS=$as_save_IFS
9867 
9868   ;;
9869 esac
9870 fi
9871 TEE=$ac_cv_path_TEE
9872 if test -n "$TEE"; then
9873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9874 $as_echo "$TEE" >&6; }
9875 else
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; }
9878 fi
9879 
9880 
9881   test -n "$TEE" && break
9882 done
9883 
9884   else
9885     # The variable is set, but is it from the command line or the environment?
9886 
9887     # Try to remove the string !TEE! from our list.
9888     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9889     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9890       # If it failed, the variable was not from the command line. Ignore it,
9891       # but warn the user (except for BASH, which is always set by the calling BASH).
9892       if test "xTEE" != xBASH; then
9893         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9894 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9895       fi
9896       # Try to locate tool using the code snippet
9897       for ac_prog in tee
9898 do
9899   # Extract the first word of "$ac_prog", so it can be a program name with args.
9900 set dummy $ac_prog; ac_word=$2
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9902 $as_echo_n "checking for $ac_word... " >&6; }
9903 if ${ac_cv_path_TEE+:} false; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   case $TEE in
9907   [\\/]* | ?:[\\/]*)
9908   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9909   ;;
9910   *)
9911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912 for as_dir in $PATH
9913 do
9914   IFS=$as_save_IFS
9915   test -z "$as_dir" && as_dir=.
9916     for ac_exec_ext in '' $ac_executable_extensions; do
9917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920     break 2
9921   fi
9922 done
9923   done
9924 IFS=$as_save_IFS
9925 
9926   ;;
9927 esac
9928 fi
9929 TEE=$ac_cv_path_TEE
9930 if test -n "$TEE"; then
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9932 $as_echo "$TEE" >&6; }
9933 else
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9936 fi
9937 
9938 
9939   test -n "$TEE" && break
9940 done
9941 
9942     else
9943       # If it succeeded, then it was overridden by the user. We will use it
9944       # for the tool.
9945 
9946       # First remove it from the list of overridden variables, so we can test
9947       # for unknown variables in the end.
9948       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9949 
9950       # Check if the provided tool contains a complete path.
9951       tool_specified="$TEE"
9952       tool_basename="${tool_specified##*/}"
9953       if test "x$tool_basename" = "x$tool_specified"; then
9954         # A command without a complete path is provided, search $PATH.
9955         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9956 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9957         # Extract the first word of "$tool_basename", so it can be a program name with args.
9958 set dummy $tool_basename; ac_word=$2
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960 $as_echo_n "checking for $ac_word... " >&6; }
9961 if ${ac_cv_path_TEE+:} false; then :
9962   $as_echo_n "(cached) " >&6
9963 else
9964   case $TEE in
9965   [\\/]* | ?:[\\/]*)
9966   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9967   ;;
9968   *)
9969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 for as_dir in $PATH
9971 do
9972   IFS=$as_save_IFS
9973   test -z "$as_dir" && as_dir=.
9974     for ac_exec_ext in '' $ac_executable_extensions; do
9975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9976     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978     break 2
9979   fi
9980 done
9981   done
9982 IFS=$as_save_IFS
9983 
9984   ;;
9985 esac
9986 fi
9987 TEE=$ac_cv_path_TEE
9988 if test -n "$TEE"; then
9989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9990 $as_echo "$TEE" >&6; }
9991 else
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9994 fi
9995 
9996 
9997         if test "x$TEE" = x; then
9998           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9999         fi
10000       else
10001         # Otherwise we believe it is a complete path. Use it as it is.
10002         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10003 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10005 $as_echo_n "checking for TEE... " >&6; }
10006         if test ! -x "$tool_specified"; then
10007           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10008 $as_echo "not found" >&6; }
10009           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10010         fi
10011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10012 $as_echo "$tool_specified" >&6; }
10013       fi
10014     fi
10015   fi
10016 
10017 
10018 
10019   if test "x$TEE" = x; then
10020     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10021   fi
10022 
10023 
10024 
10025 
10026 
10027   # Publish this variable in the help.
10028 
10029 
10030   if test "x$TOUCH" = x; then
10031     # The variable is not set by user, try to locate tool using the code snippet
10032     for ac_prog in touch
10033 do
10034   # Extract the first word of "$ac_prog", so it can be a program name with args.
10035 set dummy $ac_prog; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if ${ac_cv_path_TOUCH+:} false; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   case $TOUCH in
10042   [\\/]* | ?:[\\/]*)
10043   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10044   ;;
10045   *)
10046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049   IFS=$as_save_IFS
10050   test -z "$as_dir" && as_dir=.
10051     for ac_exec_ext in '' $ac_executable_extensions; do
10052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055     break 2
10056   fi
10057 done
10058   done
10059 IFS=$as_save_IFS
10060 
10061   ;;
10062 esac
10063 fi
10064 TOUCH=$ac_cv_path_TOUCH
10065 if test -n "$TOUCH"; then
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10067 $as_echo "$TOUCH" >&6; }
10068 else
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10071 fi
10072 
10073 
10074   test -n "$TOUCH" && break
10075 done
10076 
10077   else
10078     # The variable is set, but is it from the command line or the environment?
10079 
10080     # Try to remove the string !TOUCH! from our list.
10081     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10082     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10083       # If it failed, the variable was not from the command line. Ignore it,
10084       # but warn the user (except for BASH, which is always set by the calling BASH).
10085       if test "xTOUCH" != xBASH; then
10086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10087 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10088       fi
10089       # Try to locate tool using the code snippet
10090       for ac_prog in touch
10091 do
10092   # Extract the first word of "$ac_prog", so it can be a program name with args.
10093 set dummy $ac_prog; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if ${ac_cv_path_TOUCH+:} false; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   case $TOUCH in
10100   [\\/]* | ?:[\\/]*)
10101   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10102   ;;
10103   *)
10104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10106 do
10107   IFS=$as_save_IFS
10108   test -z "$as_dir" && as_dir=.
10109     for ac_exec_ext in '' $ac_executable_extensions; do
10110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10111     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113     break 2
10114   fi
10115 done
10116   done
10117 IFS=$as_save_IFS
10118 
10119   ;;
10120 esac
10121 fi
10122 TOUCH=$ac_cv_path_TOUCH
10123 if test -n "$TOUCH"; then
10124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10125 $as_echo "$TOUCH" >&6; }
10126 else
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10129 fi
10130 
10131 
10132   test -n "$TOUCH" && break
10133 done
10134 
10135     else
10136       # If it succeeded, then it was overridden by the user. We will use it
10137       # for the tool.
10138 
10139       # First remove it from the list of overridden variables, so we can test
10140       # for unknown variables in the end.
10141       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10142 
10143       # Check if the provided tool contains a complete path.
10144       tool_specified="$TOUCH"
10145       tool_basename="${tool_specified##*/}"
10146       if test "x$tool_basename" = "x$tool_specified"; then
10147         # A command without a complete path is provided, search $PATH.
10148         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10149 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10150         # Extract the first word of "$tool_basename", so it can be a program name with args.
10151 set dummy $tool_basename; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if ${ac_cv_path_TOUCH+:} false; then :
10155   $as_echo_n "(cached) " >&6
10156 else
10157   case $TOUCH in
10158   [\\/]* | ?:[\\/]*)
10159   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10160   ;;
10161   *)
10162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163 for as_dir in $PATH
10164 do
10165   IFS=$as_save_IFS
10166   test -z "$as_dir" && as_dir=.
10167     for ac_exec_ext in '' $ac_executable_extensions; do
10168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10169     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10171     break 2
10172   fi
10173 done
10174   done
10175 IFS=$as_save_IFS
10176 
10177   ;;
10178 esac
10179 fi
10180 TOUCH=$ac_cv_path_TOUCH
10181 if test -n "$TOUCH"; then
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10183 $as_echo "$TOUCH" >&6; }
10184 else
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187 fi
10188 
10189 
10190         if test "x$TOUCH" = x; then
10191           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10192         fi
10193       else
10194         # Otherwise we believe it is a complete path. Use it as it is.
10195         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10196 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10198 $as_echo_n "checking for TOUCH... " >&6; }
10199         if test ! -x "$tool_specified"; then
10200           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10201 $as_echo "not found" >&6; }
10202           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10203         fi
10204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10205 $as_echo "$tool_specified" >&6; }
10206       fi
10207     fi
10208   fi
10209 
10210 
10211 
10212   if test "x$TOUCH" = x; then
10213     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10214   fi
10215 
10216 
10217 
10218 
10219 
10220   # Publish this variable in the help.
10221 
10222 
10223   if test "x$TR" = x; then
10224     # The variable is not set by user, try to locate tool using the code snippet
10225     for ac_prog in tr
10226 do
10227   # Extract the first word of "$ac_prog", so it can be a program name with args.
10228 set dummy $ac_prog; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_path_TR+:} false; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   case $TR in
10235   [\\/]* | ?:[\\/]*)
10236   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10237   ;;
10238   *)
10239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240 for as_dir in $PATH
10241 do
10242   IFS=$as_save_IFS
10243   test -z "$as_dir" && as_dir=.
10244     for ac_exec_ext in '' $ac_executable_extensions; do
10245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10246     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10248     break 2
10249   fi
10250 done
10251   done
10252 IFS=$as_save_IFS
10253 
10254   ;;
10255 esac
10256 fi
10257 TR=$ac_cv_path_TR
10258 if test -n "$TR"; then
10259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10260 $as_echo "$TR" >&6; }
10261 else
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10264 fi
10265 
10266 
10267   test -n "$TR" && break
10268 done
10269 
10270   else
10271     # The variable is set, but is it from the command line or the environment?
10272 
10273     # Try to remove the string !TR! from our list.
10274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10276       # If it failed, the variable was not from the command line. Ignore it,
10277       # but warn the user (except for BASH, which is always set by the calling BASH).
10278       if test "xTR" != xBASH; then
10279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10280 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10281       fi
10282       # Try to locate tool using the code snippet
10283       for ac_prog in tr
10284 do
10285   # Extract the first word of "$ac_prog", so it can be a program name with args.
10286 set dummy $ac_prog; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_path_TR+:} false; then :
10290   $as_echo_n "(cached) " >&6
10291 else
10292   case $TR in
10293   [\\/]* | ?:[\\/]*)
10294   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10295   ;;
10296   *)
10297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10299 do
10300   IFS=$as_save_IFS
10301   test -z "$as_dir" && as_dir=.
10302     for ac_exec_ext in '' $ac_executable_extensions; do
10303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306     break 2
10307   fi
10308 done
10309   done
10310 IFS=$as_save_IFS
10311 
10312   ;;
10313 esac
10314 fi
10315 TR=$ac_cv_path_TR
10316 if test -n "$TR"; then
10317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10318 $as_echo "$TR" >&6; }
10319 else
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 fi
10323 
10324 
10325   test -n "$TR" && break
10326 done
10327 
10328     else
10329       # If it succeeded, then it was overridden by the user. We will use it
10330       # for the tool.
10331 
10332       # First remove it from the list of overridden variables, so we can test
10333       # for unknown variables in the end.
10334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10335 
10336       # Check if the provided tool contains a complete path.
10337       tool_specified="$TR"
10338       tool_basename="${tool_specified##*/}"
10339       if test "x$tool_basename" = "x$tool_specified"; then
10340         # A command without a complete path is provided, search $PATH.
10341         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10342 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10343         # Extract the first word of "$tool_basename", so it can be a program name with args.
10344 set dummy $tool_basename; ac_word=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if ${ac_cv_path_TR+:} false; then :
10348   $as_echo_n "(cached) " >&6
10349 else
10350   case $TR in
10351   [\\/]* | ?:[\\/]*)
10352   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10353   ;;
10354   *)
10355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358   IFS=$as_save_IFS
10359   test -z "$as_dir" && as_dir=.
10360     for ac_exec_ext in '' $ac_executable_extensions; do
10361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364     break 2
10365   fi
10366 done
10367   done
10368 IFS=$as_save_IFS
10369 
10370   ;;
10371 esac
10372 fi
10373 TR=$ac_cv_path_TR
10374 if test -n "$TR"; then
10375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10376 $as_echo "$TR" >&6; }
10377 else
10378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10380 fi
10381 
10382 
10383         if test "x$TR" = x; then
10384           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10385         fi
10386       else
10387         # Otherwise we believe it is a complete path. Use it as it is.
10388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10389 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10391 $as_echo_n "checking for TR... " >&6; }
10392         if test ! -x "$tool_specified"; then
10393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10394 $as_echo "not found" >&6; }
10395           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10396         fi
10397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10398 $as_echo "$tool_specified" >&6; }
10399       fi
10400     fi
10401   fi
10402 
10403 
10404 
10405   if test "x$TR" = x; then
10406     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10407   fi
10408 
10409 
10410 
10411 
10412 
10413   # Publish this variable in the help.
10414 
10415 
10416   if test "x$UNAME" = x; then
10417     # The variable is not set by user, try to locate tool using the code snippet
10418     for ac_prog in uname
10419 do
10420   # Extract the first word of "$ac_prog", so it can be a program name with args.
10421 set dummy $ac_prog; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if ${ac_cv_path_UNAME+:} false; then :
10425   $as_echo_n "(cached) " >&6
10426 else
10427   case $UNAME in
10428   [\\/]* | ?:[\\/]*)
10429   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10430   ;;
10431   *)
10432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433 for as_dir in $PATH
10434 do
10435   IFS=$as_save_IFS
10436   test -z "$as_dir" && as_dir=.
10437     for ac_exec_ext in '' $ac_executable_extensions; do
10438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10439     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10441     break 2
10442   fi
10443 done
10444   done
10445 IFS=$as_save_IFS
10446 
10447   ;;
10448 esac
10449 fi
10450 UNAME=$ac_cv_path_UNAME
10451 if test -n "$UNAME"; then
10452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10453 $as_echo "$UNAME" >&6; }
10454 else
10455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10457 fi
10458 
10459 
10460   test -n "$UNAME" && break
10461 done
10462 
10463   else
10464     # The variable is set, but is it from the command line or the environment?
10465 
10466     # Try to remove the string !UNAME! from our list.
10467     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10468     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10469       # If it failed, the variable was not from the command line. Ignore it,
10470       # but warn the user (except for BASH, which is always set by the calling BASH).
10471       if test "xUNAME" != xBASH; then
10472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10473 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10474       fi
10475       # Try to locate tool using the code snippet
10476       for ac_prog in uname
10477 do
10478   # Extract the first word of "$ac_prog", so it can be a program name with args.
10479 set dummy $ac_prog; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_path_UNAME+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   case $UNAME in
10486   [\\/]* | ?:[\\/]*)
10487   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10488   ;;
10489   *)
10490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10492 do
10493   IFS=$as_save_IFS
10494   test -z "$as_dir" && as_dir=.
10495     for ac_exec_ext in '' $ac_executable_extensions; do
10496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10497     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499     break 2
10500   fi
10501 done
10502   done
10503 IFS=$as_save_IFS
10504 
10505   ;;
10506 esac
10507 fi
10508 UNAME=$ac_cv_path_UNAME
10509 if test -n "$UNAME"; then
10510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10511 $as_echo "$UNAME" >&6; }
10512 else
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10515 fi
10516 
10517 
10518   test -n "$UNAME" && break
10519 done
10520 
10521     else
10522       # If it succeeded, then it was overridden by the user. We will use it
10523       # for the tool.
10524 
10525       # First remove it from the list of overridden variables, so we can test
10526       # for unknown variables in the end.
10527       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10528 
10529       # Check if the provided tool contains a complete path.
10530       tool_specified="$UNAME"
10531       tool_basename="${tool_specified##*/}"
10532       if test "x$tool_basename" = "x$tool_specified"; then
10533         # A command without a complete path is provided, search $PATH.
10534         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10535 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10536         # Extract the first word of "$tool_basename", so it can be a program name with args.
10537 set dummy $tool_basename; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_path_UNAME+:} false; then :
10541   $as_echo_n "(cached) " >&6
10542 else
10543   case $UNAME in
10544   [\\/]* | ?:[\\/]*)
10545   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10546   ;;
10547   *)
10548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10550 do
10551   IFS=$as_save_IFS
10552   test -z "$as_dir" && as_dir=.
10553     for ac_exec_ext in '' $ac_executable_extensions; do
10554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557     break 2
10558   fi
10559 done
10560   done
10561 IFS=$as_save_IFS
10562 
10563   ;;
10564 esac
10565 fi
10566 UNAME=$ac_cv_path_UNAME
10567 if test -n "$UNAME"; then
10568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10569 $as_echo "$UNAME" >&6; }
10570 else
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10573 fi
10574 
10575 
10576         if test "x$UNAME" = x; then
10577           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10578         fi
10579       else
10580         # Otherwise we believe it is a complete path. Use it as it is.
10581         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10582 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10584 $as_echo_n "checking for UNAME... " >&6; }
10585         if test ! -x "$tool_specified"; then
10586           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10587 $as_echo "not found" >&6; }
10588           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10589         fi
10590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10591 $as_echo "$tool_specified" >&6; }
10592       fi
10593     fi
10594   fi
10595 
10596 
10597 
10598   if test "x$UNAME" = x; then
10599     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10600   fi
10601 
10602 
10603 
10604 
10605 
10606   # Publish this variable in the help.
10607 
10608 
10609   if test "x$UNIQ" = x; then
10610     # The variable is not set by user, try to locate tool using the code snippet
10611     for ac_prog in uniq
10612 do
10613   # Extract the first word of "$ac_prog", so it can be a program name with args.
10614 set dummy $ac_prog; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_path_UNIQ+:} false; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   case $UNIQ in
10621   [\\/]* | ?:[\\/]*)
10622   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10623   ;;
10624   *)
10625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10627 do
10628   IFS=$as_save_IFS
10629   test -z "$as_dir" && as_dir=.
10630     for ac_exec_ext in '' $ac_executable_extensions; do
10631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10632     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634     break 2
10635   fi
10636 done
10637   done
10638 IFS=$as_save_IFS
10639 
10640   ;;
10641 esac
10642 fi
10643 UNIQ=$ac_cv_path_UNIQ
10644 if test -n "$UNIQ"; then
10645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10646 $as_echo "$UNIQ" >&6; }
10647 else
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 fi
10651 
10652 
10653   test -n "$UNIQ" && break
10654 done
10655 
10656   else
10657     # The variable is set, but is it from the command line or the environment?
10658 
10659     # Try to remove the string !UNIQ! from our list.
10660     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10661     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10662       # If it failed, the variable was not from the command line. Ignore it,
10663       # but warn the user (except for BASH, which is always set by the calling BASH).
10664       if test "xUNIQ" != xBASH; then
10665         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10666 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10667       fi
10668       # Try to locate tool using the code snippet
10669       for ac_prog in uniq
10670 do
10671   # Extract the first word of "$ac_prog", so it can be a program name with args.
10672 set dummy $ac_prog; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_path_UNIQ+:} false; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   case $UNIQ in
10679   [\\/]* | ?:[\\/]*)
10680   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10681   ;;
10682   *)
10683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686   IFS=$as_save_IFS
10687   test -z "$as_dir" && as_dir=.
10688     for ac_exec_ext in '' $ac_executable_extensions; do
10689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692     break 2
10693   fi
10694 done
10695   done
10696 IFS=$as_save_IFS
10697 
10698   ;;
10699 esac
10700 fi
10701 UNIQ=$ac_cv_path_UNIQ
10702 if test -n "$UNIQ"; then
10703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10704 $as_echo "$UNIQ" >&6; }
10705 else
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10708 fi
10709 
10710 
10711   test -n "$UNIQ" && break
10712 done
10713 
10714     else
10715       # If it succeeded, then it was overridden by the user. We will use it
10716       # for the tool.
10717 
10718       # First remove it from the list of overridden variables, so we can test
10719       # for unknown variables in the end.
10720       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10721 
10722       # Check if the provided tool contains a complete path.
10723       tool_specified="$UNIQ"
10724       tool_basename="${tool_specified##*/}"
10725       if test "x$tool_basename" = "x$tool_specified"; then
10726         # A command without a complete path is provided, search $PATH.
10727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10728 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10729         # Extract the first word of "$tool_basename", so it can be a program name with args.
10730 set dummy $tool_basename; ac_word=$2
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 $as_echo_n "checking for $ac_word... " >&6; }
10733 if ${ac_cv_path_UNIQ+:} false; then :
10734   $as_echo_n "(cached) " >&6
10735 else
10736   case $UNIQ in
10737   [\\/]* | ?:[\\/]*)
10738   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10739   ;;
10740   *)
10741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10743 do
10744   IFS=$as_save_IFS
10745   test -z "$as_dir" && as_dir=.
10746     for ac_exec_ext in '' $ac_executable_extensions; do
10747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10748     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750     break 2
10751   fi
10752 done
10753   done
10754 IFS=$as_save_IFS
10755 
10756   ;;
10757 esac
10758 fi
10759 UNIQ=$ac_cv_path_UNIQ
10760 if test -n "$UNIQ"; then
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10762 $as_echo "$UNIQ" >&6; }
10763 else
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10766 fi
10767 
10768 
10769         if test "x$UNIQ" = x; then
10770           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10771         fi
10772       else
10773         # Otherwise we believe it is a complete path. Use it as it is.
10774         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10775 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10777 $as_echo_n "checking for UNIQ... " >&6; }
10778         if test ! -x "$tool_specified"; then
10779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10780 $as_echo "not found" >&6; }
10781           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10782         fi
10783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10784 $as_echo "$tool_specified" >&6; }
10785       fi
10786     fi
10787   fi
10788 
10789 
10790 
10791   if test "x$UNIQ" = x; then
10792     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10793   fi
10794 
10795 
10796 
10797 
10798 
10799   # Publish this variable in the help.
10800 
10801 
10802   if test "x$WC" = x; then
10803     # The variable is not set by user, try to locate tool using the code snippet
10804     for ac_prog in wc
10805 do
10806   # Extract the first word of "$ac_prog", so it can be a program name with args.
10807 set dummy $ac_prog; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809 $as_echo_n "checking for $ac_word... " >&6; }
10810 if ${ac_cv_path_WC+:} false; then :
10811   $as_echo_n "(cached) " >&6
10812 else
10813   case $WC in
10814   [\\/]* | ?:[\\/]*)
10815   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10816   ;;
10817   *)
10818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10820 do
10821   IFS=$as_save_IFS
10822   test -z "$as_dir" && as_dir=.
10823     for ac_exec_ext in '' $ac_executable_extensions; do
10824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10825     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827     break 2
10828   fi
10829 done
10830   done
10831 IFS=$as_save_IFS
10832 
10833   ;;
10834 esac
10835 fi
10836 WC=$ac_cv_path_WC
10837 if test -n "$WC"; then
10838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10839 $as_echo "$WC" >&6; }
10840 else
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10843 fi
10844 
10845 
10846   test -n "$WC" && break
10847 done
10848 
10849   else
10850     # The variable is set, but is it from the command line or the environment?
10851 
10852     # Try to remove the string !WC! from our list.
10853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10855       # If it failed, the variable was not from the command line. Ignore it,
10856       # but warn the user (except for BASH, which is always set by the calling BASH).
10857       if test "xWC" != xBASH; then
10858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10859 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10860       fi
10861       # Try to locate tool using the code snippet
10862       for ac_prog in wc
10863 do
10864   # Extract the first word of "$ac_prog", so it can be a program name with args.
10865 set dummy $ac_prog; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if ${ac_cv_path_WC+:} false; then :
10869   $as_echo_n "(cached) " >&6
10870 else
10871   case $WC in
10872   [\\/]* | ?:[\\/]*)
10873   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10874   ;;
10875   *)
10876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877 for as_dir in $PATH
10878 do
10879   IFS=$as_save_IFS
10880   test -z "$as_dir" && as_dir=.
10881     for ac_exec_ext in '' $ac_executable_extensions; do
10882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10883     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885     break 2
10886   fi
10887 done
10888   done
10889 IFS=$as_save_IFS
10890 
10891   ;;
10892 esac
10893 fi
10894 WC=$ac_cv_path_WC
10895 if test -n "$WC"; then
10896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10897 $as_echo "$WC" >&6; }
10898 else
10899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10901 fi
10902 
10903 
10904   test -n "$WC" && break
10905 done
10906 
10907     else
10908       # If it succeeded, then it was overridden by the user. We will use it
10909       # for the tool.
10910 
10911       # First remove it from the list of overridden variables, so we can test
10912       # for unknown variables in the end.
10913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10914 
10915       # Check if the provided tool contains a complete path.
10916       tool_specified="$WC"
10917       tool_basename="${tool_specified##*/}"
10918       if test "x$tool_basename" = "x$tool_specified"; then
10919         # A command without a complete path is provided, search $PATH.
10920         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10921 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10922         # Extract the first word of "$tool_basename", so it can be a program name with args.
10923 set dummy $tool_basename; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_path_WC+:} false; then :
10927   $as_echo_n "(cached) " >&6
10928 else
10929   case $WC in
10930   [\\/]* | ?:[\\/]*)
10931   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10932   ;;
10933   *)
10934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10935 for as_dir in $PATH
10936 do
10937   IFS=$as_save_IFS
10938   test -z "$as_dir" && as_dir=.
10939     for ac_exec_ext in '' $ac_executable_extensions; do
10940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10941     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10943     break 2
10944   fi
10945 done
10946   done
10947 IFS=$as_save_IFS
10948 
10949   ;;
10950 esac
10951 fi
10952 WC=$ac_cv_path_WC
10953 if test -n "$WC"; then
10954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10955 $as_echo "$WC" >&6; }
10956 else
10957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10959 fi
10960 
10961 
10962         if test "x$WC" = x; then
10963           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10964         fi
10965       else
10966         # Otherwise we believe it is a complete path. Use it as it is.
10967         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10968 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10970 $as_echo_n "checking for WC... " >&6; }
10971         if test ! -x "$tool_specified"; then
10972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10973 $as_echo "not found" >&6; }
10974           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10975         fi
10976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10977 $as_echo "$tool_specified" >&6; }
10978       fi
10979     fi
10980   fi
10981 
10982 
10983 
10984   if test "x$WC" = x; then
10985     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10986   fi
10987 
10988 
10989 
10990 
10991 
10992   # Publish this variable in the help.
10993 
10994 
10995   if test "x$WHICH" = x; then
10996     # The variable is not set by user, try to locate tool using the code snippet
10997     for ac_prog in which
10998 do
10999   # Extract the first word of "$ac_prog", so it can be a program name with args.
11000 set dummy $ac_prog; ac_word=$2
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002 $as_echo_n "checking for $ac_word... " >&6; }
11003 if ${ac_cv_path_WHICH+:} false; then :
11004   $as_echo_n "(cached) " >&6
11005 else
11006   case $WHICH in
11007   [\\/]* | ?:[\\/]*)
11008   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11009   ;;
11010   *)
11011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in $PATH
11013 do
11014   IFS=$as_save_IFS
11015   test -z "$as_dir" && as_dir=.
11016     for ac_exec_ext in '' $ac_executable_extensions; do
11017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11018     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11020     break 2
11021   fi
11022 done
11023   done
11024 IFS=$as_save_IFS
11025 
11026   ;;
11027 esac
11028 fi
11029 WHICH=$ac_cv_path_WHICH
11030 if test -n "$WHICH"; then
11031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11032 $as_echo "$WHICH" >&6; }
11033 else
11034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11036 fi
11037 
11038 
11039   test -n "$WHICH" && break
11040 done
11041 
11042   else
11043     # The variable is set, but is it from the command line or the environment?
11044 
11045     # Try to remove the string !WHICH! from our list.
11046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11048       # If it failed, the variable was not from the command line. Ignore it,
11049       # but warn the user (except for BASH, which is always set by the calling BASH).
11050       if test "xWHICH" != xBASH; then
11051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11052 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11053       fi
11054       # Try to locate tool using the code snippet
11055       for ac_prog in which
11056 do
11057   # Extract the first word of "$ac_prog", so it can be a program name with args.
11058 set dummy $ac_prog; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_path_WHICH+:} false; then :
11062   $as_echo_n "(cached) " >&6
11063 else
11064   case $WHICH in
11065   [\\/]* | ?:[\\/]*)
11066   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11067   ;;
11068   *)
11069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11070 for as_dir in $PATH
11071 do
11072   IFS=$as_save_IFS
11073   test -z "$as_dir" && as_dir=.
11074     for ac_exec_ext in '' $ac_executable_extensions; do
11075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11076     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11078     break 2
11079   fi
11080 done
11081   done
11082 IFS=$as_save_IFS
11083 
11084   ;;
11085 esac
11086 fi
11087 WHICH=$ac_cv_path_WHICH
11088 if test -n "$WHICH"; then
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11090 $as_echo "$WHICH" >&6; }
11091 else
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; }
11094 fi
11095 
11096 
11097   test -n "$WHICH" && break
11098 done
11099 
11100     else
11101       # If it succeeded, then it was overridden by the user. We will use it
11102       # for the tool.
11103 
11104       # First remove it from the list of overridden variables, so we can test
11105       # for unknown variables in the end.
11106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11107 
11108       # Check if the provided tool contains a complete path.
11109       tool_specified="$WHICH"
11110       tool_basename="${tool_specified##*/}"
11111       if test "x$tool_basename" = "x$tool_specified"; then
11112         # A command without a complete path is provided, search $PATH.
11113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11114 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11115         # Extract the first word of "$tool_basename", so it can be a program name with args.
11116 set dummy $tool_basename; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118 $as_echo_n "checking for $ac_word... " >&6; }
11119 if ${ac_cv_path_WHICH+:} false; then :
11120   $as_echo_n "(cached) " >&6
11121 else
11122   case $WHICH in
11123   [\\/]* | ?:[\\/]*)
11124   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11125   ;;
11126   *)
11127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11129 do
11130   IFS=$as_save_IFS
11131   test -z "$as_dir" && as_dir=.
11132     for ac_exec_ext in '' $ac_executable_extensions; do
11133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11134     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136     break 2
11137   fi
11138 done
11139   done
11140 IFS=$as_save_IFS
11141 
11142   ;;
11143 esac
11144 fi
11145 WHICH=$ac_cv_path_WHICH
11146 if test -n "$WHICH"; then
11147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11148 $as_echo "$WHICH" >&6; }
11149 else
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152 fi
11153 
11154 
11155         if test "x$WHICH" = x; then
11156           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11157         fi
11158       else
11159         # Otherwise we believe it is a complete path. Use it as it is.
11160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11161 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11163 $as_echo_n "checking for WHICH... " >&6; }
11164         if test ! -x "$tool_specified"; then
11165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11166 $as_echo "not found" >&6; }
11167           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11168         fi
11169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11170 $as_echo "$tool_specified" >&6; }
11171       fi
11172     fi
11173   fi
11174 
11175 
11176 
11177   if test "x$WHICH" = x; then
11178     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11179   fi
11180 
11181 
11182 
11183 
11184 
11185   # Publish this variable in the help.
11186 
11187 
11188   if test "x$XARGS" = x; then
11189     # The variable is not set by user, try to locate tool using the code snippet
11190     for ac_prog in xargs
11191 do
11192   # Extract the first word of "$ac_prog", so it can be a program name with args.
11193 set dummy $ac_prog; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if ${ac_cv_path_XARGS+:} false; then :
11197   $as_echo_n "(cached) " >&6
11198 else
11199   case $XARGS in
11200   [\\/]* | ?:[\\/]*)
11201   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11202   ;;
11203   *)
11204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11206 do
11207   IFS=$as_save_IFS
11208   test -z "$as_dir" && as_dir=.
11209     for ac_exec_ext in '' $ac_executable_extensions; do
11210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11211     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213     break 2
11214   fi
11215 done
11216   done
11217 IFS=$as_save_IFS
11218 
11219   ;;
11220 esac
11221 fi
11222 XARGS=$ac_cv_path_XARGS
11223 if test -n "$XARGS"; then
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11225 $as_echo "$XARGS" >&6; }
11226 else
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 fi
11230 
11231 
11232   test -n "$XARGS" && break
11233 done
11234 
11235   else
11236     # The variable is set, but is it from the command line or the environment?
11237 
11238     # Try to remove the string !XARGS! from our list.
11239     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11240     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11241       # If it failed, the variable was not from the command line. Ignore it,
11242       # but warn the user (except for BASH, which is always set by the calling BASH).
11243       if test "xXARGS" != xBASH; then
11244         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11245 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11246       fi
11247       # Try to locate tool using the code snippet
11248       for ac_prog in xargs
11249 do
11250   # Extract the first word of "$ac_prog", so it can be a program name with args.
11251 set dummy $ac_prog; ac_word=$2
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253 $as_echo_n "checking for $ac_word... " >&6; }
11254 if ${ac_cv_path_XARGS+:} false; then :
11255   $as_echo_n "(cached) " >&6
11256 else
11257   case $XARGS in
11258   [\\/]* | ?:[\\/]*)
11259   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11260   ;;
11261   *)
11262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11264 do
11265   IFS=$as_save_IFS
11266   test -z "$as_dir" && as_dir=.
11267     for ac_exec_ext in '' $ac_executable_extensions; do
11268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271     break 2
11272   fi
11273 done
11274   done
11275 IFS=$as_save_IFS
11276 
11277   ;;
11278 esac
11279 fi
11280 XARGS=$ac_cv_path_XARGS
11281 if test -n "$XARGS"; then
11282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11283 $as_echo "$XARGS" >&6; }
11284 else
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286 $as_echo "no" >&6; }
11287 fi
11288 
11289 
11290   test -n "$XARGS" && break
11291 done
11292 
11293     else
11294       # If it succeeded, then it was overridden by the user. We will use it
11295       # for the tool.
11296 
11297       # First remove it from the list of overridden variables, so we can test
11298       # for unknown variables in the end.
11299       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11300 
11301       # Check if the provided tool contains a complete path.
11302       tool_specified="$XARGS"
11303       tool_basename="${tool_specified##*/}"
11304       if test "x$tool_basename" = "x$tool_specified"; then
11305         # A command without a complete path is provided, search $PATH.
11306         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11307 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11308         # Extract the first word of "$tool_basename", so it can be a program name with args.
11309 set dummy $tool_basename; ac_word=$2
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311 $as_echo_n "checking for $ac_word... " >&6; }
11312 if ${ac_cv_path_XARGS+:} false; then :
11313   $as_echo_n "(cached) " >&6
11314 else
11315   case $XARGS in
11316   [\\/]* | ?:[\\/]*)
11317   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11318   ;;
11319   *)
11320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11322 do
11323   IFS=$as_save_IFS
11324   test -z "$as_dir" && as_dir=.
11325     for ac_exec_ext in '' $ac_executable_extensions; do
11326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11327     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329     break 2
11330   fi
11331 done
11332   done
11333 IFS=$as_save_IFS
11334 
11335   ;;
11336 esac
11337 fi
11338 XARGS=$ac_cv_path_XARGS
11339 if test -n "$XARGS"; then
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11341 $as_echo "$XARGS" >&6; }
11342 else
11343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 fi
11346 
11347 
11348         if test "x$XARGS" = x; then
11349           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11350         fi
11351       else
11352         # Otherwise we believe it is a complete path. Use it as it is.
11353         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11354 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11356 $as_echo_n "checking for XARGS... " >&6; }
11357         if test ! -x "$tool_specified"; then
11358           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11359 $as_echo "not found" >&6; }
11360           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11361         fi
11362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11363 $as_echo "$tool_specified" >&6; }
11364       fi
11365     fi
11366   fi
11367 
11368 
11369 
11370   if test "x$XARGS" = x; then
11371     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11372   fi
11373 
11374 
11375 
11376   # Then required tools that require some special treatment.
11377 
11378 
11379   # Publish this variable in the help.
11380 
11381 
11382   if test "x$AWK" = x; then
11383     # The variable is not set by user, try to locate tool using the code snippet
11384     for ac_prog in gawk mawk nawk awk
11385 do
11386   # Extract the first word of "$ac_prog", so it can be a program name with args.
11387 set dummy $ac_prog; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if ${ac_cv_prog_AWK+:} false; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393   if test -n "$AWK"; then
11394   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11395 else
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $PATH
11398 do
11399   IFS=$as_save_IFS
11400   test -z "$as_dir" && as_dir=.
11401     for ac_exec_ext in '' $ac_executable_extensions; do
11402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403     ac_cv_prog_AWK="$ac_prog"
11404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11405     break 2
11406   fi
11407 done
11408   done
11409 IFS=$as_save_IFS
11410 
11411 fi
11412 fi
11413 AWK=$ac_cv_prog_AWK
11414 if test -n "$AWK"; then
11415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11416 $as_echo "$AWK" >&6; }
11417 else
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419 $as_echo "no" >&6; }
11420 fi
11421 
11422 
11423   test -n "$AWK" && break
11424 done
11425 
11426   else
11427     # The variable is set, but is it from the command line or the environment?
11428 
11429     # Try to remove the string !AWK! from our list.
11430     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11431     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11432       # If it failed, the variable was not from the command line. Ignore it,
11433       # but warn the user (except for BASH, which is always set by the calling BASH).
11434       if test "xAWK" != xBASH; then
11435         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11436 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11437       fi
11438       # Try to locate tool using the code snippet
11439       for ac_prog in gawk mawk nawk awk
11440 do
11441   # Extract the first word of "$ac_prog", so it can be a program name with args.
11442 set dummy $ac_prog; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if ${ac_cv_prog_AWK+:} false; then :
11446   $as_echo_n "(cached) " >&6
11447 else
11448   if test -n "$AWK"; then
11449   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11450 else
11451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11452 for as_dir in $PATH
11453 do
11454   IFS=$as_save_IFS
11455   test -z "$as_dir" && as_dir=.
11456     for ac_exec_ext in '' $ac_executable_extensions; do
11457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11458     ac_cv_prog_AWK="$ac_prog"
11459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460     break 2
11461   fi
11462 done
11463   done
11464 IFS=$as_save_IFS
11465 
11466 fi
11467 fi
11468 AWK=$ac_cv_prog_AWK
11469 if test -n "$AWK"; then
11470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11471 $as_echo "$AWK" >&6; }
11472 else
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475 fi
11476 
11477 
11478   test -n "$AWK" && break
11479 done
11480 
11481     else
11482       # If it succeeded, then it was overridden by the user. We will use it
11483       # for the tool.
11484 
11485       # First remove it from the list of overridden variables, so we can test
11486       # for unknown variables in the end.
11487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11488 
11489       # Check if the provided tool contains a complete path.
11490       tool_specified="$AWK"
11491       tool_basename="${tool_specified##*/}"
11492       if test "x$tool_basename" = "x$tool_specified"; then
11493         # A command without a complete path is provided, search $PATH.
11494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11495 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11496         # Extract the first word of "$tool_basename", so it can be a program name with args.
11497 set dummy $tool_basename; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if ${ac_cv_path_AWK+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   case $AWK in
11504   [\\/]* | ?:[\\/]*)
11505   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11506   ;;
11507   *)
11508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11510 do
11511   IFS=$as_save_IFS
11512   test -z "$as_dir" && as_dir=.
11513     for ac_exec_ext in '' $ac_executable_extensions; do
11514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11515     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517     break 2
11518   fi
11519 done
11520   done
11521 IFS=$as_save_IFS
11522 
11523   ;;
11524 esac
11525 fi
11526 AWK=$ac_cv_path_AWK
11527 if test -n "$AWK"; then
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11529 $as_echo "$AWK" >&6; }
11530 else
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11533 fi
11534 
11535 
11536         if test "x$AWK" = x; then
11537           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11538         fi
11539       else
11540         # Otherwise we believe it is a complete path. Use it as it is.
11541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11542 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11544 $as_echo_n "checking for AWK... " >&6; }
11545         if test ! -x "$tool_specified"; then
11546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11547 $as_echo "not found" >&6; }
11548           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11549         fi
11550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11551 $as_echo "$tool_specified" >&6; }
11552       fi
11553     fi
11554   fi
11555 
11556 
11557   if test "x$AWK" = x; then
11558     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11559   fi
11560 
11561 
11562 
11563 
11564   # Publish this variable in the help.
11565 
11566 
11567   if test "x$GREP" = x; then
11568     # The variable is not set by user, try to locate tool using the code snippet
11569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11570 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11571 if ${ac_cv_path_GREP+:} false; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574   if test -z "$GREP"; then
11575   ac_path_GREP_found=false
11576   # Loop through the user's path and test for each of PROGNAME-LIST
11577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11579 do
11580   IFS=$as_save_IFS
11581   test -z "$as_dir" && as_dir=.
11582     for ac_prog in grep ggrep; do
11583     for ac_exec_ext in '' $ac_executable_extensions; do
11584       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11585       as_fn_executable_p "$ac_path_GREP" || continue
11586 # Check for GNU ac_path_GREP and select it if it is found.
11587   # Check for GNU $ac_path_GREP
11588 case `"$ac_path_GREP" --version 2>&1` in
11589 *GNU*)
11590   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11591 *)
11592   ac_count=0
11593   $as_echo_n 0123456789 >"conftest.in"
11594   while :
11595   do
11596     cat "conftest.in" "conftest.in" >"conftest.tmp"
11597     mv "conftest.tmp" "conftest.in"
11598     cp "conftest.in" "conftest.nl"
11599     $as_echo 'GREP' >> "conftest.nl"
11600     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11601     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11602     as_fn_arith $ac_count + 1 && ac_count=$as_val
11603     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11604       # Best one so far, save it but keep looking for a better one
11605       ac_cv_path_GREP="$ac_path_GREP"
11606       ac_path_GREP_max=$ac_count
11607     fi
11608     # 10*(2^10) chars as input seems more than enough
11609     test $ac_count -gt 10 && break
11610   done
11611   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11612 esac
11613 
11614       $ac_path_GREP_found && break 3
11615     done
11616   done
11617   done
11618 IFS=$as_save_IFS
11619   if test -z "$ac_cv_path_GREP"; then
11620     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11621   fi
11622 else
11623   ac_cv_path_GREP=$GREP
11624 fi
11625 
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11628 $as_echo "$ac_cv_path_GREP" >&6; }
11629  GREP="$ac_cv_path_GREP"
11630 
11631 
11632   else
11633     # The variable is set, but is it from the command line or the environment?
11634 
11635     # Try to remove the string !GREP! from our list.
11636     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11637     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11638       # If it failed, the variable was not from the command line. Ignore it,
11639       # but warn the user (except for BASH, which is always set by the calling BASH).
11640       if test "xGREP" != xBASH; then
11641         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11642 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11643       fi
11644       # Try to locate tool using the code snippet
11645       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11646 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11647 if ${ac_cv_path_GREP+:} false; then :
11648   $as_echo_n "(cached) " >&6
11649 else
11650   if test -z "$GREP"; then
11651   ac_path_GREP_found=false
11652   # Loop through the user's path and test for each of PROGNAME-LIST
11653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11655 do
11656   IFS=$as_save_IFS
11657   test -z "$as_dir" && as_dir=.
11658     for ac_prog in grep ggrep; do
11659     for ac_exec_ext in '' $ac_executable_extensions; do
11660       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11661       as_fn_executable_p "$ac_path_GREP" || continue
11662 # Check for GNU ac_path_GREP and select it if it is found.
11663   # Check for GNU $ac_path_GREP
11664 case `"$ac_path_GREP" --version 2>&1` in
11665 *GNU*)
11666   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11667 *)
11668   ac_count=0
11669   $as_echo_n 0123456789 >"conftest.in"
11670   while :
11671   do
11672     cat "conftest.in" "conftest.in" >"conftest.tmp"
11673     mv "conftest.tmp" "conftest.in"
11674     cp "conftest.in" "conftest.nl"
11675     $as_echo 'GREP' >> "conftest.nl"
11676     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11677     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11678     as_fn_arith $ac_count + 1 && ac_count=$as_val
11679     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11680       # Best one so far, save it but keep looking for a better one
11681       ac_cv_path_GREP="$ac_path_GREP"
11682       ac_path_GREP_max=$ac_count
11683     fi
11684     # 10*(2^10) chars as input seems more than enough
11685     test $ac_count -gt 10 && break
11686   done
11687   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11688 esac
11689 
11690       $ac_path_GREP_found && break 3
11691     done
11692   done
11693   done
11694 IFS=$as_save_IFS
11695   if test -z "$ac_cv_path_GREP"; then
11696     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11697   fi
11698 else
11699   ac_cv_path_GREP=$GREP
11700 fi
11701 
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11704 $as_echo "$ac_cv_path_GREP" >&6; }
11705  GREP="$ac_cv_path_GREP"
11706 
11707 
11708     else
11709       # If it succeeded, then it was overridden by the user. We will use it
11710       # for the tool.
11711 
11712       # First remove it from the list of overridden variables, so we can test
11713       # for unknown variables in the end.
11714       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11715 
11716       # Check if the provided tool contains a complete path.
11717       tool_specified="$GREP"
11718       tool_basename="${tool_specified##*/}"
11719       if test "x$tool_basename" = "x$tool_specified"; then
11720         # A command without a complete path is provided, search $PATH.
11721         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11722 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11723         # Extract the first word of "$tool_basename", so it can be a program name with args.
11724 set dummy $tool_basename; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if ${ac_cv_path_GREP+:} false; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   case $GREP in
11731   [\\/]* | ?:[\\/]*)
11732   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11733   ;;
11734   *)
11735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11737 do
11738   IFS=$as_save_IFS
11739   test -z "$as_dir" && as_dir=.
11740     for ac_exec_ext in '' $ac_executable_extensions; do
11741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11742     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744     break 2
11745   fi
11746 done
11747   done
11748 IFS=$as_save_IFS
11749 
11750   ;;
11751 esac
11752 fi
11753 GREP=$ac_cv_path_GREP
11754 if test -n "$GREP"; then
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11756 $as_echo "$GREP" >&6; }
11757 else
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760 fi
11761 
11762 
11763         if test "x$GREP" = x; then
11764           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11765         fi
11766       else
11767         # Otherwise we believe it is a complete path. Use it as it is.
11768         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11769 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11771 $as_echo_n "checking for GREP... " >&6; }
11772         if test ! -x "$tool_specified"; then
11773           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11774 $as_echo "not found" >&6; }
11775           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11776         fi
11777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11778 $as_echo "$tool_specified" >&6; }
11779       fi
11780     fi
11781   fi
11782 
11783 
11784   if test "x$GREP" = x; then
11785     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11786   fi
11787 
11788 
11789 
11790 
11791   # Publish this variable in the help.
11792 
11793 
11794   if test "x$EGREP" = x; then
11795     # The variable is not set by user, try to locate tool using the code snippet
11796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11797 $as_echo_n "checking for egrep... " >&6; }
11798 if ${ac_cv_path_EGREP+:} false; then :
11799   $as_echo_n "(cached) " >&6
11800 else
11801   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11802    then ac_cv_path_EGREP="$GREP -E"
11803    else
11804      if test -z "$EGREP"; then
11805   ac_path_EGREP_found=false
11806   # Loop through the user's path and test for each of PROGNAME-LIST
11807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11809 do
11810   IFS=$as_save_IFS
11811   test -z "$as_dir" && as_dir=.
11812     for ac_prog in egrep; do
11813     for ac_exec_ext in '' $ac_executable_extensions; do
11814       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11815       as_fn_executable_p "$ac_path_EGREP" || continue
11816 # Check for GNU ac_path_EGREP and select it if it is found.
11817   # Check for GNU $ac_path_EGREP
11818 case `"$ac_path_EGREP" --version 2>&1` in
11819 *GNU*)
11820   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11821 *)
11822   ac_count=0
11823   $as_echo_n 0123456789 >"conftest.in"
11824   while :
11825   do
11826     cat "conftest.in" "conftest.in" >"conftest.tmp"
11827     mv "conftest.tmp" "conftest.in"
11828     cp "conftest.in" "conftest.nl"
11829     $as_echo 'EGREP' >> "conftest.nl"
11830     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11831     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11832     as_fn_arith $ac_count + 1 && ac_count=$as_val
11833     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11834       # Best one so far, save it but keep looking for a better one
11835       ac_cv_path_EGREP="$ac_path_EGREP"
11836       ac_path_EGREP_max=$ac_count
11837     fi
11838     # 10*(2^10) chars as input seems more than enough
11839     test $ac_count -gt 10 && break
11840   done
11841   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11842 esac
11843 
11844       $ac_path_EGREP_found && break 3
11845     done
11846   done
11847   done
11848 IFS=$as_save_IFS
11849   if test -z "$ac_cv_path_EGREP"; then
11850     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11851   fi
11852 else
11853   ac_cv_path_EGREP=$EGREP
11854 fi
11855 
11856    fi
11857 fi
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11859 $as_echo "$ac_cv_path_EGREP" >&6; }
11860  EGREP="$ac_cv_path_EGREP"
11861 
11862 
11863   else
11864     # The variable is set, but is it from the command line or the environment?
11865 
11866     # Try to remove the string !EGREP! from our list.
11867     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11868     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11869       # If it failed, the variable was not from the command line. Ignore it,
11870       # but warn the user (except for BASH, which is always set by the calling BASH).
11871       if test "xEGREP" != xBASH; then
11872         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11873 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11874       fi
11875       # Try to locate tool using the code snippet
11876       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11877 $as_echo_n "checking for egrep... " >&6; }
11878 if ${ac_cv_path_EGREP+:} false; then :
11879   $as_echo_n "(cached) " >&6
11880 else
11881   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11882    then ac_cv_path_EGREP="$GREP -E"
11883    else
11884      if test -z "$EGREP"; then
11885   ac_path_EGREP_found=false
11886   # Loop through the user's path and test for each of PROGNAME-LIST
11887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11889 do
11890   IFS=$as_save_IFS
11891   test -z "$as_dir" && as_dir=.
11892     for ac_prog in egrep; do
11893     for ac_exec_ext in '' $ac_executable_extensions; do
11894       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11895       as_fn_executable_p "$ac_path_EGREP" || continue
11896 # Check for GNU ac_path_EGREP and select it if it is found.
11897   # Check for GNU $ac_path_EGREP
11898 case `"$ac_path_EGREP" --version 2>&1` in
11899 *GNU*)
11900   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11901 *)
11902   ac_count=0
11903   $as_echo_n 0123456789 >"conftest.in"
11904   while :
11905   do
11906     cat "conftest.in" "conftest.in" >"conftest.tmp"
11907     mv "conftest.tmp" "conftest.in"
11908     cp "conftest.in" "conftest.nl"
11909     $as_echo 'EGREP' >> "conftest.nl"
11910     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11911     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11912     as_fn_arith $ac_count + 1 && ac_count=$as_val
11913     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11914       # Best one so far, save it but keep looking for a better one
11915       ac_cv_path_EGREP="$ac_path_EGREP"
11916       ac_path_EGREP_max=$ac_count
11917     fi
11918     # 10*(2^10) chars as input seems more than enough
11919     test $ac_count -gt 10 && break
11920   done
11921   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11922 esac
11923 
11924       $ac_path_EGREP_found && break 3
11925     done
11926   done
11927   done
11928 IFS=$as_save_IFS
11929   if test -z "$ac_cv_path_EGREP"; then
11930     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11931   fi
11932 else
11933   ac_cv_path_EGREP=$EGREP
11934 fi
11935 
11936    fi
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11939 $as_echo "$ac_cv_path_EGREP" >&6; }
11940  EGREP="$ac_cv_path_EGREP"
11941 
11942 
11943     else
11944       # If it succeeded, then it was overridden by the user. We will use it
11945       # for the tool.
11946 
11947       # First remove it from the list of overridden variables, so we can test
11948       # for unknown variables in the end.
11949       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11950 
11951       # Check if the provided tool contains a complete path.
11952       tool_specified="$EGREP"
11953       tool_basename="${tool_specified##*/}"
11954       if test "x$tool_basename" = "x$tool_specified"; then
11955         # A command without a complete path is provided, search $PATH.
11956         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11957 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11958         # Extract the first word of "$tool_basename", so it can be a program name with args.
11959 set dummy $tool_basename; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_EGREP+:} false; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965   case $EGREP in
11966   [\\/]* | ?:[\\/]*)
11967   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11968   ;;
11969   *)
11970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11972 do
11973   IFS=$as_save_IFS
11974   test -z "$as_dir" && as_dir=.
11975     for ac_exec_ext in '' $ac_executable_extensions; do
11976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11977     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979     break 2
11980   fi
11981 done
11982   done
11983 IFS=$as_save_IFS
11984 
11985   ;;
11986 esac
11987 fi
11988 EGREP=$ac_cv_path_EGREP
11989 if test -n "$EGREP"; then
11990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11991 $as_echo "$EGREP" >&6; }
11992 else
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11995 fi
11996 
11997 
11998         if test "x$EGREP" = x; then
11999           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12000         fi
12001       else
12002         # Otherwise we believe it is a complete path. Use it as it is.
12003         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12004 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12006 $as_echo_n "checking for EGREP... " >&6; }
12007         if test ! -x "$tool_specified"; then
12008           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12009 $as_echo "not found" >&6; }
12010           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12011         fi
12012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12013 $as_echo "$tool_specified" >&6; }
12014       fi
12015     fi
12016   fi
12017 
12018 
12019   if test "x$EGREP" = x; then
12020     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12021   fi
12022 
12023 
12024 
12025 
12026   # Publish this variable in the help.
12027 
12028 
12029   if test "x$FGREP" = x; then
12030     # The variable is not set by user, try to locate tool using the code snippet
12031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12032 $as_echo_n "checking for fgrep... " >&6; }
12033 if ${ac_cv_path_FGREP+:} false; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12037    then ac_cv_path_FGREP="$GREP -F"
12038    else
12039      if test -z "$FGREP"; then
12040   ac_path_FGREP_found=false
12041   # Loop through the user's path and test for each of PROGNAME-LIST
12042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047     for ac_prog in fgrep; do
12048     for ac_exec_ext in '' $ac_executable_extensions; do
12049       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12050       as_fn_executable_p "$ac_path_FGREP" || continue
12051 # Check for GNU ac_path_FGREP and select it if it is found.
12052   # Check for GNU $ac_path_FGREP
12053 case `"$ac_path_FGREP" --version 2>&1` in
12054 *GNU*)
12055   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12056 *)
12057   ac_count=0
12058   $as_echo_n 0123456789 >"conftest.in"
12059   while :
12060   do
12061     cat "conftest.in" "conftest.in" >"conftest.tmp"
12062     mv "conftest.tmp" "conftest.in"
12063     cp "conftest.in" "conftest.nl"
12064     $as_echo 'FGREP' >> "conftest.nl"
12065     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12066     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12067     as_fn_arith $ac_count + 1 && ac_count=$as_val
12068     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12069       # Best one so far, save it but keep looking for a better one
12070       ac_cv_path_FGREP="$ac_path_FGREP"
12071       ac_path_FGREP_max=$ac_count
12072     fi
12073     # 10*(2^10) chars as input seems more than enough
12074     test $ac_count -gt 10 && break
12075   done
12076   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12077 esac
12078 
12079       $ac_path_FGREP_found && break 3
12080     done
12081   done
12082   done
12083 IFS=$as_save_IFS
12084   if test -z "$ac_cv_path_FGREP"; then
12085     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12086   fi
12087 else
12088   ac_cv_path_FGREP=$FGREP
12089 fi
12090 
12091    fi
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12094 $as_echo "$ac_cv_path_FGREP" >&6; }
12095  FGREP="$ac_cv_path_FGREP"
12096 
12097 
12098   else
12099     # The variable is set, but is it from the command line or the environment?
12100 
12101     # Try to remove the string !FGREP! from our list.
12102     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12103     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12104       # If it failed, the variable was not from the command line. Ignore it,
12105       # but warn the user (except for BASH, which is always set by the calling BASH).
12106       if test "xFGREP" != xBASH; then
12107         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12108 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12109       fi
12110       # Try to locate tool using the code snippet
12111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12112 $as_echo_n "checking for fgrep... " >&6; }
12113 if ${ac_cv_path_FGREP+:} false; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12117    then ac_cv_path_FGREP="$GREP -F"
12118    else
12119      if test -z "$FGREP"; then
12120   ac_path_FGREP_found=false
12121   # Loop through the user's path and test for each of PROGNAME-LIST
12122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12124 do
12125   IFS=$as_save_IFS
12126   test -z "$as_dir" && as_dir=.
12127     for ac_prog in fgrep; do
12128     for ac_exec_ext in '' $ac_executable_extensions; do
12129       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12130       as_fn_executable_p "$ac_path_FGREP" || continue
12131 # Check for GNU ac_path_FGREP and select it if it is found.
12132   # Check for GNU $ac_path_FGREP
12133 case `"$ac_path_FGREP" --version 2>&1` in
12134 *GNU*)
12135   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12136 *)
12137   ac_count=0
12138   $as_echo_n 0123456789 >"conftest.in"
12139   while :
12140   do
12141     cat "conftest.in" "conftest.in" >"conftest.tmp"
12142     mv "conftest.tmp" "conftest.in"
12143     cp "conftest.in" "conftest.nl"
12144     $as_echo 'FGREP' >> "conftest.nl"
12145     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12147     as_fn_arith $ac_count + 1 && ac_count=$as_val
12148     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12149       # Best one so far, save it but keep looking for a better one
12150       ac_cv_path_FGREP="$ac_path_FGREP"
12151       ac_path_FGREP_max=$ac_count
12152     fi
12153     # 10*(2^10) chars as input seems more than enough
12154     test $ac_count -gt 10 && break
12155   done
12156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12157 esac
12158 
12159       $ac_path_FGREP_found && break 3
12160     done
12161   done
12162   done
12163 IFS=$as_save_IFS
12164   if test -z "$ac_cv_path_FGREP"; then
12165     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12166   fi
12167 else
12168   ac_cv_path_FGREP=$FGREP
12169 fi
12170 
12171    fi
12172 fi
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12174 $as_echo "$ac_cv_path_FGREP" >&6; }
12175  FGREP="$ac_cv_path_FGREP"
12176 
12177 
12178     else
12179       # If it succeeded, then it was overridden by the user. We will use it
12180       # for the tool.
12181 
12182       # First remove it from the list of overridden variables, so we can test
12183       # for unknown variables in the end.
12184       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12185 
12186       # Check if the provided tool contains a complete path.
12187       tool_specified="$FGREP"
12188       tool_basename="${tool_specified##*/}"
12189       if test "x$tool_basename" = "x$tool_specified"; then
12190         # A command without a complete path is provided, search $PATH.
12191         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12192 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12193         # Extract the first word of "$tool_basename", so it can be a program name with args.
12194 set dummy $tool_basename; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if ${ac_cv_path_FGREP+:} false; then :
12198   $as_echo_n "(cached) " >&6
12199 else
12200   case $FGREP in
12201   [\\/]* | ?:[\\/]*)
12202   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12203   ;;
12204   *)
12205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $PATH
12207 do
12208   IFS=$as_save_IFS
12209   test -z "$as_dir" && as_dir=.
12210     for ac_exec_ext in '' $ac_executable_extensions; do
12211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12212     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12214     break 2
12215   fi
12216 done
12217   done
12218 IFS=$as_save_IFS
12219 
12220   ;;
12221 esac
12222 fi
12223 FGREP=$ac_cv_path_FGREP
12224 if test -n "$FGREP"; then
12225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12226 $as_echo "$FGREP" >&6; }
12227 else
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230 fi
12231 
12232 
12233         if test "x$FGREP" = x; then
12234           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12235         fi
12236       else
12237         # Otherwise we believe it is a complete path. Use it as it is.
12238         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12239 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12241 $as_echo_n "checking for FGREP... " >&6; }
12242         if test ! -x "$tool_specified"; then
12243           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12244 $as_echo "not found" >&6; }
12245           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12246         fi
12247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12248 $as_echo "$tool_specified" >&6; }
12249       fi
12250     fi
12251   fi
12252 
12253 
12254   if test "x$FGREP" = x; then
12255     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12256   fi
12257 
12258 
12259 
12260 
12261   # Publish this variable in the help.
12262 
12263 
12264   if test "x$SED" = x; then
12265     # The variable is not set by user, try to locate tool using the code snippet
12266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12267 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12268 if ${ac_cv_path_SED+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12272      for ac_i in 1 2 3 4 5 6 7; do
12273        ac_script="$ac_script$as_nl$ac_script"
12274      done
12275      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12276      { ac_script=; unset ac_script;}
12277      if test -z "$SED"; then
12278   ac_path_SED_found=false
12279   # Loop through the user's path and test for each of PROGNAME-LIST
12280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12282 do
12283   IFS=$as_save_IFS
12284   test -z "$as_dir" && as_dir=.
12285     for ac_prog in sed gsed; do
12286     for ac_exec_ext in '' $ac_executable_extensions; do
12287       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12288       as_fn_executable_p "$ac_path_SED" || continue
12289 # Check for GNU ac_path_SED and select it if it is found.
12290   # Check for GNU $ac_path_SED
12291 case `"$ac_path_SED" --version 2>&1` in
12292 *GNU*)
12293   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12294 *)
12295   ac_count=0
12296   $as_echo_n 0123456789 >"conftest.in"
12297   while :
12298   do
12299     cat "conftest.in" "conftest.in" >"conftest.tmp"
12300     mv "conftest.tmp" "conftest.in"
12301     cp "conftest.in" "conftest.nl"
12302     $as_echo '' >> "conftest.nl"
12303     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12305     as_fn_arith $ac_count + 1 && ac_count=$as_val
12306     if test $ac_count -gt ${ac_path_SED_max-0}; then
12307       # Best one so far, save it but keep looking for a better one
12308       ac_cv_path_SED="$ac_path_SED"
12309       ac_path_SED_max=$ac_count
12310     fi
12311     # 10*(2^10) chars as input seems more than enough
12312     test $ac_count -gt 10 && break
12313   done
12314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12315 esac
12316 
12317       $ac_path_SED_found && break 3
12318     done
12319   done
12320   done
12321 IFS=$as_save_IFS
12322   if test -z "$ac_cv_path_SED"; then
12323     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12324   fi
12325 else
12326   ac_cv_path_SED=$SED
12327 fi
12328 
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12331 $as_echo "$ac_cv_path_SED" >&6; }
12332  SED="$ac_cv_path_SED"
12333   rm -f conftest.sed
12334 
12335   else
12336     # The variable is set, but is it from the command line or the environment?
12337 
12338     # Try to remove the string !SED! from our list.
12339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12341       # If it failed, the variable was not from the command line. Ignore it,
12342       # but warn the user (except for BASH, which is always set by the calling BASH).
12343       if test "xSED" != xBASH; then
12344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12345 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12346       fi
12347       # Try to locate tool using the code snippet
12348       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12349 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12350 if ${ac_cv_path_SED+:} false; then :
12351   $as_echo_n "(cached) " >&6
12352 else
12353             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12354      for ac_i in 1 2 3 4 5 6 7; do
12355        ac_script="$ac_script$as_nl$ac_script"
12356      done
12357      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12358      { ac_script=; unset ac_script;}
12359      if test -z "$SED"; then
12360   ac_path_SED_found=false
12361   # Loop through the user's path and test for each of PROGNAME-LIST
12362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12364 do
12365   IFS=$as_save_IFS
12366   test -z "$as_dir" && as_dir=.
12367     for ac_prog in sed gsed; do
12368     for ac_exec_ext in '' $ac_executable_extensions; do
12369       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12370       as_fn_executable_p "$ac_path_SED" || continue
12371 # Check for GNU ac_path_SED and select it if it is found.
12372   # Check for GNU $ac_path_SED
12373 case `"$ac_path_SED" --version 2>&1` in
12374 *GNU*)
12375   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12376 *)
12377   ac_count=0
12378   $as_echo_n 0123456789 >"conftest.in"
12379   while :
12380   do
12381     cat "conftest.in" "conftest.in" >"conftest.tmp"
12382     mv "conftest.tmp" "conftest.in"
12383     cp "conftest.in" "conftest.nl"
12384     $as_echo '' >> "conftest.nl"
12385     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12386     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12387     as_fn_arith $ac_count + 1 && ac_count=$as_val
12388     if test $ac_count -gt ${ac_path_SED_max-0}; then
12389       # Best one so far, save it but keep looking for a better one
12390       ac_cv_path_SED="$ac_path_SED"
12391       ac_path_SED_max=$ac_count
12392     fi
12393     # 10*(2^10) chars as input seems more than enough
12394     test $ac_count -gt 10 && break
12395   done
12396   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12397 esac
12398 
12399       $ac_path_SED_found && break 3
12400     done
12401   done
12402   done
12403 IFS=$as_save_IFS
12404   if test -z "$ac_cv_path_SED"; then
12405     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12406   fi
12407 else
12408   ac_cv_path_SED=$SED
12409 fi
12410 
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12413 $as_echo "$ac_cv_path_SED" >&6; }
12414  SED="$ac_cv_path_SED"
12415   rm -f conftest.sed
12416 
12417     else
12418       # If it succeeded, then it was overridden by the user. We will use it
12419       # for the tool.
12420 
12421       # First remove it from the list of overridden variables, so we can test
12422       # for unknown variables in the end.
12423       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12424 
12425       # Check if the provided tool contains a complete path.
12426       tool_specified="$SED"
12427       tool_basename="${tool_specified##*/}"
12428       if test "x$tool_basename" = "x$tool_specified"; then
12429         # A command without a complete path is provided, search $PATH.
12430         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12431 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12432         # Extract the first word of "$tool_basename", so it can be a program name with args.
12433 set dummy $tool_basename; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if ${ac_cv_path_SED+:} false; then :
12437   $as_echo_n "(cached) " >&6
12438 else
12439   case $SED in
12440   [\\/]* | ?:[\\/]*)
12441   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12442   ;;
12443   *)
12444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447   IFS=$as_save_IFS
12448   test -z "$as_dir" && as_dir=.
12449     for ac_exec_ext in '' $ac_executable_extensions; do
12450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12453     break 2
12454   fi
12455 done
12456   done
12457 IFS=$as_save_IFS
12458 
12459   ;;
12460 esac
12461 fi
12462 SED=$ac_cv_path_SED
12463 if test -n "$SED"; then
12464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12465 $as_echo "$SED" >&6; }
12466 else
12467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12469 fi
12470 
12471 
12472         if test "x$SED" = x; then
12473           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12474         fi
12475       else
12476         # Otherwise we believe it is a complete path. Use it as it is.
12477         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12478 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12479         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12480 $as_echo_n "checking for SED... " >&6; }
12481         if test ! -x "$tool_specified"; then
12482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12483 $as_echo "not found" >&6; }
12484           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12485         fi
12486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12487 $as_echo "$tool_specified" >&6; }
12488       fi
12489     fi
12490   fi
12491 
12492 
12493   if test "x$SED" = x; then
12494     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12495   fi
12496 
12497 
12498 
12499   # Always force rm.
12500   RM="$RM -f"
12501 
12502   # pwd behaves differently on various platforms and some don't support the -L flag.
12503   # Always use the bash builtin pwd to get uniform behavior.
12504   THEPWDCMD=pwd
12505 
12506   # These are not required on all platforms
12507 
12508 
12509   # Publish this variable in the help.
12510 
12511 
12512   if test "x$CYGPATH" = x; then
12513     # The variable is not set by user, try to locate tool using the code snippet
12514     for ac_prog in cygpath
12515 do
12516   # Extract the first word of "$ac_prog", so it can be a program name with args.
12517 set dummy $ac_prog; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if ${ac_cv_path_CYGPATH+:} false; then :
12521   $as_echo_n "(cached) " >&6
12522 else
12523   case $CYGPATH in
12524   [\\/]* | ?:[\\/]*)
12525   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12526   ;;
12527   *)
12528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12530 do
12531   IFS=$as_save_IFS
12532   test -z "$as_dir" && as_dir=.
12533     for ac_exec_ext in '' $ac_executable_extensions; do
12534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537     break 2
12538   fi
12539 done
12540   done
12541 IFS=$as_save_IFS
12542 
12543   ;;
12544 esac
12545 fi
12546 CYGPATH=$ac_cv_path_CYGPATH
12547 if test -n "$CYGPATH"; then
12548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12549 $as_echo "$CYGPATH" >&6; }
12550 else
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12553 fi
12554 
12555 
12556   test -n "$CYGPATH" && break
12557 done
12558 
12559   else
12560     # The variable is set, but is it from the command line or the environment?
12561 
12562     # Try to remove the string !CYGPATH! from our list.
12563     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12564     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12565       # If it failed, the variable was not from the command line. Ignore it,
12566       # but warn the user (except for BASH, which is always set by the calling BASH).
12567       if test "xCYGPATH" != xBASH; then
12568         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12569 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12570       fi
12571       # Try to locate tool using the code snippet
12572       for ac_prog in cygpath
12573 do
12574   # Extract the first word of "$ac_prog", so it can be a program name with args.
12575 set dummy $ac_prog; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577 $as_echo_n "checking for $ac_word... " >&6; }
12578 if ${ac_cv_path_CYGPATH+:} false; then :
12579   $as_echo_n "(cached) " >&6
12580 else
12581   case $CYGPATH in
12582   [\\/]* | ?:[\\/]*)
12583   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12584   ;;
12585   *)
12586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12588 do
12589   IFS=$as_save_IFS
12590   test -z "$as_dir" && as_dir=.
12591     for ac_exec_ext in '' $ac_executable_extensions; do
12592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12593     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12595     break 2
12596   fi
12597 done
12598   done
12599 IFS=$as_save_IFS
12600 
12601   ;;
12602 esac
12603 fi
12604 CYGPATH=$ac_cv_path_CYGPATH
12605 if test -n "$CYGPATH"; then
12606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12607 $as_echo "$CYGPATH" >&6; }
12608 else
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612 
12613 
12614   test -n "$CYGPATH" && break
12615 done
12616 
12617     else
12618       # If it succeeded, then it was overridden by the user. We will use it
12619       # for the tool.
12620 
12621       # First remove it from the list of overridden variables, so we can test
12622       # for unknown variables in the end.
12623       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12624 
12625       # Check if the provided tool contains a complete path.
12626       tool_specified="$CYGPATH"
12627       tool_basename="${tool_specified##*/}"
12628       if test "x$tool_basename" = "x$tool_specified"; then
12629         # A command without a complete path is provided, search $PATH.
12630         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12631 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12632         # Extract the first word of "$tool_basename", so it can be a program name with args.
12633 set dummy $tool_basename; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if ${ac_cv_path_CYGPATH+:} false; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   case $CYGPATH in
12640   [\\/]* | ?:[\\/]*)
12641   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12642   ;;
12643   *)
12644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12646 do
12647   IFS=$as_save_IFS
12648   test -z "$as_dir" && as_dir=.
12649     for ac_exec_ext in '' $ac_executable_extensions; do
12650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12651     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12653     break 2
12654   fi
12655 done
12656   done
12657 IFS=$as_save_IFS
12658 
12659   ;;
12660 esac
12661 fi
12662 CYGPATH=$ac_cv_path_CYGPATH
12663 if test -n "$CYGPATH"; then
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12665 $as_echo "$CYGPATH" >&6; }
12666 else
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 fi
12670 
12671 
12672         if test "x$CYGPATH" = x; then
12673           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12674         fi
12675       else
12676         # Otherwise we believe it is a complete path. Use it as it is.
12677         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12678 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12680 $as_echo_n "checking for CYGPATH... " >&6; }
12681         if test ! -x "$tool_specified"; then
12682           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12683 $as_echo "not found" >&6; }
12684           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12685         fi
12686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12687 $as_echo "$tool_specified" >&6; }
12688       fi
12689     fi
12690   fi
12691 
12692 
12693 
12694 
12695   # Publish this variable in the help.
12696 
12697 
12698   if test "x$READLINK" = x; then
12699     # The variable is not set by user, try to locate tool using the code snippet
12700     for ac_prog in greadlink readlink
12701 do
12702   # Extract the first word of "$ac_prog", so it can be a program name with args.
12703 set dummy $ac_prog; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if ${ac_cv_path_READLINK+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   case $READLINK in
12710   [\\/]* | ?:[\\/]*)
12711   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12712   ;;
12713   *)
12714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717   IFS=$as_save_IFS
12718   test -z "$as_dir" && as_dir=.
12719     for ac_exec_ext in '' $ac_executable_extensions; do
12720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12721     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723     break 2
12724   fi
12725 done
12726   done
12727 IFS=$as_save_IFS
12728 
12729   ;;
12730 esac
12731 fi
12732 READLINK=$ac_cv_path_READLINK
12733 if test -n "$READLINK"; then
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12735 $as_echo "$READLINK" >&6; }
12736 else
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12739 fi
12740 
12741 
12742   test -n "$READLINK" && break
12743 done
12744 
12745   else
12746     # The variable is set, but is it from the command line or the environment?
12747 
12748     # Try to remove the string !READLINK! from our list.
12749     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12750     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12751       # If it failed, the variable was not from the command line. Ignore it,
12752       # but warn the user (except for BASH, which is always set by the calling BASH).
12753       if test "xREADLINK" != xBASH; then
12754         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12755 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12756       fi
12757       # Try to locate tool using the code snippet
12758       for ac_prog in greadlink readlink
12759 do
12760   # Extract the first word of "$ac_prog", so it can be a program name with args.
12761 set dummy $ac_prog; ac_word=$2
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if ${ac_cv_path_READLINK+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767   case $READLINK in
12768   [\\/]* | ?:[\\/]*)
12769   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12770   ;;
12771   *)
12772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775   IFS=$as_save_IFS
12776   test -z "$as_dir" && as_dir=.
12777     for ac_exec_ext in '' $ac_executable_extensions; do
12778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12781     break 2
12782   fi
12783 done
12784   done
12785 IFS=$as_save_IFS
12786 
12787   ;;
12788 esac
12789 fi
12790 READLINK=$ac_cv_path_READLINK
12791 if test -n "$READLINK"; then
12792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12793 $as_echo "$READLINK" >&6; }
12794 else
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 fi
12798 
12799 
12800   test -n "$READLINK" && break
12801 done
12802 
12803     else
12804       # If it succeeded, then it was overridden by the user. We will use it
12805       # for the tool.
12806 
12807       # First remove it from the list of overridden variables, so we can test
12808       # for unknown variables in the end.
12809       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12810 
12811       # Check if the provided tool contains a complete path.
12812       tool_specified="$READLINK"
12813       tool_basename="${tool_specified##*/}"
12814       if test "x$tool_basename" = "x$tool_specified"; then
12815         # A command without a complete path is provided, search $PATH.
12816         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12817 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12818         # Extract the first word of "$tool_basename", so it can be a program name with args.
12819 set dummy $tool_basename; ac_word=$2
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12821 $as_echo_n "checking for $ac_word... " >&6; }
12822 if ${ac_cv_path_READLINK+:} false; then :
12823   $as_echo_n "(cached) " >&6
12824 else
12825   case $READLINK in
12826   [\\/]* | ?:[\\/]*)
12827   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12828   ;;
12829   *)
12830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831 for as_dir in $PATH
12832 do
12833   IFS=$as_save_IFS
12834   test -z "$as_dir" && as_dir=.
12835     for ac_exec_ext in '' $ac_executable_extensions; do
12836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12837     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12839     break 2
12840   fi
12841 done
12842   done
12843 IFS=$as_save_IFS
12844 
12845   ;;
12846 esac
12847 fi
12848 READLINK=$ac_cv_path_READLINK
12849 if test -n "$READLINK"; then
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12851 $as_echo "$READLINK" >&6; }
12852 else
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12854 $as_echo "no" >&6; }
12855 fi
12856 
12857 
12858         if test "x$READLINK" = x; then
12859           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12860         fi
12861       else
12862         # Otherwise we believe it is a complete path. Use it as it is.
12863         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12864 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12866 $as_echo_n "checking for READLINK... " >&6; }
12867         if test ! -x "$tool_specified"; then
12868           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12869 $as_echo "not found" >&6; }
12870           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12871         fi
12872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12873 $as_echo "$tool_specified" >&6; }
12874       fi
12875     fi
12876   fi
12877 
12878 
12879 
12880 
12881   # Publish this variable in the help.
12882 
12883 
12884   if test "x$DF" = x; then
12885     # The variable is not set by user, try to locate tool using the code snippet
12886     for ac_prog in df
12887 do
12888   # Extract the first word of "$ac_prog", so it can be a program name with args.
12889 set dummy $ac_prog; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if ${ac_cv_path_DF+:} false; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   case $DF in
12896   [\\/]* | ?:[\\/]*)
12897   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12898   ;;
12899   *)
12900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903   IFS=$as_save_IFS
12904   test -z "$as_dir" && as_dir=.
12905     for ac_exec_ext in '' $ac_executable_extensions; do
12906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909     break 2
12910   fi
12911 done
12912   done
12913 IFS=$as_save_IFS
12914 
12915   ;;
12916 esac
12917 fi
12918 DF=$ac_cv_path_DF
12919 if test -n "$DF"; then
12920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12921 $as_echo "$DF" >&6; }
12922 else
12923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12925 fi
12926 
12927 
12928   test -n "$DF" && break
12929 done
12930 
12931   else
12932     # The variable is set, but is it from the command line or the environment?
12933 
12934     # Try to remove the string !DF! from our list.
12935     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12936     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12937       # If it failed, the variable was not from the command line. Ignore it,
12938       # but warn the user (except for BASH, which is always set by the calling BASH).
12939       if test "xDF" != xBASH; then
12940         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12941 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12942       fi
12943       # Try to locate tool using the code snippet
12944       for ac_prog in df
12945 do
12946   # Extract the first word of "$ac_prog", so it can be a program name with args.
12947 set dummy $ac_prog; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if ${ac_cv_path_DF+:} false; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   case $DF in
12954   [\\/]* | ?:[\\/]*)
12955   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12956   ;;
12957   *)
12958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12960 do
12961   IFS=$as_save_IFS
12962   test -z "$as_dir" && as_dir=.
12963     for ac_exec_ext in '' $ac_executable_extensions; do
12964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12965     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12967     break 2
12968   fi
12969 done
12970   done
12971 IFS=$as_save_IFS
12972 
12973   ;;
12974 esac
12975 fi
12976 DF=$ac_cv_path_DF
12977 if test -n "$DF"; then
12978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12979 $as_echo "$DF" >&6; }
12980 else
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12983 fi
12984 
12985 
12986   test -n "$DF" && break
12987 done
12988 
12989     else
12990       # If it succeeded, then it was overridden by the user. We will use it
12991       # for the tool.
12992 
12993       # First remove it from the list of overridden variables, so we can test
12994       # for unknown variables in the end.
12995       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12996 
12997       # Check if the provided tool contains a complete path.
12998       tool_specified="$DF"
12999       tool_basename="${tool_specified##*/}"
13000       if test "x$tool_basename" = "x$tool_specified"; then
13001         # A command without a complete path is provided, search $PATH.
13002         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13003 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13004         # Extract the first word of "$tool_basename", so it can be a program name with args.
13005 set dummy $tool_basename; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if ${ac_cv_path_DF+:} false; then :
13009   $as_echo_n "(cached) " >&6
13010 else
13011   case $DF in
13012   [\\/]* | ?:[\\/]*)
13013   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13014   ;;
13015   *)
13016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017 for as_dir in $PATH
13018 do
13019   IFS=$as_save_IFS
13020   test -z "$as_dir" && as_dir=.
13021     for ac_exec_ext in '' $ac_executable_extensions; do
13022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13023     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025     break 2
13026   fi
13027 done
13028   done
13029 IFS=$as_save_IFS
13030 
13031   ;;
13032 esac
13033 fi
13034 DF=$ac_cv_path_DF
13035 if test -n "$DF"; then
13036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13037 $as_echo "$DF" >&6; }
13038 else
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040 $as_echo "no" >&6; }
13041 fi
13042 
13043 
13044         if test "x$DF" = x; then
13045           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13046         fi
13047       else
13048         # Otherwise we believe it is a complete path. Use it as it is.
13049         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13050 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13051         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13052 $as_echo_n "checking for DF... " >&6; }
13053         if test ! -x "$tool_specified"; then
13054           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13055 $as_echo "not found" >&6; }
13056           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13057         fi
13058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13059 $as_echo "$tool_specified" >&6; }
13060       fi
13061     fi
13062   fi
13063 
13064 
13065 
13066 
13067   # Publish this variable in the help.
13068 
13069 
13070   if test "x$SETFILE" = x; then
13071     # The variable is not set by user, try to locate tool using the code snippet
13072     for ac_prog in SetFile
13073 do
13074   # Extract the first word of "$ac_prog", so it can be a program name with args.
13075 set dummy $ac_prog; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_path_SETFILE+:} false; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081   case $SETFILE in
13082   [\\/]* | ?:[\\/]*)
13083   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13084   ;;
13085   *)
13086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091     for ac_exec_ext in '' $ac_executable_extensions; do
13092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098   done
13099 IFS=$as_save_IFS
13100 
13101   ;;
13102 esac
13103 fi
13104 SETFILE=$ac_cv_path_SETFILE
13105 if test -n "$SETFILE"; then
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13107 $as_echo "$SETFILE" >&6; }
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112 
13113 
13114   test -n "$SETFILE" && break
13115 done
13116 
13117   else
13118     # The variable is set, but is it from the command line or the environment?
13119 
13120     # Try to remove the string !SETFILE! from our list.
13121     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13122     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13123       # If it failed, the variable was not from the command line. Ignore it,
13124       # but warn the user (except for BASH, which is always set by the calling BASH).
13125       if test "xSETFILE" != xBASH; then
13126         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13127 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13128       fi
13129       # Try to locate tool using the code snippet
13130       for ac_prog in SetFile
13131 do
13132   # Extract the first word of "$ac_prog", so it can be a program name with args.
13133 set dummy $ac_prog; ac_word=$2
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13135 $as_echo_n "checking for $ac_word... " >&6; }
13136 if ${ac_cv_path_SETFILE+:} false; then :
13137   $as_echo_n "(cached) " >&6
13138 else
13139   case $SETFILE in
13140   [\\/]* | ?:[\\/]*)
13141   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13142   ;;
13143   *)
13144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147   IFS=$as_save_IFS
13148   test -z "$as_dir" && as_dir=.
13149     for ac_exec_ext in '' $ac_executable_extensions; do
13150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13151     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153     break 2
13154   fi
13155 done
13156   done
13157 IFS=$as_save_IFS
13158 
13159   ;;
13160 esac
13161 fi
13162 SETFILE=$ac_cv_path_SETFILE
13163 if test -n "$SETFILE"; then
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13165 $as_echo "$SETFILE" >&6; }
13166 else
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169 fi
13170 
13171 
13172   test -n "$SETFILE" && break
13173 done
13174 
13175     else
13176       # If it succeeded, then it was overridden by the user. We will use it
13177       # for the tool.
13178 
13179       # First remove it from the list of overridden variables, so we can test
13180       # for unknown variables in the end.
13181       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13182 
13183       # Check if the provided tool contains a complete path.
13184       tool_specified="$SETFILE"
13185       tool_basename="${tool_specified##*/}"
13186       if test "x$tool_basename" = "x$tool_specified"; then
13187         # A command without a complete path is provided, search $PATH.
13188         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13189 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13190         # Extract the first word of "$tool_basename", so it can be a program name with args.
13191 set dummy $tool_basename; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 $as_echo_n "checking for $ac_word... " >&6; }
13194 if ${ac_cv_path_SETFILE+:} false; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   case $SETFILE in
13198   [\\/]* | ?:[\\/]*)
13199   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13200   ;;
13201   *)
13202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205   IFS=$as_save_IFS
13206   test -z "$as_dir" && as_dir=.
13207     for ac_exec_ext in '' $ac_executable_extensions; do
13208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13209     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211     break 2
13212   fi
13213 done
13214   done
13215 IFS=$as_save_IFS
13216 
13217   ;;
13218 esac
13219 fi
13220 SETFILE=$ac_cv_path_SETFILE
13221 if test -n "$SETFILE"; then
13222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13223 $as_echo "$SETFILE" >&6; }
13224 else
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 fi
13228 
13229 
13230         if test "x$SETFILE" = x; then
13231           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13232         fi
13233       else
13234         # Otherwise we believe it is a complete path. Use it as it is.
13235         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13236 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13238 $as_echo_n "checking for SETFILE... " >&6; }
13239         if test ! -x "$tool_specified"; then
13240           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13241 $as_echo "not found" >&6; }
13242           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13243         fi
13244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13245 $as_echo "$tool_specified" >&6; }
13246       fi
13247     fi
13248   fi
13249 
13250 
13251 
13252 
13253   # Publish this variable in the help.
13254 
13255 
13256   if test "x$CPIO" = x; then
13257     # The variable is not set by user, try to locate tool using the code snippet
13258     for ac_prog in cpio bsdcpio
13259 do
13260   # Extract the first word of "$ac_prog", so it can be a program name with args.
13261 set dummy $ac_prog; ac_word=$2
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if ${ac_cv_path_CPIO+:} false; then :
13265   $as_echo_n "(cached) " >&6
13266 else
13267   case $CPIO in
13268   [\\/]* | ?:[\\/]*)
13269   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13270   ;;
13271   *)
13272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275   IFS=$as_save_IFS
13276   test -z "$as_dir" && as_dir=.
13277     for ac_exec_ext in '' $ac_executable_extensions; do
13278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281     break 2
13282   fi
13283 done
13284   done
13285 IFS=$as_save_IFS
13286 
13287   ;;
13288 esac
13289 fi
13290 CPIO=$ac_cv_path_CPIO
13291 if test -n "$CPIO"; then
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13293 $as_echo "$CPIO" >&6; }
13294 else
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298 
13299 
13300   test -n "$CPIO" && break
13301 done
13302 
13303   else
13304     # The variable is set, but is it from the command line or the environment?
13305 
13306     # Try to remove the string !CPIO! from our list.
13307     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13308     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13309       # If it failed, the variable was not from the command line. Ignore it,
13310       # but warn the user (except for BASH, which is always set by the calling BASH).
13311       if test "xCPIO" != xBASH; then
13312         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13313 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13314       fi
13315       # Try to locate tool using the code snippet
13316       for ac_prog in cpio bsdcpio
13317 do
13318   # Extract the first word of "$ac_prog", so it can be a program name with args.
13319 set dummy $ac_prog; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if ${ac_cv_path_CPIO+:} false; then :
13323   $as_echo_n "(cached) " >&6
13324 else
13325   case $CPIO in
13326   [\\/]* | ?:[\\/]*)
13327   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13328   ;;
13329   *)
13330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13332 do
13333   IFS=$as_save_IFS
13334   test -z "$as_dir" && as_dir=.
13335     for ac_exec_ext in '' $ac_executable_extensions; do
13336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13337     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13339     break 2
13340   fi
13341 done
13342   done
13343 IFS=$as_save_IFS
13344 
13345   ;;
13346 esac
13347 fi
13348 CPIO=$ac_cv_path_CPIO
13349 if test -n "$CPIO"; then
13350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13351 $as_echo "$CPIO" >&6; }
13352 else
13353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355 fi
13356 
13357 
13358   test -n "$CPIO" && break
13359 done
13360 
13361     else
13362       # If it succeeded, then it was overridden by the user. We will use it
13363       # for the tool.
13364 
13365       # First remove it from the list of overridden variables, so we can test
13366       # for unknown variables in the end.
13367       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13368 
13369       # Check if the provided tool contains a complete path.
13370       tool_specified="$CPIO"
13371       tool_basename="${tool_specified##*/}"
13372       if test "x$tool_basename" = "x$tool_specified"; then
13373         # A command without a complete path is provided, search $PATH.
13374         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13375 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13376         # Extract the first word of "$tool_basename", so it can be a program name with args.
13377 set dummy $tool_basename; ac_word=$2
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379 $as_echo_n "checking for $ac_word... " >&6; }
13380 if ${ac_cv_path_CPIO+:} false; then :
13381   $as_echo_n "(cached) " >&6
13382 else
13383   case $CPIO in
13384   [\\/]* | ?:[\\/]*)
13385   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13386   ;;
13387   *)
13388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389 for as_dir in $PATH
13390 do
13391   IFS=$as_save_IFS
13392   test -z "$as_dir" && as_dir=.
13393     for ac_exec_ext in '' $ac_executable_extensions; do
13394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397     break 2
13398   fi
13399 done
13400   done
13401 IFS=$as_save_IFS
13402 
13403   ;;
13404 esac
13405 fi
13406 CPIO=$ac_cv_path_CPIO
13407 if test -n "$CPIO"; then
13408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13409 $as_echo "$CPIO" >&6; }
13410 else
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413 fi
13414 
13415 
13416         if test "x$CPIO" = x; then
13417           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13418         fi
13419       else
13420         # Otherwise we believe it is a complete path. Use it as it is.
13421         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13422 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13424 $as_echo_n "checking for CPIO... " >&6; }
13425         if test ! -x "$tool_specified"; then
13426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13427 $as_echo "not found" >&6; }
13428           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13429         fi
13430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13431 $as_echo "$tool_specified" >&6; }
13432       fi
13433     fi
13434   fi
13435 
13436 
13437 
13438 
13439 # Now we can determine OpenJDK build and target platforms. This is required to
13440 # have early on.
13441 # Make sure we can run config.sub.
13442 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13443   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13444 
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13446 $as_echo_n "checking build system type... " >&6; }
13447 if ${ac_cv_build+:} false; then :
13448   $as_echo_n "(cached) " >&6
13449 else
13450   ac_build_alias=$build_alias
13451 test "x$ac_build_alias" = x &&
13452   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13453 test "x$ac_build_alias" = x &&
13454   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13455 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13456   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13457 
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13460 $as_echo "$ac_cv_build" >&6; }
13461 case $ac_cv_build in
13462 *-*-*) ;;
13463 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13464 esac
13465 build=$ac_cv_build
13466 ac_save_IFS=$IFS; IFS='-'
13467 set x $ac_cv_build
13468 shift
13469 build_cpu=$1
13470 build_vendor=$2
13471 shift; shift
13472 # Remember, the first character of IFS is used to create $*,
13473 # except with old shells:
13474 build_os=$*
13475 IFS=$ac_save_IFS
13476 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13477 
13478 
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13480 $as_echo_n "checking host system type... " >&6; }
13481 if ${ac_cv_host+:} false; then :
13482   $as_echo_n "(cached) " >&6
13483 else
13484   if test "x$host_alias" = x; then
13485   ac_cv_host=$ac_cv_build
13486 else
13487   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13488     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13489 fi
13490 
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13493 $as_echo "$ac_cv_host" >&6; }
13494 case $ac_cv_host in
13495 *-*-*) ;;
13496 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13497 esac
13498 host=$ac_cv_host
13499 ac_save_IFS=$IFS; IFS='-'
13500 set x $ac_cv_host
13501 shift
13502 host_cpu=$1
13503 host_vendor=$2
13504 shift; shift
13505 # Remember, the first character of IFS is used to create $*,
13506 # except with old shells:
13507 host_os=$*
13508 IFS=$ac_save_IFS
13509 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13510 
13511 
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13513 $as_echo_n "checking target system type... " >&6; }
13514 if ${ac_cv_target+:} false; then :
13515   $as_echo_n "(cached) " >&6
13516 else
13517   if test "x$target_alias" = x; then
13518   ac_cv_target=$ac_cv_host
13519 else
13520   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13521     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13522 fi
13523 
13524 fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13526 $as_echo "$ac_cv_target" >&6; }
13527 case $ac_cv_target in
13528 *-*-*) ;;
13529 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13530 esac
13531 target=$ac_cv_target
13532 ac_save_IFS=$IFS; IFS='-'
13533 set x $ac_cv_target
13534 shift
13535 target_cpu=$1
13536 target_vendor=$2
13537 shift; shift
13538 # Remember, the first character of IFS is used to create $*,
13539 # except with old shells:
13540 target_os=$*
13541 IFS=$ac_save_IFS
13542 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13543 
13544 
13545 # The aliases save the names the user supplied, while $host etc.
13546 # will get canonicalized.
13547 test -n "$target_alias" &&
13548   test "$program_prefix$program_suffix$program_transform_name" = \
13549     NONENONEs,x,x, &&
13550   program_prefix=${target_alias}-
13551 
13552   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13553   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13554   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13555   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13556   # to use the configure naming style.
13557 
13558 
13559 
13560 
13561 
13562   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13563   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13564   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13565   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13566   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13567   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13568 
13569 
13570 
13571   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13572 
13573   case "$build_os" in
13574     *linux*)
13575       VAR_OS=linux
13576       VAR_OS_API=posix
13577       VAR_OS_ENV=linux
13578       ;;
13579     *solaris*)
13580       VAR_OS=solaris
13581       VAR_OS_API=posix
13582       VAR_OS_ENV=solaris
13583       ;;
13584     *darwin*)
13585       VAR_OS=macosx
13586       VAR_OS_API=posix
13587       VAR_OS_ENV=macosx
13588       ;;
13589     *bsd*)
13590       VAR_OS=bsd
13591       VAR_OS_API=posix
13592       VAR_OS_ENV=bsd
13593       ;;
13594     *cygwin*)
13595       VAR_OS=windows
13596       VAR_OS_API=winapi
13597       VAR_OS_ENV=windows.cygwin
13598       ;;
13599     *mingw*)
13600       VAR_OS=windows
13601       VAR_OS_API=winapi
13602       VAR_OS_ENV=windows.msys
13603       ;;
13604     *aix*)
13605       VAR_OS=aix
13606       VAR_OS_API=posix
13607       VAR_OS_ENV=aix
13608       ;;
13609     *)
13610       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13611       ;;
13612   esac
13613 
13614 
13615   # First argument is the cpu name from the trip/quad
13616   case "$build_cpu" in
13617     x86_64)
13618       VAR_CPU=x86_64
13619       VAR_CPU_ARCH=x86
13620       VAR_CPU_BITS=64
13621       VAR_CPU_ENDIAN=little
13622       ;;
13623     i?86)
13624       VAR_CPU=x86
13625       VAR_CPU_ARCH=x86
13626       VAR_CPU_BITS=32
13627       VAR_CPU_ENDIAN=little
13628       ;;
13629     arm*)
13630       VAR_CPU=arm
13631       VAR_CPU_ARCH=arm
13632       VAR_CPU_BITS=32
13633       VAR_CPU_ENDIAN=little
13634       ;;
13635     aarch64)
13636       VAR_CPU=aarch64
13637       VAR_CPU_ARCH=aarch64
13638       VAR_CPU_BITS=64
13639       VAR_CPU_ENDIAN=little
13640       ;;
13641     powerpc)
13642       VAR_CPU=ppc
13643       VAR_CPU_ARCH=ppc
13644       VAR_CPU_BITS=32
13645       VAR_CPU_ENDIAN=big
13646       ;;
13647     powerpc64)
13648       VAR_CPU=ppc64
13649       VAR_CPU_ARCH=ppc
13650       VAR_CPU_BITS=64
13651       VAR_CPU_ENDIAN=big
13652       ;;
13653     powerpc64le)
13654       VAR_CPU=ppc64le
13655       VAR_CPU_ARCH=ppc
13656       VAR_CPU_BITS=64
13657       VAR_CPU_ENDIAN=little
13658       ;;
13659     s390)
13660       VAR_CPU=s390
13661       VAR_CPU_ARCH=s390
13662       VAR_CPU_BITS=32
13663       VAR_CPU_ENDIAN=big
13664       ;;
13665     s390x)
13666       VAR_CPU=s390x
13667       VAR_CPU_ARCH=s390
13668       VAR_CPU_BITS=64
13669       VAR_CPU_ENDIAN=big
13670       ;;
13671     sparc)
13672       VAR_CPU=sparc
13673       VAR_CPU_ARCH=sparc
13674       VAR_CPU_BITS=32
13675       VAR_CPU_ENDIAN=big
13676       ;;
13677     sparcv9|sparc64)
13678       VAR_CPU=sparcv9
13679       VAR_CPU_ARCH=sparc
13680       VAR_CPU_BITS=64
13681       VAR_CPU_ENDIAN=big
13682       ;;
13683     *)
13684       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13685       ;;
13686   esac
13687 
13688   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13689   OPENJDK_BUILD_OS="$VAR_OS"
13690   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13691   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13692   OPENJDK_BUILD_CPU="$VAR_CPU"
13693   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13694   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13695   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13696 
13697 
13698 
13699 
13700 
13701 
13702 
13703 
13704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13705 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13707 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13708 
13709   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13710 
13711   case "$host_os" in
13712     *linux*)
13713       VAR_OS=linux
13714       VAR_OS_API=posix
13715       VAR_OS_ENV=linux
13716       ;;
13717     *solaris*)
13718       VAR_OS=solaris
13719       VAR_OS_API=posix
13720       VAR_OS_ENV=solaris
13721       ;;
13722     *darwin*)
13723       VAR_OS=macosx
13724       VAR_OS_API=posix
13725       VAR_OS_ENV=macosx
13726       ;;
13727     *bsd*)
13728       VAR_OS=bsd
13729       VAR_OS_API=posix
13730       VAR_OS_ENV=bsd
13731       ;;
13732     *cygwin*)
13733       VAR_OS=windows
13734       VAR_OS_API=winapi
13735       VAR_OS_ENV=windows.cygwin
13736       ;;
13737     *mingw*)
13738       VAR_OS=windows
13739       VAR_OS_API=winapi
13740       VAR_OS_ENV=windows.msys
13741       ;;
13742     *aix*)
13743       VAR_OS=aix
13744       VAR_OS_API=posix
13745       VAR_OS_ENV=aix
13746       ;;
13747     *)
13748       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13749       ;;
13750   esac
13751 
13752 
13753   # First argument is the cpu name from the trip/quad
13754   case "$host_cpu" in
13755     x86_64)
13756       VAR_CPU=x86_64
13757       VAR_CPU_ARCH=x86
13758       VAR_CPU_BITS=64
13759       VAR_CPU_ENDIAN=little
13760       ;;
13761     i?86)
13762       VAR_CPU=x86
13763       VAR_CPU_ARCH=x86
13764       VAR_CPU_BITS=32
13765       VAR_CPU_ENDIAN=little
13766       ;;
13767     arm*)
13768       VAR_CPU=arm
13769       VAR_CPU_ARCH=arm
13770       VAR_CPU_BITS=32
13771       VAR_CPU_ENDIAN=little
13772       ;;
13773     aarch64)
13774       VAR_CPU=aarch64
13775       VAR_CPU_ARCH=aarch64
13776       VAR_CPU_BITS=64
13777       VAR_CPU_ENDIAN=little
13778       ;;
13779     powerpc)
13780       VAR_CPU=ppc
13781       VAR_CPU_ARCH=ppc
13782       VAR_CPU_BITS=32
13783       VAR_CPU_ENDIAN=big
13784       ;;
13785     powerpc64)
13786       VAR_CPU=ppc64
13787       VAR_CPU_ARCH=ppc
13788       VAR_CPU_BITS=64
13789       VAR_CPU_ENDIAN=big
13790       ;;
13791     powerpc64le)
13792       VAR_CPU=ppc64le
13793       VAR_CPU_ARCH=ppc
13794       VAR_CPU_BITS=64
13795       VAR_CPU_ENDIAN=little
13796       ;;
13797     s390)
13798       VAR_CPU=s390
13799       VAR_CPU_ARCH=s390
13800       VAR_CPU_BITS=32
13801       VAR_CPU_ENDIAN=big
13802       ;;
13803     s390x)
13804       VAR_CPU=s390x
13805       VAR_CPU_ARCH=s390
13806       VAR_CPU_BITS=64
13807       VAR_CPU_ENDIAN=big
13808       ;;
13809     sparc)
13810       VAR_CPU=sparc
13811       VAR_CPU_ARCH=sparc
13812       VAR_CPU_BITS=32
13813       VAR_CPU_ENDIAN=big
13814       ;;
13815     sparcv9|sparc64)
13816       VAR_CPU=sparcv9
13817       VAR_CPU_ARCH=sparc
13818       VAR_CPU_BITS=64
13819       VAR_CPU_ENDIAN=big
13820       ;;
13821     *)
13822       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13823       ;;
13824   esac
13825 
13826   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13827   OPENJDK_TARGET_OS="$VAR_OS"
13828   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13829   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13830   OPENJDK_TARGET_CPU="$VAR_CPU"
13831   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13832   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13833   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13834 
13835 
13836 
13837 
13838 
13839 
13840 
13841 
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13843 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13845 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13846 
13847 
13848 
13849 # Check whether --with-target-bits was given.
13850 if test "${with_target_bits+set}" = set; then :
13851   withval=$with_target_bits;
13852 fi
13853 
13854 
13855   # We have three types of compiles:
13856   # native  == normal compilation, target system == build system
13857   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13858   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13859   #
13860   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13861     # We're doing a proper cross-compilation
13862     COMPILE_TYPE="cross"
13863   else
13864     COMPILE_TYPE="native"
13865   fi
13866 
13867   if test "x$with_target_bits" != x; then
13868     if test "x$COMPILE_TYPE" = "xcross"; then
13869       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13870     fi
13871 
13872     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13873       # A reduced build is requested
13874       COMPILE_TYPE="reduced"
13875       OPENJDK_TARGET_CPU_BITS=32
13876       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13877         OPENJDK_TARGET_CPU=x86
13878       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13879         OPENJDK_TARGET_CPU=sparc
13880       else
13881         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13882       fi
13883     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13884       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
13885     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13886       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13887 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13888     else
13889       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13890     fi
13891   fi
13892 
13893 
13894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13895 $as_echo_n "checking compilation type... " >&6; }
13896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13897 $as_echo "$COMPILE_TYPE" >&6; }
13898 
13899 
13900   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13901     REQUIRED_OS_NAME=SunOS
13902     REQUIRED_OS_VERSION=5.10
13903   fi
13904   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13905     REQUIRED_OS_NAME=Linux
13906     REQUIRED_OS_VERSION=2.6
13907   fi
13908   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13909     REQUIRED_OS_NAME=Windows
13910     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13911       REQUIRED_OS_VERSION=5.2
13912     else
13913       REQUIRED_OS_VERSION=5.1
13914     fi
13915   fi
13916   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13917     REQUIRED_OS_NAME=Darwin
13918     REQUIRED_OS_VERSION=11.2
13919   fi
13920 
13921 
13922 
13923 
13924 
13925   # Also store the legacy naming of the cpu.
13926   # Ie i586 and amd64 instead of x86 and x86_64
13927   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13928   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13929     OPENJDK_TARGET_CPU_LEGACY="i586"
13930   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13931     # On all platforms except MacOSX replace x86_64 with amd64.
13932     OPENJDK_TARGET_CPU_LEGACY="amd64"
13933   fi
13934 
13935 
13936   # And the second legacy naming of the cpu.
13937   # Ie i386 and amd64 instead of x86 and x86_64.
13938   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13939   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13940     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13941   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13942     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13943   fi
13944 
13945 
13946   # This is the name of the cpu (but using i386 and amd64 instead of
13947   # x86 and x86_64, respectively), preceeded by a /, to be used when
13948   # locating libraries. On macosx, it's empty, though.
13949   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13950   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13951     OPENJDK_TARGET_CPU_LIBDIR=""
13952   fi
13953 
13954 
13955   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13956   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13957   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13958   OPENJDK_TARGET_CPU_ISADIR=""
13959   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13960     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13961       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13962     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13963       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13964     fi
13965   fi
13966 
13967 
13968   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13969   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13970   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13971     # On linux only, we replace x86 with i386.
13972     OPENJDK_TARGET_CPU_OSARCH="i386"
13973   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13974     # On all platforms except macosx, we replace x86_64 with amd64.
13975     OPENJDK_TARGET_CPU_OSARCH="amd64"
13976   fi
13977 
13978 
13979   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13980   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13981     OPENJDK_TARGET_CPU_JLI="i386"
13982   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13983     # On all platforms except macosx, we replace x86_64 with amd64.
13984     OPENJDK_TARGET_CPU_JLI="amd64"
13985   fi
13986   # Now setup the -D flags for building libjli.
13987   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13988   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13989     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13990       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13991     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13992       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13993     fi
13994   fi
13995 
13996 
13997   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13998   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13999     OPENJDK_TARGET_OS_API_DIR="solaris"
14000   fi
14001   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
14002     OPENJDK_TARGET_OS_API_DIR="windows"
14003   fi
14004 
14005 
14006   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14007       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14008   else
14009       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
14010   fi
14011 
14012 
14013   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14014     A_LP64="LP64:="
14015     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14016     # unpack200.exe
14017     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14018       ADD_LP64="-D_LP64=1"
14019     fi
14020   fi
14021   LP64=$A_LP64
14022 
14023 
14024   if test "x$COMPILE_TYPE" = "xcross"; then
14025     # FIXME: ... or should this include reduced builds..?
14026     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14027   else
14028     DEFINE_CROSS_COMPILE_ARCH=""
14029   fi
14030 
14031 
14032   # ZERO_ARCHDEF is used to enable architecture-specific code
14033   case "${OPENJDK_TARGET_CPU}" in
14034     ppc)     ZERO_ARCHDEF=PPC32 ;;
14035     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14036     s390*)   ZERO_ARCHDEF=S390  ;;
14037     sparc*)  ZERO_ARCHDEF=SPARC ;;
14038     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14039     x86)     ZERO_ARCHDEF=IA32  ;;
14040     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14041   esac
14042 
14043 
14044 
14045 
14046 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14047 
14048   # Save the current directory this script was started from
14049   CURDIR="$PWD"
14050 
14051   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14052     PATH_SEP=";"
14053 
14054   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14055   if test $SRC_ROOT_LENGTH -gt 100; then
14056     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14057   fi
14058 
14059   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14061 $as_echo_n "checking cygwin release... " >&6; }
14062     CYGWIN_VERSION=`$UNAME -r`
14063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14064 $as_echo "$CYGWIN_VERSION" >&6; }
14065     WINDOWS_ENV_VENDOR='cygwin'
14066     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14067 
14068     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14069     if test "x$CYGWIN_VERSION_OLD" != x; then
14070       { $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
14071 $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;}
14072       as_fn_error $? "Cannot continue" "$LINENO" 5
14073     fi
14074     if test "x$CYGPATH" = x; then
14075       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14076     fi
14077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14078 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14079     # The cmd output ends with Windows line endings (CR/LF)
14080     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14081     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14082     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14084 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14085     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14086     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14087     if test "x$test_cygdrive_prefix" = x; then
14088       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14089     fi
14090   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14092 $as_echo_n "checking msys release... " >&6; }
14093     MSYS_VERSION=`$UNAME -r`
14094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14095 $as_echo "$MSYS_VERSION" >&6; }
14096 
14097     WINDOWS_ENV_VENDOR='msys'
14098     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14099 
14100     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14101 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14102     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14103     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14104 
14105   windows_path="$MSYS_ROOT_PATH"
14106   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14107     unix_path=`$CYGPATH -u "$windows_path"`
14108     MSYS_ROOT_PATH="$unix_path"
14109   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14110     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14111     MSYS_ROOT_PATH="$unix_path"
14112   fi
14113 
14114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14115 $as_echo "$MSYS_ROOT_PATH" >&6; }
14116     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14117   else
14118     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14119   fi
14120 
14121   # Test if windows or unix (cygwin/msys) find is first in path.
14122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14123 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14124   FIND_BINARY_OUTPUT=`find --version 2>&1`
14125   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14127 $as_echo "unix style" >&6; }
14128   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14130 $as_echo "Windows" >&6; }
14131     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14132 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14133     { $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
14134 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14135     as_fn_error $? "Cannot continue" "$LINENO" 5
14136   else
14137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14138 $as_echo "unknown" >&6; }
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14140 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14141   fi
14142 
14143   else
14144     PATH_SEP=":"
14145   fi
14146 
14147 
14148   # We get the top-level directory from the supporting wrappers.
14149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14150 $as_echo_n "checking for top-level directory... " >&6; }
14151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14152 $as_echo "$TOPDIR" >&6; }
14153 
14154 
14155   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14156 
14157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14158 
14159   # Input might be given as Windows format, start by converting to
14160   # unix format.
14161   path="$CURDIR"
14162   new_path=`$CYGPATH -u "$path"`
14163 
14164   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14165   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14166   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14167   # "foo.exe" is OK but "foo" is an error.
14168   #
14169   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14170   # It is also a way to make sure we got the proper file name for the real test later on.
14171   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14172   if test "x$test_shortpath" = x; then
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14174 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14175     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14176   fi
14177 
14178   # Call helper function which possibly converts this using DOS-style short mode.
14179   # If so, the updated path is stored in $new_path.
14180 
14181   input_path="$new_path"
14182   # Check if we need to convert this using DOS-style short mode. If the path
14183   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14184   # take no chances and rewrite it.
14185   # Note: m4 eats our [], so we need to use [ and ] instead.
14186   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14187   if test "x$has_forbidden_chars" != x; then
14188     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14189     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14190     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14191     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14192       # Going to short mode and back again did indeed matter. Since short mode is
14193       # case insensitive, let's make it lowercase to improve readability.
14194       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14195       # Now convert it back to Unix-style (cygpath)
14196       input_path=`$CYGPATH -u "$shortmode_path"`
14197       new_path="$input_path"
14198     fi
14199   fi
14200 
14201   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14202   if test "x$test_cygdrive_prefix" = x; then
14203     # As a simple fix, exclude /usr/bin since it's not a real path.
14204     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14205       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14206       # a path prefixed by /cygdrive for fixpath to work.
14207       new_path="$CYGWIN_ROOT_PATH$input_path"
14208     fi
14209   fi
14210 
14211 
14212   if test "x$path" != "x$new_path"; then
14213     CURDIR="$new_path"
14214     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14215 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14216   fi
14217 
14218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14219 
14220   path="$CURDIR"
14221   has_colon=`$ECHO $path | $GREP ^.:`
14222   new_path="$path"
14223   if test "x$has_colon" = x; then
14224     # Not in mixed or Windows style, start by that.
14225     new_path=`cmd //c echo $path`
14226   fi
14227 
14228 
14229   input_path="$new_path"
14230   # Check if we need to convert this using DOS-style short mode. If the path
14231   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14232   # take no chances and rewrite it.
14233   # Note: m4 eats our [], so we need to use [ and ] instead.
14234   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14235   if test "x$has_forbidden_chars" != x; then
14236     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14237     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14238   fi
14239 
14240 
14241   windows_path="$new_path"
14242   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14243     unix_path=`$CYGPATH -u "$windows_path"`
14244     new_path="$unix_path"
14245   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14246     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14247     new_path="$unix_path"
14248   fi
14249 
14250   if test "x$path" != "x$new_path"; then
14251     CURDIR="$new_path"
14252     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14253 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14254   fi
14255 
14256   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14257   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14258 
14259   else
14260     # We're on a posix platform. Hooray! :)
14261     path="$CURDIR"
14262     has_space=`$ECHO "$path" | $GREP " "`
14263     if test "x$has_space" != x; then
14264       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14265 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14266       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14267     fi
14268 
14269     # Use eval to expand a potential ~
14270     eval path="$path"
14271     if test ! -f "$path" && test ! -d "$path"; then
14272       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14273     fi
14274 
14275     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14276   fi
14277 
14278 
14279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14280 
14281   # Input might be given as Windows format, start by converting to
14282   # unix format.
14283   path="$TOPDIR"
14284   new_path=`$CYGPATH -u "$path"`
14285 
14286   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14287   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14288   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14289   # "foo.exe" is OK but "foo" is an error.
14290   #
14291   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14292   # It is also a way to make sure we got the proper file name for the real test later on.
14293   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14294   if test "x$test_shortpath" = x; then
14295     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14296 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14297     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14298   fi
14299 
14300   # Call helper function which possibly converts this using DOS-style short mode.
14301   # If so, the updated path is stored in $new_path.
14302 
14303   input_path="$new_path"
14304   # Check if we need to convert this using DOS-style short mode. If the path
14305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14306   # take no chances and rewrite it.
14307   # Note: m4 eats our [], so we need to use [ and ] instead.
14308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14309   if test "x$has_forbidden_chars" != x; then
14310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14311     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14312     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14313     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14314       # Going to short mode and back again did indeed matter. Since short mode is
14315       # case insensitive, let's make it lowercase to improve readability.
14316       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14317       # Now convert it back to Unix-style (cygpath)
14318       input_path=`$CYGPATH -u "$shortmode_path"`
14319       new_path="$input_path"
14320     fi
14321   fi
14322 
14323   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14324   if test "x$test_cygdrive_prefix" = x; then
14325     # As a simple fix, exclude /usr/bin since it's not a real path.
14326     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14327       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14328       # a path prefixed by /cygdrive for fixpath to work.
14329       new_path="$CYGWIN_ROOT_PATH$input_path"
14330     fi
14331   fi
14332 
14333 
14334   if test "x$path" != "x$new_path"; then
14335     TOPDIR="$new_path"
14336     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14337 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14338   fi
14339 
14340   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14341 
14342   path="$TOPDIR"
14343   has_colon=`$ECHO $path | $GREP ^.:`
14344   new_path="$path"
14345   if test "x$has_colon" = x; then
14346     # Not in mixed or Windows style, start by that.
14347     new_path=`cmd //c echo $path`
14348   fi
14349 
14350 
14351   input_path="$new_path"
14352   # Check if we need to convert this using DOS-style short mode. If the path
14353   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14354   # take no chances and rewrite it.
14355   # Note: m4 eats our [], so we need to use [ and ] instead.
14356   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14357   if test "x$has_forbidden_chars" != x; then
14358     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14359     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14360   fi
14361 
14362 
14363   windows_path="$new_path"
14364   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14365     unix_path=`$CYGPATH -u "$windows_path"`
14366     new_path="$unix_path"
14367   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14368     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14369     new_path="$unix_path"
14370   fi
14371 
14372   if test "x$path" != "x$new_path"; then
14373     TOPDIR="$new_path"
14374     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14375 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14376   fi
14377 
14378   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14379   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14380 
14381   else
14382     # We're on a posix platform. Hooray! :)
14383     path="$TOPDIR"
14384     has_space=`$ECHO "$path" | $GREP " "`
14385     if test "x$has_space" != x; then
14386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14387 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14388       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14389     fi
14390 
14391     # Use eval to expand a potential ~
14392     eval path="$path"
14393     if test ! -f "$path" && test ! -d "$path"; then
14394       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14395     fi
14396 
14397     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14398   fi
14399 
14400   # SRC_ROOT is a traditional alias for TOPDIR.
14401   SRC_ROOT=$TOPDIR
14402 
14403   # Locate the directory of this script.
14404   AUTOCONF_DIR=$TOPDIR/common/autoconf
14405 
14406 
14407   # Setup default logging of stdout and stderr to build.log in the output root.
14408   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14409   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14410   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14411 
14412 
14413 
14414 
14415 
14416 # Check if it's a pure open build or if custom sources are to be used.
14417 
14418   # Check whether --enable-openjdk-only was given.
14419 if test "${enable_openjdk_only+set}" = set; then :
14420   enableval=$enable_openjdk_only;
14421 else
14422   enable_openjdk_only="no"
14423 fi
14424 
14425 
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14427 $as_echo_n "checking for presence of closed sources... " >&6; }
14428   if test -d "$SRC_ROOT/jdk/src/closed"; then
14429     CLOSED_SOURCE_PRESENT=yes
14430   else
14431     CLOSED_SOURCE_PRESENT=no
14432   fi
14433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14434 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14435 
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14437 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14438   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14440 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14441 
14442   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14443     OPENJDK=true
14444     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14445       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14446 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14447     fi
14448   else
14449     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14450       OPENJDK=true
14451     else
14452       OPENJDK=false
14453     fi
14454   fi
14455 
14456   if test "x$OPENJDK" = "xtrue"; then
14457     SET_OPENJDK="OPENJDK=true"
14458   fi
14459 
14460 
14461 
14462 
14463 # These are needed to be able to create a configuration name (and thus the output directory)
14464 
14465   ###############################################################################
14466   #
14467   # Check which variant of the JDK that we want to build.
14468   # Currently we have:
14469   #    normal:   standard edition
14470   # but the custom make system may add other variants
14471   #
14472   # Effectively the JDK variant gives a name to a specific set of
14473   # modules to compile into the JDK. In the future, these modules
14474   # might even be Jigsaw modules.
14475   #
14476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14477 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14478 
14479 # Check whether --with-jdk-variant was given.
14480 if test "${with_jdk_variant+set}" = set; then :
14481   withval=$with_jdk_variant;
14482 fi
14483 
14484 
14485   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14486     JDK_VARIANT="normal"
14487   else
14488     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14489   fi
14490 
14491 
14492 
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14494 $as_echo "$JDK_VARIANT" >&6; }
14495 
14496 
14497 ###############################################################################
14498 #
14499 # Check which interpreter of the JVM we want to build.
14500 # Currently we have:
14501 #    template: Template interpreter (the default)
14502 #    cpp     : C++ interpreter
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14504 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14505 
14506 # Check whether --with-jvm-interpreter was given.
14507 if test "${with_jvm_interpreter+set}" = set; then :
14508   withval=$with_jvm_interpreter;
14509 fi
14510 
14511 
14512 if test "x$with_jvm_interpreter" = x; then
14513      with_jvm_interpreter="template"
14514 fi
14515 
14516 JVM_INTERPRETER="$with_jvm_interpreter"
14517 
14518 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14519    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14520 fi
14521 
14522 
14523 
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14525 $as_echo "$with_jvm_interpreter" >&6; }
14526 
14527 
14528 
14529   ###############################################################################
14530   #
14531   # Check which variants of the JVM that we want to build.
14532   # Currently we have:
14533   #    server: normal interpreter and a tiered C1/C2 compiler
14534   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14535   #    minimal1: reduced form of client with optional VM services and features stripped out
14536   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14537   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14538   #    zero: no machine code interpreter, no compiler
14539   #    zeroshark: zero interpreter and shark/llvm compiler backend
14540 #    core: interpreter only, no compiler (only works on some platforms)
14541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14542 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14543 
14544 # Check whether --with-jvm-variants was given.
14545 if test "${with_jvm_variants+set}" = set; then :
14546   withval=$with_jvm_variants;
14547 fi
14548 
14549 
14550   if test "x$with_jvm_variants" = x; then
14551     with_jvm_variants="server"
14552   fi
14553 
14554   JVM_VARIANTS=",$with_jvm_variants,"
14555   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,//'`
14556 
14557   if test "x$TEST_VARIANTS" != "x,"; then
14558      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14559   fi
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14561 $as_echo "$with_jvm_variants" >&6; }
14562 
14563   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14564   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14565   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14566   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14567   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14568   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14569   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14570 
14571   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14572     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14573       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14574     fi
14575   fi
14576   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14577     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14578       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14579     fi
14580   fi
14581   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14582     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14583       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14584     fi
14585   fi
14586 
14587   # Replace the commas with AND for use in the build directory name.
14588   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14589   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/'`
14590   if test "x$COUNT_VARIANTS" != "x,1"; then
14591     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14592   else
14593     BUILDING_MULTIPLE_JVM_VARIANTS=no
14594   fi
14595 
14596 
14597 
14598 
14599 
14600 
14601 
14602 
14603 
14604 
14605   INCLUDE_SA=true
14606   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14607     INCLUDE_SA=false
14608   fi
14609   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14610     INCLUDE_SA=false
14611   fi
14612   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14613     INCLUDE_SA=false
14614   fi
14615   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14616     INCLUDE_SA=false
14617   fi
14618 
14619 
14620   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14621     MACOSX_UNIVERSAL="false"
14622   fi
14623 
14624 
14625 
14626 
14627   ###############################################################################
14628   #
14629   # Set the debug level
14630   #    release: no debug information, all optimizations, no asserts.
14631   #    fastdebug: debug information (-g), all optimizations, all asserts
14632   #    slowdebug: debug information (-g), no optimizations, all asserts
14633   #
14634   DEBUG_LEVEL="release"
14635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14636 $as_echo_n "checking which debug level to use... " >&6; }
14637   # Check whether --enable-debug was given.
14638 if test "${enable_debug+set}" = set; then :
14639   enableval=$enable_debug;
14640         ENABLE_DEBUG="${enableval}"
14641         DEBUG_LEVEL="fastdebug"
14642 
14643 else
14644   ENABLE_DEBUG="no"
14645 fi
14646 
14647 
14648 
14649 # Check whether --with-debug-level was given.
14650 if test "${with_debug_level+set}" = set; then :
14651   withval=$with_debug_level;
14652         DEBUG_LEVEL="${withval}"
14653         if test "x$ENABLE_DEBUG" = xyes; then
14654           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14655         fi
14656 
14657 fi
14658 
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14660 $as_echo "$DEBUG_LEVEL" >&6; }
14661 
14662   if test "x$DEBUG_LEVEL" != xrelease && \
14663       test "x$DEBUG_LEVEL" != xfastdebug && \
14664       test "x$DEBUG_LEVEL" != xslowdebug; then
14665     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14666   fi
14667 
14668 
14669   ###############################################################################
14670   #
14671   # Setup legacy vars/targets and new vars to deal with different debug levels.
14672   #
14673 
14674   case $DEBUG_LEVEL in
14675     release )
14676       VARIANT="OPT"
14677       FASTDEBUG="false"
14678       DEBUG_CLASSFILES="false"
14679       BUILD_VARIANT_RELEASE=""
14680       HOTSPOT_DEBUG_LEVEL="product"
14681       HOTSPOT_EXPORT="product"
14682       ;;
14683     fastdebug )
14684       VARIANT="DBG"
14685       FASTDEBUG="true"
14686       DEBUG_CLASSFILES="true"
14687       BUILD_VARIANT_RELEASE="-fastdebug"
14688       HOTSPOT_DEBUG_LEVEL="fastdebug"
14689       HOTSPOT_EXPORT="fastdebug"
14690       ;;
14691     slowdebug )
14692       VARIANT="DBG"
14693       FASTDEBUG="false"
14694       DEBUG_CLASSFILES="true"
14695       BUILD_VARIANT_RELEASE="-debug"
14696       HOTSPOT_DEBUG_LEVEL="jvmg"
14697       HOTSPOT_EXPORT="debug"
14698       ;;
14699   esac
14700 
14701   #####
14702   # Generate the legacy makefile targets for hotspot.
14703   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14704   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14705   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14706   # But until then ...
14707   HOTSPOT_TARGET=""
14708 
14709   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14710     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14711   fi
14712 
14713   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14714     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14715   fi
14716 
14717   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14718     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14719   fi
14720 
14721   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14722     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14723   fi
14724 
14725   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14726     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14727   fi
14728 
14729   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14730     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14731   fi
14732 
14733   if test "x$JVM_VARIANT_CORE" = xtrue; then
14734     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14735   fi
14736 
14737   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14738 
14739   # On Macosx universal binaries are produced, but they only contain
14740   # 64 bit intel. This invalidates control of which jvms are built
14741   # from configure, but only server is valid anyway. Fix this
14742   # when hotspot makefiles are rewritten.
14743   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14744     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14745   fi
14746 
14747   #####
14748 
14749 
14750 
14751 
14752 
14753 
14754 
14755 
14756 # With basic setup done, call the custom early hook.
14757 
14758 
14759 # Check if we have devkits, extra paths or sysroot set.
14760 
14761 
14762 # Check whether --with-devkit was given.
14763 if test "${with_devkit+set}" = set; then :
14764   withval=$with_devkit;
14765 fi
14766 
14767 
14768   if test "x$with_devkit" = xyes; then
14769     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14770   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14771 
14772   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14773 
14774   # Input might be given as Windows format, start by converting to
14775   # unix format.
14776   path="$with_devkit"
14777   new_path=`$CYGPATH -u "$path"`
14778 
14779   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14780   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14781   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14782   # "foo.exe" is OK but "foo" is an error.
14783   #
14784   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14785   # It is also a way to make sure we got the proper file name for the real test later on.
14786   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14787   if test "x$test_shortpath" = x; then
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14789 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14790     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14791   fi
14792 
14793   # Call helper function which possibly converts this using DOS-style short mode.
14794   # If so, the updated path is stored in $new_path.
14795 
14796   input_path="$new_path"
14797   # Check if we need to convert this using DOS-style short mode. If the path
14798   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14799   # take no chances and rewrite it.
14800   # Note: m4 eats our [], so we need to use [ and ] instead.
14801   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14802   if test "x$has_forbidden_chars" != x; then
14803     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14804     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14805     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14806     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14807       # Going to short mode and back again did indeed matter. Since short mode is
14808       # case insensitive, let's make it lowercase to improve readability.
14809       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14810       # Now convert it back to Unix-style (cygpath)
14811       input_path=`$CYGPATH -u "$shortmode_path"`
14812       new_path="$input_path"
14813     fi
14814   fi
14815 
14816   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14817   if test "x$test_cygdrive_prefix" = x; then
14818     # As a simple fix, exclude /usr/bin since it's not a real path.
14819     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14820       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14821       # a path prefixed by /cygdrive for fixpath to work.
14822       new_path="$CYGWIN_ROOT_PATH$input_path"
14823     fi
14824   fi
14825 
14826 
14827   if test "x$path" != "x$new_path"; then
14828     with_devkit="$new_path"
14829     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14830 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14831   fi
14832 
14833   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14834 
14835   path="$with_devkit"
14836   has_colon=`$ECHO $path | $GREP ^.:`
14837   new_path="$path"
14838   if test "x$has_colon" = x; then
14839     # Not in mixed or Windows style, start by that.
14840     new_path=`cmd //c echo $path`
14841   fi
14842 
14843 
14844   input_path="$new_path"
14845   # Check if we need to convert this using DOS-style short mode. If the path
14846   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14847   # take no chances and rewrite it.
14848   # Note: m4 eats our [], so we need to use [ and ] instead.
14849   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14850   if test "x$has_forbidden_chars" != x; then
14851     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14852     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14853   fi
14854 
14855 
14856   windows_path="$new_path"
14857   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14858     unix_path=`$CYGPATH -u "$windows_path"`
14859     new_path="$unix_path"
14860   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14861     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14862     new_path="$unix_path"
14863   fi
14864 
14865   if test "x$path" != "x$new_path"; then
14866     with_devkit="$new_path"
14867     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14868 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14869   fi
14870 
14871   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14872   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14873 
14874   else
14875     # We're on a posix platform. Hooray! :)
14876     path="$with_devkit"
14877     has_space=`$ECHO "$path" | $GREP " "`
14878     if test "x$has_space" != x; then
14879       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14880 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14881       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14882     fi
14883 
14884     # Use eval to expand a potential ~
14885     eval path="$path"
14886     if test ! -f "$path" && test ! -d "$path"; then
14887       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14888     fi
14889 
14890     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14891   fi
14892 
14893     DEVKIT_ROOT="$with_devkit"
14894     # Check for a meta data info file in the root of the devkit
14895     if test -f "$DEVKIT_ROOT/devkit.info"; then
14896       . $DEVKIT_ROOT/devkit.info
14897       # This potentially sets the following:
14898       # A descriptive name of the devkit
14899 
14900   if test "x$DEVKIT_NAME" = x; then
14901     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14902   fi
14903 
14904       # Corresponds to --with-extra-path
14905 
14906   if test "x$DEVKIT_EXTRA_PATH" = x; then
14907     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14908   fi
14909 
14910       # Corresponds to --with-toolchain-path
14911 
14912   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14913     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14914   fi
14915 
14916       # Corresponds to --with-sysroot
14917 
14918   if test "x$DEVKIT_SYSROOT" = x; then
14919     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14920   fi
14921 
14922 
14923       # Identifies the Visual Studio version in the devkit
14924 
14925   if test "x$DEVKIT_VS_VERSION" = x; then
14926     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14927   fi
14928 
14929       # The Visual Studio include environment variable
14930 
14931   if test "x$DEVKIT_VS_INCLUDE" = x; then
14932     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14933   fi
14934 
14935       # The Visual Studio lib environment variable
14936 
14937   if test "x$DEVKIT_VS_LIB" = x; then
14938     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14939   fi
14940 
14941       # Corresponds to --with-msvcr-dll
14942 
14943   if test "x$DEVKIT_MSVCR_DLL" = x; then
14944     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14945   fi
14946 
14947       # Corresponds to --with-msvcp-dll
14948 
14949   if test "x$DEVKIT_MSVCP_DLL" = x; then
14950     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14951   fi
14952 
14953       # Corresponds to --with-ucrt-dll-dir
14954 
14955   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14956     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14957   fi
14958 
14959     fi
14960 
14961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14962 $as_echo_n "checking for devkit... " >&6; }
14963     if test "x$DEVKIT_NAME" != x; then
14964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14965 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14966     else
14967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14968 $as_echo "$DEVKIT_ROOT" >&6; }
14969     fi
14970 
14971 
14972   if test "x$DEVKIT_EXTRA_PATH" != x; then
14973     if test "x$EXTRA_PATH" = x; then
14974       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14975     else
14976       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14977     fi
14978   fi
14979 
14980 
14981     # Fallback default of just /bin if DEVKIT_PATH is not defined
14982     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14983       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14984     fi
14985 
14986   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14987     if test "x$TOOLCHAIN_PATH" = x; then
14988       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14989     else
14990       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14991     fi
14992   fi
14993 
14994 
14995     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14996     # places for backwards compatiblity.
14997     if test "x$DEVKIT_SYSROOT" != x; then
14998       SYSROOT="$DEVKIT_SYSROOT"
14999     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15000       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15001     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15002       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15003     fi
15004 
15005     if test "x$DEVKIT_ROOT" != x; then
15006       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
15007       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15008         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
15009       fi
15010 
15011     fi
15012   fi
15013 
15014   # You can force the sysroot if the sysroot encoded into the compiler tools
15015   # is not correct.
15016 
15017 # Check whether --with-sys-root was given.
15018 if test "${with_sys_root+set}" = set; then :
15019   withval=$with_sys_root; SYSROOT=$with_sys_root
15020 
15021 fi
15022 
15023 
15024 
15025 # Check whether --with-sysroot was given.
15026 if test "${with_sysroot+set}" = set; then :
15027   withval=$with_sysroot; SYSROOT=$with_sysroot
15028 
15029 fi
15030 
15031 
15032 
15033 # Check whether --with-tools-dir was given.
15034 if test "${with_tools_dir+set}" = set; then :
15035   withval=$with_tools_dir;
15036   if test "x$with_tools_dir" != x; then
15037     if test "x$TOOLCHAIN_PATH" = x; then
15038       TOOLCHAIN_PATH="$with_tools_dir"
15039     else
15040       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15041     fi
15042   fi
15043 
15044 
15045 fi
15046 
15047 
15048 
15049 # Check whether --with-toolchain-path was given.
15050 if test "${with_toolchain_path+set}" = set; then :
15051   withval=$with_toolchain_path;
15052   if test "x$with_toolchain_path" != x; then
15053     if test "x$TOOLCHAIN_PATH" = x; then
15054       TOOLCHAIN_PATH="$with_toolchain_path"
15055     else
15056       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15057     fi
15058   fi
15059 
15060 
15061 fi
15062 
15063 
15064 
15065 # Check whether --with-extra-path was given.
15066 if test "${with_extra_path+set}" = set; then :
15067   withval=$with_extra_path;
15068   if test "x$with_extra_path" != x; then
15069     if test "x$EXTRA_PATH" = x; then
15070       EXTRA_PATH="$with_extra_path"
15071     else
15072       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15073     fi
15074   fi
15075 
15076 
15077 fi
15078 
15079 
15080   # Prepend the extra path to the global path
15081 
15082   if test "x$EXTRA_PATH" != x; then
15083     if test "x$PATH" = x; then
15084       PATH="$EXTRA_PATH"
15085     else
15086       PATH="$EXTRA_PATH:$PATH"
15087     fi
15088   fi
15089 
15090 
15091   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15092     # Add extra search paths on solaris for utilities like ar and as etc...
15093     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15094   fi
15095 
15096   # Xcode version will be validated later
15097 
15098 # Check whether --with-xcode-path was given.
15099 if test "${with_xcode_path+set}" = set; then :
15100   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15101 
15102 fi
15103 
15104 
15105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15106 $as_echo_n "checking for sysroot... " >&6; }
15107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15108 $as_echo "$SYSROOT" >&6; }
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15110 $as_echo_n "checking for toolchain path... " >&6; }
15111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15112 $as_echo "$TOOLCHAIN_PATH" >&6; }
15113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15114 $as_echo_n "checking for extra path... " >&6; }
15115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15116 $as_echo "$EXTRA_PATH" >&6; }
15117 
15118 
15119 # To properly create a configuration name, we need to have the OpenJDK target
15120 # and options (variants and debug level) parsed.
15121 
15122 
15123 
15124 # Check whether --with-conf-name was given.
15125 if test "${with_conf_name+set}" = set; then :
15126   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15127 fi
15128 
15129 
15130   # Test from where we are running configure, in or outside of src root.
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15132 $as_echo_n "checking where to store configuration... " >&6; }
15133   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15134       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15135       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15136     # We are running configure from the src root.
15137     # Create a default ./build/target-variant-debuglevel output root.
15138     if test "x${CONF_NAME}" = x; then
15139       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15140 $as_echo "in default location" >&6; }
15141       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15142     else
15143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15144 $as_echo "in build directory with custom name" >&6; }
15145     fi
15146     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15147     $MKDIR -p "$OUTPUT_ROOT"
15148     if test ! -d "$OUTPUT_ROOT"; then
15149       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15150     fi
15151   else
15152     # We are running configure from outside of the src dir.
15153     # Then use the current directory as output dir!
15154     # If configuration is situated in normal build directory, just use the build
15155     # directory name as configuration name, otherwise use the complete path.
15156     if test "x${CONF_NAME}" = x; then
15157       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15158     fi
15159     OUTPUT_ROOT="$CURDIR"
15160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15161 $as_echo "in current directory" >&6; }
15162 
15163     # WARNING: This might be a bad thing to do. You need to be sure you want to
15164     # have a configuration in this directory. Do some sanity checks!
15165 
15166     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15167       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15168       # other files
15169       files_present=`$LS $OUTPUT_ROOT`
15170       # Configure has already touched config.log and confdefs.h in the current dir when this check
15171       # is performed.
15172       filtered_files=`$ECHO "$files_present" \
15173           | $SED -e 's/config.log//g' \
15174               -e 's/confdefs.h//g' \
15175               -e 's/fixpath.exe//g' \
15176               -e 's/ //g' \
15177           | $TR -d '\n'`
15178       if test "x$filtered_files" != x; then
15179         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15180 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15181         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15182 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15183         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15184 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15185         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15186 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15187         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15188 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15189         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15190 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15191         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15192 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15193         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15194       fi
15195     fi
15196   fi
15197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15198 $as_echo_n "checking what configuration name to use... " >&6; }
15199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15200 $as_echo "$CONF_NAME" >&6; }
15201 
15202 
15203   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15204 
15205   # Input might be given as Windows format, start by converting to
15206   # unix format.
15207   path="$OUTPUT_ROOT"
15208   new_path=`$CYGPATH -u "$path"`
15209 
15210   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15211   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15212   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15213   # "foo.exe" is OK but "foo" is an error.
15214   #
15215   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15216   # It is also a way to make sure we got the proper file name for the real test later on.
15217   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15218   if test "x$test_shortpath" = x; then
15219     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15220 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15221     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15222   fi
15223 
15224   # Call helper function which possibly converts this using DOS-style short mode.
15225   # If so, the updated path is stored in $new_path.
15226 
15227   input_path="$new_path"
15228   # Check if we need to convert this using DOS-style short mode. If the path
15229   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15230   # take no chances and rewrite it.
15231   # Note: m4 eats our [], so we need to use [ and ] instead.
15232   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15233   if test "x$has_forbidden_chars" != x; then
15234     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15235     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15236     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15237     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15238       # Going to short mode and back again did indeed matter. Since short mode is
15239       # case insensitive, let's make it lowercase to improve readability.
15240       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15241       # Now convert it back to Unix-style (cygpath)
15242       input_path=`$CYGPATH -u "$shortmode_path"`
15243       new_path="$input_path"
15244     fi
15245   fi
15246 
15247   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15248   if test "x$test_cygdrive_prefix" = x; then
15249     # As a simple fix, exclude /usr/bin since it's not a real path.
15250     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15251       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15252       # a path prefixed by /cygdrive for fixpath to work.
15253       new_path="$CYGWIN_ROOT_PATH$input_path"
15254     fi
15255   fi
15256 
15257 
15258   if test "x$path" != "x$new_path"; then
15259     OUTPUT_ROOT="$new_path"
15260     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15261 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15262   fi
15263 
15264   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15265 
15266   path="$OUTPUT_ROOT"
15267   has_colon=`$ECHO $path | $GREP ^.:`
15268   new_path="$path"
15269   if test "x$has_colon" = x; then
15270     # Not in mixed or Windows style, start by that.
15271     new_path=`cmd //c echo $path`
15272   fi
15273 
15274 
15275   input_path="$new_path"
15276   # Check if we need to convert this using DOS-style short mode. If the path
15277   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15278   # take no chances and rewrite it.
15279   # Note: m4 eats our [], so we need to use [ and ] instead.
15280   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15281   if test "x$has_forbidden_chars" != x; then
15282     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15283     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15284   fi
15285 
15286 
15287   windows_path="$new_path"
15288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15289     unix_path=`$CYGPATH -u "$windows_path"`
15290     new_path="$unix_path"
15291   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15292     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15293     new_path="$unix_path"
15294   fi
15295 
15296   if test "x$path" != "x$new_path"; then
15297     OUTPUT_ROOT="$new_path"
15298     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15299 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15300   fi
15301 
15302   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15303   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15304 
15305   else
15306     # We're on a posix platform. Hooray! :)
15307     path="$OUTPUT_ROOT"
15308     has_space=`$ECHO "$path" | $GREP " "`
15309     if test "x$has_space" != x; then
15310       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15311 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15312       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15313     fi
15314 
15315     # Use eval to expand a potential ~
15316     eval path="$path"
15317     if test ! -f "$path" && test ! -d "$path"; then
15318       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15319     fi
15320 
15321     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15322   fi
15323 
15324 
15325   SPEC=$OUTPUT_ROOT/spec.gmk
15326 
15327   CONF_NAME=$CONF_NAME
15328 
15329   OUTPUT_ROOT=$OUTPUT_ROOT
15330 
15331 
15332   # Most of the probed defines are put into config.h
15333   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15334 
15335   # The spec.gmk file contains all variables for the make system.
15336   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15337 
15338   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15339   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15340 
15341   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15342   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15343 
15344   # The compare.sh is used to compare the build output to other builds.
15345   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15346 
15347   # Spec.sh is currently used by compare-objects.sh
15348   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15349 
15350   # The generated Makefile knows where the spec.gmk is and where the source is.
15351   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15352   # which will look for generated configurations
15353   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15354 
15355 
15356 
15357 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15358 
15359   for ac_prog in apt-get yum port pkgutil pkgadd
15360 do
15361   # Extract the first word of "$ac_prog", so it can be a program name with args.
15362 set dummy $ac_prog; ac_word=$2
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15364 $as_echo_n "checking for $ac_word... " >&6; }
15365 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15366   $as_echo_n "(cached) " >&6
15367 else
15368   if test -n "$PKGHANDLER"; then
15369   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15370 else
15371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15372 for as_dir in $PATH
15373 do
15374   IFS=$as_save_IFS
15375   test -z "$as_dir" && as_dir=.
15376     for ac_exec_ext in '' $ac_executable_extensions; do
15377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15378     ac_cv_prog_PKGHANDLER="$ac_prog"
15379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15380     break 2
15381   fi
15382 done
15383   done
15384 IFS=$as_save_IFS
15385 
15386 fi
15387 fi
15388 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15389 if test -n "$PKGHANDLER"; then
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15391 $as_echo "$PKGHANDLER" >&6; }
15392 else
15393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15395 fi
15396 
15397 
15398   test -n "$PKGHANDLER" && break
15399 done
15400 
15401 
15402 
15403 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15404 
15405 
15406   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15407   if test "x$MAKE" != x; then
15408     # User has supplied a make, test it.
15409     if test ! -f "$MAKE"; then
15410       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15411     fi
15412 
15413   MAKE_CANDIDATE=""$MAKE""
15414   DESCRIPTION="user supplied MAKE=$MAKE"
15415   if test "x$MAKE_CANDIDATE" != x; then
15416     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15417 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15418     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15419     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15420     if test "x$IS_GNU_MAKE" = x; then
15421       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15422 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15423     else
15424       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15425       if test "x$IS_MODERN_MAKE" = x; then
15426         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15427 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15428       else
15429         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15430           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15431             MAKE_EXPECTED_ENV='cygwin'
15432           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15433             MAKE_EXPECTED_ENV='msys'
15434           else
15435             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15436           fi
15437           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15438           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15439         else
15440           # Not relevant for non-Windows
15441           IS_MAKE_CORRECT_ENV=true
15442         fi
15443         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15444           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15445 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15446         else
15447           FOUND_MAKE=$MAKE_CANDIDATE
15448 
15449   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15450 
15451   # First separate the path from the arguments. This will split at the first
15452   # space.
15453   complete="$FOUND_MAKE"
15454   path="${complete%% *}"
15455   tmp="$complete EOL"
15456   arguments="${tmp#* }"
15457 
15458   # Input might be given as Windows format, start by converting to
15459   # unix format.
15460   new_path=`$CYGPATH -u "$path"`
15461 
15462   # Now try to locate executable using which
15463   new_path=`$WHICH "$new_path" 2> /dev/null`
15464   # bat and cmd files are not always considered executable in cygwin causing which
15465   # to not find them
15466   if test "x$new_path" = x \
15467       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15468       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15469     new_path=`$CYGPATH -u "$path"`
15470   fi
15471   if test "x$new_path" = x; then
15472     # Oops. Which didn't find the executable.
15473     # The splitting of arguments from the executable at a space might have been incorrect,
15474     # since paths with space are more likely in Windows. Give it another try with the whole
15475     # argument.
15476     path="$complete"
15477     arguments="EOL"
15478     new_path=`$CYGPATH -u "$path"`
15479     new_path=`$WHICH "$new_path" 2> /dev/null`
15480     # bat and cmd files are not always considered executable in cygwin causing which
15481     # to not find them
15482     if test "x$new_path" = x \
15483         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15484         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15485       new_path=`$CYGPATH -u "$path"`
15486     fi
15487     if test "x$new_path" = x; then
15488       # It's still not found. Now this is an unrecoverable error.
15489       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15490 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15491       has_space=`$ECHO "$complete" | $GREP " "`
15492       if test "x$has_space" != x; then
15493         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15494 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15495       fi
15496       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15497     fi
15498   fi
15499 
15500   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15501   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15502   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15503   # "foo.exe" is OK but "foo" is an error.
15504   #
15505   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15506   # It is also a way to make sure we got the proper file name for the real test later on.
15507   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15508   if test "x$test_shortpath" = x; then
15509     # Short path failed, file does not exist as specified.
15510     # Try adding .exe or .cmd
15511     if test -f "${new_path}.exe"; then
15512       input_to_shortpath="${new_path}.exe"
15513     elif test -f "${new_path}.cmd"; then
15514       input_to_shortpath="${new_path}.cmd"
15515     else
15516       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15517 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15518       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15519 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15520       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15521     fi
15522   else
15523     input_to_shortpath="$new_path"
15524   fi
15525 
15526   # Call helper function which possibly converts this using DOS-style short mode.
15527   # If so, the updated path is stored in $new_path.
15528   new_path="$input_to_shortpath"
15529 
15530   input_path="$input_to_shortpath"
15531   # Check if we need to convert this using DOS-style short mode. If the path
15532   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15533   # take no chances and rewrite it.
15534   # Note: m4 eats our [], so we need to use [ and ] instead.
15535   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15536   if test "x$has_forbidden_chars" != x; then
15537     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15538     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15539     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15540     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15541       # Going to short mode and back again did indeed matter. Since short mode is
15542       # case insensitive, let's make it lowercase to improve readability.
15543       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15544       # Now convert it back to Unix-style (cygpath)
15545       input_path=`$CYGPATH -u "$shortmode_path"`
15546       new_path="$input_path"
15547     fi
15548   fi
15549 
15550   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15551   if test "x$test_cygdrive_prefix" = x; then
15552     # As a simple fix, exclude /usr/bin since it's not a real path.
15553     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15554       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15555       # a path prefixed by /cygdrive for fixpath to work.
15556       new_path="$CYGWIN_ROOT_PATH$input_path"
15557     fi
15558   fi
15559 
15560   # remove trailing .exe if any
15561   new_path="${new_path/%.exe/}"
15562 
15563   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15564 
15565   # First separate the path from the arguments. This will split at the first
15566   # space.
15567   complete="$FOUND_MAKE"
15568   path="${complete%% *}"
15569   tmp="$complete EOL"
15570   arguments="${tmp#* }"
15571 
15572   # Input might be given as Windows format, start by converting to
15573   # unix format.
15574   new_path="$path"
15575 
15576   windows_path="$new_path"
15577   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15578     unix_path=`$CYGPATH -u "$windows_path"`
15579     new_path="$unix_path"
15580   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15581     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15582     new_path="$unix_path"
15583   fi
15584 
15585 
15586   # Now try to locate executable using which
15587   new_path=`$WHICH "$new_path" 2> /dev/null`
15588 
15589   if test "x$new_path" = x; then
15590     # Oops. Which didn't find the executable.
15591     # The splitting of arguments from the executable at a space might have been incorrect,
15592     # since paths with space are more likely in Windows. Give it another try with the whole
15593     # argument.
15594     path="$complete"
15595     arguments="EOL"
15596     new_path="$path"
15597 
15598   windows_path="$new_path"
15599   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15600     unix_path=`$CYGPATH -u "$windows_path"`
15601     new_path="$unix_path"
15602   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15603     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15604     new_path="$unix_path"
15605   fi
15606 
15607 
15608     new_path=`$WHICH "$new_path" 2> /dev/null`
15609     # bat and cmd files are not always considered executable in MSYS causing which
15610     # to not find them
15611     if test "x$new_path" = x \
15612         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15613         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15614       new_path="$path"
15615 
15616   windows_path="$new_path"
15617   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15618     unix_path=`$CYGPATH -u "$windows_path"`
15619     new_path="$unix_path"
15620   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15621     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15622     new_path="$unix_path"
15623   fi
15624 
15625     fi
15626 
15627     if test "x$new_path" = x; then
15628       # It's still not found. Now this is an unrecoverable error.
15629       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15630 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15631       has_space=`$ECHO "$complete" | $GREP " "`
15632       if test "x$has_space" != x; then
15633         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15634 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15635       fi
15636       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15637     fi
15638   fi
15639 
15640   # Now new_path has a complete unix path to the binary
15641   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15642     # Keep paths in /bin as-is, but remove trailing .exe if any
15643     new_path="${new_path/%.exe/}"
15644     # Do not save /bin paths to all_fixpath_prefixes!
15645   else
15646     # Not in mixed or Windows style, start by that.
15647     new_path=`cmd //c echo $new_path`
15648 
15649   input_path="$new_path"
15650   # Check if we need to convert this using DOS-style short mode. If the path
15651   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15652   # take no chances and rewrite it.
15653   # Note: m4 eats our [], so we need to use [ and ] instead.
15654   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15655   if test "x$has_forbidden_chars" != x; then
15656     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15657     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15658   fi
15659 
15660     # Output is in $new_path
15661 
15662   windows_path="$new_path"
15663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15664     unix_path=`$CYGPATH -u "$windows_path"`
15665     new_path="$unix_path"
15666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15668     new_path="$unix_path"
15669   fi
15670 
15671     # remove trailing .exe if any
15672     new_path="${new_path/%.exe/}"
15673 
15674     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15675     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15676   fi
15677 
15678   else
15679     # We're on a posix platform. Hooray! :)
15680     # First separate the path from the arguments. This will split at the first
15681     # space.
15682     complete="$FOUND_MAKE"
15683     path="${complete%% *}"
15684     tmp="$complete EOL"
15685     arguments="${tmp#* }"
15686 
15687     # Cannot rely on the command "which" here since it doesn't always work.
15688     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15689     if test -z "$is_absolute_path"; then
15690       # Path to executable is not absolute. Find it.
15691       IFS_save="$IFS"
15692       IFS=:
15693       for p in $PATH; do
15694         if test -f "$p/$path" && test -x "$p/$path"; then
15695           new_path="$p/$path"
15696           break
15697         fi
15698       done
15699       IFS="$IFS_save"
15700     else
15701       # This is an absolute path, we can use it without further modifications.
15702       new_path="$path"
15703     fi
15704 
15705     if test "x$new_path" = x; then
15706       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15707 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15708       has_space=`$ECHO "$complete" | $GREP " "`
15709       if test "x$has_space" != x; then
15710         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15711 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15712       fi
15713       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15714     fi
15715   fi
15716 
15717   # Now join together the path and the arguments once again
15718   if test "x$arguments" != xEOL; then
15719     new_complete="$new_path ${arguments% *}"
15720   else
15721     new_complete="$new_path"
15722   fi
15723 
15724   if test "x$complete" != "x$new_complete"; then
15725     FOUND_MAKE="$new_complete"
15726     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15727 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15728   fi
15729 
15730         fi
15731       fi
15732     fi
15733   fi
15734 
15735     if test "x$FOUND_MAKE" = x; then
15736       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15737     fi
15738   else
15739     # Try our hardest to locate a correct version of GNU make
15740     for ac_prog in gmake
15741 do
15742   # Extract the first word of "$ac_prog", so it can be a program name with args.
15743 set dummy $ac_prog; ac_word=$2
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15745 $as_echo_n "checking for $ac_word... " >&6; }
15746 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15747   $as_echo_n "(cached) " >&6
15748 else
15749   case $CHECK_GMAKE in
15750   [\\/]* | ?:[\\/]*)
15751   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15752   ;;
15753   *)
15754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15755 for as_dir in $PATH
15756 do
15757   IFS=$as_save_IFS
15758   test -z "$as_dir" && as_dir=.
15759     for ac_exec_ext in '' $ac_executable_extensions; do
15760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15761     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15763     break 2
15764   fi
15765 done
15766   done
15767 IFS=$as_save_IFS
15768 
15769   ;;
15770 esac
15771 fi
15772 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15773 if test -n "$CHECK_GMAKE"; then
15774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15775 $as_echo "$CHECK_GMAKE" >&6; }
15776 else
15777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778 $as_echo "no" >&6; }
15779 fi
15780 
15781 
15782   test -n "$CHECK_GMAKE" && break
15783 done
15784 
15785 
15786   MAKE_CANDIDATE=""$CHECK_GMAKE""
15787   DESCRIPTION="gmake in PATH"
15788   if test "x$MAKE_CANDIDATE" != x; then
15789     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15790 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15791     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15792     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15793     if test "x$IS_GNU_MAKE" = x; then
15794       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15795 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15796     else
15797       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15798       if test "x$IS_MODERN_MAKE" = x; then
15799         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15800 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15801       else
15802         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15803           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15804             MAKE_EXPECTED_ENV='cygwin'
15805           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15806             MAKE_EXPECTED_ENV='msys'
15807           else
15808             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15809           fi
15810           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15811           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15812         else
15813           # Not relevant for non-Windows
15814           IS_MAKE_CORRECT_ENV=true
15815         fi
15816         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15817           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15818 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15819         else
15820           FOUND_MAKE=$MAKE_CANDIDATE
15821 
15822   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15823 
15824   # First separate the path from the arguments. This will split at the first
15825   # space.
15826   complete="$FOUND_MAKE"
15827   path="${complete%% *}"
15828   tmp="$complete EOL"
15829   arguments="${tmp#* }"
15830 
15831   # Input might be given as Windows format, start by converting to
15832   # unix format.
15833   new_path=`$CYGPATH -u "$path"`
15834 
15835   # Now try to locate executable using which
15836   new_path=`$WHICH "$new_path" 2> /dev/null`
15837   # bat and cmd files are not always considered executable in cygwin causing which
15838   # to not find them
15839   if test "x$new_path" = x \
15840       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15841       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15842     new_path=`$CYGPATH -u "$path"`
15843   fi
15844   if test "x$new_path" = x; then
15845     # Oops. Which didn't find the executable.
15846     # The splitting of arguments from the executable at a space might have been incorrect,
15847     # since paths with space are more likely in Windows. Give it another try with the whole
15848     # argument.
15849     path="$complete"
15850     arguments="EOL"
15851     new_path=`$CYGPATH -u "$path"`
15852     new_path=`$WHICH "$new_path" 2> /dev/null`
15853     # bat and cmd files are not always considered executable in cygwin causing which
15854     # to not find them
15855     if test "x$new_path" = x \
15856         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15857         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15858       new_path=`$CYGPATH -u "$path"`
15859     fi
15860     if test "x$new_path" = x; then
15861       # It's still not found. Now this is an unrecoverable error.
15862       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15863 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15864       has_space=`$ECHO "$complete" | $GREP " "`
15865       if test "x$has_space" != x; then
15866         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15867 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15868       fi
15869       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15870     fi
15871   fi
15872 
15873   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15874   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15875   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15876   # "foo.exe" is OK but "foo" is an error.
15877   #
15878   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15879   # It is also a way to make sure we got the proper file name for the real test later on.
15880   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15881   if test "x$test_shortpath" = x; then
15882     # Short path failed, file does not exist as specified.
15883     # Try adding .exe or .cmd
15884     if test -f "${new_path}.exe"; then
15885       input_to_shortpath="${new_path}.exe"
15886     elif test -f "${new_path}.cmd"; then
15887       input_to_shortpath="${new_path}.cmd"
15888     else
15889       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15890 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15891       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15892 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15893       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15894     fi
15895   else
15896     input_to_shortpath="$new_path"
15897   fi
15898 
15899   # Call helper function which possibly converts this using DOS-style short mode.
15900   # If so, the updated path is stored in $new_path.
15901   new_path="$input_to_shortpath"
15902 
15903   input_path="$input_to_shortpath"
15904   # Check if we need to convert this using DOS-style short mode. If the path
15905   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15906   # take no chances and rewrite it.
15907   # Note: m4 eats our [], so we need to use [ and ] instead.
15908   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15909   if test "x$has_forbidden_chars" != x; then
15910     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15911     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15912     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15913     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15914       # Going to short mode and back again did indeed matter. Since short mode is
15915       # case insensitive, let's make it lowercase to improve readability.
15916       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15917       # Now convert it back to Unix-style (cygpath)
15918       input_path=`$CYGPATH -u "$shortmode_path"`
15919       new_path="$input_path"
15920     fi
15921   fi
15922 
15923   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15924   if test "x$test_cygdrive_prefix" = x; then
15925     # As a simple fix, exclude /usr/bin since it's not a real path.
15926     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15927       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15928       # a path prefixed by /cygdrive for fixpath to work.
15929       new_path="$CYGWIN_ROOT_PATH$input_path"
15930     fi
15931   fi
15932 
15933   # remove trailing .exe if any
15934   new_path="${new_path/%.exe/}"
15935 
15936   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15937 
15938   # First separate the path from the arguments. This will split at the first
15939   # space.
15940   complete="$FOUND_MAKE"
15941   path="${complete%% *}"
15942   tmp="$complete EOL"
15943   arguments="${tmp#* }"
15944 
15945   # Input might be given as Windows format, start by converting to
15946   # unix format.
15947   new_path="$path"
15948 
15949   windows_path="$new_path"
15950   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15951     unix_path=`$CYGPATH -u "$windows_path"`
15952     new_path="$unix_path"
15953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15954     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15955     new_path="$unix_path"
15956   fi
15957 
15958 
15959   # Now try to locate executable using which
15960   new_path=`$WHICH "$new_path" 2> /dev/null`
15961 
15962   if test "x$new_path" = x; then
15963     # Oops. Which didn't find the executable.
15964     # The splitting of arguments from the executable at a space might have been incorrect,
15965     # since paths with space are more likely in Windows. Give it another try with the whole
15966     # argument.
15967     path="$complete"
15968     arguments="EOL"
15969     new_path="$path"
15970 
15971   windows_path="$new_path"
15972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15973     unix_path=`$CYGPATH -u "$windows_path"`
15974     new_path="$unix_path"
15975   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15976     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15977     new_path="$unix_path"
15978   fi
15979 
15980 
15981     new_path=`$WHICH "$new_path" 2> /dev/null`
15982     # bat and cmd files are not always considered executable in MSYS causing which
15983     # to not find them
15984     if test "x$new_path" = x \
15985         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15986         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15987       new_path="$path"
15988 
15989   windows_path="$new_path"
15990   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15991     unix_path=`$CYGPATH -u "$windows_path"`
15992     new_path="$unix_path"
15993   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15994     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15995     new_path="$unix_path"
15996   fi
15997 
15998     fi
15999 
16000     if test "x$new_path" = x; then
16001       # It's still not found. Now this is an unrecoverable error.
16002       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16003 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16004       has_space=`$ECHO "$complete" | $GREP " "`
16005       if test "x$has_space" != x; then
16006         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16007 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16008       fi
16009       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16010     fi
16011   fi
16012 
16013   # Now new_path has a complete unix path to the binary
16014   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16015     # Keep paths in /bin as-is, but remove trailing .exe if any
16016     new_path="${new_path/%.exe/}"
16017     # Do not save /bin paths to all_fixpath_prefixes!
16018   else
16019     # Not in mixed or Windows style, start by that.
16020     new_path=`cmd //c echo $new_path`
16021 
16022   input_path="$new_path"
16023   # Check if we need to convert this using DOS-style short mode. If the path
16024   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16025   # take no chances and rewrite it.
16026   # Note: m4 eats our [], so we need to use [ and ] instead.
16027   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16028   if test "x$has_forbidden_chars" != x; then
16029     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16030     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16031   fi
16032 
16033     # Output is in $new_path
16034 
16035   windows_path="$new_path"
16036   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16037     unix_path=`$CYGPATH -u "$windows_path"`
16038     new_path="$unix_path"
16039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16040     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16041     new_path="$unix_path"
16042   fi
16043 
16044     # remove trailing .exe if any
16045     new_path="${new_path/%.exe/}"
16046 
16047     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16048     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16049   fi
16050 
16051   else
16052     # We're on a posix platform. Hooray! :)
16053     # First separate the path from the arguments. This will split at the first
16054     # space.
16055     complete="$FOUND_MAKE"
16056     path="${complete%% *}"
16057     tmp="$complete EOL"
16058     arguments="${tmp#* }"
16059 
16060     # Cannot rely on the command "which" here since it doesn't always work.
16061     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16062     if test -z "$is_absolute_path"; then
16063       # Path to executable is not absolute. Find it.
16064       IFS_save="$IFS"
16065       IFS=:
16066       for p in $PATH; do
16067         if test -f "$p/$path" && test -x "$p/$path"; then
16068           new_path="$p/$path"
16069           break
16070         fi
16071       done
16072       IFS="$IFS_save"
16073     else
16074       # This is an absolute path, we can use it without further modifications.
16075       new_path="$path"
16076     fi
16077 
16078     if test "x$new_path" = x; then
16079       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16080 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16081       has_space=`$ECHO "$complete" | $GREP " "`
16082       if test "x$has_space" != x; then
16083         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16084 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16085       fi
16086       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16087     fi
16088   fi
16089 
16090   # Now join together the path and the arguments once again
16091   if test "x$arguments" != xEOL; then
16092     new_complete="$new_path ${arguments% *}"
16093   else
16094     new_complete="$new_path"
16095   fi
16096 
16097   if test "x$complete" != "x$new_complete"; then
16098     FOUND_MAKE="$new_complete"
16099     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16100 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16101   fi
16102 
16103         fi
16104       fi
16105     fi
16106   fi
16107 
16108 
16109     if test "x$FOUND_MAKE" = x; then
16110       for ac_prog in make
16111 do
16112   # Extract the first word of "$ac_prog", so it can be a program name with args.
16113 set dummy $ac_prog; ac_word=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16117   $as_echo_n "(cached) " >&6
16118 else
16119   case $CHECK_MAKE in
16120   [\\/]* | ?:[\\/]*)
16121   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16122   ;;
16123   *)
16124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16126 do
16127   IFS=$as_save_IFS
16128   test -z "$as_dir" && as_dir=.
16129     for ac_exec_ext in '' $ac_executable_extensions; do
16130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16131     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16133     break 2
16134   fi
16135 done
16136   done
16137 IFS=$as_save_IFS
16138 
16139   ;;
16140 esac
16141 fi
16142 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16143 if test -n "$CHECK_MAKE"; then
16144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16145 $as_echo "$CHECK_MAKE" >&6; }
16146 else
16147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148 $as_echo "no" >&6; }
16149 fi
16150 
16151 
16152   test -n "$CHECK_MAKE" && break
16153 done
16154 
16155 
16156   MAKE_CANDIDATE=""$CHECK_MAKE""
16157   DESCRIPTION="make in PATH"
16158   if test "x$MAKE_CANDIDATE" != x; then
16159     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16160 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16161     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16162     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16163     if test "x$IS_GNU_MAKE" = x; then
16164       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16165 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16166     else
16167       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16168       if test "x$IS_MODERN_MAKE" = x; then
16169         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16170 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16171       else
16172         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16173           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16174             MAKE_EXPECTED_ENV='cygwin'
16175           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16176             MAKE_EXPECTED_ENV='msys'
16177           else
16178             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16179           fi
16180           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16181           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16182         else
16183           # Not relevant for non-Windows
16184           IS_MAKE_CORRECT_ENV=true
16185         fi
16186         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16187           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16188 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16189         else
16190           FOUND_MAKE=$MAKE_CANDIDATE
16191 
16192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16193 
16194   # First separate the path from the arguments. This will split at the first
16195   # space.
16196   complete="$FOUND_MAKE"
16197   path="${complete%% *}"
16198   tmp="$complete EOL"
16199   arguments="${tmp#* }"
16200 
16201   # Input might be given as Windows format, start by converting to
16202   # unix format.
16203   new_path=`$CYGPATH -u "$path"`
16204 
16205   # Now try to locate executable using which
16206   new_path=`$WHICH "$new_path" 2> /dev/null`
16207   # bat and cmd files are not always considered executable in cygwin causing which
16208   # to not find them
16209   if test "x$new_path" = x \
16210       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16211       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16212     new_path=`$CYGPATH -u "$path"`
16213   fi
16214   if test "x$new_path" = x; then
16215     # Oops. Which didn't find the executable.
16216     # The splitting of arguments from the executable at a space might have been incorrect,
16217     # since paths with space are more likely in Windows. Give it another try with the whole
16218     # argument.
16219     path="$complete"
16220     arguments="EOL"
16221     new_path=`$CYGPATH -u "$path"`
16222     new_path=`$WHICH "$new_path" 2> /dev/null`
16223     # bat and cmd files are not always considered executable in cygwin causing which
16224     # to not find them
16225     if test "x$new_path" = x \
16226         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16227         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16228       new_path=`$CYGPATH -u "$path"`
16229     fi
16230     if test "x$new_path" = x; then
16231       # It's still not found. Now this is an unrecoverable error.
16232       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16233 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16234       has_space=`$ECHO "$complete" | $GREP " "`
16235       if test "x$has_space" != x; then
16236         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16238       fi
16239       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16240     fi
16241   fi
16242 
16243   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16244   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16245   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16246   # "foo.exe" is OK but "foo" is an error.
16247   #
16248   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16249   # It is also a way to make sure we got the proper file name for the real test later on.
16250   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16251   if test "x$test_shortpath" = x; then
16252     # Short path failed, file does not exist as specified.
16253     # Try adding .exe or .cmd
16254     if test -f "${new_path}.exe"; then
16255       input_to_shortpath="${new_path}.exe"
16256     elif test -f "${new_path}.cmd"; then
16257       input_to_shortpath="${new_path}.cmd"
16258     else
16259       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16260 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16261       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16262 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16263       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16264     fi
16265   else
16266     input_to_shortpath="$new_path"
16267   fi
16268 
16269   # Call helper function which possibly converts this using DOS-style short mode.
16270   # If so, the updated path is stored in $new_path.
16271   new_path="$input_to_shortpath"
16272 
16273   input_path="$input_to_shortpath"
16274   # Check if we need to convert this using DOS-style short mode. If the path
16275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16276   # take no chances and rewrite it.
16277   # Note: m4 eats our [], so we need to use [ and ] instead.
16278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16279   if test "x$has_forbidden_chars" != x; then
16280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16281     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16282     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16283     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16284       # Going to short mode and back again did indeed matter. Since short mode is
16285       # case insensitive, let's make it lowercase to improve readability.
16286       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16287       # Now convert it back to Unix-style (cygpath)
16288       input_path=`$CYGPATH -u "$shortmode_path"`
16289       new_path="$input_path"
16290     fi
16291   fi
16292 
16293   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16294   if test "x$test_cygdrive_prefix" = x; then
16295     # As a simple fix, exclude /usr/bin since it's not a real path.
16296     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16297       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16298       # a path prefixed by /cygdrive for fixpath to work.
16299       new_path="$CYGWIN_ROOT_PATH$input_path"
16300     fi
16301   fi
16302 
16303   # remove trailing .exe if any
16304   new_path="${new_path/%.exe/}"
16305 
16306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16307 
16308   # First separate the path from the arguments. This will split at the first
16309   # space.
16310   complete="$FOUND_MAKE"
16311   path="${complete%% *}"
16312   tmp="$complete EOL"
16313   arguments="${tmp#* }"
16314 
16315   # Input might be given as Windows format, start by converting to
16316   # unix format.
16317   new_path="$path"
16318 
16319   windows_path="$new_path"
16320   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16321     unix_path=`$CYGPATH -u "$windows_path"`
16322     new_path="$unix_path"
16323   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16324     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16325     new_path="$unix_path"
16326   fi
16327 
16328 
16329   # Now try to locate executable using which
16330   new_path=`$WHICH "$new_path" 2> /dev/null`
16331 
16332   if test "x$new_path" = x; then
16333     # Oops. Which didn't find the executable.
16334     # The splitting of arguments from the executable at a space might have been incorrect,
16335     # since paths with space are more likely in Windows. Give it another try with the whole
16336     # argument.
16337     path="$complete"
16338     arguments="EOL"
16339     new_path="$path"
16340 
16341   windows_path="$new_path"
16342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16343     unix_path=`$CYGPATH -u "$windows_path"`
16344     new_path="$unix_path"
16345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16347     new_path="$unix_path"
16348   fi
16349 
16350 
16351     new_path=`$WHICH "$new_path" 2> /dev/null`
16352     # bat and cmd files are not always considered executable in MSYS causing which
16353     # to not find them
16354     if test "x$new_path" = x \
16355         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16356         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16357       new_path="$path"
16358 
16359   windows_path="$new_path"
16360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16361     unix_path=`$CYGPATH -u "$windows_path"`
16362     new_path="$unix_path"
16363   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16364     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16365     new_path="$unix_path"
16366   fi
16367 
16368     fi
16369 
16370     if test "x$new_path" = x; then
16371       # It's still not found. Now this is an unrecoverable error.
16372       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16373 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16374       has_space=`$ECHO "$complete" | $GREP " "`
16375       if test "x$has_space" != x; then
16376         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16377 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16378       fi
16379       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16380     fi
16381   fi
16382 
16383   # Now new_path has a complete unix path to the binary
16384   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16385     # Keep paths in /bin as-is, but remove trailing .exe if any
16386     new_path="${new_path/%.exe/}"
16387     # Do not save /bin paths to all_fixpath_prefixes!
16388   else
16389     # Not in mixed or Windows style, start by that.
16390     new_path=`cmd //c echo $new_path`
16391 
16392   input_path="$new_path"
16393   # Check if we need to convert this using DOS-style short mode. If the path
16394   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16395   # take no chances and rewrite it.
16396   # Note: m4 eats our [], so we need to use [ and ] instead.
16397   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16398   if test "x$has_forbidden_chars" != x; then
16399     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16400     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16401   fi
16402 
16403     # Output is in $new_path
16404 
16405   windows_path="$new_path"
16406   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16407     unix_path=`$CYGPATH -u "$windows_path"`
16408     new_path="$unix_path"
16409   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16410     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16411     new_path="$unix_path"
16412   fi
16413 
16414     # remove trailing .exe if any
16415     new_path="${new_path/%.exe/}"
16416 
16417     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16418     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16419   fi
16420 
16421   else
16422     # We're on a posix platform. Hooray! :)
16423     # First separate the path from the arguments. This will split at the first
16424     # space.
16425     complete="$FOUND_MAKE"
16426     path="${complete%% *}"
16427     tmp="$complete EOL"
16428     arguments="${tmp#* }"
16429 
16430     # Cannot rely on the command "which" here since it doesn't always work.
16431     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16432     if test -z "$is_absolute_path"; then
16433       # Path to executable is not absolute. Find it.
16434       IFS_save="$IFS"
16435       IFS=:
16436       for p in $PATH; do
16437         if test -f "$p/$path" && test -x "$p/$path"; then
16438           new_path="$p/$path"
16439           break
16440         fi
16441       done
16442       IFS="$IFS_save"
16443     else
16444       # This is an absolute path, we can use it without further modifications.
16445       new_path="$path"
16446     fi
16447 
16448     if test "x$new_path" = x; then
16449       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16450 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16451       has_space=`$ECHO "$complete" | $GREP " "`
16452       if test "x$has_space" != x; then
16453         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16454 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16455       fi
16456       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16457     fi
16458   fi
16459 
16460   # Now join together the path and the arguments once again
16461   if test "x$arguments" != xEOL; then
16462     new_complete="$new_path ${arguments% *}"
16463   else
16464     new_complete="$new_path"
16465   fi
16466 
16467   if test "x$complete" != "x$new_complete"; then
16468     FOUND_MAKE="$new_complete"
16469     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16470 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16471   fi
16472 
16473         fi
16474       fi
16475     fi
16476   fi
16477 
16478     fi
16479 
16480     if test "x$FOUND_MAKE" = x; then
16481       if test "x$TOOLCHAIN_PATH" != x; then
16482         # We have a toolchain path, check that as well before giving up.
16483         OLD_PATH=$PATH
16484         PATH=$TOOLCHAIN_PATH:$PATH
16485         for ac_prog in gmake
16486 do
16487   # Extract the first word of "$ac_prog", so it can be a program name with args.
16488 set dummy $ac_prog; ac_word=$2
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16490 $as_echo_n "checking for $ac_word... " >&6; }
16491 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16492   $as_echo_n "(cached) " >&6
16493 else
16494   case $CHECK_TOOLSDIR_GMAKE in
16495   [\\/]* | ?:[\\/]*)
16496   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16497   ;;
16498   *)
16499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16500 for as_dir in $PATH
16501 do
16502   IFS=$as_save_IFS
16503   test -z "$as_dir" && as_dir=.
16504     for ac_exec_ext in '' $ac_executable_extensions; do
16505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16506     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16508     break 2
16509   fi
16510 done
16511   done
16512 IFS=$as_save_IFS
16513 
16514   ;;
16515 esac
16516 fi
16517 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16518 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16520 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16521 else
16522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16524 fi
16525 
16526 
16527   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16528 done
16529 
16530 
16531   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16532   DESCRIPTION="gmake in tools-dir"
16533   if test "x$MAKE_CANDIDATE" != x; then
16534     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16535 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16536     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16537     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16538     if test "x$IS_GNU_MAKE" = x; then
16539       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16540 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16541     else
16542       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16543       if test "x$IS_MODERN_MAKE" = x; then
16544         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16545 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16546       else
16547         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16548           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16549             MAKE_EXPECTED_ENV='cygwin'
16550           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16551             MAKE_EXPECTED_ENV='msys'
16552           else
16553             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16554           fi
16555           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16556           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16557         else
16558           # Not relevant for non-Windows
16559           IS_MAKE_CORRECT_ENV=true
16560         fi
16561         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16562           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16563 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16564         else
16565           FOUND_MAKE=$MAKE_CANDIDATE
16566 
16567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16568 
16569   # First separate the path from the arguments. This will split at the first
16570   # space.
16571   complete="$FOUND_MAKE"
16572   path="${complete%% *}"
16573   tmp="$complete EOL"
16574   arguments="${tmp#* }"
16575 
16576   # Input might be given as Windows format, start by converting to
16577   # unix format.
16578   new_path=`$CYGPATH -u "$path"`
16579 
16580   # Now try to locate executable using which
16581   new_path=`$WHICH "$new_path" 2> /dev/null`
16582   # bat and cmd files are not always considered executable in cygwin causing which
16583   # to not find them
16584   if test "x$new_path" = x \
16585       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16586       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16587     new_path=`$CYGPATH -u "$path"`
16588   fi
16589   if test "x$new_path" = x; then
16590     # Oops. Which didn't find the executable.
16591     # The splitting of arguments from the executable at a space might have been incorrect,
16592     # since paths with space are more likely in Windows. Give it another try with the whole
16593     # argument.
16594     path="$complete"
16595     arguments="EOL"
16596     new_path=`$CYGPATH -u "$path"`
16597     new_path=`$WHICH "$new_path" 2> /dev/null`
16598     # bat and cmd files are not always considered executable in cygwin causing which
16599     # to not find them
16600     if test "x$new_path" = x \
16601         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16602         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16603       new_path=`$CYGPATH -u "$path"`
16604     fi
16605     if test "x$new_path" = x; then
16606       # It's still not found. Now this is an unrecoverable error.
16607       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16608 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16609       has_space=`$ECHO "$complete" | $GREP " "`
16610       if test "x$has_space" != x; then
16611         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16612 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16613       fi
16614       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16615     fi
16616   fi
16617 
16618   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16619   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16620   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16621   # "foo.exe" is OK but "foo" is an error.
16622   #
16623   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16624   # It is also a way to make sure we got the proper file name for the real test later on.
16625   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16626   if test "x$test_shortpath" = x; then
16627     # Short path failed, file does not exist as specified.
16628     # Try adding .exe or .cmd
16629     if test -f "${new_path}.exe"; then
16630       input_to_shortpath="${new_path}.exe"
16631     elif test -f "${new_path}.cmd"; then
16632       input_to_shortpath="${new_path}.cmd"
16633     else
16634       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16635 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16636       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16637 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16638       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16639     fi
16640   else
16641     input_to_shortpath="$new_path"
16642   fi
16643 
16644   # Call helper function which possibly converts this using DOS-style short mode.
16645   # If so, the updated path is stored in $new_path.
16646   new_path="$input_to_shortpath"
16647 
16648   input_path="$input_to_shortpath"
16649   # Check if we need to convert this using DOS-style short mode. If the path
16650   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16651   # take no chances and rewrite it.
16652   # Note: m4 eats our [], so we need to use [ and ] instead.
16653   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16654   if test "x$has_forbidden_chars" != x; then
16655     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16656     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16657     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16658     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16659       # Going to short mode and back again did indeed matter. Since short mode is
16660       # case insensitive, let's make it lowercase to improve readability.
16661       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16662       # Now convert it back to Unix-style (cygpath)
16663       input_path=`$CYGPATH -u "$shortmode_path"`
16664       new_path="$input_path"
16665     fi
16666   fi
16667 
16668   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16669   if test "x$test_cygdrive_prefix" = x; then
16670     # As a simple fix, exclude /usr/bin since it's not a real path.
16671     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16672       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16673       # a path prefixed by /cygdrive for fixpath to work.
16674       new_path="$CYGWIN_ROOT_PATH$input_path"
16675     fi
16676   fi
16677 
16678   # remove trailing .exe if any
16679   new_path="${new_path/%.exe/}"
16680 
16681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16682 
16683   # First separate the path from the arguments. This will split at the first
16684   # space.
16685   complete="$FOUND_MAKE"
16686   path="${complete%% *}"
16687   tmp="$complete EOL"
16688   arguments="${tmp#* }"
16689 
16690   # Input might be given as Windows format, start by converting to
16691   # unix format.
16692   new_path="$path"
16693 
16694   windows_path="$new_path"
16695   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16696     unix_path=`$CYGPATH -u "$windows_path"`
16697     new_path="$unix_path"
16698   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16699     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16700     new_path="$unix_path"
16701   fi
16702 
16703 
16704   # Now try to locate executable using which
16705   new_path=`$WHICH "$new_path" 2> /dev/null`
16706 
16707   if test "x$new_path" = x; then
16708     # Oops. Which didn't find the executable.
16709     # The splitting of arguments from the executable at a space might have been incorrect,
16710     # since paths with space are more likely in Windows. Give it another try with the whole
16711     # argument.
16712     path="$complete"
16713     arguments="EOL"
16714     new_path="$path"
16715 
16716   windows_path="$new_path"
16717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16718     unix_path=`$CYGPATH -u "$windows_path"`
16719     new_path="$unix_path"
16720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16722     new_path="$unix_path"
16723   fi
16724 
16725 
16726     new_path=`$WHICH "$new_path" 2> /dev/null`
16727     # bat and cmd files are not always considered executable in MSYS causing which
16728     # to not find them
16729     if test "x$new_path" = x \
16730         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16731         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16732       new_path="$path"
16733 
16734   windows_path="$new_path"
16735   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16736     unix_path=`$CYGPATH -u "$windows_path"`
16737     new_path="$unix_path"
16738   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16739     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16740     new_path="$unix_path"
16741   fi
16742 
16743     fi
16744 
16745     if test "x$new_path" = x; then
16746       # It's still not found. Now this is an unrecoverable error.
16747       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16748 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16749       has_space=`$ECHO "$complete" | $GREP " "`
16750       if test "x$has_space" != x; then
16751         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16752 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16753       fi
16754       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16755     fi
16756   fi
16757 
16758   # Now new_path has a complete unix path to the binary
16759   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16760     # Keep paths in /bin as-is, but remove trailing .exe if any
16761     new_path="${new_path/%.exe/}"
16762     # Do not save /bin paths to all_fixpath_prefixes!
16763   else
16764     # Not in mixed or Windows style, start by that.
16765     new_path=`cmd //c echo $new_path`
16766 
16767   input_path="$new_path"
16768   # Check if we need to convert this using DOS-style short mode. If the path
16769   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16770   # take no chances and rewrite it.
16771   # Note: m4 eats our [], so we need to use [ and ] instead.
16772   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16773   if test "x$has_forbidden_chars" != x; then
16774     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16775     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16776   fi
16777 
16778     # Output is in $new_path
16779 
16780   windows_path="$new_path"
16781   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16782     unix_path=`$CYGPATH -u "$windows_path"`
16783     new_path="$unix_path"
16784   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16785     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16786     new_path="$unix_path"
16787   fi
16788 
16789     # remove trailing .exe if any
16790     new_path="${new_path/%.exe/}"
16791 
16792     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16793     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16794   fi
16795 
16796   else
16797     # We're on a posix platform. Hooray! :)
16798     # First separate the path from the arguments. This will split at the first
16799     # space.
16800     complete="$FOUND_MAKE"
16801     path="${complete%% *}"
16802     tmp="$complete EOL"
16803     arguments="${tmp#* }"
16804 
16805     # Cannot rely on the command "which" here since it doesn't always work.
16806     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16807     if test -z "$is_absolute_path"; then
16808       # Path to executable is not absolute. Find it.
16809       IFS_save="$IFS"
16810       IFS=:
16811       for p in $PATH; do
16812         if test -f "$p/$path" && test -x "$p/$path"; then
16813           new_path="$p/$path"
16814           break
16815         fi
16816       done
16817       IFS="$IFS_save"
16818     else
16819       # This is an absolute path, we can use it without further modifications.
16820       new_path="$path"
16821     fi
16822 
16823     if test "x$new_path" = x; then
16824       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16825 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16826       has_space=`$ECHO "$complete" | $GREP " "`
16827       if test "x$has_space" != x; then
16828         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16829 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16830       fi
16831       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16832     fi
16833   fi
16834 
16835   # Now join together the path and the arguments once again
16836   if test "x$arguments" != xEOL; then
16837     new_complete="$new_path ${arguments% *}"
16838   else
16839     new_complete="$new_path"
16840   fi
16841 
16842   if test "x$complete" != "x$new_complete"; then
16843     FOUND_MAKE="$new_complete"
16844     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16845 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16846   fi
16847 
16848         fi
16849       fi
16850     fi
16851   fi
16852 
16853         if test "x$FOUND_MAKE" = x; then
16854           for ac_prog in make
16855 do
16856   # Extract the first word of "$ac_prog", so it can be a program name with args.
16857 set dummy $ac_prog; ac_word=$2
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16859 $as_echo_n "checking for $ac_word... " >&6; }
16860 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16861   $as_echo_n "(cached) " >&6
16862 else
16863   case $CHECK_TOOLSDIR_MAKE in
16864   [\\/]* | ?:[\\/]*)
16865   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16866   ;;
16867   *)
16868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16869 for as_dir in $PATH
16870 do
16871   IFS=$as_save_IFS
16872   test -z "$as_dir" && as_dir=.
16873     for ac_exec_ext in '' $ac_executable_extensions; do
16874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16875     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16877     break 2
16878   fi
16879 done
16880   done
16881 IFS=$as_save_IFS
16882 
16883   ;;
16884 esac
16885 fi
16886 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16887 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16889 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16890 else
16891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16892 $as_echo "no" >&6; }
16893 fi
16894 
16895 
16896   test -n "$CHECK_TOOLSDIR_MAKE" && break
16897 done
16898 
16899 
16900   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16901   DESCRIPTION="make in tools-dir"
16902   if test "x$MAKE_CANDIDATE" != x; then
16903     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16904 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16905     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16906     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16907     if test "x$IS_GNU_MAKE" = x; then
16908       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16909 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16910     else
16911       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16912       if test "x$IS_MODERN_MAKE" = x; then
16913         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16914 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16915       else
16916         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16917           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16918             MAKE_EXPECTED_ENV='cygwin'
16919           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16920             MAKE_EXPECTED_ENV='msys'
16921           else
16922             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16923           fi
16924           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16925           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16926         else
16927           # Not relevant for non-Windows
16928           IS_MAKE_CORRECT_ENV=true
16929         fi
16930         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16931           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16932 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16933         else
16934           FOUND_MAKE=$MAKE_CANDIDATE
16935 
16936   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16937 
16938   # First separate the path from the arguments. This will split at the first
16939   # space.
16940   complete="$FOUND_MAKE"
16941   path="${complete%% *}"
16942   tmp="$complete EOL"
16943   arguments="${tmp#* }"
16944 
16945   # Input might be given as Windows format, start by converting to
16946   # unix format.
16947   new_path=`$CYGPATH -u "$path"`
16948 
16949   # Now try to locate executable using which
16950   new_path=`$WHICH "$new_path" 2> /dev/null`
16951   # bat and cmd files are not always considered executable in cygwin causing which
16952   # to not find them
16953   if test "x$new_path" = x \
16954       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16955       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16956     new_path=`$CYGPATH -u "$path"`
16957   fi
16958   if test "x$new_path" = x; then
16959     # Oops. Which didn't find the executable.
16960     # The splitting of arguments from the executable at a space might have been incorrect,
16961     # since paths with space are more likely in Windows. Give it another try with the whole
16962     # argument.
16963     path="$complete"
16964     arguments="EOL"
16965     new_path=`$CYGPATH -u "$path"`
16966     new_path=`$WHICH "$new_path" 2> /dev/null`
16967     # bat and cmd files are not always considered executable in cygwin causing which
16968     # to not find them
16969     if test "x$new_path" = x \
16970         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16971         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16972       new_path=`$CYGPATH -u "$path"`
16973     fi
16974     if test "x$new_path" = x; then
16975       # It's still not found. Now this is an unrecoverable error.
16976       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16977 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16978       has_space=`$ECHO "$complete" | $GREP " "`
16979       if test "x$has_space" != x; then
16980         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16981 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16982       fi
16983       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16984     fi
16985   fi
16986 
16987   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16988   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16989   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16990   # "foo.exe" is OK but "foo" is an error.
16991   #
16992   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16993   # It is also a way to make sure we got the proper file name for the real test later on.
16994   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16995   if test "x$test_shortpath" = x; then
16996     # Short path failed, file does not exist as specified.
16997     # Try adding .exe or .cmd
16998     if test -f "${new_path}.exe"; then
16999       input_to_shortpath="${new_path}.exe"
17000     elif test -f "${new_path}.cmd"; then
17001       input_to_shortpath="${new_path}.cmd"
17002     else
17003       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17004 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17005       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17006 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17007       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17008     fi
17009   else
17010     input_to_shortpath="$new_path"
17011   fi
17012 
17013   # Call helper function which possibly converts this using DOS-style short mode.
17014   # If so, the updated path is stored in $new_path.
17015   new_path="$input_to_shortpath"
17016 
17017   input_path="$input_to_shortpath"
17018   # Check if we need to convert this using DOS-style short mode. If the path
17019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17020   # take no chances and rewrite it.
17021   # Note: m4 eats our [], so we need to use [ and ] instead.
17022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17023   if test "x$has_forbidden_chars" != x; then
17024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17025     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17026     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17027     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17028       # Going to short mode and back again did indeed matter. Since short mode is
17029       # case insensitive, let's make it lowercase to improve readability.
17030       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17031       # Now convert it back to Unix-style (cygpath)
17032       input_path=`$CYGPATH -u "$shortmode_path"`
17033       new_path="$input_path"
17034     fi
17035   fi
17036 
17037   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17038   if test "x$test_cygdrive_prefix" = x; then
17039     # As a simple fix, exclude /usr/bin since it's not a real path.
17040     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17041       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17042       # a path prefixed by /cygdrive for fixpath to work.
17043       new_path="$CYGWIN_ROOT_PATH$input_path"
17044     fi
17045   fi
17046 
17047   # remove trailing .exe if any
17048   new_path="${new_path/%.exe/}"
17049 
17050   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17051 
17052   # First separate the path from the arguments. This will split at the first
17053   # space.
17054   complete="$FOUND_MAKE"
17055   path="${complete%% *}"
17056   tmp="$complete EOL"
17057   arguments="${tmp#* }"
17058 
17059   # Input might be given as Windows format, start by converting to
17060   # unix format.
17061   new_path="$path"
17062 
17063   windows_path="$new_path"
17064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17065     unix_path=`$CYGPATH -u "$windows_path"`
17066     new_path="$unix_path"
17067   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17068     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17069     new_path="$unix_path"
17070   fi
17071 
17072 
17073   # Now try to locate executable using which
17074   new_path=`$WHICH "$new_path" 2> /dev/null`
17075 
17076   if test "x$new_path" = x; then
17077     # Oops. Which didn't find the executable.
17078     # The splitting of arguments from the executable at a space might have been incorrect,
17079     # since paths with space are more likely in Windows. Give it another try with the whole
17080     # argument.
17081     path="$complete"
17082     arguments="EOL"
17083     new_path="$path"
17084 
17085   windows_path="$new_path"
17086   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17087     unix_path=`$CYGPATH -u "$windows_path"`
17088     new_path="$unix_path"
17089   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17090     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17091     new_path="$unix_path"
17092   fi
17093 
17094 
17095     new_path=`$WHICH "$new_path" 2> /dev/null`
17096     # bat and cmd files are not always considered executable in MSYS causing which
17097     # to not find them
17098     if test "x$new_path" = x \
17099         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17100         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17101       new_path="$path"
17102 
17103   windows_path="$new_path"
17104   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17105     unix_path=`$CYGPATH -u "$windows_path"`
17106     new_path="$unix_path"
17107   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17108     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17109     new_path="$unix_path"
17110   fi
17111 
17112     fi
17113 
17114     if test "x$new_path" = x; then
17115       # It's still not found. Now this is an unrecoverable error.
17116       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17117 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17118       has_space=`$ECHO "$complete" | $GREP " "`
17119       if test "x$has_space" != x; then
17120         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17121 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17122       fi
17123       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17124     fi
17125   fi
17126 
17127   # Now new_path has a complete unix path to the binary
17128   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17129     # Keep paths in /bin as-is, but remove trailing .exe if any
17130     new_path="${new_path/%.exe/}"
17131     # Do not save /bin paths to all_fixpath_prefixes!
17132   else
17133     # Not in mixed or Windows style, start by that.
17134     new_path=`cmd //c echo $new_path`
17135 
17136   input_path="$new_path"
17137   # Check if we need to convert this using DOS-style short mode. If the path
17138   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17139   # take no chances and rewrite it.
17140   # Note: m4 eats our [], so we need to use [ and ] instead.
17141   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17142   if test "x$has_forbidden_chars" != x; then
17143     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17144     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17145   fi
17146 
17147     # Output is in $new_path
17148 
17149   windows_path="$new_path"
17150   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17151     unix_path=`$CYGPATH -u "$windows_path"`
17152     new_path="$unix_path"
17153   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17154     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17155     new_path="$unix_path"
17156   fi
17157 
17158     # remove trailing .exe if any
17159     new_path="${new_path/%.exe/}"
17160 
17161     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17162     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17163   fi
17164 
17165   else
17166     # We're on a posix platform. Hooray! :)
17167     # First separate the path from the arguments. This will split at the first
17168     # space.
17169     complete="$FOUND_MAKE"
17170     path="${complete%% *}"
17171     tmp="$complete EOL"
17172     arguments="${tmp#* }"
17173 
17174     # Cannot rely on the command "which" here since it doesn't always work.
17175     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17176     if test -z "$is_absolute_path"; then
17177       # Path to executable is not absolute. Find it.
17178       IFS_save="$IFS"
17179       IFS=:
17180       for p in $PATH; do
17181         if test -f "$p/$path" && test -x "$p/$path"; then
17182           new_path="$p/$path"
17183           break
17184         fi
17185       done
17186       IFS="$IFS_save"
17187     else
17188       # This is an absolute path, we can use it without further modifications.
17189       new_path="$path"
17190     fi
17191 
17192     if test "x$new_path" = x; then
17193       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17194 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17195       has_space=`$ECHO "$complete" | $GREP " "`
17196       if test "x$has_space" != x; then
17197         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17198 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17199       fi
17200       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17201     fi
17202   fi
17203 
17204   # Now join together the path and the arguments once again
17205   if test "x$arguments" != xEOL; then
17206     new_complete="$new_path ${arguments% *}"
17207   else
17208     new_complete="$new_path"
17209   fi
17210 
17211   if test "x$complete" != "x$new_complete"; then
17212     FOUND_MAKE="$new_complete"
17213     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17214 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17215   fi
17216 
17217         fi
17218       fi
17219     fi
17220   fi
17221 
17222         fi
17223         PATH=$OLD_PATH
17224       fi
17225     fi
17226 
17227     if test "x$FOUND_MAKE" = x; then
17228       as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
17229     fi
17230   fi
17231 
17232   MAKE=$FOUND_MAKE
17233 
17234   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17235 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17236 
17237 
17238 
17239   # Test if find supports -delete
17240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17241 $as_echo_n "checking if find supports -delete... " >&6; }
17242   FIND_DELETE="-delete"
17243 
17244   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17245 
17246   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17247 
17248   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17249   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17250     # No, it does not.
17251     rm $DELETEDIR/TestIfFindSupportsDelete
17252     FIND_DELETE="-exec rm \{\} \+"
17253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254 $as_echo "no" >&6; }
17255   else
17256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17257 $as_echo "yes" >&6; }
17258   fi
17259   rmdir $DELETEDIR
17260 
17261 
17262 
17263   # These tools might not be installed by default,
17264   # need hint on how to install them.
17265 
17266 
17267 
17268   # Publish this variable in the help.
17269 
17270 
17271   if test "x$UNZIP" = x; then
17272     # The variable is not set by user, try to locate tool using the code snippet
17273     for ac_prog in unzip
17274 do
17275   # Extract the first word of "$ac_prog", so it can be a program name with args.
17276 set dummy $ac_prog; ac_word=$2
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17278 $as_echo_n "checking for $ac_word... " >&6; }
17279 if ${ac_cv_path_UNZIP+:} false; then :
17280   $as_echo_n "(cached) " >&6
17281 else
17282   case $UNZIP in
17283   [\\/]* | ?:[\\/]*)
17284   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17285   ;;
17286   *)
17287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17288 for as_dir in $PATH
17289 do
17290   IFS=$as_save_IFS
17291   test -z "$as_dir" && as_dir=.
17292     for ac_exec_ext in '' $ac_executable_extensions; do
17293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17294     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17296     break 2
17297   fi
17298 done
17299   done
17300 IFS=$as_save_IFS
17301 
17302   ;;
17303 esac
17304 fi
17305 UNZIP=$ac_cv_path_UNZIP
17306 if test -n "$UNZIP"; then
17307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17308 $as_echo "$UNZIP" >&6; }
17309 else
17310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17311 $as_echo "no" >&6; }
17312 fi
17313 
17314 
17315   test -n "$UNZIP" && break
17316 done
17317 
17318   else
17319     # The variable is set, but is it from the command line or the environment?
17320 
17321     # Try to remove the string !UNZIP! from our list.
17322     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17323     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17324       # If it failed, the variable was not from the command line. Ignore it,
17325       # but warn the user (except for BASH, which is always set by the calling BASH).
17326       if test "xUNZIP" != xBASH; then
17327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17328 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17329       fi
17330       # Try to locate tool using the code snippet
17331       for ac_prog in unzip
17332 do
17333   # Extract the first word of "$ac_prog", so it can be a program name with args.
17334 set dummy $ac_prog; ac_word=$2
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17336 $as_echo_n "checking for $ac_word... " >&6; }
17337 if ${ac_cv_path_UNZIP+:} false; then :
17338   $as_echo_n "(cached) " >&6
17339 else
17340   case $UNZIP in
17341   [\\/]* | ?:[\\/]*)
17342   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17343   ;;
17344   *)
17345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17346 for as_dir in $PATH
17347 do
17348   IFS=$as_save_IFS
17349   test -z "$as_dir" && as_dir=.
17350     for ac_exec_ext in '' $ac_executable_extensions; do
17351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17352     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17354     break 2
17355   fi
17356 done
17357   done
17358 IFS=$as_save_IFS
17359 
17360   ;;
17361 esac
17362 fi
17363 UNZIP=$ac_cv_path_UNZIP
17364 if test -n "$UNZIP"; then
17365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17366 $as_echo "$UNZIP" >&6; }
17367 else
17368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 $as_echo "no" >&6; }
17370 fi
17371 
17372 
17373   test -n "$UNZIP" && break
17374 done
17375 
17376     else
17377       # If it succeeded, then it was overridden by the user. We will use it
17378       # for the tool.
17379 
17380       # First remove it from the list of overridden variables, so we can test
17381       # for unknown variables in the end.
17382       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17383 
17384       # Check if the provided tool contains a complete path.
17385       tool_specified="$UNZIP"
17386       tool_basename="${tool_specified##*/}"
17387       if test "x$tool_basename" = "x$tool_specified"; then
17388         # A command without a complete path is provided, search $PATH.
17389         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17390 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17391         # Extract the first word of "$tool_basename", so it can be a program name with args.
17392 set dummy $tool_basename; ac_word=$2
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17394 $as_echo_n "checking for $ac_word... " >&6; }
17395 if ${ac_cv_path_UNZIP+:} false; then :
17396   $as_echo_n "(cached) " >&6
17397 else
17398   case $UNZIP in
17399   [\\/]* | ?:[\\/]*)
17400   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17401   ;;
17402   *)
17403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17404 for as_dir in $PATH
17405 do
17406   IFS=$as_save_IFS
17407   test -z "$as_dir" && as_dir=.
17408     for ac_exec_ext in '' $ac_executable_extensions; do
17409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17410     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17412     break 2
17413   fi
17414 done
17415   done
17416 IFS=$as_save_IFS
17417 
17418   ;;
17419 esac
17420 fi
17421 UNZIP=$ac_cv_path_UNZIP
17422 if test -n "$UNZIP"; then
17423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17424 $as_echo "$UNZIP" >&6; }
17425 else
17426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427 $as_echo "no" >&6; }
17428 fi
17429 
17430 
17431         if test "x$UNZIP" = x; then
17432           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17433         fi
17434       else
17435         # Otherwise we believe it is a complete path. Use it as it is.
17436         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17437 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17439 $as_echo_n "checking for UNZIP... " >&6; }
17440         if test ! -x "$tool_specified"; then
17441           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17442 $as_echo "not found" >&6; }
17443           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17444         fi
17445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17446 $as_echo "$tool_specified" >&6; }
17447       fi
17448     fi
17449   fi
17450 
17451 
17452 
17453   if test "x$UNZIP" = x; then
17454     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17455   fi
17456 
17457 
17458 
17459 
17460 
17461   # Publish this variable in the help.
17462 
17463 
17464   if test "x$ZIP" = x; then
17465     # The variable is not set by user, try to locate tool using the code snippet
17466     for ac_prog in zip
17467 do
17468   # Extract the first word of "$ac_prog", so it can be a program name with args.
17469 set dummy $ac_prog; ac_word=$2
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471 $as_echo_n "checking for $ac_word... " >&6; }
17472 if ${ac_cv_path_ZIP+:} false; then :
17473   $as_echo_n "(cached) " >&6
17474 else
17475   case $ZIP in
17476   [\\/]* | ?:[\\/]*)
17477   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17478   ;;
17479   *)
17480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17481 for as_dir in $PATH
17482 do
17483   IFS=$as_save_IFS
17484   test -z "$as_dir" && as_dir=.
17485     for ac_exec_ext in '' $ac_executable_extensions; do
17486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17487     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17489     break 2
17490   fi
17491 done
17492   done
17493 IFS=$as_save_IFS
17494 
17495   ;;
17496 esac
17497 fi
17498 ZIP=$ac_cv_path_ZIP
17499 if test -n "$ZIP"; then
17500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17501 $as_echo "$ZIP" >&6; }
17502 else
17503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17504 $as_echo "no" >&6; }
17505 fi
17506 
17507 
17508   test -n "$ZIP" && break
17509 done
17510 
17511   else
17512     # The variable is set, but is it from the command line or the environment?
17513 
17514     # Try to remove the string !ZIP! from our list.
17515     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17516     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17517       # If it failed, the variable was not from the command line. Ignore it,
17518       # but warn the user (except for BASH, which is always set by the calling BASH).
17519       if test "xZIP" != xBASH; then
17520         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17521 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17522       fi
17523       # Try to locate tool using the code snippet
17524       for ac_prog in zip
17525 do
17526   # Extract the first word of "$ac_prog", so it can be a program name with args.
17527 set dummy $ac_prog; ac_word=$2
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17529 $as_echo_n "checking for $ac_word... " >&6; }
17530 if ${ac_cv_path_ZIP+:} false; then :
17531   $as_echo_n "(cached) " >&6
17532 else
17533   case $ZIP in
17534   [\\/]* | ?:[\\/]*)
17535   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17536   ;;
17537   *)
17538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17539 for as_dir in $PATH
17540 do
17541   IFS=$as_save_IFS
17542   test -z "$as_dir" && as_dir=.
17543     for ac_exec_ext in '' $ac_executable_extensions; do
17544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17545     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17547     break 2
17548   fi
17549 done
17550   done
17551 IFS=$as_save_IFS
17552 
17553   ;;
17554 esac
17555 fi
17556 ZIP=$ac_cv_path_ZIP
17557 if test -n "$ZIP"; then
17558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17559 $as_echo "$ZIP" >&6; }
17560 else
17561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17562 $as_echo "no" >&6; }
17563 fi
17564 
17565 
17566   test -n "$ZIP" && break
17567 done
17568 
17569     else
17570       # If it succeeded, then it was overridden by the user. We will use it
17571       # for the tool.
17572 
17573       # First remove it from the list of overridden variables, so we can test
17574       # for unknown variables in the end.
17575       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17576 
17577       # Check if the provided tool contains a complete path.
17578       tool_specified="$ZIP"
17579       tool_basename="${tool_specified##*/}"
17580       if test "x$tool_basename" = "x$tool_specified"; then
17581         # A command without a complete path is provided, search $PATH.
17582         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17583 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17584         # Extract the first word of "$tool_basename", so it can be a program name with args.
17585 set dummy $tool_basename; ac_word=$2
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17587 $as_echo_n "checking for $ac_word... " >&6; }
17588 if ${ac_cv_path_ZIP+:} false; then :
17589   $as_echo_n "(cached) " >&6
17590 else
17591   case $ZIP in
17592   [\\/]* | ?:[\\/]*)
17593   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17594   ;;
17595   *)
17596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597 for as_dir in $PATH
17598 do
17599   IFS=$as_save_IFS
17600   test -z "$as_dir" && as_dir=.
17601     for ac_exec_ext in '' $ac_executable_extensions; do
17602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17603     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17605     break 2
17606   fi
17607 done
17608   done
17609 IFS=$as_save_IFS
17610 
17611   ;;
17612 esac
17613 fi
17614 ZIP=$ac_cv_path_ZIP
17615 if test -n "$ZIP"; then
17616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17617 $as_echo "$ZIP" >&6; }
17618 else
17619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 $as_echo "no" >&6; }
17621 fi
17622 
17623 
17624         if test "x$ZIP" = x; then
17625           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17626         fi
17627       else
17628         # Otherwise we believe it is a complete path. Use it as it is.
17629         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17630 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17632 $as_echo_n "checking for ZIP... " >&6; }
17633         if test ! -x "$tool_specified"; then
17634           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17635 $as_echo "not found" >&6; }
17636           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17637         fi
17638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17639 $as_echo "$tool_specified" >&6; }
17640       fi
17641     fi
17642   fi
17643 
17644 
17645 
17646   if test "x$ZIP" = x; then
17647     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17648   fi
17649 
17650 
17651 
17652   # Non-required basic tools
17653 
17654 
17655 
17656   # Publish this variable in the help.
17657 
17658 
17659   if test "x$LDD" = x; then
17660     # The variable is not set by user, try to locate tool using the code snippet
17661     for ac_prog in ldd
17662 do
17663   # Extract the first word of "$ac_prog", so it can be a program name with args.
17664 set dummy $ac_prog; ac_word=$2
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666 $as_echo_n "checking for $ac_word... " >&6; }
17667 if ${ac_cv_path_LDD+:} false; then :
17668   $as_echo_n "(cached) " >&6
17669 else
17670   case $LDD in
17671   [\\/]* | ?:[\\/]*)
17672   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17673   ;;
17674   *)
17675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17676 for as_dir in $PATH
17677 do
17678   IFS=$as_save_IFS
17679   test -z "$as_dir" && as_dir=.
17680     for ac_exec_ext in '' $ac_executable_extensions; do
17681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17682     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17684     break 2
17685   fi
17686 done
17687   done
17688 IFS=$as_save_IFS
17689 
17690   ;;
17691 esac
17692 fi
17693 LDD=$ac_cv_path_LDD
17694 if test -n "$LDD"; then
17695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17696 $as_echo "$LDD" >&6; }
17697 else
17698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17699 $as_echo "no" >&6; }
17700 fi
17701 
17702 
17703   test -n "$LDD" && break
17704 done
17705 
17706   else
17707     # The variable is set, but is it from the command line or the environment?
17708 
17709     # Try to remove the string !LDD! from our list.
17710     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17711     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17712       # If it failed, the variable was not from the command line. Ignore it,
17713       # but warn the user (except for BASH, which is always set by the calling BASH).
17714       if test "xLDD" != xBASH; then
17715         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17716 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17717       fi
17718       # Try to locate tool using the code snippet
17719       for ac_prog in ldd
17720 do
17721   # Extract the first word of "$ac_prog", so it can be a program name with args.
17722 set dummy $ac_prog; ac_word=$2
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17724 $as_echo_n "checking for $ac_word... " >&6; }
17725 if ${ac_cv_path_LDD+:} false; then :
17726   $as_echo_n "(cached) " >&6
17727 else
17728   case $LDD in
17729   [\\/]* | ?:[\\/]*)
17730   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17731   ;;
17732   *)
17733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17734 for as_dir in $PATH
17735 do
17736   IFS=$as_save_IFS
17737   test -z "$as_dir" && as_dir=.
17738     for ac_exec_ext in '' $ac_executable_extensions; do
17739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17740     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17742     break 2
17743   fi
17744 done
17745   done
17746 IFS=$as_save_IFS
17747 
17748   ;;
17749 esac
17750 fi
17751 LDD=$ac_cv_path_LDD
17752 if test -n "$LDD"; then
17753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17754 $as_echo "$LDD" >&6; }
17755 else
17756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757 $as_echo "no" >&6; }
17758 fi
17759 
17760 
17761   test -n "$LDD" && break
17762 done
17763 
17764     else
17765       # If it succeeded, then it was overridden by the user. We will use it
17766       # for the tool.
17767 
17768       # First remove it from the list of overridden variables, so we can test
17769       # for unknown variables in the end.
17770       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17771 
17772       # Check if the provided tool contains a complete path.
17773       tool_specified="$LDD"
17774       tool_basename="${tool_specified##*/}"
17775       if test "x$tool_basename" = "x$tool_specified"; then
17776         # A command without a complete path is provided, search $PATH.
17777         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17778 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17779         # Extract the first word of "$tool_basename", so it can be a program name with args.
17780 set dummy $tool_basename; ac_word=$2
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17782 $as_echo_n "checking for $ac_word... " >&6; }
17783 if ${ac_cv_path_LDD+:} false; then :
17784   $as_echo_n "(cached) " >&6
17785 else
17786   case $LDD in
17787   [\\/]* | ?:[\\/]*)
17788   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17789   ;;
17790   *)
17791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792 for as_dir in $PATH
17793 do
17794   IFS=$as_save_IFS
17795   test -z "$as_dir" && as_dir=.
17796     for ac_exec_ext in '' $ac_executable_extensions; do
17797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17798     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17800     break 2
17801   fi
17802 done
17803   done
17804 IFS=$as_save_IFS
17805 
17806   ;;
17807 esac
17808 fi
17809 LDD=$ac_cv_path_LDD
17810 if test -n "$LDD"; then
17811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17812 $as_echo "$LDD" >&6; }
17813 else
17814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17815 $as_echo "no" >&6; }
17816 fi
17817 
17818 
17819         if test "x$LDD" = x; then
17820           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17821         fi
17822       else
17823         # Otherwise we believe it is a complete path. Use it as it is.
17824         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17825 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17827 $as_echo_n "checking for LDD... " >&6; }
17828         if test ! -x "$tool_specified"; then
17829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17830 $as_echo "not found" >&6; }
17831           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17832         fi
17833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17834 $as_echo "$tool_specified" >&6; }
17835       fi
17836     fi
17837   fi
17838 
17839 
17840   if test "x$LDD" = "x"; then
17841     # List shared lib dependencies is used for
17842     # debug output and checking for forbidden dependencies.
17843     # We can build without it.
17844     LDD="true"
17845   fi
17846 
17847 
17848   # Publish this variable in the help.
17849 
17850 
17851   if test "x$READELF" = x; then
17852     # The variable is not set by user, try to locate tool using the code snippet
17853     for ac_prog in readelf greadelf
17854 do
17855   # Extract the first word of "$ac_prog", so it can be a program name with args.
17856 set dummy $ac_prog; ac_word=$2
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17858 $as_echo_n "checking for $ac_word... " >&6; }
17859 if ${ac_cv_path_READELF+:} false; then :
17860   $as_echo_n "(cached) " >&6
17861 else
17862   case $READELF in
17863   [\\/]* | ?:[\\/]*)
17864   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17865   ;;
17866   *)
17867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17868 for as_dir in $PATH
17869 do
17870   IFS=$as_save_IFS
17871   test -z "$as_dir" && as_dir=.
17872     for ac_exec_ext in '' $ac_executable_extensions; do
17873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17874     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17876     break 2
17877   fi
17878 done
17879   done
17880 IFS=$as_save_IFS
17881 
17882   ;;
17883 esac
17884 fi
17885 READELF=$ac_cv_path_READELF
17886 if test -n "$READELF"; then
17887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17888 $as_echo "$READELF" >&6; }
17889 else
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17892 fi
17893 
17894 
17895   test -n "$READELF" && break
17896 done
17897 
17898   else
17899     # The variable is set, but is it from the command line or the environment?
17900 
17901     # Try to remove the string !READELF! from our list.
17902     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17903     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17904       # If it failed, the variable was not from the command line. Ignore it,
17905       # but warn the user (except for BASH, which is always set by the calling BASH).
17906       if test "xREADELF" != xBASH; then
17907         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17908 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17909       fi
17910       # Try to locate tool using the code snippet
17911       for ac_prog in readelf greadelf
17912 do
17913   # Extract the first word of "$ac_prog", so it can be a program name with args.
17914 set dummy $ac_prog; ac_word=$2
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17916 $as_echo_n "checking for $ac_word... " >&6; }
17917 if ${ac_cv_path_READELF+:} false; then :
17918   $as_echo_n "(cached) " >&6
17919 else
17920   case $READELF in
17921   [\\/]* | ?:[\\/]*)
17922   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17923   ;;
17924   *)
17925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17926 for as_dir in $PATH
17927 do
17928   IFS=$as_save_IFS
17929   test -z "$as_dir" && as_dir=.
17930     for ac_exec_ext in '' $ac_executable_extensions; do
17931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17932     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17934     break 2
17935   fi
17936 done
17937   done
17938 IFS=$as_save_IFS
17939 
17940   ;;
17941 esac
17942 fi
17943 READELF=$ac_cv_path_READELF
17944 if test -n "$READELF"; then
17945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17946 $as_echo "$READELF" >&6; }
17947 else
17948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17949 $as_echo "no" >&6; }
17950 fi
17951 
17952 
17953   test -n "$READELF" && break
17954 done
17955 
17956     else
17957       # If it succeeded, then it was overridden by the user. We will use it
17958       # for the tool.
17959 
17960       # First remove it from the list of overridden variables, so we can test
17961       # for unknown variables in the end.
17962       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17963 
17964       # Check if the provided tool contains a complete path.
17965       tool_specified="$READELF"
17966       tool_basename="${tool_specified##*/}"
17967       if test "x$tool_basename" = "x$tool_specified"; then
17968         # A command without a complete path is provided, search $PATH.
17969         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17970 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17971         # Extract the first word of "$tool_basename", so it can be a program name with args.
17972 set dummy $tool_basename; ac_word=$2
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17974 $as_echo_n "checking for $ac_word... " >&6; }
17975 if ${ac_cv_path_READELF+:} false; then :
17976   $as_echo_n "(cached) " >&6
17977 else
17978   case $READELF in
17979   [\\/]* | ?:[\\/]*)
17980   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17981   ;;
17982   *)
17983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17984 for as_dir in $PATH
17985 do
17986   IFS=$as_save_IFS
17987   test -z "$as_dir" && as_dir=.
17988     for ac_exec_ext in '' $ac_executable_extensions; do
17989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17990     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17992     break 2
17993   fi
17994 done
17995   done
17996 IFS=$as_save_IFS
17997 
17998   ;;
17999 esac
18000 fi
18001 READELF=$ac_cv_path_READELF
18002 if test -n "$READELF"; then
18003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18004 $as_echo "$READELF" >&6; }
18005 else
18006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18007 $as_echo "no" >&6; }
18008 fi
18009 
18010 
18011         if test "x$READELF" = x; then
18012           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18013         fi
18014       else
18015         # Otherwise we believe it is a complete path. Use it as it is.
18016         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18017 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18019 $as_echo_n "checking for READELF... " >&6; }
18020         if test ! -x "$tool_specified"; then
18021           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18022 $as_echo "not found" >&6; }
18023           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18024         fi
18025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18026 $as_echo "$tool_specified" >&6; }
18027       fi
18028     fi
18029   fi
18030 
18031 
18032 
18033 
18034   # Publish this variable in the help.
18035 
18036 
18037   if test "x$HG" = x; then
18038     # The variable is not set by user, try to locate tool using the code snippet
18039     for ac_prog in hg
18040 do
18041   # Extract the first word of "$ac_prog", so it can be a program name with args.
18042 set dummy $ac_prog; ac_word=$2
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18044 $as_echo_n "checking for $ac_word... " >&6; }
18045 if ${ac_cv_path_HG+:} false; then :
18046   $as_echo_n "(cached) " >&6
18047 else
18048   case $HG in
18049   [\\/]* | ?:[\\/]*)
18050   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18051   ;;
18052   *)
18053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18054 for as_dir in $PATH
18055 do
18056   IFS=$as_save_IFS
18057   test -z "$as_dir" && as_dir=.
18058     for ac_exec_ext in '' $ac_executable_extensions; do
18059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18060     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18062     break 2
18063   fi
18064 done
18065   done
18066 IFS=$as_save_IFS
18067 
18068   ;;
18069 esac
18070 fi
18071 HG=$ac_cv_path_HG
18072 if test -n "$HG"; then
18073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18074 $as_echo "$HG" >&6; }
18075 else
18076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18077 $as_echo "no" >&6; }
18078 fi
18079 
18080 
18081   test -n "$HG" && break
18082 done
18083 
18084   else
18085     # The variable is set, but is it from the command line or the environment?
18086 
18087     # Try to remove the string !HG! from our list.
18088     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18089     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18090       # If it failed, the variable was not from the command line. Ignore it,
18091       # but warn the user (except for BASH, which is always set by the calling BASH).
18092       if test "xHG" != xBASH; then
18093         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18094 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18095       fi
18096       # Try to locate tool using the code snippet
18097       for ac_prog in hg
18098 do
18099   # Extract the first word of "$ac_prog", so it can be a program name with args.
18100 set dummy $ac_prog; ac_word=$2
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18102 $as_echo_n "checking for $ac_word... " >&6; }
18103 if ${ac_cv_path_HG+:} false; then :
18104   $as_echo_n "(cached) " >&6
18105 else
18106   case $HG in
18107   [\\/]* | ?:[\\/]*)
18108   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18109   ;;
18110   *)
18111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18112 for as_dir in $PATH
18113 do
18114   IFS=$as_save_IFS
18115   test -z "$as_dir" && as_dir=.
18116     for ac_exec_ext in '' $ac_executable_extensions; do
18117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18118     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18120     break 2
18121   fi
18122 done
18123   done
18124 IFS=$as_save_IFS
18125 
18126   ;;
18127 esac
18128 fi
18129 HG=$ac_cv_path_HG
18130 if test -n "$HG"; then
18131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18132 $as_echo "$HG" >&6; }
18133 else
18134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135 $as_echo "no" >&6; }
18136 fi
18137 
18138 
18139   test -n "$HG" && break
18140 done
18141 
18142     else
18143       # If it succeeded, then it was overridden by the user. We will use it
18144       # for the tool.
18145 
18146       # First remove it from the list of overridden variables, so we can test
18147       # for unknown variables in the end.
18148       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18149 
18150       # Check if the provided tool contains a complete path.
18151       tool_specified="$HG"
18152       tool_basename="${tool_specified##*/}"
18153       if test "x$tool_basename" = "x$tool_specified"; then
18154         # A command without a complete path is provided, search $PATH.
18155         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18156 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18157         # Extract the first word of "$tool_basename", so it can be a program name with args.
18158 set dummy $tool_basename; ac_word=$2
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18160 $as_echo_n "checking for $ac_word... " >&6; }
18161 if ${ac_cv_path_HG+:} false; then :
18162   $as_echo_n "(cached) " >&6
18163 else
18164   case $HG in
18165   [\\/]* | ?:[\\/]*)
18166   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18167   ;;
18168   *)
18169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18170 for as_dir in $PATH
18171 do
18172   IFS=$as_save_IFS
18173   test -z "$as_dir" && as_dir=.
18174     for ac_exec_ext in '' $ac_executable_extensions; do
18175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18176     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18178     break 2
18179   fi
18180 done
18181   done
18182 IFS=$as_save_IFS
18183 
18184   ;;
18185 esac
18186 fi
18187 HG=$ac_cv_path_HG
18188 if test -n "$HG"; then
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18190 $as_echo "$HG" >&6; }
18191 else
18192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18194 fi
18195 
18196 
18197         if test "x$HG" = x; then
18198           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18199         fi
18200       else
18201         # Otherwise we believe it is a complete path. Use it as it is.
18202         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18203 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18205 $as_echo_n "checking for HG... " >&6; }
18206         if test ! -x "$tool_specified"; then
18207           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18208 $as_echo "not found" >&6; }
18209           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18210         fi
18211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18212 $as_echo "$tool_specified" >&6; }
18213       fi
18214     fi
18215   fi
18216 
18217 
18218 
18219 
18220   # Publish this variable in the help.
18221 
18222 
18223   if test "x$STAT" = x; then
18224     # The variable is not set by user, try to locate tool using the code snippet
18225     for ac_prog in stat
18226 do
18227   # Extract the first word of "$ac_prog", so it can be a program name with args.
18228 set dummy $ac_prog; ac_word=$2
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230 $as_echo_n "checking for $ac_word... " >&6; }
18231 if ${ac_cv_path_STAT+:} false; then :
18232   $as_echo_n "(cached) " >&6
18233 else
18234   case $STAT in
18235   [\\/]* | ?:[\\/]*)
18236   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18237   ;;
18238   *)
18239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240 for as_dir in $PATH
18241 do
18242   IFS=$as_save_IFS
18243   test -z "$as_dir" && as_dir=.
18244     for ac_exec_ext in '' $ac_executable_extensions; do
18245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18246     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18248     break 2
18249   fi
18250 done
18251   done
18252 IFS=$as_save_IFS
18253 
18254   ;;
18255 esac
18256 fi
18257 STAT=$ac_cv_path_STAT
18258 if test -n "$STAT"; then
18259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18260 $as_echo "$STAT" >&6; }
18261 else
18262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263 $as_echo "no" >&6; }
18264 fi
18265 
18266 
18267   test -n "$STAT" && break
18268 done
18269 
18270   else
18271     # The variable is set, but is it from the command line or the environment?
18272 
18273     # Try to remove the string !STAT! from our list.
18274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18276       # If it failed, the variable was not from the command line. Ignore it,
18277       # but warn the user (except for BASH, which is always set by the calling BASH).
18278       if test "xSTAT" != xBASH; then
18279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18280 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18281       fi
18282       # Try to locate tool using the code snippet
18283       for ac_prog in stat
18284 do
18285   # Extract the first word of "$ac_prog", so it can be a program name with args.
18286 set dummy $ac_prog; ac_word=$2
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18288 $as_echo_n "checking for $ac_word... " >&6; }
18289 if ${ac_cv_path_STAT+:} false; then :
18290   $as_echo_n "(cached) " >&6
18291 else
18292   case $STAT in
18293   [\\/]* | ?:[\\/]*)
18294   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18295   ;;
18296   *)
18297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18299 do
18300   IFS=$as_save_IFS
18301   test -z "$as_dir" && as_dir=.
18302     for ac_exec_ext in '' $ac_executable_extensions; do
18303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18304     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18306     break 2
18307   fi
18308 done
18309   done
18310 IFS=$as_save_IFS
18311 
18312   ;;
18313 esac
18314 fi
18315 STAT=$ac_cv_path_STAT
18316 if test -n "$STAT"; then
18317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18318 $as_echo "$STAT" >&6; }
18319 else
18320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18321 $as_echo "no" >&6; }
18322 fi
18323 
18324 
18325   test -n "$STAT" && break
18326 done
18327 
18328     else
18329       # If it succeeded, then it was overridden by the user. We will use it
18330       # for the tool.
18331 
18332       # First remove it from the list of overridden variables, so we can test
18333       # for unknown variables in the end.
18334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18335 
18336       # Check if the provided tool contains a complete path.
18337       tool_specified="$STAT"
18338       tool_basename="${tool_specified##*/}"
18339       if test "x$tool_basename" = "x$tool_specified"; then
18340         # A command without a complete path is provided, search $PATH.
18341         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18342 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18343         # Extract the first word of "$tool_basename", so it can be a program name with args.
18344 set dummy $tool_basename; ac_word=$2
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18346 $as_echo_n "checking for $ac_word... " >&6; }
18347 if ${ac_cv_path_STAT+:} false; then :
18348   $as_echo_n "(cached) " >&6
18349 else
18350   case $STAT in
18351   [\\/]* | ?:[\\/]*)
18352   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18353   ;;
18354   *)
18355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18356 for as_dir in $PATH
18357 do
18358   IFS=$as_save_IFS
18359   test -z "$as_dir" && as_dir=.
18360     for ac_exec_ext in '' $ac_executable_extensions; do
18361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18362     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18364     break 2
18365   fi
18366 done
18367   done
18368 IFS=$as_save_IFS
18369 
18370   ;;
18371 esac
18372 fi
18373 STAT=$ac_cv_path_STAT
18374 if test -n "$STAT"; then
18375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18376 $as_echo "$STAT" >&6; }
18377 else
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18379 $as_echo "no" >&6; }
18380 fi
18381 
18382 
18383         if test "x$STAT" = x; then
18384           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18385         fi
18386       else
18387         # Otherwise we believe it is a complete path. Use it as it is.
18388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18389 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18391 $as_echo_n "checking for STAT... " >&6; }
18392         if test ! -x "$tool_specified"; then
18393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18394 $as_echo "not found" >&6; }
18395           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18396         fi
18397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18398 $as_echo "$tool_specified" >&6; }
18399       fi
18400     fi
18401   fi
18402 
18403 
18404 
18405 
18406   # Publish this variable in the help.
18407 
18408 
18409   if test "x$TIME" = x; then
18410     # The variable is not set by user, try to locate tool using the code snippet
18411     for ac_prog in time
18412 do
18413   # Extract the first word of "$ac_prog", so it can be a program name with args.
18414 set dummy $ac_prog; ac_word=$2
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18416 $as_echo_n "checking for $ac_word... " >&6; }
18417 if ${ac_cv_path_TIME+:} false; then :
18418   $as_echo_n "(cached) " >&6
18419 else
18420   case $TIME in
18421   [\\/]* | ?:[\\/]*)
18422   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18423   ;;
18424   *)
18425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18426 for as_dir in $PATH
18427 do
18428   IFS=$as_save_IFS
18429   test -z "$as_dir" && as_dir=.
18430     for ac_exec_ext in '' $ac_executable_extensions; do
18431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18432     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18434     break 2
18435   fi
18436 done
18437   done
18438 IFS=$as_save_IFS
18439 
18440   ;;
18441 esac
18442 fi
18443 TIME=$ac_cv_path_TIME
18444 if test -n "$TIME"; then
18445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18446 $as_echo "$TIME" >&6; }
18447 else
18448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449 $as_echo "no" >&6; }
18450 fi
18451 
18452 
18453   test -n "$TIME" && break
18454 done
18455 
18456   else
18457     # The variable is set, but is it from the command line or the environment?
18458 
18459     # Try to remove the string !TIME! from our list.
18460     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18461     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18462       # If it failed, the variable was not from the command line. Ignore it,
18463       # but warn the user (except for BASH, which is always set by the calling BASH).
18464       if test "xTIME" != xBASH; then
18465         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18466 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18467       fi
18468       # Try to locate tool using the code snippet
18469       for ac_prog in time
18470 do
18471   # Extract the first word of "$ac_prog", so it can be a program name with args.
18472 set dummy $ac_prog; ac_word=$2
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18474 $as_echo_n "checking for $ac_word... " >&6; }
18475 if ${ac_cv_path_TIME+:} false; then :
18476   $as_echo_n "(cached) " >&6
18477 else
18478   case $TIME in
18479   [\\/]* | ?:[\\/]*)
18480   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18481   ;;
18482   *)
18483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18485 do
18486   IFS=$as_save_IFS
18487   test -z "$as_dir" && as_dir=.
18488     for ac_exec_ext in '' $ac_executable_extensions; do
18489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18492     break 2
18493   fi
18494 done
18495   done
18496 IFS=$as_save_IFS
18497 
18498   ;;
18499 esac
18500 fi
18501 TIME=$ac_cv_path_TIME
18502 if test -n "$TIME"; then
18503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18504 $as_echo "$TIME" >&6; }
18505 else
18506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507 $as_echo "no" >&6; }
18508 fi
18509 
18510 
18511   test -n "$TIME" && break
18512 done
18513 
18514     else
18515       # If it succeeded, then it was overridden by the user. We will use it
18516       # for the tool.
18517 
18518       # First remove it from the list of overridden variables, so we can test
18519       # for unknown variables in the end.
18520       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18521 
18522       # Check if the provided tool contains a complete path.
18523       tool_specified="$TIME"
18524       tool_basename="${tool_specified##*/}"
18525       if test "x$tool_basename" = "x$tool_specified"; then
18526         # A command without a complete path is provided, search $PATH.
18527         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18528 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18529         # Extract the first word of "$tool_basename", so it can be a program name with args.
18530 set dummy $tool_basename; ac_word=$2
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18532 $as_echo_n "checking for $ac_word... " >&6; }
18533 if ${ac_cv_path_TIME+:} false; then :
18534   $as_echo_n "(cached) " >&6
18535 else
18536   case $TIME in
18537   [\\/]* | ?:[\\/]*)
18538   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18539   ;;
18540   *)
18541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542 for as_dir in $PATH
18543 do
18544   IFS=$as_save_IFS
18545   test -z "$as_dir" && as_dir=.
18546     for ac_exec_ext in '' $ac_executable_extensions; do
18547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18548     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18550     break 2
18551   fi
18552 done
18553   done
18554 IFS=$as_save_IFS
18555 
18556   ;;
18557 esac
18558 fi
18559 TIME=$ac_cv_path_TIME
18560 if test -n "$TIME"; then
18561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18562 $as_echo "$TIME" >&6; }
18563 else
18564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18566 fi
18567 
18568 
18569         if test "x$TIME" = x; then
18570           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18571         fi
18572       else
18573         # Otherwise we believe it is a complete path. Use it as it is.
18574         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18575 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18577 $as_echo_n "checking for TIME... " >&6; }
18578         if test ! -x "$tool_specified"; then
18579           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18580 $as_echo "not found" >&6; }
18581           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18582         fi
18583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18584 $as_echo "$tool_specified" >&6; }
18585       fi
18586     fi
18587   fi
18588 
18589 
18590   # Check if it's GNU time
18591   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18592   if test "x$IS_GNU_TIME" != x; then
18593     IS_GNU_TIME=yes
18594   else
18595     IS_GNU_TIME=no
18596   fi
18597 
18598 
18599   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18600 
18601 
18602 
18603   # Publish this variable in the help.
18604 
18605 
18606   if test "x$COMM" = x; then
18607     # The variable is not set by user, try to locate tool using the code snippet
18608     for ac_prog in comm
18609 do
18610   # Extract the first word of "$ac_prog", so it can be a program name with args.
18611 set dummy $ac_prog; ac_word=$2
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18613 $as_echo_n "checking for $ac_word... " >&6; }
18614 if ${ac_cv_path_COMM+:} false; then :
18615   $as_echo_n "(cached) " >&6
18616 else
18617   case $COMM in
18618   [\\/]* | ?:[\\/]*)
18619   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18620   ;;
18621   *)
18622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18623 for as_dir in $PATH
18624 do
18625   IFS=$as_save_IFS
18626   test -z "$as_dir" && as_dir=.
18627     for ac_exec_ext in '' $ac_executable_extensions; do
18628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18629     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18631     break 2
18632   fi
18633 done
18634   done
18635 IFS=$as_save_IFS
18636 
18637   ;;
18638 esac
18639 fi
18640 COMM=$ac_cv_path_COMM
18641 if test -n "$COMM"; then
18642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18643 $as_echo "$COMM" >&6; }
18644 else
18645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18647 fi
18648 
18649 
18650   test -n "$COMM" && break
18651 done
18652 
18653   else
18654     # The variable is set, but is it from the command line or the environment?
18655 
18656     # Try to remove the string !COMM! from our list.
18657     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18658     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18659       # If it failed, the variable was not from the command line. Ignore it,
18660       # but warn the user (except for BASH, which is always set by the calling BASH).
18661       if test "xCOMM" != xBASH; then
18662         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18663 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18664       fi
18665       # Try to locate tool using the code snippet
18666       for ac_prog in comm
18667 do
18668   # Extract the first word of "$ac_prog", so it can be a program name with args.
18669 set dummy $ac_prog; ac_word=$2
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18671 $as_echo_n "checking for $ac_word... " >&6; }
18672 if ${ac_cv_path_COMM+:} false; then :
18673   $as_echo_n "(cached) " >&6
18674 else
18675   case $COMM in
18676   [\\/]* | ?:[\\/]*)
18677   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18678   ;;
18679   *)
18680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18681 for as_dir in $PATH
18682 do
18683   IFS=$as_save_IFS
18684   test -z "$as_dir" && as_dir=.
18685     for ac_exec_ext in '' $ac_executable_extensions; do
18686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18687     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18689     break 2
18690   fi
18691 done
18692   done
18693 IFS=$as_save_IFS
18694 
18695   ;;
18696 esac
18697 fi
18698 COMM=$ac_cv_path_COMM
18699 if test -n "$COMM"; then
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18701 $as_echo "$COMM" >&6; }
18702 else
18703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 $as_echo "no" >&6; }
18705 fi
18706 
18707 
18708   test -n "$COMM" && break
18709 done
18710 
18711     else
18712       # If it succeeded, then it was overridden by the user. We will use it
18713       # for the tool.
18714 
18715       # First remove it from the list of overridden variables, so we can test
18716       # for unknown variables in the end.
18717       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18718 
18719       # Check if the provided tool contains a complete path.
18720       tool_specified="$COMM"
18721       tool_basename="${tool_specified##*/}"
18722       if test "x$tool_basename" = "x$tool_specified"; then
18723         # A command without a complete path is provided, search $PATH.
18724         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18725 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18726         # Extract the first word of "$tool_basename", so it can be a program name with args.
18727 set dummy $tool_basename; ac_word=$2
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18729 $as_echo_n "checking for $ac_word... " >&6; }
18730 if ${ac_cv_path_COMM+:} false; then :
18731   $as_echo_n "(cached) " >&6
18732 else
18733   case $COMM in
18734   [\\/]* | ?:[\\/]*)
18735   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18736   ;;
18737   *)
18738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18739 for as_dir in $PATH
18740 do
18741   IFS=$as_save_IFS
18742   test -z "$as_dir" && as_dir=.
18743     for ac_exec_ext in '' $ac_executable_extensions; do
18744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18745     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18747     break 2
18748   fi
18749 done
18750   done
18751 IFS=$as_save_IFS
18752 
18753   ;;
18754 esac
18755 fi
18756 COMM=$ac_cv_path_COMM
18757 if test -n "$COMM"; then
18758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18759 $as_echo "$COMM" >&6; }
18760 else
18761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18762 $as_echo "no" >&6; }
18763 fi
18764 
18765 
18766         if test "x$COMM" = x; then
18767           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18768         fi
18769       else
18770         # Otherwise we believe it is a complete path. Use it as it is.
18771         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18772 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18774 $as_echo_n "checking for COMM... " >&6; }
18775         if test ! -x "$tool_specified"; then
18776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18777 $as_echo "not found" >&6; }
18778           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18779         fi
18780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18781 $as_echo "$tool_specified" >&6; }
18782       fi
18783     fi
18784   fi
18785 
18786 
18787 
18788   if test "x$COMM" = x; then
18789     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18790   fi
18791 
18792 
18793   fi
18794 
18795   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18796 
18797 
18798 
18799   # Publish this variable in the help.
18800 
18801 
18802   if test "x$DSYMUTIL" = x; then
18803     # The variable is not set by user, try to locate tool using the code snippet
18804     for ac_prog in dsymutil
18805 do
18806   # Extract the first word of "$ac_prog", so it can be a program name with args.
18807 set dummy $ac_prog; ac_word=$2
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18809 $as_echo_n "checking for $ac_word... " >&6; }
18810 if ${ac_cv_path_DSYMUTIL+:} false; then :
18811   $as_echo_n "(cached) " >&6
18812 else
18813   case $DSYMUTIL in
18814   [\\/]* | ?:[\\/]*)
18815   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18816   ;;
18817   *)
18818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18819 for as_dir in $PATH
18820 do
18821   IFS=$as_save_IFS
18822   test -z "$as_dir" && as_dir=.
18823     for ac_exec_ext in '' $ac_executable_extensions; do
18824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18825     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18827     break 2
18828   fi
18829 done
18830   done
18831 IFS=$as_save_IFS
18832 
18833   ;;
18834 esac
18835 fi
18836 DSYMUTIL=$ac_cv_path_DSYMUTIL
18837 if test -n "$DSYMUTIL"; then
18838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18839 $as_echo "$DSYMUTIL" >&6; }
18840 else
18841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18842 $as_echo "no" >&6; }
18843 fi
18844 
18845 
18846   test -n "$DSYMUTIL" && break
18847 done
18848 
18849   else
18850     # The variable is set, but is it from the command line or the environment?
18851 
18852     # Try to remove the string !DSYMUTIL! from our list.
18853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18855       # If it failed, the variable was not from the command line. Ignore it,
18856       # but warn the user (except for BASH, which is always set by the calling BASH).
18857       if test "xDSYMUTIL" != xBASH; then
18858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18859 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18860       fi
18861       # Try to locate tool using the code snippet
18862       for ac_prog in dsymutil
18863 do
18864   # Extract the first word of "$ac_prog", so it can be a program name with args.
18865 set dummy $ac_prog; ac_word=$2
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18867 $as_echo_n "checking for $ac_word... " >&6; }
18868 if ${ac_cv_path_DSYMUTIL+:} false; then :
18869   $as_echo_n "(cached) " >&6
18870 else
18871   case $DSYMUTIL in
18872   [\\/]* | ?:[\\/]*)
18873   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18874   ;;
18875   *)
18876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877 for as_dir in $PATH
18878 do
18879   IFS=$as_save_IFS
18880   test -z "$as_dir" && as_dir=.
18881     for ac_exec_ext in '' $ac_executable_extensions; do
18882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18883     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18885     break 2
18886   fi
18887 done
18888   done
18889 IFS=$as_save_IFS
18890 
18891   ;;
18892 esac
18893 fi
18894 DSYMUTIL=$ac_cv_path_DSYMUTIL
18895 if test -n "$DSYMUTIL"; then
18896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18897 $as_echo "$DSYMUTIL" >&6; }
18898 else
18899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18900 $as_echo "no" >&6; }
18901 fi
18902 
18903 
18904   test -n "$DSYMUTIL" && break
18905 done
18906 
18907     else
18908       # If it succeeded, then it was overridden by the user. We will use it
18909       # for the tool.
18910 
18911       # First remove it from the list of overridden variables, so we can test
18912       # for unknown variables in the end.
18913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18914 
18915       # Check if the provided tool contains a complete path.
18916       tool_specified="$DSYMUTIL"
18917       tool_basename="${tool_specified##*/}"
18918       if test "x$tool_basename" = "x$tool_specified"; then
18919         # A command without a complete path is provided, search $PATH.
18920         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18921 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18922         # Extract the first word of "$tool_basename", so it can be a program name with args.
18923 set dummy $tool_basename; ac_word=$2
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18925 $as_echo_n "checking for $ac_word... " >&6; }
18926 if ${ac_cv_path_DSYMUTIL+:} false; then :
18927   $as_echo_n "(cached) " >&6
18928 else
18929   case $DSYMUTIL in
18930   [\\/]* | ?:[\\/]*)
18931   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18932   ;;
18933   *)
18934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18935 for as_dir in $PATH
18936 do
18937   IFS=$as_save_IFS
18938   test -z "$as_dir" && as_dir=.
18939     for ac_exec_ext in '' $ac_executable_extensions; do
18940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18941     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18943     break 2
18944   fi
18945 done
18946   done
18947 IFS=$as_save_IFS
18948 
18949   ;;
18950 esac
18951 fi
18952 DSYMUTIL=$ac_cv_path_DSYMUTIL
18953 if test -n "$DSYMUTIL"; then
18954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18955 $as_echo "$DSYMUTIL" >&6; }
18956 else
18957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18958 $as_echo "no" >&6; }
18959 fi
18960 
18961 
18962         if test "x$DSYMUTIL" = x; then
18963           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18964         fi
18965       else
18966         # Otherwise we believe it is a complete path. Use it as it is.
18967         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18968 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18970 $as_echo_n "checking for DSYMUTIL... " >&6; }
18971         if test ! -x "$tool_specified"; then
18972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18973 $as_echo "not found" >&6; }
18974           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18975         fi
18976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18977 $as_echo "$tool_specified" >&6; }
18978       fi
18979     fi
18980   fi
18981 
18982 
18983 
18984   if test "x$DSYMUTIL" = x; then
18985     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18986   fi
18987 
18988 
18989 
18990 
18991 
18992   # Publish this variable in the help.
18993 
18994 
18995   if test "x$XATTR" = x; then
18996     # The variable is not set by user, try to locate tool using the code snippet
18997     for ac_prog in xattr
18998 do
18999   # Extract the first word of "$ac_prog", so it can be a program name with args.
19000 set dummy $ac_prog; ac_word=$2
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19002 $as_echo_n "checking for $ac_word... " >&6; }
19003 if ${ac_cv_path_XATTR+:} false; then :
19004   $as_echo_n "(cached) " >&6
19005 else
19006   case $XATTR in
19007   [\\/]* | ?:[\\/]*)
19008   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19009   ;;
19010   *)
19011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19012 for as_dir in $PATH
19013 do
19014   IFS=$as_save_IFS
19015   test -z "$as_dir" && as_dir=.
19016     for ac_exec_ext in '' $ac_executable_extensions; do
19017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19018     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19020     break 2
19021   fi
19022 done
19023   done
19024 IFS=$as_save_IFS
19025 
19026   ;;
19027 esac
19028 fi
19029 XATTR=$ac_cv_path_XATTR
19030 if test -n "$XATTR"; then
19031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19032 $as_echo "$XATTR" >&6; }
19033 else
19034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035 $as_echo "no" >&6; }
19036 fi
19037 
19038 
19039   test -n "$XATTR" && break
19040 done
19041 
19042   else
19043     # The variable is set, but is it from the command line or the environment?
19044 
19045     # Try to remove the string !XATTR! from our list.
19046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19048       # If it failed, the variable was not from the command line. Ignore it,
19049       # but warn the user (except for BASH, which is always set by the calling BASH).
19050       if test "xXATTR" != xBASH; then
19051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19052 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19053       fi
19054       # Try to locate tool using the code snippet
19055       for ac_prog in xattr
19056 do
19057   # Extract the first word of "$ac_prog", so it can be a program name with args.
19058 set dummy $ac_prog; ac_word=$2
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19060 $as_echo_n "checking for $ac_word... " >&6; }
19061 if ${ac_cv_path_XATTR+:} false; then :
19062   $as_echo_n "(cached) " >&6
19063 else
19064   case $XATTR in
19065   [\\/]* | ?:[\\/]*)
19066   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19067   ;;
19068   *)
19069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19070 for as_dir in $PATH
19071 do
19072   IFS=$as_save_IFS
19073   test -z "$as_dir" && as_dir=.
19074     for ac_exec_ext in '' $ac_executable_extensions; do
19075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19076     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19078     break 2
19079   fi
19080 done
19081   done
19082 IFS=$as_save_IFS
19083 
19084   ;;
19085 esac
19086 fi
19087 XATTR=$ac_cv_path_XATTR
19088 if test -n "$XATTR"; then
19089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19090 $as_echo "$XATTR" >&6; }
19091 else
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19093 $as_echo "no" >&6; }
19094 fi
19095 
19096 
19097   test -n "$XATTR" && break
19098 done
19099 
19100     else
19101       # If it succeeded, then it was overridden by the user. We will use it
19102       # for the tool.
19103 
19104       # First remove it from the list of overridden variables, so we can test
19105       # for unknown variables in the end.
19106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19107 
19108       # Check if the provided tool contains a complete path.
19109       tool_specified="$XATTR"
19110       tool_basename="${tool_specified##*/}"
19111       if test "x$tool_basename" = "x$tool_specified"; then
19112         # A command without a complete path is provided, search $PATH.
19113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19114 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19115         # Extract the first word of "$tool_basename", so it can be a program name with args.
19116 set dummy $tool_basename; ac_word=$2
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19118 $as_echo_n "checking for $ac_word... " >&6; }
19119 if ${ac_cv_path_XATTR+:} false; then :
19120   $as_echo_n "(cached) " >&6
19121 else
19122   case $XATTR in
19123   [\\/]* | ?:[\\/]*)
19124   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19125   ;;
19126   *)
19127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19128 for as_dir in $PATH
19129 do
19130   IFS=$as_save_IFS
19131   test -z "$as_dir" && as_dir=.
19132     for ac_exec_ext in '' $ac_executable_extensions; do
19133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19134     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19136     break 2
19137   fi
19138 done
19139   done
19140 IFS=$as_save_IFS
19141 
19142   ;;
19143 esac
19144 fi
19145 XATTR=$ac_cv_path_XATTR
19146 if test -n "$XATTR"; then
19147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19148 $as_echo "$XATTR" >&6; }
19149 else
19150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151 $as_echo "no" >&6; }
19152 fi
19153 
19154 
19155         if test "x$XATTR" = x; then
19156           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19157         fi
19158       else
19159         # Otherwise we believe it is a complete path. Use it as it is.
19160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19161 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19163 $as_echo_n "checking for XATTR... " >&6; }
19164         if test ! -x "$tool_specified"; then
19165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19166 $as_echo "not found" >&6; }
19167           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19168         fi
19169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19170 $as_echo "$tool_specified" >&6; }
19171       fi
19172     fi
19173   fi
19174 
19175 
19176 
19177   if test "x$XATTR" = x; then
19178     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19179   fi
19180 
19181 
19182 
19183 
19184   # Publish this variable in the help.
19185 
19186 
19187   if test "x$CODESIGN" = x; then
19188     # The variable is not set by user, try to locate tool using the code snippet
19189     for ac_prog in codesign
19190 do
19191   # Extract the first word of "$ac_prog", so it can be a program name with args.
19192 set dummy $ac_prog; ac_word=$2
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19194 $as_echo_n "checking for $ac_word... " >&6; }
19195 if ${ac_cv_path_CODESIGN+:} false; then :
19196   $as_echo_n "(cached) " >&6
19197 else
19198   case $CODESIGN in
19199   [\\/]* | ?:[\\/]*)
19200   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19201   ;;
19202   *)
19203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19204 for as_dir in $PATH
19205 do
19206   IFS=$as_save_IFS
19207   test -z "$as_dir" && as_dir=.
19208     for ac_exec_ext in '' $ac_executable_extensions; do
19209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19210     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19212     break 2
19213   fi
19214 done
19215   done
19216 IFS=$as_save_IFS
19217 
19218   ;;
19219 esac
19220 fi
19221 CODESIGN=$ac_cv_path_CODESIGN
19222 if test -n "$CODESIGN"; then
19223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19224 $as_echo "$CODESIGN" >&6; }
19225 else
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19228 fi
19229 
19230 
19231   test -n "$CODESIGN" && break
19232 done
19233 
19234   else
19235     # The variable is set, but is it from the command line or the environment?
19236 
19237     # Try to remove the string !CODESIGN! from our list.
19238     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19239     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19240       # If it failed, the variable was not from the command line. Ignore it,
19241       # but warn the user (except for BASH, which is always set by the calling BASH).
19242       if test "xCODESIGN" != xBASH; then
19243         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19244 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19245       fi
19246       # Try to locate tool using the code snippet
19247       for ac_prog in codesign
19248 do
19249   # Extract the first word of "$ac_prog", so it can be a program name with args.
19250 set dummy $ac_prog; ac_word=$2
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19252 $as_echo_n "checking for $ac_word... " >&6; }
19253 if ${ac_cv_path_CODESIGN+:} false; then :
19254   $as_echo_n "(cached) " >&6
19255 else
19256   case $CODESIGN in
19257   [\\/]* | ?:[\\/]*)
19258   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19259   ;;
19260   *)
19261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19262 for as_dir in $PATH
19263 do
19264   IFS=$as_save_IFS
19265   test -z "$as_dir" && as_dir=.
19266     for ac_exec_ext in '' $ac_executable_extensions; do
19267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19268     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19270     break 2
19271   fi
19272 done
19273   done
19274 IFS=$as_save_IFS
19275 
19276   ;;
19277 esac
19278 fi
19279 CODESIGN=$ac_cv_path_CODESIGN
19280 if test -n "$CODESIGN"; then
19281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19282 $as_echo "$CODESIGN" >&6; }
19283 else
19284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19285 $as_echo "no" >&6; }
19286 fi
19287 
19288 
19289   test -n "$CODESIGN" && break
19290 done
19291 
19292     else
19293       # If it succeeded, then it was overridden by the user. We will use it
19294       # for the tool.
19295 
19296       # First remove it from the list of overridden variables, so we can test
19297       # for unknown variables in the end.
19298       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19299 
19300       # Check if the provided tool contains a complete path.
19301       tool_specified="$CODESIGN"
19302       tool_basename="${tool_specified##*/}"
19303       if test "x$tool_basename" = "x$tool_specified"; then
19304         # A command without a complete path is provided, search $PATH.
19305         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19306 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19307         # Extract the first word of "$tool_basename", so it can be a program name with args.
19308 set dummy $tool_basename; ac_word=$2
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19310 $as_echo_n "checking for $ac_word... " >&6; }
19311 if ${ac_cv_path_CODESIGN+:} false; then :
19312   $as_echo_n "(cached) " >&6
19313 else
19314   case $CODESIGN in
19315   [\\/]* | ?:[\\/]*)
19316   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19317   ;;
19318   *)
19319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19320 for as_dir in $PATH
19321 do
19322   IFS=$as_save_IFS
19323   test -z "$as_dir" && as_dir=.
19324     for ac_exec_ext in '' $ac_executable_extensions; do
19325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19326     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19328     break 2
19329   fi
19330 done
19331   done
19332 IFS=$as_save_IFS
19333 
19334   ;;
19335 esac
19336 fi
19337 CODESIGN=$ac_cv_path_CODESIGN
19338 if test -n "$CODESIGN"; then
19339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19340 $as_echo "$CODESIGN" >&6; }
19341 else
19342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19343 $as_echo "no" >&6; }
19344 fi
19345 
19346 
19347         if test "x$CODESIGN" = x; then
19348           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19349         fi
19350       else
19351         # Otherwise we believe it is a complete path. Use it as it is.
19352         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19353 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19355 $as_echo_n "checking for CODESIGN... " >&6; }
19356         if test ! -x "$tool_specified"; then
19357           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19358 $as_echo "not found" >&6; }
19359           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19360         fi
19361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19362 $as_echo "$tool_specified" >&6; }
19363       fi
19364     fi
19365   fi
19366 
19367 
19368     if test "x$CODESIGN" != "x"; then
19369       # Verify that the openjdk_codesign certificate is present
19370       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19371 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19372       rm -f codesign-testfile
19373       touch codesign-testfile
19374       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19375       rm -f codesign-testfile
19376       if test "x$CODESIGN" = x; then
19377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378 $as_echo "no" >&6; }
19379       else
19380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19381 $as_echo "yes" >&6; }
19382       fi
19383     fi
19384   fi
19385 
19386 
19387 # Check if pkg-config is available.
19388 
19389 
19390 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19391         if test -n "$ac_tool_prefix"; then
19392   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19393 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19395 $as_echo_n "checking for $ac_word... " >&6; }
19396 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19397   $as_echo_n "(cached) " >&6
19398 else
19399   case $PKG_CONFIG in
19400   [\\/]* | ?:[\\/]*)
19401   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19402   ;;
19403   *)
19404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19405 for as_dir in $PATH
19406 do
19407   IFS=$as_save_IFS
19408   test -z "$as_dir" && as_dir=.
19409     for ac_exec_ext in '' $ac_executable_extensions; do
19410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19411     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19413     break 2
19414   fi
19415 done
19416   done
19417 IFS=$as_save_IFS
19418 
19419   ;;
19420 esac
19421 fi
19422 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19423 if test -n "$PKG_CONFIG"; then
19424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19425 $as_echo "$PKG_CONFIG" >&6; }
19426 else
19427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19428 $as_echo "no" >&6; }
19429 fi
19430 
19431 
19432 fi
19433 if test -z "$ac_cv_path_PKG_CONFIG"; then
19434   ac_pt_PKG_CONFIG=$PKG_CONFIG
19435   # Extract the first word of "pkg-config", so it can be a program name with args.
19436 set dummy pkg-config; ac_word=$2
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19438 $as_echo_n "checking for $ac_word... " >&6; }
19439 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19440   $as_echo_n "(cached) " >&6
19441 else
19442   case $ac_pt_PKG_CONFIG in
19443   [\\/]* | ?:[\\/]*)
19444   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19445   ;;
19446   *)
19447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19448 for as_dir in $PATH
19449 do
19450   IFS=$as_save_IFS
19451   test -z "$as_dir" && as_dir=.
19452     for ac_exec_ext in '' $ac_executable_extensions; do
19453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19454     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19456     break 2
19457   fi
19458 done
19459   done
19460 IFS=$as_save_IFS
19461 
19462   ;;
19463 esac
19464 fi
19465 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19466 if test -n "$ac_pt_PKG_CONFIG"; then
19467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19468 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19469 else
19470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472 fi
19473 
19474   if test "x$ac_pt_PKG_CONFIG" = x; then
19475     PKG_CONFIG=""
19476   else
19477     case $cross_compiling:$ac_tool_warned in
19478 yes:)
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19481 ac_tool_warned=yes ;;
19482 esac
19483     PKG_CONFIG=$ac_pt_PKG_CONFIG
19484   fi
19485 else
19486   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19487 fi
19488 
19489 fi
19490 if test -n "$PKG_CONFIG"; then
19491         _pkg_min_version=0.9.0
19492         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19493 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19494         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19495                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19496 $as_echo "yes" >&6; }
19497         else
19498                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499 $as_echo "no" >&6; }
19500                 PKG_CONFIG=""
19501         fi
19502 
19503 fi
19504 
19505 # After basic tools have been setup, we can check build os specific details.
19506 
19507   ###############################################################################
19508 
19509   # Note that this is the build platform OS version!
19510 
19511   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19512   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19513   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19514   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19515 
19516 
19517 
19518 
19519 
19520 # Setup builddeps, for automatic downloading of tools we need.
19521 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19522 # boot-jdk setup, but we need to have basic tools setup first.
19523 
19524 
19525 # Check whether --with-builddeps-conf was given.
19526 if test "${with_builddeps_conf+set}" = set; then :
19527   withval=$with_builddeps_conf;
19528 fi
19529 
19530 
19531 
19532 # Check whether --with-builddeps-server was given.
19533 if test "${with_builddeps_server+set}" = set; then :
19534   withval=$with_builddeps_server;
19535 fi
19536 
19537 
19538 
19539 # Check whether --with-builddeps-dir was given.
19540 if test "${with_builddeps_dir+set}" = set; then :
19541   withval=$with_builddeps_dir;
19542 else
19543   with_builddeps_dir=/localhome/builddeps
19544 fi
19545 
19546 
19547 
19548 # Check whether --with-builddeps-group was given.
19549 if test "${with_builddeps_group+set}" = set; then :
19550   withval=$with_builddeps_group;
19551 fi
19552 
19553 
19554 
19555 
19556   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19557     if test "x$with_builddeps_conf" != x; then
19558       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19559 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19560       builddepsfile=$with_builddeps_conf
19561       if test -s $builddepsfile; then
19562         . $builddepsfile
19563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19564 $as_echo "loaded!" >&6; }
19565       else
19566         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19567       fi
19568     else
19569       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19570 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19571       builddepsfile=`mktemp`
19572       touch $builddepsfile
19573       # Put all found confs into a single file.
19574       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19575       # Source the file to acquire the variables
19576       if test -s $builddepsfile; then
19577         . $builddepsfile
19578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19579 $as_echo "found at least one!" >&6; }
19580       else
19581         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19582       fi
19583     fi
19584     # Create build and target names that use _ instead of "-" and ".".
19585     # This is necessary to use them in variable names.
19586     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19587     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19588     # Extract rewrite information for build and target
19589     eval rewritten_build=\${REWRITE_${build_var}}
19590     if test "x$rewritten_build" = x; then
19591       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19592       echo Build stays the same $rewritten_build
19593     else
19594       echo Rewriting build for builddeps into $rewritten_build
19595     fi
19596     eval rewritten_target=\${REWRITE_${target_var}}
19597     if test "x$rewritten_target" = x; then
19598       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19599       echo Target stays the same $rewritten_target
19600     else
19601       echo Rewriting target for builddeps into $rewritten_target
19602     fi
19603     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19604     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19605   fi
19606   for ac_prog in 7z unzip
19607 do
19608   # Extract the first word of "$ac_prog", so it can be a program name with args.
19609 set dummy $ac_prog; ac_word=$2
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19611 $as_echo_n "checking for $ac_word... " >&6; }
19612 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19613   $as_echo_n "(cached) " >&6
19614 else
19615   if test -n "$BDEPS_UNZIP"; then
19616   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19617 else
19618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19619 for as_dir in $PATH
19620 do
19621   IFS=$as_save_IFS
19622   test -z "$as_dir" && as_dir=.
19623     for ac_exec_ext in '' $ac_executable_extensions; do
19624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19625     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19627     break 2
19628   fi
19629 done
19630   done
19631 IFS=$as_save_IFS
19632 
19633 fi
19634 fi
19635 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19636 if test -n "$BDEPS_UNZIP"; then
19637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19638 $as_echo "$BDEPS_UNZIP" >&6; }
19639 else
19640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19641 $as_echo "no" >&6; }
19642 fi
19643 
19644 
19645   test -n "$BDEPS_UNZIP" && break
19646 done
19647 
19648   if test "x$BDEPS_UNZIP" = x7z; then
19649     BDEPS_UNZIP="7z x"
19650   fi
19651 
19652   for ac_prog in wget lftp ftp
19653 do
19654   # Extract the first word of "$ac_prog", so it can be a program name with args.
19655 set dummy $ac_prog; ac_word=$2
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19657 $as_echo_n "checking for $ac_word... " >&6; }
19658 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661   if test -n "$BDEPS_FTP"; then
19662   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19663 else
19664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19665 for as_dir in $PATH
19666 do
19667   IFS=$as_save_IFS
19668   test -z "$as_dir" && as_dir=.
19669     for ac_exec_ext in '' $ac_executable_extensions; do
19670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19671     ac_cv_prog_BDEPS_FTP="$ac_prog"
19672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19673     break 2
19674   fi
19675 done
19676   done
19677 IFS=$as_save_IFS
19678 
19679 fi
19680 fi
19681 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19682 if test -n "$BDEPS_FTP"; then
19683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19684 $as_echo "$BDEPS_FTP" >&6; }
19685 else
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19687 $as_echo "no" >&6; }
19688 fi
19689 
19690 
19691   test -n "$BDEPS_FTP" && break
19692 done
19693 
19694 
19695 
19696 ###############################################################################
19697 #
19698 # Determine OpenJDK variants, options and version numbers.
19699 #
19700 ###############################################################################
19701 
19702 # We need build & target for this.
19703 
19704 
19705   ###############################################################################
19706   #
19707   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19708   # We always build headless support.
19709   #
19710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19711 $as_echo_n "checking headful support... " >&6; }
19712   # Check whether --enable-headful was given.
19713 if test "${enable_headful+set}" = set; then :
19714   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19715 else
19716   SUPPORT_HEADFUL=yes
19717 fi
19718 
19719 
19720   SUPPORT_HEADLESS=yes
19721   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19722 
19723   if test "x$SUPPORT_HEADFUL" = xyes; then
19724     # We are building both headful and headless.
19725     headful_msg="include support for both headful and headless"
19726   fi
19727 
19728   if test "x$SUPPORT_HEADFUL" = xno; then
19729     # Thus we are building headless only.
19730     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19731     headful_msg="headless only"
19732   fi
19733 
19734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19735 $as_echo "$headful_msg" >&6; }
19736 
19737 
19738 
19739 
19740 
19741   # Control wether Hotspot runs Queens test after build.
19742   # Check whether --enable-hotspot-test-in-build was given.
19743 if test "${enable_hotspot_test_in_build+set}" = set; then :
19744   enableval=$enable_hotspot_test_in_build;
19745 else
19746   enable_hotspot_test_in_build=no
19747 fi
19748 
19749   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19750     TEST_IN_BUILD=true
19751   else
19752     TEST_IN_BUILD=false
19753   fi
19754 
19755 
19756   ###############################################################################
19757   #
19758   # Choose cacerts source file
19759   #
19760 
19761 # Check whether --with-cacerts-file was given.
19762 if test "${with_cacerts_file+set}" = set; then :
19763   withval=$with_cacerts_file;
19764 fi
19765 
19766   if test "x$with_cacerts_file" != x; then
19767     CACERTS_FILE=$with_cacerts_file
19768   else
19769     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19770   fi
19771 
19772 
19773   ###############################################################################
19774   #
19775   # Enable or disable unlimited crypto
19776   #
19777   # Check whether --enable-unlimited-crypto was given.
19778 if test "${enable_unlimited_crypto+set}" = set; then :
19779   enableval=$enable_unlimited_crypto;
19780 else
19781   enable_unlimited_crypto=no
19782 fi
19783 
19784   if test "x$enable_unlimited_crypto" = "xyes"; then
19785     UNLIMITED_CRYPTO=true
19786   else
19787     UNLIMITED_CRYPTO=false
19788   fi
19789 
19790 
19791   ###############################################################################
19792   #
19793   # Enable or disable the elliptic curve crypto implementation
19794   #
19795 
19796 
19797   ###############################################################################
19798   #
19799   # Compress jars
19800   #
19801   COMPRESS_JARS=false
19802 
19803 
19804 
19805 
19806   # Source the version numbers
19807   . $AUTOCONF_DIR/version-numbers
19808 
19809   # Get the settings from parameters
19810 
19811 # Check whether --with-milestone was given.
19812 if test "${with_milestone+set}" = set; then :
19813   withval=$with_milestone;
19814 fi
19815 
19816   if test "x$with_milestone" = xyes; then
19817     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19818   elif test "x$with_milestone" != x; then
19819     MILESTONE="$with_milestone"
19820   fi
19821   if test "x$MILESTONE" = x; then
19822     MILESTONE=internal
19823   fi
19824 
19825 
19826 # Check whether --with-update-version was given.
19827 if test "${with_update_version+set}" = set; then :
19828   withval=$with_update_version;
19829 fi
19830 
19831   if test "x$with_update_version" = xyes; then
19832     as_fn_error $? "Update version must have a value" "$LINENO" 5
19833   elif test "x$with_update_version" != x; then
19834     JDK_UPDATE_VERSION="$with_update_version"
19835     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19836     # to a bug in expr (which reduces it to just X). To work around this, we
19837     # always add a 0 to one digit update versions.
19838     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19839       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19840     fi
19841   fi
19842 
19843 
19844 # Check whether --with-user-release-suffix was given.
19845 if test "${with_user_release_suffix+set}" = set; then :
19846   withval=$with_user_release_suffix;
19847 fi
19848 
19849   if test "x$with_user_release_suffix" = xyes; then
19850     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19851   elif test "x$with_user_release_suffix" != x; then
19852     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19853   fi
19854 
19855 
19856 # Check whether --with-build-number was given.
19857 if test "${with_build_number+set}" = set; then :
19858   withval=$with_build_number;
19859 fi
19860 
19861   if test "x$with_build_number" = xyes; then
19862     as_fn_error $? "Build number must have a value" "$LINENO" 5
19863   elif test "x$with_build_number" != x; then
19864     JDK_BUILD_NUMBER="$with_build_number"
19865   fi
19866   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19867   if test "x$JDK_BUILD_NUMBER" = x; then
19868     JDK_BUILD_NUMBER=b00
19869     if test "x$USER_RELEASE_SUFFIX" = x; then
19870       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19871       # Avoid [:alnum:] since it depends on the locale.
19872       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19873       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19874     fi
19875   fi
19876 
19877   # Now set the JDK version, milestone, build number etc.
19878 
19879 
19880 
19881 
19882 
19883 
19884 
19885 
19886 
19887 
19888 
19889 
19890 
19891 
19892   # The vendor name, if any
19893 
19894 # Check whether --with-vendor-name was given.
19895 if test "${with_vendor_name+set}" = set; then :
19896   withval=$with_vendor_name;
19897 fi
19898 
19899   if test "x$with_vendor_name" = xyes; then
19900     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19901   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19902     as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19903   elif test "x$with_vendor_name" != x; then
19904     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
19905     # Otherwise we will use the value from "version-numbers" included above.
19906     COMPANY_NAME="$with_vendor_name"
19907   fi
19908 
19909 
19910   # The vendor URL, if any
19911 
19912 # Check whether --with-vendor-url was given.
19913 if test "${with_vendor_url+set}" = set; then :
19914   withval=$with_vendor_url;
19915 fi
19916 
19917   if test "x$with_vendor_url" = xyes; then
19918     as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5
19919   elif  ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then
19920     as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5
19921   else
19922     VENDOR_URL="$with_vendor_url"
19923   fi
19924 
19925 
19926   # The vendor bug URL, if any
19927 
19928 # Check whether --with-vendor-bug-url was given.
19929 if test "${with_vendor_bug_url+set}" = set; then :
19930   withval=$with_vendor_bug_url;
19931 fi
19932 
19933   if test "x$with_vendor_bug_url" = xyes; then
19934     as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5
19935   elif  ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then
19936     as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5
19937   else
19938     VENDOR_URL_BUG="$with_vendor_bug_url"
19939   fi
19940 
19941 
19942   # The vendor VM bug URL, if any
19943 
19944 # Check whether --with-vendor-vm-bug-url was given.
19945 if test "${with_vendor_vm_bug_url+set}" = set; then :
19946   withval=$with_vendor_vm_bug_url;
19947 fi
19948 
19949   if test "x$with_vendor_vm_bug_url" = xyes; then
19950     as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5
19951   elif  ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then
19952     as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5
19953   else
19954     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
19955   fi
19956 
19957 
19958 
19959 # Check whether --with-copyright-year was given.
19960 if test "${with_copyright_year+set}" = set; then :
19961   withval=$with_copyright_year;
19962 fi
19963 
19964   if test "x$with_copyright_year" = xyes; then
19965     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
19966   elif test "x$with_copyright_year" != x; then
19967     COPYRIGHT_YEAR="$with_copyright_year"
19968   else
19969     COPYRIGHT_YEAR=`date +'%Y'`
19970   fi
19971 
19972 
19973   if test "x$JDK_UPDATE_VERSION" != x; then
19974     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19975   else
19976     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19977   fi
19978 
19979 
19980   # The cooked update version used to encode trailing letters in the update
19981   # version into a trailing number. That is no longer needed, but need to
19982   # keep the format in 8u for compatibility.
19983   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
19984 
19985 
19986   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19987 
19988 
19989 
19990 ###############################################################################
19991 #
19992 # Setup BootJDK, used to bootstrap the build.
19993 #
19994 ###############################################################################
19995 
19996 
19997   BOOT_JDK_FOUND=no
19998 
19999 # Check whether --with-boot-jdk was given.
20000 if test "${with_boot_jdk+set}" = set; then :
20001   withval=$with_boot_jdk;
20002 fi
20003 
20004 
20005   # We look for the Boot JDK through various means, going from more certain to
20006   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20007   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20008   # must check if this is indeed valid; otherwise we'll continue looking.
20009 
20010   # Test: Is bootjdk explicitely set by command line arguments?
20011 
20012   if test "x$BOOT_JDK_FOUND" = xno; then
20013     # Now execute the test
20014 
20015   if test "x$with_boot_jdk" != x; then
20016     BOOT_JDK=$with_boot_jdk
20017     BOOT_JDK_FOUND=maybe
20018     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20019 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20020   fi
20021 
20022 
20023     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20024     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20025       # Do we have a bin/java?
20026       if test ! -x "$BOOT_JDK/bin/java"; then
20027         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20029         BOOT_JDK_FOUND=no
20030       else
20031         # Do we have a bin/javac?
20032         if test ! -x "$BOOT_JDK/bin/javac"; then
20033           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20034 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20035           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20036 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20037           BOOT_JDK_FOUND=no
20038         else
20039           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20040           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20041             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20042 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20043             BOOT_JDK_FOUND=no
20044           else
20045             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20046             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20047 
20048             # Extra M4 quote needed to protect [] in grep expression.
20049             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20050             if test "x$FOUND_VERSION_78" = x; then
20051               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20053               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20054 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20055               BOOT_JDK_FOUND=no
20056             else
20057               # We're done! :-)
20058               BOOT_JDK_FOUND=yes
20059 
20060   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20061 
20062   # Input might be given as Windows format, start by converting to
20063   # unix format.
20064   path="$BOOT_JDK"
20065   new_path=`$CYGPATH -u "$path"`
20066 
20067   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20068   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20069   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20070   # "foo.exe" is OK but "foo" is an error.
20071   #
20072   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20073   # It is also a way to make sure we got the proper file name for the real test later on.
20074   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20075   if test "x$test_shortpath" = x; then
20076     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20077 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20078     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20079   fi
20080 
20081   # Call helper function which possibly converts this using DOS-style short mode.
20082   # If so, the updated path is stored in $new_path.
20083 
20084   input_path="$new_path"
20085   # Check if we need to convert this using DOS-style short mode. If the path
20086   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20087   # take no chances and rewrite it.
20088   # Note: m4 eats our [], so we need to use [ and ] instead.
20089   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20090   if test "x$has_forbidden_chars" != x; then
20091     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20092     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20093     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20094     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20095       # Going to short mode and back again did indeed matter. Since short mode is
20096       # case insensitive, let's make it lowercase to improve readability.
20097       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20098       # Now convert it back to Unix-style (cygpath)
20099       input_path=`$CYGPATH -u "$shortmode_path"`
20100       new_path="$input_path"
20101     fi
20102   fi
20103 
20104   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20105   if test "x$test_cygdrive_prefix" = x; then
20106     # As a simple fix, exclude /usr/bin since it's not a real path.
20107     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20108       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20109       # a path prefixed by /cygdrive for fixpath to work.
20110       new_path="$CYGWIN_ROOT_PATH$input_path"
20111     fi
20112   fi
20113 
20114 
20115   if test "x$path" != "x$new_path"; then
20116     BOOT_JDK="$new_path"
20117     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20118 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20119   fi
20120 
20121   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20122 
20123   path="$BOOT_JDK"
20124   has_colon=`$ECHO $path | $GREP ^.:`
20125   new_path="$path"
20126   if test "x$has_colon" = x; then
20127     # Not in mixed or Windows style, start by that.
20128     new_path=`cmd //c echo $path`
20129   fi
20130 
20131 
20132   input_path="$new_path"
20133   # Check if we need to convert this using DOS-style short mode. If the path
20134   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20135   # take no chances and rewrite it.
20136   # Note: m4 eats our [], so we need to use [ and ] instead.
20137   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20138   if test "x$has_forbidden_chars" != x; then
20139     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20140     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20141   fi
20142 
20143 
20144   windows_path="$new_path"
20145   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20146     unix_path=`$CYGPATH -u "$windows_path"`
20147     new_path="$unix_path"
20148   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20149     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20150     new_path="$unix_path"
20151   fi
20152 
20153   if test "x$path" != "x$new_path"; then
20154     BOOT_JDK="$new_path"
20155     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20156 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20157   fi
20158 
20159   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20160   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20161 
20162   else
20163     # We're on a posix platform. Hooray! :)
20164     path="$BOOT_JDK"
20165     has_space=`$ECHO "$path" | $GREP " "`
20166     if test "x$has_space" != x; then
20167       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20168 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20169       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20170     fi
20171 
20172     # Use eval to expand a potential ~
20173     eval path="$path"
20174     if test ! -f "$path" && test ! -d "$path"; then
20175       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20176     fi
20177 
20178     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20179   fi
20180 
20181               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20182 $as_echo_n "checking for Boot JDK... " >&6; }
20183               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20184 $as_echo "$BOOT_JDK" >&6; }
20185               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20186 $as_echo_n "checking Boot JDK version... " >&6; }
20187               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20188               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20189 $as_echo "$BOOT_JDK_VERSION" >&6; }
20190             fi # end check jdk version
20191           fi # end check rt.jar
20192         fi # end check javac
20193       fi # end check java
20194     fi # end check boot jdk found
20195   fi
20196 
20197   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20198     # Having specified an argument which is incorrect will produce an instant failure;
20199     # we should not go on looking
20200     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20201   fi
20202 
20203   # Test: Is bootjdk available from builddeps?
20204 
20205   if test "x$BOOT_JDK_FOUND" = xno; then
20206     # Now execute the test
20207 
20208 
20209 
20210   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20211     # Source the builddeps file again, to make sure it uses the latest variables!
20212     . $builddepsfile
20213     # Look for a target and build machine specific resource!
20214     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20215     if test "x$resource" = x; then
20216       # Ok, lets instead look for a target specific resource
20217       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20218     fi
20219     if test "x$resource" = x; then
20220       # Ok, lets instead look for a build specific resource
20221       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20222     fi
20223     if test "x$resource" = x; then
20224       # Ok, lets instead look for a generic resource
20225       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20226       resource=${builddep_bootjdk}
20227     fi
20228     if test "x$resource" != x; then
20229       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20230 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20231       # If the resource in the builddeps.conf file is an existing directory,
20232       # for example /java/linux/cups
20233       if test -d ${resource}; then
20234         depdir=${resource}
20235       else
20236 
20237   # bootjdk is for example mymodule
20238   # $resource is for example libs/general/libmymod_1_2_3.zip
20239   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20240   # $with_builddeps_dir is for example /localhome/builddeps
20241   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20242   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20243   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20244   filename=`basename $resource`
20245   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20246   filebase=${filename%%.*}
20247   extension=${filename#*.}
20248   installdir=$with_builddeps_dir/$filebase
20249   if test ! -f $installdir/$filename.unpacked; then
20250     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20251 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20252     if test ! -d $installdir; then
20253       mkdir -p $installdir
20254     fi
20255     if test ! -d $installdir; then
20256       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20257     fi
20258     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20259     touch $tmpfile
20260     if test ! -f $tmpfile; then
20261       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20262     fi
20263 
20264   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20265   # $tmpfile is the local file name for the downloaded file.
20266   VALID_TOOL=no
20267   if test "x$BDEPS_FTP" = xwget; then
20268     VALID_TOOL=yes
20269     wget -O $tmpfile $with_builddeps_server/$resource
20270   fi
20271   if test "x$BDEPS_FTP" = xlftp; then
20272     VALID_TOOL=yes
20273     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20274   fi
20275   if test "x$BDEPS_FTP" = xftp; then
20276     VALID_TOOL=yes
20277     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20278     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20279     FTPUSERPWD=${FTPSERVER%%@*}
20280     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20281       FTPUSER=${userpwd%%:*}
20282       FTPPWD=${userpwd#*@}
20283       FTPSERVER=${FTPSERVER#*@}
20284     else
20285       FTPUSER=ftp
20286       FTPPWD=ftp
20287     fi
20288     # the "pass" command does not work on some
20289     # ftp clients (read ftp.exe) but if it works,
20290     # passive mode is better!
20291     ( \
20292         echo "user $FTPUSER $FTPPWD"        ; \
20293         echo "pass"                         ; \
20294         echo "bin"                          ; \
20295         echo "get $FTPPATH $tmpfile"              ; \
20296     ) | ftp -in $FTPSERVER
20297   fi
20298   if test "x$VALID_TOOL" != xyes; then
20299     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20300   fi
20301 
20302     mv $tmpfile $installdir/$filename
20303     if test ! -s $installdir/$filename; then
20304       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20305     fi
20306     case "$extension" in
20307       zip)  echo "Unzipping $installdir/$filename..."
20308         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20309         ;;
20310       tar.gz) echo "Untaring $installdir/$filename..."
20311         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20312         ;;
20313       tgz) echo "Untaring $installdir/$filename..."
20314         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20315         ;;
20316       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20317         ;;
20318     esac
20319   fi
20320   if test -f $installdir/$filename.unpacked; then
20321     depdir=$installdir
20322   fi
20323 
20324       fi
20325       # Source the builddeps file again, because in the previous command, the depdir
20326       # was updated to point at the current build dependency install directory.
20327       . $builddepsfile
20328       # Now extract variables from the builddeps.conf files.
20329       theroot=${builddep_bootjdk_ROOT}
20330       thecflags=${builddep_bootjdk_CFLAGS}
20331       thelibs=${builddep_bootjdk_LIBS}
20332       if test "x$depdir" = x; then
20333         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20334       fi
20335       BOOT_JDK=$depdir
20336       if test "x$theroot" != x; then
20337         BOOT_JDK="$theroot"
20338       fi
20339       if test "x$thecflags" != x; then
20340         BOOT_JDK_CFLAGS="$thecflags"
20341       fi
20342       if test "x$thelibs" != x; then
20343         BOOT_JDK_LIBS="$thelibs"
20344       fi
20345       BOOT_JDK_FOUND=maybe
20346       else BOOT_JDK_FOUND=no
20347 
20348     fi
20349     else BOOT_JDK_FOUND=no
20350 
20351   fi
20352 
20353 
20354 
20355     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20356     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20357       # Do we have a bin/java?
20358       if test ! -x "$BOOT_JDK/bin/java"; then
20359         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20360 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20361         BOOT_JDK_FOUND=no
20362       else
20363         # Do we have a bin/javac?
20364         if test ! -x "$BOOT_JDK/bin/javac"; then
20365           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20366 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20367           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20368 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20369           BOOT_JDK_FOUND=no
20370         else
20371           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20372           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20373             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20374 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20375             BOOT_JDK_FOUND=no
20376           else
20377             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20378             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20379 
20380             # Extra M4 quote needed to protect [] in grep expression.
20381             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20382             if test "x$FOUND_VERSION_78" = x; then
20383               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20384 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20385               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20386 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20387               BOOT_JDK_FOUND=no
20388             else
20389               # We're done! :-)
20390               BOOT_JDK_FOUND=yes
20391 
20392   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20393 
20394   # Input might be given as Windows format, start by converting to
20395   # unix format.
20396   path="$BOOT_JDK"
20397   new_path=`$CYGPATH -u "$path"`
20398 
20399   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20400   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20401   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20402   # "foo.exe" is OK but "foo" is an error.
20403   #
20404   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20405   # It is also a way to make sure we got the proper file name for the real test later on.
20406   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20407   if test "x$test_shortpath" = x; then
20408     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20409 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20410     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20411   fi
20412 
20413   # Call helper function which possibly converts this using DOS-style short mode.
20414   # If so, the updated path is stored in $new_path.
20415 
20416   input_path="$new_path"
20417   # Check if we need to convert this using DOS-style short mode. If the path
20418   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20419   # take no chances and rewrite it.
20420   # Note: m4 eats our [], so we need to use [ and ] instead.
20421   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20422   if test "x$has_forbidden_chars" != x; then
20423     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20424     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20425     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20426     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20427       # Going to short mode and back again did indeed matter. Since short mode is
20428       # case insensitive, let's make it lowercase to improve readability.
20429       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20430       # Now convert it back to Unix-style (cygpath)
20431       input_path=`$CYGPATH -u "$shortmode_path"`
20432       new_path="$input_path"
20433     fi
20434   fi
20435 
20436   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20437   if test "x$test_cygdrive_prefix" = x; then
20438     # As a simple fix, exclude /usr/bin since it's not a real path.
20439     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20440       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20441       # a path prefixed by /cygdrive for fixpath to work.
20442       new_path="$CYGWIN_ROOT_PATH$input_path"
20443     fi
20444   fi
20445 
20446 
20447   if test "x$path" != "x$new_path"; then
20448     BOOT_JDK="$new_path"
20449     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20450 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20451   fi
20452 
20453   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20454 
20455   path="$BOOT_JDK"
20456   has_colon=`$ECHO $path | $GREP ^.:`
20457   new_path="$path"
20458   if test "x$has_colon" = x; then
20459     # Not in mixed or Windows style, start by that.
20460     new_path=`cmd //c echo $path`
20461   fi
20462 
20463 
20464   input_path="$new_path"
20465   # Check if we need to convert this using DOS-style short mode. If the path
20466   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20467   # take no chances and rewrite it.
20468   # Note: m4 eats our [], so we need to use [ and ] instead.
20469   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20470   if test "x$has_forbidden_chars" != x; then
20471     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20472     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20473   fi
20474 
20475 
20476   windows_path="$new_path"
20477   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20478     unix_path=`$CYGPATH -u "$windows_path"`
20479     new_path="$unix_path"
20480   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20481     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20482     new_path="$unix_path"
20483   fi
20484 
20485   if test "x$path" != "x$new_path"; then
20486     BOOT_JDK="$new_path"
20487     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20488 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20489   fi
20490 
20491   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20492   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20493 
20494   else
20495     # We're on a posix platform. Hooray! :)
20496     path="$BOOT_JDK"
20497     has_space=`$ECHO "$path" | $GREP " "`
20498     if test "x$has_space" != x; then
20499       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20500 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20501       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20502     fi
20503 
20504     # Use eval to expand a potential ~
20505     eval path="$path"
20506     if test ! -f "$path" && test ! -d "$path"; then
20507       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20508     fi
20509 
20510     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20511   fi
20512 
20513               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20514 $as_echo_n "checking for Boot JDK... " >&6; }
20515               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20516 $as_echo "$BOOT_JDK" >&6; }
20517               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20518 $as_echo_n "checking Boot JDK version... " >&6; }
20519               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20520               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20521 $as_echo "$BOOT_JDK_VERSION" >&6; }
20522             fi # end check jdk version
20523           fi # end check rt.jar
20524         fi # end check javac
20525       fi # end check java
20526     fi # end check boot jdk found
20527   fi
20528 
20529 
20530   # Test: Is $JAVA_HOME set?
20531 
20532   if test "x$BOOT_JDK_FOUND" = xno; then
20533     # Now execute the test
20534 
20535   if test "x$JAVA_HOME" != x; then
20536     JAVA_HOME_PROCESSED="$JAVA_HOME"
20537 
20538   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20539 
20540   # Input might be given as Windows format, start by converting to
20541   # unix format.
20542   path="$JAVA_HOME_PROCESSED"
20543   new_path=`$CYGPATH -u "$path"`
20544 
20545   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20546   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20547   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20548   # "foo.exe" is OK but "foo" is an error.
20549   #
20550   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20551   # It is also a way to make sure we got the proper file name for the real test later on.
20552   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20553   if test "x$test_shortpath" = x; then
20554     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20555 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20556     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20557   fi
20558 
20559   # Call helper function which possibly converts this using DOS-style short mode.
20560   # If so, the updated path is stored in $new_path.
20561 
20562   input_path="$new_path"
20563   # Check if we need to convert this using DOS-style short mode. If the path
20564   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20565   # take no chances and rewrite it.
20566   # Note: m4 eats our [], so we need to use [ and ] instead.
20567   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20568   if test "x$has_forbidden_chars" != x; then
20569     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20570     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20571     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20572     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20573       # Going to short mode and back again did indeed matter. Since short mode is
20574       # case insensitive, let's make it lowercase to improve readability.
20575       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20576       # Now convert it back to Unix-style (cygpath)
20577       input_path=`$CYGPATH -u "$shortmode_path"`
20578       new_path="$input_path"
20579     fi
20580   fi
20581 
20582   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20583   if test "x$test_cygdrive_prefix" = x; then
20584     # As a simple fix, exclude /usr/bin since it's not a real path.
20585     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20586       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20587       # a path prefixed by /cygdrive for fixpath to work.
20588       new_path="$CYGWIN_ROOT_PATH$input_path"
20589     fi
20590   fi
20591 
20592 
20593   if test "x$path" != "x$new_path"; then
20594     JAVA_HOME_PROCESSED="$new_path"
20595     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20596 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20597   fi
20598 
20599   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20600 
20601   path="$JAVA_HOME_PROCESSED"
20602   has_colon=`$ECHO $path | $GREP ^.:`
20603   new_path="$path"
20604   if test "x$has_colon" = x; then
20605     # Not in mixed or Windows style, start by that.
20606     new_path=`cmd //c echo $path`
20607   fi
20608 
20609 
20610   input_path="$new_path"
20611   # Check if we need to convert this using DOS-style short mode. If the path
20612   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20613   # take no chances and rewrite it.
20614   # Note: m4 eats our [], so we need to use [ and ] instead.
20615   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20616   if test "x$has_forbidden_chars" != x; then
20617     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20618     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20619   fi
20620 
20621 
20622   windows_path="$new_path"
20623   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20624     unix_path=`$CYGPATH -u "$windows_path"`
20625     new_path="$unix_path"
20626   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20627     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20628     new_path="$unix_path"
20629   fi
20630 
20631   if test "x$path" != "x$new_path"; then
20632     JAVA_HOME_PROCESSED="$new_path"
20633     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20634 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20635   fi
20636 
20637   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20638   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20639 
20640   else
20641     # We're on a posix platform. Hooray! :)
20642     path="$JAVA_HOME_PROCESSED"
20643     has_space=`$ECHO "$path" | $GREP " "`
20644     if test "x$has_space" != x; then
20645       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20646 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20647       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20648     fi
20649 
20650     # Use eval to expand a potential ~
20651     eval path="$path"
20652     if test ! -f "$path" && test ! -d "$path"; then
20653       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20654     fi
20655 
20656     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20657   fi
20658 
20659     if test ! -d "$JAVA_HOME_PROCESSED"; then
20660       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20661 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20662     else
20663       # Aha, the user has set a JAVA_HOME
20664       # let us use that as the Boot JDK.
20665       BOOT_JDK="$JAVA_HOME_PROCESSED"
20666       BOOT_JDK_FOUND=maybe
20667       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20668 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20669     fi
20670   fi
20671 
20672 
20673     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20674     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20675       # Do we have a bin/java?
20676       if test ! -x "$BOOT_JDK/bin/java"; then
20677         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20678 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20679         BOOT_JDK_FOUND=no
20680       else
20681         # Do we have a bin/javac?
20682         if test ! -x "$BOOT_JDK/bin/javac"; then
20683           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20684 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20685           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20686 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20687           BOOT_JDK_FOUND=no
20688         else
20689           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20690           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20691             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20692 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20693             BOOT_JDK_FOUND=no
20694           else
20695             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20696             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20697 
20698             # Extra M4 quote needed to protect [] in grep expression.
20699             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20700             if test "x$FOUND_VERSION_78" = x; then
20701               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20702 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20703               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20704 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20705               BOOT_JDK_FOUND=no
20706             else
20707               # We're done! :-)
20708               BOOT_JDK_FOUND=yes
20709 
20710   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20711 
20712   # Input might be given as Windows format, start by converting to
20713   # unix format.
20714   path="$BOOT_JDK"
20715   new_path=`$CYGPATH -u "$path"`
20716 
20717   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20718   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20719   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20720   # "foo.exe" is OK but "foo" is an error.
20721   #
20722   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20723   # It is also a way to make sure we got the proper file name for the real test later on.
20724   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20725   if test "x$test_shortpath" = x; then
20726     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20728     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20729   fi
20730 
20731   # Call helper function which possibly converts this using DOS-style short mode.
20732   # If so, the updated path is stored in $new_path.
20733 
20734   input_path="$new_path"
20735   # Check if we need to convert this using DOS-style short mode. If the path
20736   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20737   # take no chances and rewrite it.
20738   # Note: m4 eats our [], so we need to use [ and ] instead.
20739   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20740   if test "x$has_forbidden_chars" != x; then
20741     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20742     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20743     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20744     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20745       # Going to short mode and back again did indeed matter. Since short mode is
20746       # case insensitive, let's make it lowercase to improve readability.
20747       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20748       # Now convert it back to Unix-style (cygpath)
20749       input_path=`$CYGPATH -u "$shortmode_path"`
20750       new_path="$input_path"
20751     fi
20752   fi
20753 
20754   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20755   if test "x$test_cygdrive_prefix" = x; then
20756     # As a simple fix, exclude /usr/bin since it's not a real path.
20757     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20758       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20759       # a path prefixed by /cygdrive for fixpath to work.
20760       new_path="$CYGWIN_ROOT_PATH$input_path"
20761     fi
20762   fi
20763 
20764 
20765   if test "x$path" != "x$new_path"; then
20766     BOOT_JDK="$new_path"
20767     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20769   fi
20770 
20771   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20772 
20773   path="$BOOT_JDK"
20774   has_colon=`$ECHO $path | $GREP ^.:`
20775   new_path="$path"
20776   if test "x$has_colon" = x; then
20777     # Not in mixed or Windows style, start by that.
20778     new_path=`cmd //c echo $path`
20779   fi
20780 
20781 
20782   input_path="$new_path"
20783   # Check if we need to convert this using DOS-style short mode. If the path
20784   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20785   # take no chances and rewrite it.
20786   # Note: m4 eats our [], so we need to use [ and ] instead.
20787   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20788   if test "x$has_forbidden_chars" != x; then
20789     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20790     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20791   fi
20792 
20793 
20794   windows_path="$new_path"
20795   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20796     unix_path=`$CYGPATH -u "$windows_path"`
20797     new_path="$unix_path"
20798   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20799     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20800     new_path="$unix_path"
20801   fi
20802 
20803   if test "x$path" != "x$new_path"; then
20804     BOOT_JDK="$new_path"
20805     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20806 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20807   fi
20808 
20809   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20810   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20811 
20812   else
20813     # We're on a posix platform. Hooray! :)
20814     path="$BOOT_JDK"
20815     has_space=`$ECHO "$path" | $GREP " "`
20816     if test "x$has_space" != x; then
20817       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20819       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20820     fi
20821 
20822     # Use eval to expand a potential ~
20823     eval path="$path"
20824     if test ! -f "$path" && test ! -d "$path"; then
20825       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20826     fi
20827 
20828     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20829   fi
20830 
20831               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20832 $as_echo_n "checking for Boot JDK... " >&6; }
20833               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20834 $as_echo "$BOOT_JDK" >&6; }
20835               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20836 $as_echo_n "checking Boot JDK version... " >&6; }
20837               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20838               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20839 $as_echo "$BOOT_JDK_VERSION" >&6; }
20840             fi # end check jdk version
20841           fi # end check rt.jar
20842         fi # end check javac
20843       fi # end check java
20844     fi # end check boot jdk found
20845   fi
20846 
20847 
20848   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20849 
20850   if test "x$BOOT_JDK_FOUND" = xno; then
20851     # Now execute the test
20852 
20853   if test -x /usr/libexec/java_home; then
20854     BOOT_JDK=`/usr/libexec/java_home`
20855     BOOT_JDK_FOUND=maybe
20856     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20857 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20858   fi
20859 
20860 
20861     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20862     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20863       # Do we have a bin/java?
20864       if test ! -x "$BOOT_JDK/bin/java"; then
20865         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20867         BOOT_JDK_FOUND=no
20868       else
20869         # Do we have a bin/javac?
20870         if test ! -x "$BOOT_JDK/bin/javac"; then
20871           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20873           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20874 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20875           BOOT_JDK_FOUND=no
20876         else
20877           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20878           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20879             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20881             BOOT_JDK_FOUND=no
20882           else
20883             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20884             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20885 
20886             # Extra M4 quote needed to protect [] in grep expression.
20887             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20888             if test "x$FOUND_VERSION_78" = x; then
20889               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20890 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20891               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20892 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20893               BOOT_JDK_FOUND=no
20894             else
20895               # We're done! :-)
20896               BOOT_JDK_FOUND=yes
20897 
20898   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20899 
20900   # Input might be given as Windows format, start by converting to
20901   # unix format.
20902   path="$BOOT_JDK"
20903   new_path=`$CYGPATH -u "$path"`
20904 
20905   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20906   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20907   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20908   # "foo.exe" is OK but "foo" is an error.
20909   #
20910   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20911   # It is also a way to make sure we got the proper file name for the real test later on.
20912   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20913   if test "x$test_shortpath" = x; then
20914     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20916     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20917   fi
20918 
20919   # Call helper function which possibly converts this using DOS-style short mode.
20920   # If so, the updated path is stored in $new_path.
20921 
20922   input_path="$new_path"
20923   # Check if we need to convert this using DOS-style short mode. If the path
20924   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20925   # take no chances and rewrite it.
20926   # Note: m4 eats our [], so we need to use [ and ] instead.
20927   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20928   if test "x$has_forbidden_chars" != x; then
20929     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20930     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20931     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20932     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20933       # Going to short mode and back again did indeed matter. Since short mode is
20934       # case insensitive, let's make it lowercase to improve readability.
20935       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20936       # Now convert it back to Unix-style (cygpath)
20937       input_path=`$CYGPATH -u "$shortmode_path"`
20938       new_path="$input_path"
20939     fi
20940   fi
20941 
20942   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20943   if test "x$test_cygdrive_prefix" = x; then
20944     # As a simple fix, exclude /usr/bin since it's not a real path.
20945     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20946       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20947       # a path prefixed by /cygdrive for fixpath to work.
20948       new_path="$CYGWIN_ROOT_PATH$input_path"
20949     fi
20950   fi
20951 
20952 
20953   if test "x$path" != "x$new_path"; then
20954     BOOT_JDK="$new_path"
20955     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20956 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20957   fi
20958 
20959   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20960 
20961   path="$BOOT_JDK"
20962   has_colon=`$ECHO $path | $GREP ^.:`
20963   new_path="$path"
20964   if test "x$has_colon" = x; then
20965     # Not in mixed or Windows style, start by that.
20966     new_path=`cmd //c echo $path`
20967   fi
20968 
20969 
20970   input_path="$new_path"
20971   # Check if we need to convert this using DOS-style short mode. If the path
20972   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20973   # take no chances and rewrite it.
20974   # Note: m4 eats our [], so we need to use [ and ] instead.
20975   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20976   if test "x$has_forbidden_chars" != x; then
20977     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20978     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20979   fi
20980 
20981 
20982   windows_path="$new_path"
20983   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20984     unix_path=`$CYGPATH -u "$windows_path"`
20985     new_path="$unix_path"
20986   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20987     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20988     new_path="$unix_path"
20989   fi
20990 
20991   if test "x$path" != "x$new_path"; then
20992     BOOT_JDK="$new_path"
20993     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20994 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20995   fi
20996 
20997   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20998   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20999 
21000   else
21001     # We're on a posix platform. Hooray! :)
21002     path="$BOOT_JDK"
21003     has_space=`$ECHO "$path" | $GREP " "`
21004     if test "x$has_space" != x; then
21005       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21006 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21007       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21008     fi
21009 
21010     # Use eval to expand a potential ~
21011     eval path="$path"
21012     if test ! -f "$path" && test ! -d "$path"; then
21013       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21014     fi
21015 
21016     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21017   fi
21018 
21019               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21020 $as_echo_n "checking for Boot JDK... " >&6; }
21021               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21022 $as_echo "$BOOT_JDK" >&6; }
21023               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21024 $as_echo_n "checking Boot JDK version... " >&6; }
21025               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21026               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21027 $as_echo "$BOOT_JDK_VERSION" >&6; }
21028             fi # end check jdk version
21029           fi # end check rt.jar
21030         fi # end check javac
21031       fi # end check java
21032     fi # end check boot jdk found
21033   fi
21034 
21035 
21036   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21037 
21038   if test "x$BOOT_JDK_FOUND" = xno; then
21039     # Now execute the test
21040 
21041   # Extract the first word of "javac", so it can be a program name with args.
21042 set dummy javac; ac_word=$2
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21044 $as_echo_n "checking for $ac_word... " >&6; }
21045 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21046   $as_echo_n "(cached) " >&6
21047 else
21048   case $JAVAC_CHECK in
21049   [\\/]* | ?:[\\/]*)
21050   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21051   ;;
21052   *)
21053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21054 for as_dir in $PATH
21055 do
21056   IFS=$as_save_IFS
21057   test -z "$as_dir" && as_dir=.
21058     for ac_exec_ext in '' $ac_executable_extensions; do
21059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21060     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21062     break 2
21063   fi
21064 done
21065   done
21066 IFS=$as_save_IFS
21067 
21068   ;;
21069 esac
21070 fi
21071 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21072 if test -n "$JAVAC_CHECK"; then
21073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21074 $as_echo "$JAVAC_CHECK" >&6; }
21075 else
21076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21077 $as_echo "no" >&6; }
21078 fi
21079 
21080 
21081   # Extract the first word of "java", so it can be a program name with args.
21082 set dummy java; ac_word=$2
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21084 $as_echo_n "checking for $ac_word... " >&6; }
21085 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21086   $as_echo_n "(cached) " >&6
21087 else
21088   case $JAVA_CHECK in
21089   [\\/]* | ?:[\\/]*)
21090   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21091   ;;
21092   *)
21093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21094 for as_dir in $PATH
21095 do
21096   IFS=$as_save_IFS
21097   test -z "$as_dir" && as_dir=.
21098     for ac_exec_ext in '' $ac_executable_extensions; do
21099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21100     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21102     break 2
21103   fi
21104 done
21105   done
21106 IFS=$as_save_IFS
21107 
21108   ;;
21109 esac
21110 fi
21111 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21112 if test -n "$JAVA_CHECK"; then
21113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21114 $as_echo "$JAVA_CHECK" >&6; }
21115 else
21116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21117 $as_echo "no" >&6; }
21118 fi
21119 
21120 
21121   BINARY="$JAVAC_CHECK"
21122   if test "x$JAVAC_CHECK" = x; then
21123     BINARY="$JAVA_CHECK"
21124   fi
21125   if test "x$BINARY" != x; then
21126     # So there is a java(c) binary, it might be part of a JDK.
21127     # Lets find the JDK/JRE directory by following symbolic links.
21128     # Linux/GNU systems often have links from /usr/bin/java to
21129     # /etc/alternatives/java to the real JDK binary.
21130 
21131   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21132     # Follow a chain of symbolic links. Use readlink
21133     # where it exists, else fall back to horribly
21134     # complicated shell code.
21135     if test "x$READLINK_TESTED" != yes; then
21136       # On MacOSX there is a readlink tool with a different
21137       # purpose than the GNU readlink tool. Check the found readlink.
21138       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21139       if test "x$ISGNU" = x; then
21140         # A readlink that we do not know how to use.
21141         # Are there other non-GNU readlinks out there?
21142         READLINK_TESTED=yes
21143         READLINK=
21144       fi
21145     fi
21146 
21147     if test "x$READLINK" != x; then
21148       BINARY=`$READLINK -f $BINARY`
21149     else
21150       # Save the current directory for restoring afterwards
21151       STARTDIR=$PWD
21152       COUNTER=0
21153       sym_link_dir=`$DIRNAME $BINARY`
21154       sym_link_file=`$BASENAME $BINARY`
21155       cd $sym_link_dir
21156       # Use -P flag to resolve symlinks in directories.
21157       cd `$THEPWDCMD -P`
21158       sym_link_dir=`$THEPWDCMD -P`
21159       # Resolve file symlinks
21160       while test $COUNTER -lt 20; do
21161         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21162         if test "x$ISLINK" == x; then
21163           # This is not a symbolic link! We are done!
21164           break
21165         fi
21166         # Again resolve directory symlinks since the target of the just found
21167         # link could be in a different directory
21168         cd `$DIRNAME $ISLINK`
21169         sym_link_dir=`$THEPWDCMD -P`
21170         sym_link_file=`$BASENAME $ISLINK`
21171         let COUNTER=COUNTER+1
21172       done
21173       cd $STARTDIR
21174       BINARY=$sym_link_dir/$sym_link_file
21175     fi
21176   fi
21177 
21178     BOOT_JDK=`dirname "$BINARY"`
21179     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21180     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21181       # Looks like we found ourselves an JDK
21182       BOOT_JDK_FOUND=maybe
21183       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21184 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21185     fi
21186   fi
21187 
21188 
21189     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21190     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21191       # Do we have a bin/java?
21192       if test ! -x "$BOOT_JDK/bin/java"; then
21193         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21194 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21195         BOOT_JDK_FOUND=no
21196       else
21197         # Do we have a bin/javac?
21198         if test ! -x "$BOOT_JDK/bin/javac"; then
21199           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21201           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21202 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21203           BOOT_JDK_FOUND=no
21204         else
21205           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21206           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21207             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21208 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21209             BOOT_JDK_FOUND=no
21210           else
21211             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21212             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21213 
21214             # Extra M4 quote needed to protect [] in grep expression.
21215             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21216             if test "x$FOUND_VERSION_78" = x; then
21217               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21218 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21219               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21220 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21221               BOOT_JDK_FOUND=no
21222             else
21223               # We're done! :-)
21224               BOOT_JDK_FOUND=yes
21225 
21226   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21227 
21228   # Input might be given as Windows format, start by converting to
21229   # unix format.
21230   path="$BOOT_JDK"
21231   new_path=`$CYGPATH -u "$path"`
21232 
21233   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21234   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21235   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21236   # "foo.exe" is OK but "foo" is an error.
21237   #
21238   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21239   # It is also a way to make sure we got the proper file name for the real test later on.
21240   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21241   if test "x$test_shortpath" = x; then
21242     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21243 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21244     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21245   fi
21246 
21247   # Call helper function which possibly converts this using DOS-style short mode.
21248   # If so, the updated path is stored in $new_path.
21249 
21250   input_path="$new_path"
21251   # Check if we need to convert this using DOS-style short mode. If the path
21252   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21253   # take no chances and rewrite it.
21254   # Note: m4 eats our [], so we need to use [ and ] instead.
21255   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21256   if test "x$has_forbidden_chars" != x; then
21257     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21258     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21259     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21260     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21261       # Going to short mode and back again did indeed matter. Since short mode is
21262       # case insensitive, let's make it lowercase to improve readability.
21263       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21264       # Now convert it back to Unix-style (cygpath)
21265       input_path=`$CYGPATH -u "$shortmode_path"`
21266       new_path="$input_path"
21267     fi
21268   fi
21269 
21270   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21271   if test "x$test_cygdrive_prefix" = x; then
21272     # As a simple fix, exclude /usr/bin since it's not a real path.
21273     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21274       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21275       # a path prefixed by /cygdrive for fixpath to work.
21276       new_path="$CYGWIN_ROOT_PATH$input_path"
21277     fi
21278   fi
21279 
21280 
21281   if test "x$path" != "x$new_path"; then
21282     BOOT_JDK="$new_path"
21283     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21284 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21285   fi
21286 
21287   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21288 
21289   path="$BOOT_JDK"
21290   has_colon=`$ECHO $path | $GREP ^.:`
21291   new_path="$path"
21292   if test "x$has_colon" = x; then
21293     # Not in mixed or Windows style, start by that.
21294     new_path=`cmd //c echo $path`
21295   fi
21296 
21297 
21298   input_path="$new_path"
21299   # Check if we need to convert this using DOS-style short mode. If the path
21300   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21301   # take no chances and rewrite it.
21302   # Note: m4 eats our [], so we need to use [ and ] instead.
21303   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21304   if test "x$has_forbidden_chars" != x; then
21305     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21306     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21307   fi
21308 
21309 
21310   windows_path="$new_path"
21311   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21312     unix_path=`$CYGPATH -u "$windows_path"`
21313     new_path="$unix_path"
21314   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21315     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21316     new_path="$unix_path"
21317   fi
21318 
21319   if test "x$path" != "x$new_path"; then
21320     BOOT_JDK="$new_path"
21321     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21323   fi
21324 
21325   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21326   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21327 
21328   else
21329     # We're on a posix platform. Hooray! :)
21330     path="$BOOT_JDK"
21331     has_space=`$ECHO "$path" | $GREP " "`
21332     if test "x$has_space" != x; then
21333       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21334 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21335       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21336     fi
21337 
21338     # Use eval to expand a potential ~
21339     eval path="$path"
21340     if test ! -f "$path" && test ! -d "$path"; then
21341       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21342     fi
21343 
21344     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21345   fi
21346 
21347               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21348 $as_echo_n "checking for Boot JDK... " >&6; }
21349               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21350 $as_echo "$BOOT_JDK" >&6; }
21351               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21352 $as_echo_n "checking Boot JDK version... " >&6; }
21353               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21354               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21355 $as_echo "$BOOT_JDK_VERSION" >&6; }
21356             fi # end check jdk version
21357           fi # end check rt.jar
21358         fi # end check javac
21359       fi # end check java
21360     fi # end check boot jdk found
21361   fi
21362 
21363 
21364   # Test: Is there a JDK installed in default, well-known locations?
21365 
21366   if test "x$BOOT_JDK_FOUND" = xno; then
21367     # Now execute the test
21368 
21369   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21370 
21371   if test "x$BOOT_JDK_FOUND" = xno; then
21372     # Now execute the test
21373 
21374   if test "x$ProgramW6432" != x; then
21375     VIRTUAL_DIR="$ProgramW6432/Java"
21376 
21377   windows_path="$VIRTUAL_DIR"
21378   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21379     unix_path=`$CYGPATH -u "$windows_path"`
21380     VIRTUAL_DIR="$unix_path"
21381   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21382     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21383     VIRTUAL_DIR="$unix_path"
21384   fi
21385 
21386 
21387   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21388   BOOT_JDK_SUFFIX=""
21389   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21390   if test "x$ALL_JDKS_FOUND" != x; then
21391     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21392 
21393   if test "x$BOOT_JDK_FOUND" = xno; then
21394     # Now execute the test
21395 
21396         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21397         if test -d "$BOOT_JDK"; then
21398           BOOT_JDK_FOUND=maybe
21399           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21400 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21401         fi
21402 
21403 
21404     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21405     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21406       # Do we have a bin/java?
21407       if test ! -x "$BOOT_JDK/bin/java"; then
21408         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21410         BOOT_JDK_FOUND=no
21411       else
21412         # Do we have a bin/javac?
21413         if test ! -x "$BOOT_JDK/bin/javac"; then
21414           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21415 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21416           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21417 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21418           BOOT_JDK_FOUND=no
21419         else
21420           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21421           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21422             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21424             BOOT_JDK_FOUND=no
21425           else
21426             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21427             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21428 
21429             # Extra M4 quote needed to protect [] in grep expression.
21430             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21431             if test "x$FOUND_VERSION_78" = x; then
21432               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21434               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21435 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21436               BOOT_JDK_FOUND=no
21437             else
21438               # We're done! :-)
21439               BOOT_JDK_FOUND=yes
21440 
21441   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21442 
21443   # Input might be given as Windows format, start by converting to
21444   # unix format.
21445   path="$BOOT_JDK"
21446   new_path=`$CYGPATH -u "$path"`
21447 
21448   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21449   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21450   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21451   # "foo.exe" is OK but "foo" is an error.
21452   #
21453   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21454   # It is also a way to make sure we got the proper file name for the real test later on.
21455   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21456   if test "x$test_shortpath" = x; then
21457     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21458 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21459     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21460   fi
21461 
21462   # Call helper function which possibly converts this using DOS-style short mode.
21463   # If so, the updated path is stored in $new_path.
21464 
21465   input_path="$new_path"
21466   # Check if we need to convert this using DOS-style short mode. If the path
21467   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21468   # take no chances and rewrite it.
21469   # Note: m4 eats our [], so we need to use [ and ] instead.
21470   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21471   if test "x$has_forbidden_chars" != x; then
21472     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21473     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21474     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21475     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21476       # Going to short mode and back again did indeed matter. Since short mode is
21477       # case insensitive, let's make it lowercase to improve readability.
21478       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21479       # Now convert it back to Unix-style (cygpath)
21480       input_path=`$CYGPATH -u "$shortmode_path"`
21481       new_path="$input_path"
21482     fi
21483   fi
21484 
21485   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21486   if test "x$test_cygdrive_prefix" = x; then
21487     # As a simple fix, exclude /usr/bin since it's not a real path.
21488     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21489       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21490       # a path prefixed by /cygdrive for fixpath to work.
21491       new_path="$CYGWIN_ROOT_PATH$input_path"
21492     fi
21493   fi
21494 
21495 
21496   if test "x$path" != "x$new_path"; then
21497     BOOT_JDK="$new_path"
21498     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21499 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21500   fi
21501 
21502   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21503 
21504   path="$BOOT_JDK"
21505   has_colon=`$ECHO $path | $GREP ^.:`
21506   new_path="$path"
21507   if test "x$has_colon" = x; then
21508     # Not in mixed or Windows style, start by that.
21509     new_path=`cmd //c echo $path`
21510   fi
21511 
21512 
21513   input_path="$new_path"
21514   # Check if we need to convert this using DOS-style short mode. If the path
21515   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21516   # take no chances and rewrite it.
21517   # Note: m4 eats our [], so we need to use [ and ] instead.
21518   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21519   if test "x$has_forbidden_chars" != x; then
21520     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21521     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21522   fi
21523 
21524 
21525   windows_path="$new_path"
21526   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21527     unix_path=`$CYGPATH -u "$windows_path"`
21528     new_path="$unix_path"
21529   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21530     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21531     new_path="$unix_path"
21532   fi
21533 
21534   if test "x$path" != "x$new_path"; then
21535     BOOT_JDK="$new_path"
21536     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21537 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21538   fi
21539 
21540   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21541   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21542 
21543   else
21544     # We're on a posix platform. Hooray! :)
21545     path="$BOOT_JDK"
21546     has_space=`$ECHO "$path" | $GREP " "`
21547     if test "x$has_space" != x; then
21548       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21549 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21550       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21551     fi
21552 
21553     # Use eval to expand a potential ~
21554     eval path="$path"
21555     if test ! -f "$path" && test ! -d "$path"; then
21556       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21557     fi
21558 
21559     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21560   fi
21561 
21562               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21563 $as_echo_n "checking for Boot JDK... " >&6; }
21564               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21565 $as_echo "$BOOT_JDK" >&6; }
21566               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21567 $as_echo_n "checking Boot JDK version... " >&6; }
21568               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21569               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21570 $as_echo "$BOOT_JDK_VERSION" >&6; }
21571             fi # end check jdk version
21572           fi # end check rt.jar
21573         fi # end check javac
21574       fi # end check java
21575     fi # end check boot jdk found
21576   fi
21577 
21578     done
21579   fi
21580 
21581   fi
21582 
21583 
21584     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21585     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21586       # Do we have a bin/java?
21587       if test ! -x "$BOOT_JDK/bin/java"; then
21588         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21589 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21590         BOOT_JDK_FOUND=no
21591       else
21592         # Do we have a bin/javac?
21593         if test ! -x "$BOOT_JDK/bin/javac"; then
21594           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21595 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21596           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21597 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21598           BOOT_JDK_FOUND=no
21599         else
21600           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21601           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21602             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21604             BOOT_JDK_FOUND=no
21605           else
21606             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21607             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21608 
21609             # Extra M4 quote needed to protect [] in grep expression.
21610             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21611             if test "x$FOUND_VERSION_78" = x; then
21612               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21614               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21615 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21616               BOOT_JDK_FOUND=no
21617             else
21618               # We're done! :-)
21619               BOOT_JDK_FOUND=yes
21620 
21621   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21622 
21623   # Input might be given as Windows format, start by converting to
21624   # unix format.
21625   path="$BOOT_JDK"
21626   new_path=`$CYGPATH -u "$path"`
21627 
21628   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21629   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21630   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21631   # "foo.exe" is OK but "foo" is an error.
21632   #
21633   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21634   # It is also a way to make sure we got the proper file name for the real test later on.
21635   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21636   if test "x$test_shortpath" = x; then
21637     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21638 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21639     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21640   fi
21641 
21642   # Call helper function which possibly converts this using DOS-style short mode.
21643   # If so, the updated path is stored in $new_path.
21644 
21645   input_path="$new_path"
21646   # Check if we need to convert this using DOS-style short mode. If the path
21647   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21648   # take no chances and rewrite it.
21649   # Note: m4 eats our [], so we need to use [ and ] instead.
21650   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21651   if test "x$has_forbidden_chars" != x; then
21652     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21653     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21654     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21655     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21656       # Going to short mode and back again did indeed matter. Since short mode is
21657       # case insensitive, let's make it lowercase to improve readability.
21658       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21659       # Now convert it back to Unix-style (cygpath)
21660       input_path=`$CYGPATH -u "$shortmode_path"`
21661       new_path="$input_path"
21662     fi
21663   fi
21664 
21665   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21666   if test "x$test_cygdrive_prefix" = x; then
21667     # As a simple fix, exclude /usr/bin since it's not a real path.
21668     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21669       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21670       # a path prefixed by /cygdrive for fixpath to work.
21671       new_path="$CYGWIN_ROOT_PATH$input_path"
21672     fi
21673   fi
21674 
21675 
21676   if test "x$path" != "x$new_path"; then
21677     BOOT_JDK="$new_path"
21678     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21679 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21680   fi
21681 
21682   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21683 
21684   path="$BOOT_JDK"
21685   has_colon=`$ECHO $path | $GREP ^.:`
21686   new_path="$path"
21687   if test "x$has_colon" = x; then
21688     # Not in mixed or Windows style, start by that.
21689     new_path=`cmd //c echo $path`
21690   fi
21691 
21692 
21693   input_path="$new_path"
21694   # Check if we need to convert this using DOS-style short mode. If the path
21695   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21696   # take no chances and rewrite it.
21697   # Note: m4 eats our [], so we need to use [ and ] instead.
21698   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21699   if test "x$has_forbidden_chars" != x; then
21700     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21701     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21702   fi
21703 
21704 
21705   windows_path="$new_path"
21706   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21707     unix_path=`$CYGPATH -u "$windows_path"`
21708     new_path="$unix_path"
21709   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21710     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21711     new_path="$unix_path"
21712   fi
21713 
21714   if test "x$path" != "x$new_path"; then
21715     BOOT_JDK="$new_path"
21716     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21717 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21718   fi
21719 
21720   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21721   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21722 
21723   else
21724     # We're on a posix platform. Hooray! :)
21725     path="$BOOT_JDK"
21726     has_space=`$ECHO "$path" | $GREP " "`
21727     if test "x$has_space" != x; then
21728       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21729 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21730       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21731     fi
21732 
21733     # Use eval to expand a potential ~
21734     eval path="$path"
21735     if test ! -f "$path" && test ! -d "$path"; then
21736       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21737     fi
21738 
21739     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21740   fi
21741 
21742               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21743 $as_echo_n "checking for Boot JDK... " >&6; }
21744               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21745 $as_echo "$BOOT_JDK" >&6; }
21746               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21747 $as_echo_n "checking Boot JDK version... " >&6; }
21748               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21749               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21750 $as_echo "$BOOT_JDK_VERSION" >&6; }
21751             fi # end check jdk version
21752           fi # end check rt.jar
21753         fi # end check javac
21754       fi # end check java
21755     fi # end check boot jdk found
21756   fi
21757 
21758 
21759   if test "x$BOOT_JDK_FOUND" = xno; then
21760     # Now execute the test
21761 
21762   if test "x$PROGRAMW6432" != x; then
21763     VIRTUAL_DIR="$PROGRAMW6432/Java"
21764 
21765   windows_path="$VIRTUAL_DIR"
21766   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21767     unix_path=`$CYGPATH -u "$windows_path"`
21768     VIRTUAL_DIR="$unix_path"
21769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21770     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21771     VIRTUAL_DIR="$unix_path"
21772   fi
21773 
21774 
21775   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21776   BOOT_JDK_SUFFIX=""
21777   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21778   if test "x$ALL_JDKS_FOUND" != x; then
21779     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21780 
21781   if test "x$BOOT_JDK_FOUND" = xno; then
21782     # Now execute the test
21783 
21784         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21785         if test -d "$BOOT_JDK"; then
21786           BOOT_JDK_FOUND=maybe
21787           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21788 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21789         fi
21790 
21791 
21792     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21793     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21794       # Do we have a bin/java?
21795       if test ! -x "$BOOT_JDK/bin/java"; then
21796         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21797 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21798         BOOT_JDK_FOUND=no
21799       else
21800         # Do we have a bin/javac?
21801         if test ! -x "$BOOT_JDK/bin/javac"; then
21802           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21804           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21805 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21806           BOOT_JDK_FOUND=no
21807         else
21808           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21809           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21810             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21812             BOOT_JDK_FOUND=no
21813           else
21814             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21815             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21816 
21817             # Extra M4 quote needed to protect [] in grep expression.
21818             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21819             if test "x$FOUND_VERSION_78" = x; then
21820               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21822               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21823 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21824               BOOT_JDK_FOUND=no
21825             else
21826               # We're done! :-)
21827               BOOT_JDK_FOUND=yes
21828 
21829   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21830 
21831   # Input might be given as Windows format, start by converting to
21832   # unix format.
21833   path="$BOOT_JDK"
21834   new_path=`$CYGPATH -u "$path"`
21835 
21836   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21837   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21838   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21839   # "foo.exe" is OK but "foo" is an error.
21840   #
21841   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21842   # It is also a way to make sure we got the proper file name for the real test later on.
21843   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21844   if test "x$test_shortpath" = x; then
21845     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21846 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21847     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21848   fi
21849 
21850   # Call helper function which possibly converts this using DOS-style short mode.
21851   # If so, the updated path is stored in $new_path.
21852 
21853   input_path="$new_path"
21854   # Check if we need to convert this using DOS-style short mode. If the path
21855   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21856   # take no chances and rewrite it.
21857   # Note: m4 eats our [], so we need to use [ and ] instead.
21858   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21859   if test "x$has_forbidden_chars" != x; then
21860     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21861     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21862     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21863     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21864       # Going to short mode and back again did indeed matter. Since short mode is
21865       # case insensitive, let's make it lowercase to improve readability.
21866       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21867       # Now convert it back to Unix-style (cygpath)
21868       input_path=`$CYGPATH -u "$shortmode_path"`
21869       new_path="$input_path"
21870     fi
21871   fi
21872 
21873   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21874   if test "x$test_cygdrive_prefix" = x; then
21875     # As a simple fix, exclude /usr/bin since it's not a real path.
21876     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21877       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21878       # a path prefixed by /cygdrive for fixpath to work.
21879       new_path="$CYGWIN_ROOT_PATH$input_path"
21880     fi
21881   fi
21882 
21883 
21884   if test "x$path" != "x$new_path"; then
21885     BOOT_JDK="$new_path"
21886     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21887 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21888   fi
21889 
21890   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21891 
21892   path="$BOOT_JDK"
21893   has_colon=`$ECHO $path | $GREP ^.:`
21894   new_path="$path"
21895   if test "x$has_colon" = x; then
21896     # Not in mixed or Windows style, start by that.
21897     new_path=`cmd //c echo $path`
21898   fi
21899 
21900 
21901   input_path="$new_path"
21902   # Check if we need to convert this using DOS-style short mode. If the path
21903   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21904   # take no chances and rewrite it.
21905   # Note: m4 eats our [], so we need to use [ and ] instead.
21906   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21907   if test "x$has_forbidden_chars" != x; then
21908     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21909     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21910   fi
21911 
21912 
21913   windows_path="$new_path"
21914   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21915     unix_path=`$CYGPATH -u "$windows_path"`
21916     new_path="$unix_path"
21917   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21918     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21919     new_path="$unix_path"
21920   fi
21921 
21922   if test "x$path" != "x$new_path"; then
21923     BOOT_JDK="$new_path"
21924     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21925 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21926   fi
21927 
21928   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21929   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21930 
21931   else
21932     # We're on a posix platform. Hooray! :)
21933     path="$BOOT_JDK"
21934     has_space=`$ECHO "$path" | $GREP " "`
21935     if test "x$has_space" != x; then
21936       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21937 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21938       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21939     fi
21940 
21941     # Use eval to expand a potential ~
21942     eval path="$path"
21943     if test ! -f "$path" && test ! -d "$path"; then
21944       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21945     fi
21946 
21947     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21948   fi
21949 
21950               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21951 $as_echo_n "checking for Boot JDK... " >&6; }
21952               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21953 $as_echo "$BOOT_JDK" >&6; }
21954               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21955 $as_echo_n "checking Boot JDK version... " >&6; }
21956               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21957               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21958 $as_echo "$BOOT_JDK_VERSION" >&6; }
21959             fi # end check jdk version
21960           fi # end check rt.jar
21961         fi # end check javac
21962       fi # end check java
21963     fi # end check boot jdk found
21964   fi
21965 
21966     done
21967   fi
21968 
21969   fi
21970 
21971 
21972     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21973     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21974       # Do we have a bin/java?
21975       if test ! -x "$BOOT_JDK/bin/java"; then
21976         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21977 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21978         BOOT_JDK_FOUND=no
21979       else
21980         # Do we have a bin/javac?
21981         if test ! -x "$BOOT_JDK/bin/javac"; then
21982           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21983 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21984           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21985 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21986           BOOT_JDK_FOUND=no
21987         else
21988           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21989           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21990             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21991 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21992             BOOT_JDK_FOUND=no
21993           else
21994             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21995             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21996 
21997             # Extra M4 quote needed to protect [] in grep expression.
21998             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21999             if test "x$FOUND_VERSION_78" = x; then
22000               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22001 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22002               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22003 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22004               BOOT_JDK_FOUND=no
22005             else
22006               # We're done! :-)
22007               BOOT_JDK_FOUND=yes
22008 
22009   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22010 
22011   # Input might be given as Windows format, start by converting to
22012   # unix format.
22013   path="$BOOT_JDK"
22014   new_path=`$CYGPATH -u "$path"`
22015 
22016   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22017   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22018   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22019   # "foo.exe" is OK but "foo" is an error.
22020   #
22021   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22022   # It is also a way to make sure we got the proper file name for the real test later on.
22023   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22024   if test "x$test_shortpath" = x; then
22025     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22026 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22027     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22028   fi
22029 
22030   # Call helper function which possibly converts this using DOS-style short mode.
22031   # If so, the updated path is stored in $new_path.
22032 
22033   input_path="$new_path"
22034   # Check if we need to convert this using DOS-style short mode. If the path
22035   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22036   # take no chances and rewrite it.
22037   # Note: m4 eats our [], so we need to use [ and ] instead.
22038   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22039   if test "x$has_forbidden_chars" != x; then
22040     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22041     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22042     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22043     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22044       # Going to short mode and back again did indeed matter. Since short mode is
22045       # case insensitive, let's make it lowercase to improve readability.
22046       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22047       # Now convert it back to Unix-style (cygpath)
22048       input_path=`$CYGPATH -u "$shortmode_path"`
22049       new_path="$input_path"
22050     fi
22051   fi
22052 
22053   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22054   if test "x$test_cygdrive_prefix" = x; then
22055     # As a simple fix, exclude /usr/bin since it's not a real path.
22056     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22057       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22058       # a path prefixed by /cygdrive for fixpath to work.
22059       new_path="$CYGWIN_ROOT_PATH$input_path"
22060     fi
22061   fi
22062 
22063 
22064   if test "x$path" != "x$new_path"; then
22065     BOOT_JDK="$new_path"
22066     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22067 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22068   fi
22069 
22070   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22071 
22072   path="$BOOT_JDK"
22073   has_colon=`$ECHO $path | $GREP ^.:`
22074   new_path="$path"
22075   if test "x$has_colon" = x; then
22076     # Not in mixed or Windows style, start by that.
22077     new_path=`cmd //c echo $path`
22078   fi
22079 
22080 
22081   input_path="$new_path"
22082   # Check if we need to convert this using DOS-style short mode. If the path
22083   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22084   # take no chances and rewrite it.
22085   # Note: m4 eats our [], so we need to use [ and ] instead.
22086   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22087   if test "x$has_forbidden_chars" != x; then
22088     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22089     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22090   fi
22091 
22092 
22093   windows_path="$new_path"
22094   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22095     unix_path=`$CYGPATH -u "$windows_path"`
22096     new_path="$unix_path"
22097   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22098     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22099     new_path="$unix_path"
22100   fi
22101 
22102   if test "x$path" != "x$new_path"; then
22103     BOOT_JDK="$new_path"
22104     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22105 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22106   fi
22107 
22108   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22109   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22110 
22111   else
22112     # We're on a posix platform. Hooray! :)
22113     path="$BOOT_JDK"
22114     has_space=`$ECHO "$path" | $GREP " "`
22115     if test "x$has_space" != x; then
22116       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22117 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22118       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22119     fi
22120 
22121     # Use eval to expand a potential ~
22122     eval path="$path"
22123     if test ! -f "$path" && test ! -d "$path"; then
22124       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22125     fi
22126 
22127     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22128   fi
22129 
22130               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22131 $as_echo_n "checking for Boot JDK... " >&6; }
22132               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22133 $as_echo "$BOOT_JDK" >&6; }
22134               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22135 $as_echo_n "checking Boot JDK version... " >&6; }
22136               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22137               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22138 $as_echo "$BOOT_JDK_VERSION" >&6; }
22139             fi # end check jdk version
22140           fi # end check rt.jar
22141         fi # end check javac
22142       fi # end check java
22143     fi # end check boot jdk found
22144   fi
22145 
22146 
22147   if test "x$BOOT_JDK_FOUND" = xno; then
22148     # Now execute the test
22149 
22150   if test "x$PROGRAMFILES" != x; then
22151     VIRTUAL_DIR="$PROGRAMFILES/Java"
22152 
22153   windows_path="$VIRTUAL_DIR"
22154   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22155     unix_path=`$CYGPATH -u "$windows_path"`
22156     VIRTUAL_DIR="$unix_path"
22157   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22158     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22159     VIRTUAL_DIR="$unix_path"
22160   fi
22161 
22162 
22163   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22164   BOOT_JDK_SUFFIX=""
22165   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22166   if test "x$ALL_JDKS_FOUND" != x; then
22167     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22168 
22169   if test "x$BOOT_JDK_FOUND" = xno; then
22170     # Now execute the test
22171 
22172         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22173         if test -d "$BOOT_JDK"; then
22174           BOOT_JDK_FOUND=maybe
22175           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22176 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22177         fi
22178 
22179 
22180     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22181     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22182       # Do we have a bin/java?
22183       if test ! -x "$BOOT_JDK/bin/java"; then
22184         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22185 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22186         BOOT_JDK_FOUND=no
22187       else
22188         # Do we have a bin/javac?
22189         if test ! -x "$BOOT_JDK/bin/javac"; then
22190           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22192           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22193 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22194           BOOT_JDK_FOUND=no
22195         else
22196           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22197           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22198             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22200             BOOT_JDK_FOUND=no
22201           else
22202             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22203             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22204 
22205             # Extra M4 quote needed to protect [] in grep expression.
22206             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22207             if test "x$FOUND_VERSION_78" = x; then
22208               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22209 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22210               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22211 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22212               BOOT_JDK_FOUND=no
22213             else
22214               # We're done! :-)
22215               BOOT_JDK_FOUND=yes
22216 
22217   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22218 
22219   # Input might be given as Windows format, start by converting to
22220   # unix format.
22221   path="$BOOT_JDK"
22222   new_path=`$CYGPATH -u "$path"`
22223 
22224   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22225   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22226   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22227   # "foo.exe" is OK but "foo" is an error.
22228   #
22229   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22230   # It is also a way to make sure we got the proper file name for the real test later on.
22231   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22232   if test "x$test_shortpath" = x; then
22233     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22234 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22235     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22236   fi
22237 
22238   # Call helper function which possibly converts this using DOS-style short mode.
22239   # If so, the updated path is stored in $new_path.
22240 
22241   input_path="$new_path"
22242   # Check if we need to convert this using DOS-style short mode. If the path
22243   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22244   # take no chances and rewrite it.
22245   # Note: m4 eats our [], so we need to use [ and ] instead.
22246   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22247   if test "x$has_forbidden_chars" != x; then
22248     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22249     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22250     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22251     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22252       # Going to short mode and back again did indeed matter. Since short mode is
22253       # case insensitive, let's make it lowercase to improve readability.
22254       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22255       # Now convert it back to Unix-style (cygpath)
22256       input_path=`$CYGPATH -u "$shortmode_path"`
22257       new_path="$input_path"
22258     fi
22259   fi
22260 
22261   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22262   if test "x$test_cygdrive_prefix" = x; then
22263     # As a simple fix, exclude /usr/bin since it's not a real path.
22264     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22265       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22266       # a path prefixed by /cygdrive for fixpath to work.
22267       new_path="$CYGWIN_ROOT_PATH$input_path"
22268     fi
22269   fi
22270 
22271 
22272   if test "x$path" != "x$new_path"; then
22273     BOOT_JDK="$new_path"
22274     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22275 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22276   fi
22277 
22278   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22279 
22280   path="$BOOT_JDK"
22281   has_colon=`$ECHO $path | $GREP ^.:`
22282   new_path="$path"
22283   if test "x$has_colon" = x; then
22284     # Not in mixed or Windows style, start by that.
22285     new_path=`cmd //c echo $path`
22286   fi
22287 
22288 
22289   input_path="$new_path"
22290   # Check if we need to convert this using DOS-style short mode. If the path
22291   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22292   # take no chances and rewrite it.
22293   # Note: m4 eats our [], so we need to use [ and ] instead.
22294   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22295   if test "x$has_forbidden_chars" != x; then
22296     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22297     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22298   fi
22299 
22300 
22301   windows_path="$new_path"
22302   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22303     unix_path=`$CYGPATH -u "$windows_path"`
22304     new_path="$unix_path"
22305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22306     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22307     new_path="$unix_path"
22308   fi
22309 
22310   if test "x$path" != "x$new_path"; then
22311     BOOT_JDK="$new_path"
22312     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22313 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22314   fi
22315 
22316   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22317   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22318 
22319   else
22320     # We're on a posix platform. Hooray! :)
22321     path="$BOOT_JDK"
22322     has_space=`$ECHO "$path" | $GREP " "`
22323     if test "x$has_space" != x; then
22324       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22325 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22326       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22327     fi
22328 
22329     # Use eval to expand a potential ~
22330     eval path="$path"
22331     if test ! -f "$path" && test ! -d "$path"; then
22332       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22333     fi
22334 
22335     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22336   fi
22337 
22338               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22339 $as_echo_n "checking for Boot JDK... " >&6; }
22340               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22341 $as_echo "$BOOT_JDK" >&6; }
22342               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22343 $as_echo_n "checking Boot JDK version... " >&6; }
22344               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22345               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22346 $as_echo "$BOOT_JDK_VERSION" >&6; }
22347             fi # end check jdk version
22348           fi # end check rt.jar
22349         fi # end check javac
22350       fi # end check java
22351     fi # end check boot jdk found
22352   fi
22353 
22354     done
22355   fi
22356 
22357   fi
22358 
22359 
22360     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22361     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22362       # Do we have a bin/java?
22363       if test ! -x "$BOOT_JDK/bin/java"; then
22364         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22365 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22366         BOOT_JDK_FOUND=no
22367       else
22368         # Do we have a bin/javac?
22369         if test ! -x "$BOOT_JDK/bin/javac"; then
22370           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22371 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22372           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22373 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22374           BOOT_JDK_FOUND=no
22375         else
22376           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22377           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22378             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22380             BOOT_JDK_FOUND=no
22381           else
22382             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22383             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22384 
22385             # Extra M4 quote needed to protect [] in grep expression.
22386             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22387             if test "x$FOUND_VERSION_78" = x; then
22388               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22390               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22391 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22392               BOOT_JDK_FOUND=no
22393             else
22394               # We're done! :-)
22395               BOOT_JDK_FOUND=yes
22396 
22397   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22398 
22399   # Input might be given as Windows format, start by converting to
22400   # unix format.
22401   path="$BOOT_JDK"
22402   new_path=`$CYGPATH -u "$path"`
22403 
22404   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22405   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22406   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22407   # "foo.exe" is OK but "foo" is an error.
22408   #
22409   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22410   # It is also a way to make sure we got the proper file name for the real test later on.
22411   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22412   if test "x$test_shortpath" = x; then
22413     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22414 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22415     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22416   fi
22417 
22418   # Call helper function which possibly converts this using DOS-style short mode.
22419   # If so, the updated path is stored in $new_path.
22420 
22421   input_path="$new_path"
22422   # Check if we need to convert this using DOS-style short mode. If the path
22423   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22424   # take no chances and rewrite it.
22425   # Note: m4 eats our [], so we need to use [ and ] instead.
22426   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22427   if test "x$has_forbidden_chars" != x; then
22428     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22429     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22430     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22431     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22432       # Going to short mode and back again did indeed matter. Since short mode is
22433       # case insensitive, let's make it lowercase to improve readability.
22434       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22435       # Now convert it back to Unix-style (cygpath)
22436       input_path=`$CYGPATH -u "$shortmode_path"`
22437       new_path="$input_path"
22438     fi
22439   fi
22440 
22441   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22442   if test "x$test_cygdrive_prefix" = x; then
22443     # As a simple fix, exclude /usr/bin since it's not a real path.
22444     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22445       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22446       # a path prefixed by /cygdrive for fixpath to work.
22447       new_path="$CYGWIN_ROOT_PATH$input_path"
22448     fi
22449   fi
22450 
22451 
22452   if test "x$path" != "x$new_path"; then
22453     BOOT_JDK="$new_path"
22454     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22455 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22456   fi
22457 
22458   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22459 
22460   path="$BOOT_JDK"
22461   has_colon=`$ECHO $path | $GREP ^.:`
22462   new_path="$path"
22463   if test "x$has_colon" = x; then
22464     # Not in mixed or Windows style, start by that.
22465     new_path=`cmd //c echo $path`
22466   fi
22467 
22468 
22469   input_path="$new_path"
22470   # Check if we need to convert this using DOS-style short mode. If the path
22471   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22472   # take no chances and rewrite it.
22473   # Note: m4 eats our [], so we need to use [ and ] instead.
22474   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22475   if test "x$has_forbidden_chars" != x; then
22476     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22477     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22478   fi
22479 
22480 
22481   windows_path="$new_path"
22482   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22483     unix_path=`$CYGPATH -u "$windows_path"`
22484     new_path="$unix_path"
22485   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22486     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22487     new_path="$unix_path"
22488   fi
22489 
22490   if test "x$path" != "x$new_path"; then
22491     BOOT_JDK="$new_path"
22492     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22493 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22494   fi
22495 
22496   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22497   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22498 
22499   else
22500     # We're on a posix platform. Hooray! :)
22501     path="$BOOT_JDK"
22502     has_space=`$ECHO "$path" | $GREP " "`
22503     if test "x$has_space" != x; then
22504       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22505 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22506       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22507     fi
22508 
22509     # Use eval to expand a potential ~
22510     eval path="$path"
22511     if test ! -f "$path" && test ! -d "$path"; then
22512       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22513     fi
22514 
22515     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22516   fi
22517 
22518               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22519 $as_echo_n "checking for Boot JDK... " >&6; }
22520               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22521 $as_echo "$BOOT_JDK" >&6; }
22522               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22523 $as_echo_n "checking Boot JDK version... " >&6; }
22524               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22525               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22526 $as_echo "$BOOT_JDK_VERSION" >&6; }
22527             fi # end check jdk version
22528           fi # end check rt.jar
22529         fi # end check javac
22530       fi # end check java
22531     fi # end check boot jdk found
22532   fi
22533 
22534 
22535   if test "x$BOOT_JDK_FOUND" = xno; then
22536     # Now execute the test
22537 
22538   if test "x$ProgramFiles" != x; then
22539     VIRTUAL_DIR="$ProgramFiles/Java"
22540 
22541   windows_path="$VIRTUAL_DIR"
22542   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22543     unix_path=`$CYGPATH -u "$windows_path"`
22544     VIRTUAL_DIR="$unix_path"
22545   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22546     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22547     VIRTUAL_DIR="$unix_path"
22548   fi
22549 
22550 
22551   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22552   BOOT_JDK_SUFFIX=""
22553   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22554   if test "x$ALL_JDKS_FOUND" != x; then
22555     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22556 
22557   if test "x$BOOT_JDK_FOUND" = xno; then
22558     # Now execute the test
22559 
22560         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22561         if test -d "$BOOT_JDK"; then
22562           BOOT_JDK_FOUND=maybe
22563           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22564 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22565         fi
22566 
22567 
22568     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22569     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22570       # Do we have a bin/java?
22571       if test ! -x "$BOOT_JDK/bin/java"; then
22572         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22573 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22574         BOOT_JDK_FOUND=no
22575       else
22576         # Do we have a bin/javac?
22577         if test ! -x "$BOOT_JDK/bin/javac"; then
22578           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22580           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22581 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22582           BOOT_JDK_FOUND=no
22583         else
22584           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22585           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22586             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22587 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22588             BOOT_JDK_FOUND=no
22589           else
22590             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22591             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22592 
22593             # Extra M4 quote needed to protect [] in grep expression.
22594             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22595             if test "x$FOUND_VERSION_78" = x; then
22596               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22597 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22598               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22599 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22600               BOOT_JDK_FOUND=no
22601             else
22602               # We're done! :-)
22603               BOOT_JDK_FOUND=yes
22604 
22605   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22606 
22607   # Input might be given as Windows format, start by converting to
22608   # unix format.
22609   path="$BOOT_JDK"
22610   new_path=`$CYGPATH -u "$path"`
22611 
22612   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22613   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22614   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22615   # "foo.exe" is OK but "foo" is an error.
22616   #
22617   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22618   # It is also a way to make sure we got the proper file name for the real test later on.
22619   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22620   if test "x$test_shortpath" = x; then
22621     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22622 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22623     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22624   fi
22625 
22626   # Call helper function which possibly converts this using DOS-style short mode.
22627   # If so, the updated path is stored in $new_path.
22628 
22629   input_path="$new_path"
22630   # Check if we need to convert this using DOS-style short mode. If the path
22631   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22632   # take no chances and rewrite it.
22633   # Note: m4 eats our [], so we need to use [ and ] instead.
22634   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22635   if test "x$has_forbidden_chars" != x; then
22636     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22637     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22638     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22639     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22640       # Going to short mode and back again did indeed matter. Since short mode is
22641       # case insensitive, let's make it lowercase to improve readability.
22642       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22643       # Now convert it back to Unix-style (cygpath)
22644       input_path=`$CYGPATH -u "$shortmode_path"`
22645       new_path="$input_path"
22646     fi
22647   fi
22648 
22649   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22650   if test "x$test_cygdrive_prefix" = x; then
22651     # As a simple fix, exclude /usr/bin since it's not a real path.
22652     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22653       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22654       # a path prefixed by /cygdrive for fixpath to work.
22655       new_path="$CYGWIN_ROOT_PATH$input_path"
22656     fi
22657   fi
22658 
22659 
22660   if test "x$path" != "x$new_path"; then
22661     BOOT_JDK="$new_path"
22662     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22663 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22664   fi
22665 
22666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22667 
22668   path="$BOOT_JDK"
22669   has_colon=`$ECHO $path | $GREP ^.:`
22670   new_path="$path"
22671   if test "x$has_colon" = x; then
22672     # Not in mixed or Windows style, start by that.
22673     new_path=`cmd //c echo $path`
22674   fi
22675 
22676 
22677   input_path="$new_path"
22678   # Check if we need to convert this using DOS-style short mode. If the path
22679   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22680   # take no chances and rewrite it.
22681   # Note: m4 eats our [], so we need to use [ and ] instead.
22682   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22683   if test "x$has_forbidden_chars" != x; then
22684     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22685     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22686   fi
22687 
22688 
22689   windows_path="$new_path"
22690   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22691     unix_path=`$CYGPATH -u "$windows_path"`
22692     new_path="$unix_path"
22693   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22694     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22695     new_path="$unix_path"
22696   fi
22697 
22698   if test "x$path" != "x$new_path"; then
22699     BOOT_JDK="$new_path"
22700     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22701 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22702   fi
22703 
22704   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22705   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22706 
22707   else
22708     # We're on a posix platform. Hooray! :)
22709     path="$BOOT_JDK"
22710     has_space=`$ECHO "$path" | $GREP " "`
22711     if test "x$has_space" != x; then
22712       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22713 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22714       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22715     fi
22716 
22717     # Use eval to expand a potential ~
22718     eval path="$path"
22719     if test ! -f "$path" && test ! -d "$path"; then
22720       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22721     fi
22722 
22723     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22724   fi
22725 
22726               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22727 $as_echo_n "checking for Boot JDK... " >&6; }
22728               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22729 $as_echo "$BOOT_JDK" >&6; }
22730               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22731 $as_echo_n "checking Boot JDK version... " >&6; }
22732               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22733               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22734 $as_echo "$BOOT_JDK_VERSION" >&6; }
22735             fi # end check jdk version
22736           fi # end check rt.jar
22737         fi # end check javac
22738       fi # end check java
22739     fi # end check boot jdk found
22740   fi
22741 
22742     done
22743   fi
22744 
22745   fi
22746 
22747 
22748     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22749     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22750       # Do we have a bin/java?
22751       if test ! -x "$BOOT_JDK/bin/java"; then
22752         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22753 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22754         BOOT_JDK_FOUND=no
22755       else
22756         # Do we have a bin/javac?
22757         if test ! -x "$BOOT_JDK/bin/javac"; then
22758           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22759 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22760           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22761 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22762           BOOT_JDK_FOUND=no
22763         else
22764           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22765           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22766             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22767 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22768             BOOT_JDK_FOUND=no
22769           else
22770             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22771             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22772 
22773             # Extra M4 quote needed to protect [] in grep expression.
22774             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22775             if test "x$FOUND_VERSION_78" = x; then
22776               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22777 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22778               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22779 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22780               BOOT_JDK_FOUND=no
22781             else
22782               # We're done! :-)
22783               BOOT_JDK_FOUND=yes
22784 
22785   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22786 
22787   # Input might be given as Windows format, start by converting to
22788   # unix format.
22789   path="$BOOT_JDK"
22790   new_path=`$CYGPATH -u "$path"`
22791 
22792   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22793   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22794   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22795   # "foo.exe" is OK but "foo" is an error.
22796   #
22797   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22798   # It is also a way to make sure we got the proper file name for the real test later on.
22799   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22800   if test "x$test_shortpath" = x; then
22801     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22802 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22803     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22804   fi
22805 
22806   # Call helper function which possibly converts this using DOS-style short mode.
22807   # If so, the updated path is stored in $new_path.
22808 
22809   input_path="$new_path"
22810   # Check if we need to convert this using DOS-style short mode. If the path
22811   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22812   # take no chances and rewrite it.
22813   # Note: m4 eats our [], so we need to use [ and ] instead.
22814   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22815   if test "x$has_forbidden_chars" != x; then
22816     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22817     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22818     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22819     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22820       # Going to short mode and back again did indeed matter. Since short mode is
22821       # case insensitive, let's make it lowercase to improve readability.
22822       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22823       # Now convert it back to Unix-style (cygpath)
22824       input_path=`$CYGPATH -u "$shortmode_path"`
22825       new_path="$input_path"
22826     fi
22827   fi
22828 
22829   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22830   if test "x$test_cygdrive_prefix" = x; then
22831     # As a simple fix, exclude /usr/bin since it's not a real path.
22832     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22833       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22834       # a path prefixed by /cygdrive for fixpath to work.
22835       new_path="$CYGWIN_ROOT_PATH$input_path"
22836     fi
22837   fi
22838 
22839 
22840   if test "x$path" != "x$new_path"; then
22841     BOOT_JDK="$new_path"
22842     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22843 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22844   fi
22845 
22846   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22847 
22848   path="$BOOT_JDK"
22849   has_colon=`$ECHO $path | $GREP ^.:`
22850   new_path="$path"
22851   if test "x$has_colon" = x; then
22852     # Not in mixed or Windows style, start by that.
22853     new_path=`cmd //c echo $path`
22854   fi
22855 
22856 
22857   input_path="$new_path"
22858   # Check if we need to convert this using DOS-style short mode. If the path
22859   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22860   # take no chances and rewrite it.
22861   # Note: m4 eats our [], so we need to use [ and ] instead.
22862   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22863   if test "x$has_forbidden_chars" != x; then
22864     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22865     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22866   fi
22867 
22868 
22869   windows_path="$new_path"
22870   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22871     unix_path=`$CYGPATH -u "$windows_path"`
22872     new_path="$unix_path"
22873   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22874     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22875     new_path="$unix_path"
22876   fi
22877 
22878   if test "x$path" != "x$new_path"; then
22879     BOOT_JDK="$new_path"
22880     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22881 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22882   fi
22883 
22884   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22885   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22886 
22887   else
22888     # We're on a posix platform. Hooray! :)
22889     path="$BOOT_JDK"
22890     has_space=`$ECHO "$path" | $GREP " "`
22891     if test "x$has_space" != x; then
22892       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22894       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22895     fi
22896 
22897     # Use eval to expand a potential ~
22898     eval path="$path"
22899     if test ! -f "$path" && test ! -d "$path"; then
22900       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22901     fi
22902 
22903     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22904   fi
22905 
22906               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22907 $as_echo_n "checking for Boot JDK... " >&6; }
22908               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22909 $as_echo "$BOOT_JDK" >&6; }
22910               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22911 $as_echo_n "checking Boot JDK version... " >&6; }
22912               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22913               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22914 $as_echo "$BOOT_JDK_VERSION" >&6; }
22915             fi # end check jdk version
22916           fi # end check rt.jar
22917         fi # end check javac
22918       fi # end check java
22919     fi # end check boot jdk found
22920   fi
22921 
22922 
22923   if test "x$BOOT_JDK_FOUND" = xno; then
22924     # Now execute the test
22925 
22926   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22927   BOOT_JDK_SUFFIX=""
22928   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22929   if test "x$ALL_JDKS_FOUND" != x; then
22930     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22931 
22932   if test "x$BOOT_JDK_FOUND" = xno; then
22933     # Now execute the test
22934 
22935         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22936         if test -d "$BOOT_JDK"; then
22937           BOOT_JDK_FOUND=maybe
22938           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22939 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22940         fi
22941 
22942 
22943     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22944     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22945       # Do we have a bin/java?
22946       if test ! -x "$BOOT_JDK/bin/java"; then
22947         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22948 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22949         BOOT_JDK_FOUND=no
22950       else
22951         # Do we have a bin/javac?
22952         if test ! -x "$BOOT_JDK/bin/javac"; then
22953           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22954 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22955           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22956 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22957           BOOT_JDK_FOUND=no
22958         else
22959           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22960           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22961             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22962 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22963             BOOT_JDK_FOUND=no
22964           else
22965             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22966             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22967 
22968             # Extra M4 quote needed to protect [] in grep expression.
22969             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22970             if test "x$FOUND_VERSION_78" = x; then
22971               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22972 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22973               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22974 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22975               BOOT_JDK_FOUND=no
22976             else
22977               # We're done! :-)
22978               BOOT_JDK_FOUND=yes
22979 
22980   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22981 
22982   # Input might be given as Windows format, start by converting to
22983   # unix format.
22984   path="$BOOT_JDK"
22985   new_path=`$CYGPATH -u "$path"`
22986 
22987   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22988   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22989   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22990   # "foo.exe" is OK but "foo" is an error.
22991   #
22992   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22993   # It is also a way to make sure we got the proper file name for the real test later on.
22994   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22995   if test "x$test_shortpath" = x; then
22996     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22997 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22998     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22999   fi
23000 
23001   # Call helper function which possibly converts this using DOS-style short mode.
23002   # If so, the updated path is stored in $new_path.
23003 
23004   input_path="$new_path"
23005   # Check if we need to convert this using DOS-style short mode. If the path
23006   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23007   # take no chances and rewrite it.
23008   # Note: m4 eats our [], so we need to use [ and ] instead.
23009   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23010   if test "x$has_forbidden_chars" != x; then
23011     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23012     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23013     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23014     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23015       # Going to short mode and back again did indeed matter. Since short mode is
23016       # case insensitive, let's make it lowercase to improve readability.
23017       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23018       # Now convert it back to Unix-style (cygpath)
23019       input_path=`$CYGPATH -u "$shortmode_path"`
23020       new_path="$input_path"
23021     fi
23022   fi
23023 
23024   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23025   if test "x$test_cygdrive_prefix" = x; then
23026     # As a simple fix, exclude /usr/bin since it's not a real path.
23027     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23028       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23029       # a path prefixed by /cygdrive for fixpath to work.
23030       new_path="$CYGWIN_ROOT_PATH$input_path"
23031     fi
23032   fi
23033 
23034 
23035   if test "x$path" != "x$new_path"; then
23036     BOOT_JDK="$new_path"
23037     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23038 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23039   fi
23040 
23041   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23042 
23043   path="$BOOT_JDK"
23044   has_colon=`$ECHO $path | $GREP ^.:`
23045   new_path="$path"
23046   if test "x$has_colon" = x; then
23047     # Not in mixed or Windows style, start by that.
23048     new_path=`cmd //c echo $path`
23049   fi
23050 
23051 
23052   input_path="$new_path"
23053   # Check if we need to convert this using DOS-style short mode. If the path
23054   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23055   # take no chances and rewrite it.
23056   # Note: m4 eats our [], so we need to use [ and ] instead.
23057   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23058   if test "x$has_forbidden_chars" != x; then
23059     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23060     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23061   fi
23062 
23063 
23064   windows_path="$new_path"
23065   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23066     unix_path=`$CYGPATH -u "$windows_path"`
23067     new_path="$unix_path"
23068   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23069     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23070     new_path="$unix_path"
23071   fi
23072 
23073   if test "x$path" != "x$new_path"; then
23074     BOOT_JDK="$new_path"
23075     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23076 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23077   fi
23078 
23079   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23080   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23081 
23082   else
23083     # We're on a posix platform. Hooray! :)
23084     path="$BOOT_JDK"
23085     has_space=`$ECHO "$path" | $GREP " "`
23086     if test "x$has_space" != x; then
23087       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23088 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23089       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23090     fi
23091 
23092     # Use eval to expand a potential ~
23093     eval path="$path"
23094     if test ! -f "$path" && test ! -d "$path"; then
23095       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23096     fi
23097 
23098     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23099   fi
23100 
23101               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23102 $as_echo_n "checking for Boot JDK... " >&6; }
23103               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23104 $as_echo "$BOOT_JDK" >&6; }
23105               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23106 $as_echo_n "checking Boot JDK version... " >&6; }
23107               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23108               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23109 $as_echo "$BOOT_JDK_VERSION" >&6; }
23110             fi # end check jdk version
23111           fi # end check rt.jar
23112         fi # end check javac
23113       fi # end check java
23114     fi # end check boot jdk found
23115   fi
23116 
23117     done
23118   fi
23119 
23120 
23121     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23122     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23123       # Do we have a bin/java?
23124       if test ! -x "$BOOT_JDK/bin/java"; then
23125         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23126 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23127         BOOT_JDK_FOUND=no
23128       else
23129         # Do we have a bin/javac?
23130         if test ! -x "$BOOT_JDK/bin/javac"; then
23131           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23132 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23133           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23134 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23135           BOOT_JDK_FOUND=no
23136         else
23137           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23138           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23139             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23141             BOOT_JDK_FOUND=no
23142           else
23143             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23144             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23145 
23146             # Extra M4 quote needed to protect [] in grep expression.
23147             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23148             if test "x$FOUND_VERSION_78" = x; then
23149               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23150 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23151               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23152 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23153               BOOT_JDK_FOUND=no
23154             else
23155               # We're done! :-)
23156               BOOT_JDK_FOUND=yes
23157 
23158   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23159 
23160   # Input might be given as Windows format, start by converting to
23161   # unix format.
23162   path="$BOOT_JDK"
23163   new_path=`$CYGPATH -u "$path"`
23164 
23165   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23166   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23167   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23168   # "foo.exe" is OK but "foo" is an error.
23169   #
23170   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23171   # It is also a way to make sure we got the proper file name for the real test later on.
23172   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23173   if test "x$test_shortpath" = x; then
23174     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23175 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23176     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23177   fi
23178 
23179   # Call helper function which possibly converts this using DOS-style short mode.
23180   # If so, the updated path is stored in $new_path.
23181 
23182   input_path="$new_path"
23183   # Check if we need to convert this using DOS-style short mode. If the path
23184   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23185   # take no chances and rewrite it.
23186   # Note: m4 eats our [], so we need to use [ and ] instead.
23187   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23188   if test "x$has_forbidden_chars" != x; then
23189     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23190     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23191     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23192     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23193       # Going to short mode and back again did indeed matter. Since short mode is
23194       # case insensitive, let's make it lowercase to improve readability.
23195       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23196       # Now convert it back to Unix-style (cygpath)
23197       input_path=`$CYGPATH -u "$shortmode_path"`
23198       new_path="$input_path"
23199     fi
23200   fi
23201 
23202   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23203   if test "x$test_cygdrive_prefix" = x; then
23204     # As a simple fix, exclude /usr/bin since it's not a real path.
23205     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23206       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23207       # a path prefixed by /cygdrive for fixpath to work.
23208       new_path="$CYGWIN_ROOT_PATH$input_path"
23209     fi
23210   fi
23211 
23212 
23213   if test "x$path" != "x$new_path"; then
23214     BOOT_JDK="$new_path"
23215     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23216 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23217   fi
23218 
23219   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23220 
23221   path="$BOOT_JDK"
23222   has_colon=`$ECHO $path | $GREP ^.:`
23223   new_path="$path"
23224   if test "x$has_colon" = x; then
23225     # Not in mixed or Windows style, start by that.
23226     new_path=`cmd //c echo $path`
23227   fi
23228 
23229 
23230   input_path="$new_path"
23231   # Check if we need to convert this using DOS-style short mode. If the path
23232   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23233   # take no chances and rewrite it.
23234   # Note: m4 eats our [], so we need to use [ and ] instead.
23235   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23236   if test "x$has_forbidden_chars" != x; then
23237     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23238     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23239   fi
23240 
23241 
23242   windows_path="$new_path"
23243   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23244     unix_path=`$CYGPATH -u "$windows_path"`
23245     new_path="$unix_path"
23246   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23247     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23248     new_path="$unix_path"
23249   fi
23250 
23251   if test "x$path" != "x$new_path"; then
23252     BOOT_JDK="$new_path"
23253     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23254 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23255   fi
23256 
23257   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23258   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23259 
23260   else
23261     # We're on a posix platform. Hooray! :)
23262     path="$BOOT_JDK"
23263     has_space=`$ECHO "$path" | $GREP " "`
23264     if test "x$has_space" != x; then
23265       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23267       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23268     fi
23269 
23270     # Use eval to expand a potential ~
23271     eval path="$path"
23272     if test ! -f "$path" && test ! -d "$path"; then
23273       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23274     fi
23275 
23276     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23277   fi
23278 
23279               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23280 $as_echo_n "checking for Boot JDK... " >&6; }
23281               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23282 $as_echo "$BOOT_JDK" >&6; }
23283               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23284 $as_echo_n "checking Boot JDK version... " >&6; }
23285               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23286               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23287 $as_echo "$BOOT_JDK_VERSION" >&6; }
23288             fi # end check jdk version
23289           fi # end check rt.jar
23290         fi # end check javac
23291       fi # end check java
23292     fi # end check boot jdk found
23293   fi
23294 
23295   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23296 
23297   if test "x$BOOT_JDK_FOUND" = xno; then
23298     # Now execute the test
23299 
23300   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23301   BOOT_JDK_SUFFIX="/Contents/Home"
23302   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23303   if test "x$ALL_JDKS_FOUND" != x; then
23304     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23305 
23306   if test "x$BOOT_JDK_FOUND" = xno; then
23307     # Now execute the test
23308 
23309         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23310         if test -d "$BOOT_JDK"; then
23311           BOOT_JDK_FOUND=maybe
23312           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23313 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23314         fi
23315 
23316 
23317     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23318     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23319       # Do we have a bin/java?
23320       if test ! -x "$BOOT_JDK/bin/java"; then
23321         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23322 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23323         BOOT_JDK_FOUND=no
23324       else
23325         # Do we have a bin/javac?
23326         if test ! -x "$BOOT_JDK/bin/javac"; then
23327           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23329           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23330 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23331           BOOT_JDK_FOUND=no
23332         else
23333           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23334           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23335             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23336 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23337             BOOT_JDK_FOUND=no
23338           else
23339             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23340             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23341 
23342             # Extra M4 quote needed to protect [] in grep expression.
23343             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23344             if test "x$FOUND_VERSION_78" = x; then
23345               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23346 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23347               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23348 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23349               BOOT_JDK_FOUND=no
23350             else
23351               # We're done! :-)
23352               BOOT_JDK_FOUND=yes
23353 
23354   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23355 
23356   # Input might be given as Windows format, start by converting to
23357   # unix format.
23358   path="$BOOT_JDK"
23359   new_path=`$CYGPATH -u "$path"`
23360 
23361   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23362   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23363   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23364   # "foo.exe" is OK but "foo" is an error.
23365   #
23366   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23367   # It is also a way to make sure we got the proper file name for the real test later on.
23368   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23369   if test "x$test_shortpath" = x; then
23370     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23371 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23372     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23373   fi
23374 
23375   # Call helper function which possibly converts this using DOS-style short mode.
23376   # If so, the updated path is stored in $new_path.
23377 
23378   input_path="$new_path"
23379   # Check if we need to convert this using DOS-style short mode. If the path
23380   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23381   # take no chances and rewrite it.
23382   # Note: m4 eats our [], so we need to use [ and ] instead.
23383   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23384   if test "x$has_forbidden_chars" != x; then
23385     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23386     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23387     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23388     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23389       # Going to short mode and back again did indeed matter. Since short mode is
23390       # case insensitive, let's make it lowercase to improve readability.
23391       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23392       # Now convert it back to Unix-style (cygpath)
23393       input_path=`$CYGPATH -u "$shortmode_path"`
23394       new_path="$input_path"
23395     fi
23396   fi
23397 
23398   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23399   if test "x$test_cygdrive_prefix" = x; then
23400     # As a simple fix, exclude /usr/bin since it's not a real path.
23401     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23402       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23403       # a path prefixed by /cygdrive for fixpath to work.
23404       new_path="$CYGWIN_ROOT_PATH$input_path"
23405     fi
23406   fi
23407 
23408 
23409   if test "x$path" != "x$new_path"; then
23410     BOOT_JDK="$new_path"
23411     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23412 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23413   fi
23414 
23415   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23416 
23417   path="$BOOT_JDK"
23418   has_colon=`$ECHO $path | $GREP ^.:`
23419   new_path="$path"
23420   if test "x$has_colon" = x; then
23421     # Not in mixed or Windows style, start by that.
23422     new_path=`cmd //c echo $path`
23423   fi
23424 
23425 
23426   input_path="$new_path"
23427   # Check if we need to convert this using DOS-style short mode. If the path
23428   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23429   # take no chances and rewrite it.
23430   # Note: m4 eats our [], so we need to use [ and ] instead.
23431   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23432   if test "x$has_forbidden_chars" != x; then
23433     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23434     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23435   fi
23436 
23437 
23438   windows_path="$new_path"
23439   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23440     unix_path=`$CYGPATH -u "$windows_path"`
23441     new_path="$unix_path"
23442   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23443     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23444     new_path="$unix_path"
23445   fi
23446 
23447   if test "x$path" != "x$new_path"; then
23448     BOOT_JDK="$new_path"
23449     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23450 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23451   fi
23452 
23453   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23454   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23455 
23456   else
23457     # We're on a posix platform. Hooray! :)
23458     path="$BOOT_JDK"
23459     has_space=`$ECHO "$path" | $GREP " "`
23460     if test "x$has_space" != x; then
23461       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23462 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23463       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23464     fi
23465 
23466     # Use eval to expand a potential ~
23467     eval path="$path"
23468     if test ! -f "$path" && test ! -d "$path"; then
23469       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23470     fi
23471 
23472     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23473   fi
23474 
23475               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23476 $as_echo_n "checking for Boot JDK... " >&6; }
23477               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23478 $as_echo "$BOOT_JDK" >&6; }
23479               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23480 $as_echo_n "checking Boot JDK version... " >&6; }
23481               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23482               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23483 $as_echo "$BOOT_JDK_VERSION" >&6; }
23484             fi # end check jdk version
23485           fi # end check rt.jar
23486         fi # end check javac
23487       fi # end check java
23488     fi # end check boot jdk found
23489   fi
23490 
23491     done
23492   fi
23493 
23494 
23495     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23496     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23497       # Do we have a bin/java?
23498       if test ! -x "$BOOT_JDK/bin/java"; then
23499         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23501         BOOT_JDK_FOUND=no
23502       else
23503         # Do we have a bin/javac?
23504         if test ! -x "$BOOT_JDK/bin/javac"; then
23505           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23506 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23507           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23508 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23509           BOOT_JDK_FOUND=no
23510         else
23511           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23512           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23513             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23514 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23515             BOOT_JDK_FOUND=no
23516           else
23517             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23518             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23519 
23520             # Extra M4 quote needed to protect [] in grep expression.
23521             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23522             if test "x$FOUND_VERSION_78" = x; then
23523               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23524 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23525               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23526 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23527               BOOT_JDK_FOUND=no
23528             else
23529               # We're done! :-)
23530               BOOT_JDK_FOUND=yes
23531 
23532   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23533 
23534   # Input might be given as Windows format, start by converting to
23535   # unix format.
23536   path="$BOOT_JDK"
23537   new_path=`$CYGPATH -u "$path"`
23538 
23539   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23540   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23541   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23542   # "foo.exe" is OK but "foo" is an error.
23543   #
23544   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23545   # It is also a way to make sure we got the proper file name for the real test later on.
23546   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23547   if test "x$test_shortpath" = x; then
23548     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23549 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23550     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23551   fi
23552 
23553   # Call helper function which possibly converts this using DOS-style short mode.
23554   # If so, the updated path is stored in $new_path.
23555 
23556   input_path="$new_path"
23557   # Check if we need to convert this using DOS-style short mode. If the path
23558   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23559   # take no chances and rewrite it.
23560   # Note: m4 eats our [], so we need to use [ and ] instead.
23561   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23562   if test "x$has_forbidden_chars" != x; then
23563     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23564     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23565     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23566     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23567       # Going to short mode and back again did indeed matter. Since short mode is
23568       # case insensitive, let's make it lowercase to improve readability.
23569       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23570       # Now convert it back to Unix-style (cygpath)
23571       input_path=`$CYGPATH -u "$shortmode_path"`
23572       new_path="$input_path"
23573     fi
23574   fi
23575 
23576   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23577   if test "x$test_cygdrive_prefix" = x; then
23578     # As a simple fix, exclude /usr/bin since it's not a real path.
23579     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23580       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23581       # a path prefixed by /cygdrive for fixpath to work.
23582       new_path="$CYGWIN_ROOT_PATH$input_path"
23583     fi
23584   fi
23585 
23586 
23587   if test "x$path" != "x$new_path"; then
23588     BOOT_JDK="$new_path"
23589     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23590 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23591   fi
23592 
23593   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23594 
23595   path="$BOOT_JDK"
23596   has_colon=`$ECHO $path | $GREP ^.:`
23597   new_path="$path"
23598   if test "x$has_colon" = x; then
23599     # Not in mixed or Windows style, start by that.
23600     new_path=`cmd //c echo $path`
23601   fi
23602 
23603 
23604   input_path="$new_path"
23605   # Check if we need to convert this using DOS-style short mode. If the path
23606   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23607   # take no chances and rewrite it.
23608   # Note: m4 eats our [], so we need to use [ and ] instead.
23609   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23610   if test "x$has_forbidden_chars" != x; then
23611     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23612     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23613   fi
23614 
23615 
23616   windows_path="$new_path"
23617   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23618     unix_path=`$CYGPATH -u "$windows_path"`
23619     new_path="$unix_path"
23620   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23621     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23622     new_path="$unix_path"
23623   fi
23624 
23625   if test "x$path" != "x$new_path"; then
23626     BOOT_JDK="$new_path"
23627     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23628 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23629   fi
23630 
23631   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23632   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23633 
23634   else
23635     # We're on a posix platform. Hooray! :)
23636     path="$BOOT_JDK"
23637     has_space=`$ECHO "$path" | $GREP " "`
23638     if test "x$has_space" != x; then
23639       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23640 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23641       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23642     fi
23643 
23644     # Use eval to expand a potential ~
23645     eval path="$path"
23646     if test ! -f "$path" && test ! -d "$path"; then
23647       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23648     fi
23649 
23650     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23651   fi
23652 
23653               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23654 $as_echo_n "checking for Boot JDK... " >&6; }
23655               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23656 $as_echo "$BOOT_JDK" >&6; }
23657               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23658 $as_echo_n "checking Boot JDK version... " >&6; }
23659               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23660               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23661 $as_echo "$BOOT_JDK_VERSION" >&6; }
23662             fi # end check jdk version
23663           fi # end check rt.jar
23664         fi # end check javac
23665       fi # end check java
23666     fi # end check boot jdk found
23667   fi
23668 
23669 
23670   if test "x$BOOT_JDK_FOUND" = xno; then
23671     # Now execute the test
23672 
23673   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23674   BOOT_JDK_SUFFIX="/Contents/Home"
23675   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23676   if test "x$ALL_JDKS_FOUND" != x; then
23677     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23678 
23679   if test "x$BOOT_JDK_FOUND" = xno; then
23680     # Now execute the test
23681 
23682         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23683         if test -d "$BOOT_JDK"; then
23684           BOOT_JDK_FOUND=maybe
23685           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23686 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23687         fi
23688 
23689 
23690     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23691     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23692       # Do we have a bin/java?
23693       if test ! -x "$BOOT_JDK/bin/java"; then
23694         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23695 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23696         BOOT_JDK_FOUND=no
23697       else
23698         # Do we have a bin/javac?
23699         if test ! -x "$BOOT_JDK/bin/javac"; then
23700           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23701 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23702           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23703 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23704           BOOT_JDK_FOUND=no
23705         else
23706           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23707           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23708             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23709 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23710             BOOT_JDK_FOUND=no
23711           else
23712             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23713             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23714 
23715             # Extra M4 quote needed to protect [] in grep expression.
23716             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23717             if test "x$FOUND_VERSION_78" = x; then
23718               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23719 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23720               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23721 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23722               BOOT_JDK_FOUND=no
23723             else
23724               # We're done! :-)
23725               BOOT_JDK_FOUND=yes
23726 
23727   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23728 
23729   # Input might be given as Windows format, start by converting to
23730   # unix format.
23731   path="$BOOT_JDK"
23732   new_path=`$CYGPATH -u "$path"`
23733 
23734   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23735   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23736   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23737   # "foo.exe" is OK but "foo" is an error.
23738   #
23739   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23740   # It is also a way to make sure we got the proper file name for the real test later on.
23741   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23742   if test "x$test_shortpath" = x; then
23743     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23744 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23745     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23746   fi
23747 
23748   # Call helper function which possibly converts this using DOS-style short mode.
23749   # If so, the updated path is stored in $new_path.
23750 
23751   input_path="$new_path"
23752   # Check if we need to convert this using DOS-style short mode. If the path
23753   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23754   # take no chances and rewrite it.
23755   # Note: m4 eats our [], so we need to use [ and ] instead.
23756   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23757   if test "x$has_forbidden_chars" != x; then
23758     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23759     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23760     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23761     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23762       # Going to short mode and back again did indeed matter. Since short mode is
23763       # case insensitive, let's make it lowercase to improve readability.
23764       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23765       # Now convert it back to Unix-style (cygpath)
23766       input_path=`$CYGPATH -u "$shortmode_path"`
23767       new_path="$input_path"
23768     fi
23769   fi
23770 
23771   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23772   if test "x$test_cygdrive_prefix" = x; then
23773     # As a simple fix, exclude /usr/bin since it's not a real path.
23774     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23775       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23776       # a path prefixed by /cygdrive for fixpath to work.
23777       new_path="$CYGWIN_ROOT_PATH$input_path"
23778     fi
23779   fi
23780 
23781 
23782   if test "x$path" != "x$new_path"; then
23783     BOOT_JDK="$new_path"
23784     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23785 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23786   fi
23787 
23788   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23789 
23790   path="$BOOT_JDK"
23791   has_colon=`$ECHO $path | $GREP ^.:`
23792   new_path="$path"
23793   if test "x$has_colon" = x; then
23794     # Not in mixed or Windows style, start by that.
23795     new_path=`cmd //c echo $path`
23796   fi
23797 
23798 
23799   input_path="$new_path"
23800   # Check if we need to convert this using DOS-style short mode. If the path
23801   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23802   # take no chances and rewrite it.
23803   # Note: m4 eats our [], so we need to use [ and ] instead.
23804   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23805   if test "x$has_forbidden_chars" != x; then
23806     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23807     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23808   fi
23809 
23810 
23811   windows_path="$new_path"
23812   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23813     unix_path=`$CYGPATH -u "$windows_path"`
23814     new_path="$unix_path"
23815   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23816     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23817     new_path="$unix_path"
23818   fi
23819 
23820   if test "x$path" != "x$new_path"; then
23821     BOOT_JDK="$new_path"
23822     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23823 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23824   fi
23825 
23826   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23827   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23828 
23829   else
23830     # We're on a posix platform. Hooray! :)
23831     path="$BOOT_JDK"
23832     has_space=`$ECHO "$path" | $GREP " "`
23833     if test "x$has_space" != x; then
23834       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23835 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23836       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23837     fi
23838 
23839     # Use eval to expand a potential ~
23840     eval path="$path"
23841     if test ! -f "$path" && test ! -d "$path"; then
23842       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23843     fi
23844 
23845     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23846   fi
23847 
23848               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23849 $as_echo_n "checking for Boot JDK... " >&6; }
23850               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23851 $as_echo "$BOOT_JDK" >&6; }
23852               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23853 $as_echo_n "checking Boot JDK version... " >&6; }
23854               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23855               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23856 $as_echo "$BOOT_JDK_VERSION" >&6; }
23857             fi # end check jdk version
23858           fi # end check rt.jar
23859         fi # end check javac
23860       fi # end check java
23861     fi # end check boot jdk found
23862   fi
23863 
23864     done
23865   fi
23866 
23867 
23868     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23869     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23870       # Do we have a bin/java?
23871       if test ! -x "$BOOT_JDK/bin/java"; then
23872         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23873 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23874         BOOT_JDK_FOUND=no
23875       else
23876         # Do we have a bin/javac?
23877         if test ! -x "$BOOT_JDK/bin/javac"; then
23878           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23879 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23880           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23881 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23882           BOOT_JDK_FOUND=no
23883         else
23884           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23885           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23886             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23887 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23888             BOOT_JDK_FOUND=no
23889           else
23890             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23891             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23892 
23893             # Extra M4 quote needed to protect [] in grep expression.
23894             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23895             if test "x$FOUND_VERSION_78" = x; then
23896               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23898               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23899 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23900               BOOT_JDK_FOUND=no
23901             else
23902               # We're done! :-)
23903               BOOT_JDK_FOUND=yes
23904 
23905   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23906 
23907   # Input might be given as Windows format, start by converting to
23908   # unix format.
23909   path="$BOOT_JDK"
23910   new_path=`$CYGPATH -u "$path"`
23911 
23912   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23913   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23914   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23915   # "foo.exe" is OK but "foo" is an error.
23916   #
23917   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23918   # It is also a way to make sure we got the proper file name for the real test later on.
23919   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23920   if test "x$test_shortpath" = x; then
23921     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23922 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23923     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23924   fi
23925 
23926   # Call helper function which possibly converts this using DOS-style short mode.
23927   # If so, the updated path is stored in $new_path.
23928 
23929   input_path="$new_path"
23930   # Check if we need to convert this using DOS-style short mode. If the path
23931   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23932   # take no chances and rewrite it.
23933   # Note: m4 eats our [], so we need to use [ and ] instead.
23934   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23935   if test "x$has_forbidden_chars" != x; then
23936     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23937     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23938     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23939     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23940       # Going to short mode and back again did indeed matter. Since short mode is
23941       # case insensitive, let's make it lowercase to improve readability.
23942       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23943       # Now convert it back to Unix-style (cygpath)
23944       input_path=`$CYGPATH -u "$shortmode_path"`
23945       new_path="$input_path"
23946     fi
23947   fi
23948 
23949   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23950   if test "x$test_cygdrive_prefix" = x; then
23951     # As a simple fix, exclude /usr/bin since it's not a real path.
23952     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23953       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23954       # a path prefixed by /cygdrive for fixpath to work.
23955       new_path="$CYGWIN_ROOT_PATH$input_path"
23956     fi
23957   fi
23958 
23959 
23960   if test "x$path" != "x$new_path"; then
23961     BOOT_JDK="$new_path"
23962     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23963 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23964   fi
23965 
23966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23967 
23968   path="$BOOT_JDK"
23969   has_colon=`$ECHO $path | $GREP ^.:`
23970   new_path="$path"
23971   if test "x$has_colon" = x; then
23972     # Not in mixed or Windows style, start by that.
23973     new_path=`cmd //c echo $path`
23974   fi
23975 
23976 
23977   input_path="$new_path"
23978   # Check if we need to convert this using DOS-style short mode. If the path
23979   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23980   # take no chances and rewrite it.
23981   # Note: m4 eats our [], so we need to use [ and ] instead.
23982   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23983   if test "x$has_forbidden_chars" != x; then
23984     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23985     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23986   fi
23987 
23988 
23989   windows_path="$new_path"
23990   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23991     unix_path=`$CYGPATH -u "$windows_path"`
23992     new_path="$unix_path"
23993   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23994     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23995     new_path="$unix_path"
23996   fi
23997 
23998   if test "x$path" != "x$new_path"; then
23999     BOOT_JDK="$new_path"
24000     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24001 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24002   fi
24003 
24004   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24005   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24006 
24007   else
24008     # We're on a posix platform. Hooray! :)
24009     path="$BOOT_JDK"
24010     has_space=`$ECHO "$path" | $GREP " "`
24011     if test "x$has_space" != x; then
24012       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24013 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24014       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24015     fi
24016 
24017     # Use eval to expand a potential ~
24018     eval path="$path"
24019     if test ! -f "$path" && test ! -d "$path"; then
24020       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24021     fi
24022 
24023     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24024   fi
24025 
24026               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24027 $as_echo_n "checking for Boot JDK... " >&6; }
24028               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24029 $as_echo "$BOOT_JDK" >&6; }
24030               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24031 $as_echo_n "checking Boot JDK version... " >&6; }
24032               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24033               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24034 $as_echo "$BOOT_JDK_VERSION" >&6; }
24035             fi # end check jdk version
24036           fi # end check rt.jar
24037         fi # end check javac
24038       fi # end check java
24039     fi # end check boot jdk found
24040   fi
24041 
24042   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24043 
24044   if test "x$BOOT_JDK_FOUND" = xno; then
24045     # Now execute the test
24046 
24047   BOOT_JDK_PREFIX="/usr/lib/jvm"
24048   BOOT_JDK_SUFFIX=""
24049   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24050   if test "x$ALL_JDKS_FOUND" != x; then
24051     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24052 
24053   if test "x$BOOT_JDK_FOUND" = xno; then
24054     # Now execute the test
24055 
24056         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24057         if test -d "$BOOT_JDK"; then
24058           BOOT_JDK_FOUND=maybe
24059           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24060 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24061         fi
24062 
24063 
24064     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24065     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24066       # Do we have a bin/java?
24067       if test ! -x "$BOOT_JDK/bin/java"; then
24068         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24069 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24070         BOOT_JDK_FOUND=no
24071       else
24072         # Do we have a bin/javac?
24073         if test ! -x "$BOOT_JDK/bin/javac"; then
24074           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24075 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24076           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24077 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24078           BOOT_JDK_FOUND=no
24079         else
24080           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24081           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24082             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24083 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24084             BOOT_JDK_FOUND=no
24085           else
24086             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24087             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24088 
24089             # Extra M4 quote needed to protect [] in grep expression.
24090             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24091             if test "x$FOUND_VERSION_78" = x; then
24092               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24093 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24094               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24095 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24096               BOOT_JDK_FOUND=no
24097             else
24098               # We're done! :-)
24099               BOOT_JDK_FOUND=yes
24100 
24101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24102 
24103   # Input might be given as Windows format, start by converting to
24104   # unix format.
24105   path="$BOOT_JDK"
24106   new_path=`$CYGPATH -u "$path"`
24107 
24108   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24109   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24110   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24111   # "foo.exe" is OK but "foo" is an error.
24112   #
24113   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24114   # It is also a way to make sure we got the proper file name for the real test later on.
24115   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24116   if test "x$test_shortpath" = x; then
24117     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24118 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24119     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24120   fi
24121 
24122   # Call helper function which possibly converts this using DOS-style short mode.
24123   # If so, the updated path is stored in $new_path.
24124 
24125   input_path="$new_path"
24126   # Check if we need to convert this using DOS-style short mode. If the path
24127   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24128   # take no chances and rewrite it.
24129   # Note: m4 eats our [], so we need to use [ and ] instead.
24130   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24131   if test "x$has_forbidden_chars" != x; then
24132     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24133     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24134     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24135     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24136       # Going to short mode and back again did indeed matter. Since short mode is
24137       # case insensitive, let's make it lowercase to improve readability.
24138       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24139       # Now convert it back to Unix-style (cygpath)
24140       input_path=`$CYGPATH -u "$shortmode_path"`
24141       new_path="$input_path"
24142     fi
24143   fi
24144 
24145   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24146   if test "x$test_cygdrive_prefix" = x; then
24147     # As a simple fix, exclude /usr/bin since it's not a real path.
24148     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24149       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24150       # a path prefixed by /cygdrive for fixpath to work.
24151       new_path="$CYGWIN_ROOT_PATH$input_path"
24152     fi
24153   fi
24154 
24155 
24156   if test "x$path" != "x$new_path"; then
24157     BOOT_JDK="$new_path"
24158     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24159 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24160   fi
24161 
24162   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24163 
24164   path="$BOOT_JDK"
24165   has_colon=`$ECHO $path | $GREP ^.:`
24166   new_path="$path"
24167   if test "x$has_colon" = x; then
24168     # Not in mixed or Windows style, start by that.
24169     new_path=`cmd //c echo $path`
24170   fi
24171 
24172 
24173   input_path="$new_path"
24174   # Check if we need to convert this using DOS-style short mode. If the path
24175   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24176   # take no chances and rewrite it.
24177   # Note: m4 eats our [], so we need to use [ and ] instead.
24178   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24179   if test "x$has_forbidden_chars" != x; then
24180     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24181     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24182   fi
24183 
24184 
24185   windows_path="$new_path"
24186   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24187     unix_path=`$CYGPATH -u "$windows_path"`
24188     new_path="$unix_path"
24189   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24190     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24191     new_path="$unix_path"
24192   fi
24193 
24194   if test "x$path" != "x$new_path"; then
24195     BOOT_JDK="$new_path"
24196     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24197 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24198   fi
24199 
24200   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24201   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24202 
24203   else
24204     # We're on a posix platform. Hooray! :)
24205     path="$BOOT_JDK"
24206     has_space=`$ECHO "$path" | $GREP " "`
24207     if test "x$has_space" != x; then
24208       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24209 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24210       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24211     fi
24212 
24213     # Use eval to expand a potential ~
24214     eval path="$path"
24215     if test ! -f "$path" && test ! -d "$path"; then
24216       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24217     fi
24218 
24219     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24220   fi
24221 
24222               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24223 $as_echo_n "checking for Boot JDK... " >&6; }
24224               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24225 $as_echo "$BOOT_JDK" >&6; }
24226               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24227 $as_echo_n "checking Boot JDK version... " >&6; }
24228               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24229               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24230 $as_echo "$BOOT_JDK_VERSION" >&6; }
24231             fi # end check jdk version
24232           fi # end check rt.jar
24233         fi # end check javac
24234       fi # end check java
24235     fi # end check boot jdk found
24236   fi
24237 
24238     done
24239   fi
24240 
24241 
24242     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24243     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24244       # Do we have a bin/java?
24245       if test ! -x "$BOOT_JDK/bin/java"; then
24246         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24248         BOOT_JDK_FOUND=no
24249       else
24250         # Do we have a bin/javac?
24251         if test ! -x "$BOOT_JDK/bin/javac"; then
24252           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24253 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24254           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24255 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24256           BOOT_JDK_FOUND=no
24257         else
24258           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24259           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24260             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24262             BOOT_JDK_FOUND=no
24263           else
24264             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24265             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24266 
24267             # Extra M4 quote needed to protect [] in grep expression.
24268             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24269             if test "x$FOUND_VERSION_78" = x; then
24270               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24272               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24273 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24274               BOOT_JDK_FOUND=no
24275             else
24276               # We're done! :-)
24277               BOOT_JDK_FOUND=yes
24278 
24279   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24280 
24281   # Input might be given as Windows format, start by converting to
24282   # unix format.
24283   path="$BOOT_JDK"
24284   new_path=`$CYGPATH -u "$path"`
24285 
24286   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24287   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24288   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24289   # "foo.exe" is OK but "foo" is an error.
24290   #
24291   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24292   # It is also a way to make sure we got the proper file name for the real test later on.
24293   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24294   if test "x$test_shortpath" = x; then
24295     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24297     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24298   fi
24299 
24300   # Call helper function which possibly converts this using DOS-style short mode.
24301   # If so, the updated path is stored in $new_path.
24302 
24303   input_path="$new_path"
24304   # Check if we need to convert this using DOS-style short mode. If the path
24305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24306   # take no chances and rewrite it.
24307   # Note: m4 eats our [], so we need to use [ and ] instead.
24308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24309   if test "x$has_forbidden_chars" != x; then
24310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24311     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24312     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24313     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24314       # Going to short mode and back again did indeed matter. Since short mode is
24315       # case insensitive, let's make it lowercase to improve readability.
24316       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24317       # Now convert it back to Unix-style (cygpath)
24318       input_path=`$CYGPATH -u "$shortmode_path"`
24319       new_path="$input_path"
24320     fi
24321   fi
24322 
24323   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24324   if test "x$test_cygdrive_prefix" = x; then
24325     # As a simple fix, exclude /usr/bin since it's not a real path.
24326     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24327       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24328       # a path prefixed by /cygdrive for fixpath to work.
24329       new_path="$CYGWIN_ROOT_PATH$input_path"
24330     fi
24331   fi
24332 
24333 
24334   if test "x$path" != "x$new_path"; then
24335     BOOT_JDK="$new_path"
24336     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24337 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24338   fi
24339 
24340   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24341 
24342   path="$BOOT_JDK"
24343   has_colon=`$ECHO $path | $GREP ^.:`
24344   new_path="$path"
24345   if test "x$has_colon" = x; then
24346     # Not in mixed or Windows style, start by that.
24347     new_path=`cmd //c echo $path`
24348   fi
24349 
24350 
24351   input_path="$new_path"
24352   # Check if we need to convert this using DOS-style short mode. If the path
24353   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24354   # take no chances and rewrite it.
24355   # Note: m4 eats our [], so we need to use [ and ] instead.
24356   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24357   if test "x$has_forbidden_chars" != x; then
24358     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24359     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24360   fi
24361 
24362 
24363   windows_path="$new_path"
24364   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24365     unix_path=`$CYGPATH -u "$windows_path"`
24366     new_path="$unix_path"
24367   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24368     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24369     new_path="$unix_path"
24370   fi
24371 
24372   if test "x$path" != "x$new_path"; then
24373     BOOT_JDK="$new_path"
24374     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24376   fi
24377 
24378   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24379   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24380 
24381   else
24382     # We're on a posix platform. Hooray! :)
24383     path="$BOOT_JDK"
24384     has_space=`$ECHO "$path" | $GREP " "`
24385     if test "x$has_space" != x; then
24386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24388       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24389     fi
24390 
24391     # Use eval to expand a potential ~
24392     eval path="$path"
24393     if test ! -f "$path" && test ! -d "$path"; then
24394       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24395     fi
24396 
24397     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24398   fi
24399 
24400               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24401 $as_echo_n "checking for Boot JDK... " >&6; }
24402               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24403 $as_echo "$BOOT_JDK" >&6; }
24404               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24405 $as_echo_n "checking Boot JDK version... " >&6; }
24406               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24407               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24408 $as_echo "$BOOT_JDK_VERSION" >&6; }
24409             fi # end check jdk version
24410           fi # end check rt.jar
24411         fi # end check javac
24412       fi # end check java
24413     fi # end check boot jdk found
24414   fi
24415 
24416   fi
24417 
24418 
24419     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24420     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24421       # Do we have a bin/java?
24422       if test ! -x "$BOOT_JDK/bin/java"; then
24423         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24424 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24425         BOOT_JDK_FOUND=no
24426       else
24427         # Do we have a bin/javac?
24428         if test ! -x "$BOOT_JDK/bin/javac"; then
24429           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24431           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24432 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24433           BOOT_JDK_FOUND=no
24434         else
24435           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24436           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24437             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24439             BOOT_JDK_FOUND=no
24440           else
24441             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24442             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24443 
24444             # Extra M4 quote needed to protect [] in grep expression.
24445             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24446             if test "x$FOUND_VERSION_78" = x; then
24447               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24449               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24450 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24451               BOOT_JDK_FOUND=no
24452             else
24453               # We're done! :-)
24454               BOOT_JDK_FOUND=yes
24455 
24456   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24457 
24458   # Input might be given as Windows format, start by converting to
24459   # unix format.
24460   path="$BOOT_JDK"
24461   new_path=`$CYGPATH -u "$path"`
24462 
24463   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24464   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24465   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24466   # "foo.exe" is OK but "foo" is an error.
24467   #
24468   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24469   # It is also a way to make sure we got the proper file name for the real test later on.
24470   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24471   if test "x$test_shortpath" = x; then
24472     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24473 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24474     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24475   fi
24476 
24477   # Call helper function which possibly converts this using DOS-style short mode.
24478   # If so, the updated path is stored in $new_path.
24479 
24480   input_path="$new_path"
24481   # Check if we need to convert this using DOS-style short mode. If the path
24482   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24483   # take no chances and rewrite it.
24484   # Note: m4 eats our [], so we need to use [ and ] instead.
24485   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24486   if test "x$has_forbidden_chars" != x; then
24487     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24488     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24489     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24490     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24491       # Going to short mode and back again did indeed matter. Since short mode is
24492       # case insensitive, let's make it lowercase to improve readability.
24493       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24494       # Now convert it back to Unix-style (cygpath)
24495       input_path=`$CYGPATH -u "$shortmode_path"`
24496       new_path="$input_path"
24497     fi
24498   fi
24499 
24500   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24501   if test "x$test_cygdrive_prefix" = x; then
24502     # As a simple fix, exclude /usr/bin since it's not a real path.
24503     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24504       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24505       # a path prefixed by /cygdrive for fixpath to work.
24506       new_path="$CYGWIN_ROOT_PATH$input_path"
24507     fi
24508   fi
24509 
24510 
24511   if test "x$path" != "x$new_path"; then
24512     BOOT_JDK="$new_path"
24513     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24514 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24515   fi
24516 
24517   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24518 
24519   path="$BOOT_JDK"
24520   has_colon=`$ECHO $path | $GREP ^.:`
24521   new_path="$path"
24522   if test "x$has_colon" = x; then
24523     # Not in mixed or Windows style, start by that.
24524     new_path=`cmd //c echo $path`
24525   fi
24526 
24527 
24528   input_path="$new_path"
24529   # Check if we need to convert this using DOS-style short mode. If the path
24530   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24531   # take no chances and rewrite it.
24532   # Note: m4 eats our [], so we need to use [ and ] instead.
24533   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24534   if test "x$has_forbidden_chars" != x; then
24535     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24536     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24537   fi
24538 
24539 
24540   windows_path="$new_path"
24541   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24542     unix_path=`$CYGPATH -u "$windows_path"`
24543     new_path="$unix_path"
24544   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24545     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24546     new_path="$unix_path"
24547   fi
24548 
24549   if test "x$path" != "x$new_path"; then
24550     BOOT_JDK="$new_path"
24551     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24552 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24553   fi
24554 
24555   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24556   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24557 
24558   else
24559     # We're on a posix platform. Hooray! :)
24560     path="$BOOT_JDK"
24561     has_space=`$ECHO "$path" | $GREP " "`
24562     if test "x$has_space" != x; then
24563       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24564 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24565       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24566     fi
24567 
24568     # Use eval to expand a potential ~
24569     eval path="$path"
24570     if test ! -f "$path" && test ! -d "$path"; then
24571       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24572     fi
24573 
24574     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24575   fi
24576 
24577               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24578 $as_echo_n "checking for Boot JDK... " >&6; }
24579               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24580 $as_echo "$BOOT_JDK" >&6; }
24581               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24582 $as_echo_n "checking Boot JDK version... " >&6; }
24583               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24584               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24585 $as_echo "$BOOT_JDK_VERSION" >&6; }
24586             fi # end check jdk version
24587           fi # end check rt.jar
24588         fi # end check javac
24589       fi # end check java
24590     fi # end check boot jdk found
24591   fi
24592 
24593 
24594   # If we haven't found anything yet, we've truly lost. Give up.
24595   if test "x$BOOT_JDK_FOUND" = xno; then
24596 
24597   # Print a helpful message on how to acquire the necessary build dependency.
24598   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24599   MISSING_DEPENDENCY=openjdk
24600 
24601   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24602     cygwin_help $MISSING_DEPENDENCY
24603   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24604     msys_help $MISSING_DEPENDENCY
24605   else
24606     PKGHANDLER_COMMAND=
24607 
24608     case $PKGHANDLER in
24609       apt-get)
24610         apt_help     $MISSING_DEPENDENCY ;;
24611       yum)
24612         yum_help     $MISSING_DEPENDENCY ;;
24613       port)
24614         port_help    $MISSING_DEPENDENCY ;;
24615       pkgutil)
24616         pkgutil_help $MISSING_DEPENDENCY ;;
24617       pkgadd)
24618         pkgadd_help  $MISSING_DEPENDENCY ;;
24619     esac
24620 
24621     if test "x$PKGHANDLER_COMMAND" != x; then
24622       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24623     fi
24624   fi
24625 
24626     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24627 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24628     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24629 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24630     as_fn_error $? "Cannot continue" "$LINENO" 5
24631   fi
24632 
24633   # Setup proper paths for what we found
24634   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24635   if test ! -f "$BOOT_RTJAR"; then
24636     # On MacOSX it is called classes.jar
24637     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24638     if test -f "$BOOT_RTJAR"; then
24639       # Remove the ..
24640       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24641     fi
24642   fi
24643   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24644   BOOT_JDK="$BOOT_JDK"
24645 
24646 
24647 
24648 
24649   # Setup tools from the Boot JDK.
24650 
24651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24652 $as_echo_n "checking for java in Boot JDK... " >&6; }
24653   JAVA=$BOOT_JDK/bin/java
24654   if test ! -x $JAVA; then
24655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24656 $as_echo "not found" >&6; }
24657     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24658 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24659     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24660   fi
24661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24662 $as_echo "ok" >&6; }
24663 
24664 
24665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24666 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24667   JAVAC=$BOOT_JDK/bin/javac
24668   if test ! -x $JAVAC; then
24669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24670 $as_echo "not found" >&6; }
24671     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24672 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24673     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24674   fi
24675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24676 $as_echo "ok" >&6; }
24677 
24678 
24679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24680 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24681   JAVAH=$BOOT_JDK/bin/javah
24682   if test ! -x $JAVAH; then
24683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24684 $as_echo "not found" >&6; }
24685     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24686 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24687     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24688   fi
24689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24690 $as_echo "ok" >&6; }
24691 
24692 
24693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24694 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24695   JAVAP=$BOOT_JDK/bin/javap
24696   if test ! -x $JAVAP; then
24697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24698 $as_echo "not found" >&6; }
24699     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24700 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24701     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24702   fi
24703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24704 $as_echo "ok" >&6; }
24705 
24706 
24707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24708 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24709   JAR=$BOOT_JDK/bin/jar
24710   if test ! -x $JAR; then
24711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24712 $as_echo "not found" >&6; }
24713     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24714 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24715     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24716   fi
24717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24718 $as_echo "ok" >&6; }
24719 
24720 
24721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24722 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24723   RMIC=$BOOT_JDK/bin/rmic
24724   if test ! -x $RMIC; then
24725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24726 $as_echo "not found" >&6; }
24727     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24728 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24729     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24730   fi
24731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24732 $as_echo "ok" >&6; }
24733 
24734 
24735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24736 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24737   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24738   if test ! -x $NATIVE2ASCII; then
24739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24740 $as_echo "not found" >&6; }
24741     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24742 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24743     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24744   fi
24745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24746 $as_echo "ok" >&6; }
24747 
24748 
24749   # Finally, set some other options...
24750 
24751   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24752   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24753 
24754 
24755 
24756   # Check if the boot jdk is 32 or 64 bit
24757   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24758     BOOT_JDK_BITS="64"
24759   else
24760     BOOT_JDK_BITS="32"
24761   fi
24762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24763 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24765 $as_echo "$BOOT_JDK_BITS" >&6; }
24766 
24767 
24768 
24769   ##############################################################################
24770   #
24771   # Specify options for anything that is run with the Boot JDK.
24772   #
24773 
24774 # Check whether --with-boot-jdk-jvmargs was given.
24775 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24776   withval=$with_boot_jdk_jvmargs;
24777 fi
24778 
24779 
24780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24781 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24782 
24783   # Disable special log output when a debug build is used as Boot JDK...
24784 
24785   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24786   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24787   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24788   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24789   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24790   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24791     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24792     JVM_ARG_OK=true
24793   else
24794     $ECHO "Arg failed:" >&5
24795     $ECHO "$OUTPUT" >&5
24796     JVM_ARG_OK=false
24797   fi
24798 
24799 
24800   # Apply user provided options.
24801 
24802   $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
24803   $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
24804   OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
24805   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24806   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24807   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24808     boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
24809     JVM_ARG_OK=true
24810   else
24811     $ECHO "Arg failed:" >&5
24812     $ECHO "$OUTPUT" >&5
24813     JVM_ARG_OK=false
24814   fi
24815 
24816 
24817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
24818 $as_echo "$boot_jdk_jvmargs" >&6; }
24819 
24820   # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
24821   JAVA_FLAGS=$boot_jdk_jvmargs
24822 
24823 
24824 
24825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
24826 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
24827 
24828   # Starting amount of heap memory.
24829 
24830   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
24831   $ECHO "Command: $JAVA -Xms64M -version" >&5
24832   OUTPUT=`$JAVA -Xms64M -version 2>&1`
24833   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24834   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24835   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24836     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
24837     JVM_ARG_OK=true
24838   else
24839     $ECHO "