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 MSVCP_DLL
 644 MSVCR_DLL
 645 LIBCXX
 646 LLVM_LIBS
 647 LLVM_LDFLAGS
 648 LLVM_CFLAGS
 649 LLVM_CONFIG
 650 LIBFFI_LIBS
 651 LIBFFI_CFLAGS
 652 STATIC_CXX_SETTING
 653 LIBDL
 654 LIBM
 655 LIBZIP_CAN_USE_MMAP
 656 USE_EXTERNAL_LIBZ
 657 USE_EXTERNAL_LIBGIF
 658 USE_EXTERNAL_LIBJPEG
 659 ALSA_LIBS
 660 ALSA_CFLAGS
 661 FREETYPE_BUNDLE_LIB_PATH
 662 FREETYPE_LIBS
 663 FREETYPE_CFLAGS
 664 CUPS_CFLAGS
 665 X_EXTRA_LIBS
 666 X_LIBS
 667 X_PRE_LIBS
 668 X_CFLAGS
 669 XMKMF
 670 FIXPATH
 671 ZIP_DEBUGINFO_FILES
 672 ENABLE_DEBUG_SYMBOLS
 673 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 674 ZERO_ARCHFLAG
 675 LDFLAGS_CXX_JDK
 676 LDFLAGS_JDKEXE_SUFFIX
 677 LDFLAGS_JDKLIB_SUFFIX
 678 LDFLAGS_JDKEXE
 679 LDFLAGS_JDKLIB
 680 CXXFLAGS_JDKEXE
 681 CXXFLAGS_JDKLIB
 682 CFLAGS_JDKEXE
 683 CFLAGS_JDKLIB
 684 MACOSX_VERSION_MIN
 685 NO_LIFETIME_DSE_CFLAG
 686 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 687 LEGACY_EXTRA_LDFLAGS
 688 LEGACY_EXTRA_CXXFLAGS
 689 LEGACY_EXTRA_CFLAGS
 690 CXXSTD_CXXFLAG
 691 CXX_O_FLAG_NONE
 692 CXX_O_FLAG_NORM
 693 CXX_O_FLAG_HI
 694 CXX_O_FLAG_HIGHEST
 695 C_O_FLAG_NONE
 696 C_O_FLAG_NORM
 697 C_O_FLAG_HI
 698 C_O_FLAG_HIGHEST
 699 CXXFLAGS_DEBUG_SYMBOLS
 700 CFLAGS_DEBUG_SYMBOLS
 701 CXX_FLAG_DEPS
 702 C_FLAG_DEPS
 703 SET_SHARED_LIBRARY_MAPFILE
 704 SET_SHARED_LIBRARY_NAME
 705 SET_SHARED_LIBRARY_ORIGIN
 706 SET_EXECUTABLE_ORIGIN
 707 SHARED_LIBRARY_FLAGS
 708 CXX_FLAG_REORDER
 709 C_FLAG_REORDER
 710 SYSROOT_LDFLAGS
 711 SYSROOT_CFLAGS
 712 RC_FLAGS
 713 AR_OUT_OPTION
 714 LD_OUT_OPTION
 715 EXE_OUT_OPTION
 716 CC_OUT_OPTION
 717 POST_MCS_CMD
 718 POST_STRIP_CMD
 719 ARFLAGS
 720 COMPILER_TARGET_BITS_FLAG
 721 JT_HOME
 722 JTREGEXE
 723 USING_BROKEN_SUSE_LD
 724 PACKAGE_PATH
 725 LDEXECXX
 726 LDEXE
 727 USE_CLANG
 728 HOTSPOT_LD
 729 HOTSPOT_CXX
 730 HOTSPOT_RC
 731 HOTSPOT_MT
 732 BUILD_LD
 733 BUILD_CXX
 734 BUILD_CC
 735 ac_ct_OBJDUMP
 736 OBJDUMP
 737 ac_ct_OBJCOPY
 738 OBJCOPY
 739 ac_ct_NM
 740 OTOOL
 741 ac_ct_STRIP
 742 MCS
 743 GNM
 744 NM
 745 STRIP
 746 MSBUILD
 747 DUMPBIN
 748 RC
 749 MT
 750 LIPO
 751 ac_ct_OBJC
 752 OBJCFLAGS
 753 OBJC
 754 ac_ct_AR
 755 AR
 756 AS
 757 LDCXX
 758 LD
 759 CXXCPP
 760 CPP
 761 CXX_VERSION_NUMBER
 762 CC_VERSION_NUMBER
 763 ac_ct_CXX
 764 CXXFLAGS
 765 CXX
 766 ac_ct_PROPER_COMPILER_CXX
 767 PROPER_COMPILER_CXX
 768 TOOLCHAIN_PATH_CXX
 769 POTENTIAL_CXX
 770 OBJEXT
 771 EXEEXT
 772 ac_ct_CC
 773 CPPFLAGS
 774 LDFLAGS
 775 CFLAGS
 776 CC
 777 ac_ct_PROPER_COMPILER_CC
 778 PROPER_COMPILER_CC
 779 TOOLCHAIN_PATH_CC
 780 POTENTIAL_CC
 781 SDKPATH
 782 XCODEBUILD
 783 SET_DEVELOPER_DIR
 784 VS_LIB
 785 VS_INCLUDE
 786 VS_PATH
 787 CYGWIN_LINK
 788 EXE_SUFFIX
 789 OBJ_SUFFIX
 790 STATIC_LIBRARY
 791 SHARED_LIBRARY
 792 STATIC_LIBRARY_SUFFIX
 793 SHARED_LIBRARY_SUFFIX
 794 LIBRARY_PREFIX
 795 TOOLCHAIN_TYPE
 796 BUILD_HOTSPOT
 797 HOTSPOT_DIST
 798 BUILD_OUTPUT
 799 OVERRIDE_SRC_ROOT
 800 ADD_SRC_ROOT
 801 JDK_TOPDIR
 802 NASHORN_TOPDIR
 803 HOTSPOT_TOPDIR
 804 JAXWS_TOPDIR
 805 JAXP_TOPDIR
 806 CORBA_TOPDIR
 807 LANGTOOLS_TOPDIR
 808 JAVA_FLAGS_SMALL
 809 JAVA_FLAGS_BIG
 810 JAVA_FLAGS
 811 BOOT_JDK_BITS
 812 JAVAC_FLAGS
 813 BOOT_JDK_SOURCETARGET
 814 BOOT_JDK
 815 BOOT_TOOLSJAR
 816 BOOT_RTJAR
 817 JAVA_CHECK
 818 JAVAC_CHECK
 819 COOKED_BUILD_NUMBER
 820 COOKED_JDK_UPDATE_VERSION
 821 JDK_VERSION
 822 COPYRIGHT_YEAR
 823 MACOSX_BUNDLE_ID_BASE
 824 MACOSX_BUNDLE_NAME_BASE
 825 COMPANY_NAME
 826 JDK_RC_PLATFORM_NAME
 827 PRODUCT_SUFFIX
 828 PRODUCT_NAME
 829 LAUNCHER_NAME
 830 MILESTONE
 831 JDK_BUILD_NUMBER
 832 JDK_UPDATE_VERSION
 833 JDK_MICRO_VERSION
 834 JDK_MINOR_VERSION
 835 JDK_MAJOR_VERSION
 836 USER_RELEASE_SUFFIX
 837 COMPRESS_JARS
 838 UNLIMITED_CRYPTO
 839 CACERTS_FILE
 840 TEST_IN_BUILD
 841 BUILD_HEADLESS
 842 SUPPORT_HEADFUL
 843 SUPPORT_HEADLESS
 844 BDEPS_FTP
 845 BDEPS_UNZIP
 846 OS_VERSION_MICRO
 847 OS_VERSION_MINOR
 848 OS_VERSION_MAJOR
 849 PKG_CONFIG
 850 CODESIGN
 851 XATTR
 852 DSYMUTIL
 853 IS_GNU_TIME
 854 TIME
 855 STAT
 856 HG
 857 READELF
 858 LDD
 859 ZIP
 860 UNZIP
 861 FIND_DELETE
 862 MAKE
 863 CHECK_TOOLSDIR_MAKE
 864 CHECK_TOOLSDIR_GMAKE
 865 CHECK_MAKE
 866 CHECK_GMAKE
 867 PKGHANDLER
 868 OUTPUT_ROOT
 869 CONF_NAME
 870 SPEC
 871 BUILD_VARIANT_RELEASE
 872 DEBUG_CLASSFILES
 873 FASTDEBUG
 874 VARIANT
 875 DEBUG_LEVEL
 876 MACOSX_UNIVERSAL
 877 INCLUDE_SA
 878 JVM_VARIANT_CORE
 879 JVM_VARIANT_ZEROSHARK
 880 JVM_VARIANT_ZERO
 881 JVM_VARIANT_KERNEL
 882 JVM_VARIANT_MINIMAL1
 883 JVM_VARIANT_CLIENT
 884 JVM_VARIANT_SERVER
 885 JVM_VARIANTS
 886 JVM_INTERPRETER
 887 JDK_VARIANT
 888 SET_OPENJDK
 889 BUILD_LOG_WRAPPER
 890 BUILD_LOG_PREVIOUS
 891 BUILD_LOG
 892 TOPDIR
 893 PATH_SEP
 894 ZERO_ARCHDEF
 895 DEFINE_CROSS_COMPILE_ARCH
 896 LP64
 897 OPENJDK_TARGET_OS_EXPORT_DIR
 898 OPENJDK_TARGET_OS_API_DIR
 899 OPENJDK_TARGET_CPU_JLI_CFLAGS
 900 OPENJDK_TARGET_CPU_OSARCH
 901 OPENJDK_TARGET_CPU_ISADIR
 902 OPENJDK_TARGET_CPU_LIBDIR
 903 OPENJDK_TARGET_CPU_LEGACY_LIB
 904 OPENJDK_TARGET_CPU_LEGACY
 905 REQUIRED_OS_VERSION
 906 REQUIRED_OS_NAME
 907 COMPILE_TYPE
 908 OPENJDK_TARGET_CPU_ENDIAN
 909 OPENJDK_TARGET_CPU_BITS
 910 OPENJDK_TARGET_CPU_ARCH
 911 OPENJDK_TARGET_CPU
 912 OPENJDK_TARGET_OS_ENV
 913 OPENJDK_TARGET_OS_API
 914 OPENJDK_TARGET_OS
 915 OPENJDK_BUILD_CPU_ENDIAN
 916 OPENJDK_BUILD_CPU_BITS
 917 OPENJDK_BUILD_CPU_ARCH
 918 OPENJDK_BUILD_CPU
 919 OPENJDK_BUILD_OS_ENV
 920 OPENJDK_BUILD_OS_API
 921 OPENJDK_BUILD_OS
 922 OPENJDK_BUILD_AUTOCONF_NAME
 923 OPENJDK_TARGET_AUTOCONF_NAME
 924 target_os
 925 target_vendor
 926 target_cpu
 927 target
 928 host_os
 929 host_vendor
 930 host_cpu
 931 host
 932 build_os
 933 build_vendor
 934 build_cpu
 935 build
 936 CPIO
 937 SETFILE
 938 DF
 939 READLINK
 940 CYGPATH
 941 SED
 942 FGREP
 943 EGREP
 944 GREP
 945 AWK
 946 XARGS
 947 WHICH
 948 WC
 949 UNIQ
 950 UNAME
 951 TR
 952 TOUCH
 953 TEE
 954 TAR
 955 TAIL
 956 SORT
 957 SH
 958 RM
 959 PRINTF
 960 NAWK
 961 MV
 962 MKTEMP
 963 MKDIR
 964 LS
 965 LN
 966 HEAD
 967 FIND
 968 FILE
 969 EXPR
 970 ECHO
 971 DIRNAME
 972 DIFF
 973 DATE
 974 CUT
 975 CP
 976 COMM
 977 CMP
 978 CHMOD
 979 CAT
 980 BASH
 981 BASENAME
 982 DATE_WHEN_CONFIGURED
 983 CONFIGURE_COMMAND_LINE
 984 CUSTOM_MAKE_DIR
 985 target_alias
 986 host_alias
 987 build_alias
 988 LIBS
 989 ECHO_T
 990 ECHO_N
 991 ECHO_C
 992 DEFS
 993 mandir
 994 localedir
 995 libdir
 996 psdir
 997 pdfdir
 998 dvidir
 999 htmldir
1000 infodir
1001 docdir
1002 oldincludedir
1003 includedir
1004 localstatedir
1005 sharedstatedir
1006 sysconfdir
1007 datadir
1008 datarootdir
1009 libexecdir
1010 sbindir
1011 bindir
1012 program_transform_name
1013 prefix
1014 exec_prefix
1015 PACKAGE_URL
1016 PACKAGE_BUGREPORT
1017 PACKAGE_STRING
1018 PACKAGE_VERSION
1019 PACKAGE_TARNAME
1020 PACKAGE_NAME
1021 PATH_SEPARATOR
1022 SHELL'
1023 ac_subst_files=''
1024 ac_user_opts='
1025 enable_option_checking
1026 with_custom_make_dir
1027 with_target_bits
1028 enable_openjdk_only
1029 with_jdk_variant
1030 with_jvm_interpreter
1031 with_jvm_variants
1032 enable_debug
1033 with_debug_level
1034 with_devkit
1035 with_sys_root
1036 with_sysroot
1037 with_tools_dir
1038 with_toolchain_path
1039 with_extra_path
1040 with_xcode_path
1041 with_conf_name
1042 with_builddeps_conf
1043 with_builddeps_server
1044 with_builddeps_dir
1045 with_builddeps_group
1046 enable_headful
1047 enable_hotspot_test_in_build
1048 with_cacerts_file
1049 enable_unlimited_crypto
1050 with_milestone
1051 with_update_version
1052 with_user_release_suffix
1053 with_build_number
1054 with_copyright_year
1055 with_boot_jdk
1056 with_boot_jdk_jvmargs
1057 with_add_source_root
1058 with_override_source_root
1059 with_adds_and_overrides
1060 with_override_langtools
1061 with_override_corba
1062 with_override_jaxp
1063 with_override_jaxws
1064 with_override_hotspot
1065 with_override_nashorn
1066 with_override_jdk
1067 with_import_hotspot
1068 with_toolchain_type
1069 with_toolchain_version
1070 with_jtreg
1071 with_extra_cflags
1072 with_extra_cxxflags
1073 with_extra_ldflags
1074 enable_debug_symbols
1075 enable_zip_debug_info
1076 enable_macosx_runtime_support
1077 with_x
1078 with_cups
1079 with_cups_include
1080 with_freetype
1081 with_freetype_include
1082 with_freetype_lib
1083 with_freetype_src
1084 enable_freetype_bundling
1085 with_alsa
1086 with_alsa_include
1087 with_alsa_lib
1088 with_giflib
1089 with_zlib
1090 with_stdc__lib
1091 with_msvcr_dll
1092 with_msvcp_dll
1093 with_dxsdk
1094 with_dxsdk_lib
1095 with_dxsdk_include
1096 with_num_cores
1097 with_memory_size
1098 with_jobs
1099 with_sjavac_server_java
1100 enable_sjavac
1101 enable_precompiled_headers
1102 enable_ccache
1103 with_ccache_dir
1104 '
1105       ac_precious_vars='build_alias
1106 host_alias
1107 target_alias
1108 BASENAME
1109 BASH
1110 CAT
1111 CHMOD
1112 CMP
1113 COMM
1114 CP
1115 CUT
1116 DATE
1117 DIFF
1118 DIRNAME
1119 ECHO
1120 EXPR
1121 FILE
1122 FIND
1123 HEAD
1124 LN
1125 LS
1126 MKDIR
1127 MKTEMP
1128 MV
1129 NAWK
1130 PRINTF
1131 RM
1132 SH
1133 SORT
1134 TAIL
1135 TAR
1136 TEE
1137 TOUCH
1138 TR
1139 UNAME
1140 UNIQ
1141 WC
1142 WHICH
1143 XARGS
1144 AWK
1145 GREP
1146 EGREP
1147 FGREP
1148 SED
1149 CYGPATH
1150 READLINK
1151 DF
1152 SETFILE
1153 CPIO
1154 UNZIP
1155 ZIP
1156 LDD
1157 READELF
1158 HG
1159 STAT
1160 TIME
1161 DSYMUTIL
1162 XATTR
1163 CODESIGN
1164 PKG_CONFIG
1165 CC
1166 CFLAGS
1167 LDFLAGS
1168 LIBS
1169 CPPFLAGS
1170 CXX
1171 CXXFLAGS
1172 CCC
1173 CPP
1174 CXXCPP
1175 AS
1176 AR
1177 OBJC
1178 OBJCFLAGS
1179 LIPO
1180 STRIP
1181 NM
1182 GNM
1183 MCS
1184 OBJCOPY
1185 OBJDUMP
1186 BUILD_CC
1187 BUILD_CXX
1188 BUILD_LD
1189 JTREGEXE
1190 XMKMF
1191 FREETYPE_CFLAGS
1192 FREETYPE_LIBS
1193 ALSA_CFLAGS
1194 ALSA_LIBS
1195 LIBFFI_CFLAGS
1196 LIBFFI_LIBS
1197 CCACHE'
1198 
1199 
1200 # Initialize some variables set by options.
1201 ac_init_help=
1202 ac_init_version=false
1203 ac_unrecognized_opts=
1204 ac_unrecognized_sep=
1205 # The variables have the same names as the options, with
1206 # dashes changed to underlines.
1207 cache_file=/dev/null
1208 exec_prefix=NONE
1209 no_create=
1210 no_recursion=
1211 prefix=NONE
1212 program_prefix=NONE
1213 program_suffix=NONE
1214 program_transform_name=s,x,x,
1215 silent=
1216 site=
1217 srcdir=
1218 verbose=
1219 x_includes=NONE
1220 x_libraries=NONE
1221 
1222 # Installation directory options.
1223 # These are left unexpanded so users can "make install exec_prefix=/foo"
1224 # and all the variables that are supposed to be based on exec_prefix
1225 # by default will actually change.
1226 # Use braces instead of parens because sh, perl, etc. also accept them.
1227 # (The list follows the same order as the GNU Coding Standards.)
1228 bindir='${exec_prefix}/bin'
1229 sbindir='${exec_prefix}/sbin'
1230 libexecdir='${exec_prefix}/libexec'
1231 datarootdir='${prefix}/share'
1232 datadir='${datarootdir}'
1233 sysconfdir='${prefix}/etc'
1234 sharedstatedir='${prefix}/com'
1235 localstatedir='${prefix}/var'
1236 includedir='${prefix}/include'
1237 oldincludedir='/usr/include'
1238 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1239 infodir='${datarootdir}/info'
1240 htmldir='${docdir}'
1241 dvidir='${docdir}'
1242 pdfdir='${docdir}'
1243 psdir='${docdir}'
1244 libdir='${exec_prefix}/lib'
1245 localedir='${datarootdir}/locale'
1246 mandir='${datarootdir}/man'
1247 
1248 ac_prev=
1249 ac_dashdash=
1250 for ac_option
1251 do
1252   # If the previous option needs an argument, assign it.
1253   if test -n "$ac_prev"; then
1254     eval $ac_prev=\$ac_option
1255     ac_prev=
1256     continue
1257   fi
1258 
1259   case $ac_option in
1260   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1261   *=)   ac_optarg= ;;
1262   *)    ac_optarg=yes ;;
1263   esac
1264 
1265   # Accept the important Cygnus configure options, so we can diagnose typos.
1266 
1267   case $ac_dashdash$ac_option in
1268   --)
1269     ac_dashdash=yes ;;
1270 
1271   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1272     ac_prev=bindir ;;
1273   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1274     bindir=$ac_optarg ;;
1275 
1276   -build | --build | --buil | --bui | --bu)
1277     ac_prev=build_alias ;;
1278   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1279     build_alias=$ac_optarg ;;
1280 
1281   -cache-file | --cache-file | --cache-fil | --cache-fi \
1282   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1283     ac_prev=cache_file ;;
1284   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1285   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1286     cache_file=$ac_optarg ;;
1287 
1288   --config-cache | -C)
1289     cache_file=config.cache ;;
1290 
1291   -datadir | --datadir | --datadi | --datad)
1292     ac_prev=datadir ;;
1293   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1294     datadir=$ac_optarg ;;
1295 
1296   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1297   | --dataroo | --dataro | --datar)
1298     ac_prev=datarootdir ;;
1299   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1300   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1301     datarootdir=$ac_optarg ;;
1302 
1303   -disable-* | --disable-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error $? "invalid feature name: $ac_useropt"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "enable_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval enable_$ac_useropt=no ;;
1318 
1319   -docdir | --docdir | --docdi | --doc | --do)
1320     ac_prev=docdir ;;
1321   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1322     docdir=$ac_optarg ;;
1323 
1324   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1325     ac_prev=dvidir ;;
1326   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1327     dvidir=$ac_optarg ;;
1328 
1329   -enable-* | --enable-*)
1330     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333       as_fn_error $? "invalid feature name: $ac_useropt"
1334     ac_useropt_orig=$ac_useropt
1335     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336     case $ac_user_opts in
1337       *"
1338 "enable_$ac_useropt"
1339 "*) ;;
1340       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1341          ac_unrecognized_sep=', ';;
1342     esac
1343     eval enable_$ac_useropt=\$ac_optarg ;;
1344 
1345   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1346   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1347   | --exec | --exe | --ex)
1348     ac_prev=exec_prefix ;;
1349   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1350   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1351   | --exec=* | --exe=* | --ex=*)
1352     exec_prefix=$ac_optarg ;;
1353 
1354   -gas | --gas | --ga | --g)
1355     # Obsolete; use --with-gas.
1356     with_gas=yes ;;
1357 
1358   -help | --help | --hel | --he | -h)
1359     ac_init_help=long ;;
1360   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1361     ac_init_help=recursive ;;
1362   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1363     ac_init_help=short ;;
1364 
1365   -host | --host | --hos | --ho)
1366     ac_prev=host_alias ;;
1367   -host=* | --host=* | --hos=* | --ho=*)
1368     host_alias=$ac_optarg ;;
1369 
1370   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1371     ac_prev=htmldir ;;
1372   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1373   | --ht=*)
1374     htmldir=$ac_optarg ;;
1375 
1376   -includedir | --includedir | --includedi | --included | --include \
1377   | --includ | --inclu | --incl | --inc)
1378     ac_prev=includedir ;;
1379   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1380   | --includ=* | --inclu=* | --incl=* | --inc=*)
1381     includedir=$ac_optarg ;;
1382 
1383   -infodir | --infodir | --infodi | --infod | --info | --inf)
1384     ac_prev=infodir ;;
1385   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1386     infodir=$ac_optarg ;;
1387 
1388   -libdir | --libdir | --libdi | --libd)
1389     ac_prev=libdir ;;
1390   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1391     libdir=$ac_optarg ;;
1392 
1393   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1394   | --libexe | --libex | --libe)
1395     ac_prev=libexecdir ;;
1396   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1397   | --libexe=* | --libex=* | --libe=*)
1398     libexecdir=$ac_optarg ;;
1399 
1400   -localedir | --localedir | --localedi | --localed | --locale)
1401     ac_prev=localedir ;;
1402   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1403     localedir=$ac_optarg ;;
1404 
1405   -localstatedir | --localstatedir | --localstatedi | --localstated \
1406   | --localstate | --localstat | --localsta | --localst | --locals)
1407     ac_prev=localstatedir ;;
1408   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1409   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1410     localstatedir=$ac_optarg ;;
1411 
1412   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1413     ac_prev=mandir ;;
1414   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1415     mandir=$ac_optarg ;;
1416 
1417   -nfp | --nfp | --nf)
1418     # Obsolete; use --without-fp.
1419     with_fp=no ;;
1420 
1421   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1422   | --no-cr | --no-c | -n)
1423     no_create=yes ;;
1424 
1425   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1426   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1427     no_recursion=yes ;;
1428 
1429   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1430   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1431   | --oldin | --oldi | --old | --ol | --o)
1432     ac_prev=oldincludedir ;;
1433   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1434   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1435   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1436     oldincludedir=$ac_optarg ;;
1437 
1438   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1439     ac_prev=prefix ;;
1440   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1441     prefix=$ac_optarg ;;
1442 
1443   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1444   | --program-pre | --program-pr | --program-p)
1445     ac_prev=program_prefix ;;
1446   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1447   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1448     program_prefix=$ac_optarg ;;
1449 
1450   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1451   | --program-suf | --program-su | --program-s)
1452     ac_prev=program_suffix ;;
1453   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1454   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1455     program_suffix=$ac_optarg ;;
1456 
1457   -program-transform-name | --program-transform-name \
1458   | --program-transform-nam | --program-transform-na \
1459   | --program-transform-n | --program-transform- \
1460   | --program-transform | --program-transfor \
1461   | --program-transfo | --program-transf \
1462   | --program-trans | --program-tran \
1463   | --progr-tra | --program-tr | --program-t)
1464     ac_prev=program_transform_name ;;
1465   -program-transform-name=* | --program-transform-name=* \
1466   | --program-transform-nam=* | --program-transform-na=* \
1467   | --program-transform-n=* | --program-transform-=* \
1468   | --program-transform=* | --program-transfor=* \
1469   | --program-transfo=* | --program-transf=* \
1470   | --program-trans=* | --program-tran=* \
1471   | --progr-tra=* | --program-tr=* | --program-t=*)
1472     program_transform_name=$ac_optarg ;;
1473 
1474   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1475     ac_prev=pdfdir ;;
1476   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1477     pdfdir=$ac_optarg ;;
1478 
1479   -psdir | --psdir | --psdi | --psd | --ps)
1480     ac_prev=psdir ;;
1481   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1482     psdir=$ac_optarg ;;
1483 
1484   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485   | -silent | --silent | --silen | --sile | --sil)
1486     silent=yes ;;
1487 
1488   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1489     ac_prev=sbindir ;;
1490   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1491   | --sbi=* | --sb=*)
1492     sbindir=$ac_optarg ;;
1493 
1494   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1495   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1496   | --sharedst | --shareds | --shared | --share | --shar \
1497   | --sha | --sh)
1498     ac_prev=sharedstatedir ;;
1499   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1500   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1501   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1502   | --sha=* | --sh=*)
1503     sharedstatedir=$ac_optarg ;;
1504 
1505   -site | --site | --sit)
1506     ac_prev=site ;;
1507   -site=* | --site=* | --sit=*)
1508     site=$ac_optarg ;;
1509 
1510   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1511     ac_prev=srcdir ;;
1512   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1513     srcdir=$ac_optarg ;;
1514 
1515   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1516   | --syscon | --sysco | --sysc | --sys | --sy)
1517     ac_prev=sysconfdir ;;
1518   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1519   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1520     sysconfdir=$ac_optarg ;;
1521 
1522   -target | --target | --targe | --targ | --tar | --ta | --t)
1523     ac_prev=target_alias ;;
1524   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1525     target_alias=$ac_optarg ;;
1526 
1527   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1528     verbose=yes ;;
1529 
1530   -version | --version | --versio | --versi | --vers | -V)
1531     ac_init_version=: ;;
1532 
1533   -with-* | --with-*)
1534     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1535     # Reject names that are not valid shell variable names.
1536     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1537       as_fn_error $? "invalid package name: $ac_useropt"
1538     ac_useropt_orig=$ac_useropt
1539     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1540     case $ac_user_opts in
1541       *"
1542 "with_$ac_useropt"
1543 "*) ;;
1544       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1545          ac_unrecognized_sep=', ';;
1546     esac
1547     eval with_$ac_useropt=\$ac_optarg ;;
1548 
1549   -without-* | --without-*)
1550     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1551     # Reject names that are not valid shell variable names.
1552     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1553       as_fn_error $? "invalid package name: $ac_useropt"
1554     ac_useropt_orig=$ac_useropt
1555     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1556     case $ac_user_opts in
1557       *"
1558 "with_$ac_useropt"
1559 "*) ;;
1560       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1561          ac_unrecognized_sep=', ';;
1562     esac
1563     eval with_$ac_useropt=no ;;
1564 
1565   --x)
1566     # Obsolete; use --with-x.
1567     with_x=yes ;;
1568 
1569   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1570   | --x-incl | --x-inc | --x-in | --x-i)
1571     ac_prev=x_includes ;;
1572   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1573   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1574     x_includes=$ac_optarg ;;
1575 
1576   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1577   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1578     ac_prev=x_libraries ;;
1579   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1580   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1581     x_libraries=$ac_optarg ;;
1582 
1583   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1584 Try \`$0 --help' for more information"
1585     ;;
1586 
1587   *=*)
1588     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1589     # Reject names that are not valid shell variable names.
1590     case $ac_envvar in #(
1591       '' | [0-9]* | *[!_$as_cr_alnum]* )
1592       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1593     esac
1594     eval $ac_envvar=\$ac_optarg
1595     export $ac_envvar ;;
1596 
1597   *)
1598     # FIXME: should be removed in autoconf 3.0.
1599     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1600     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1601       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1602     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1603     ;;
1604 
1605   esac
1606 done
1607 
1608 if test -n "$ac_prev"; then
1609   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1610   as_fn_error $? "missing argument to $ac_option"
1611 fi
1612 
1613 if test -n "$ac_unrecognized_opts"; then
1614   case $enable_option_checking in
1615     no) ;;
1616     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1617     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1618   esac
1619 fi
1620 
1621 # Check all directory arguments for consistency.
1622 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1623                 datadir sysconfdir sharedstatedir localstatedir includedir \
1624                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1625                 libdir localedir mandir
1626 do
1627   eval ac_val=\$$ac_var
1628   # Remove trailing slashes.
1629   case $ac_val in
1630     */ )
1631       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1632       eval $ac_var=\$ac_val;;
1633   esac
1634   # Be sure to have absolute directory names.
1635   case $ac_val in
1636     [\\/$]* | ?:[\\/]* )  continue;;
1637     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1638   esac
1639   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1640 done
1641 
1642 # There might be people who depend on the old broken behavior: `$host'
1643 # used to hold the argument of --host etc.
1644 # FIXME: To remove some day.
1645 build=$build_alias
1646 host=$host_alias
1647 target=$target_alias
1648 
1649 # FIXME: To remove some day.
1650 if test "x$host_alias" != x; then
1651   if test "x$build_alias" = x; then
1652     cross_compiling=maybe
1653   elif test "x$build_alias" != "x$host_alias"; then
1654     cross_compiling=yes
1655   fi
1656 fi
1657 
1658 ac_tool_prefix=
1659 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1660 
1661 test "$silent" = yes && exec 6>/dev/null
1662 
1663 
1664 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1665 ac_ls_di=`ls -di .` &&
1666 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1667   as_fn_error $? "working directory cannot be determined"
1668 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1669   as_fn_error $? "pwd does not report name of working directory"
1670 
1671 
1672 # Find the source files, if location was not specified.
1673 if test -z "$srcdir"; then
1674   ac_srcdir_defaulted=yes
1675   # Try the directory containing this script, then the parent directory.
1676   ac_confdir=`$as_dirname -- "$as_myself" ||
1677 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1678          X"$as_myself" : 'X\(//\)[^/]' \| \
1679          X"$as_myself" : 'X\(//\)$' \| \
1680          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1681 $as_echo X"$as_myself" |
1682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1683             s//\1/
1684             q
1685           }
1686           /^X\(\/\/\)[^/].*/{
1687             s//\1/
1688             q
1689           }
1690           /^X\(\/\/\)$/{
1691             s//\1/
1692             q
1693           }
1694           /^X\(\/\).*/{
1695             s//\1/
1696             q
1697           }
1698           s/.*/./; q'`
1699   srcdir=$ac_confdir
1700   if test ! -r "$srcdir/$ac_unique_file"; then
1701     srcdir=..
1702   fi
1703 else
1704   ac_srcdir_defaulted=no
1705 fi
1706 if test ! -r "$srcdir/$ac_unique_file"; then
1707   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1708   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1709 fi
1710 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1711 ac_abs_confdir=`(
1712         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1713         pwd)`
1714 # When building in place, set srcdir=.
1715 if test "$ac_abs_confdir" = "$ac_pwd"; then
1716   srcdir=.
1717 fi
1718 # Remove unnecessary trailing slashes from srcdir.
1719 # Double slashes in file names in object file debugging info
1720 # mess up M-x gdb in Emacs.
1721 case $srcdir in
1722 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1723 esac
1724 for ac_var in $ac_precious_vars; do
1725   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1726   eval ac_env_${ac_var}_value=\$${ac_var}
1727   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1728   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1729 done
1730 
1731 #
1732 # Report the --help message.
1733 #
1734 if test "$ac_init_help" = "long"; then
1735   # Omit some internal or obsolete options to make the list less imposing.
1736   # This message is too long to be a string in the A/UX 3.1 sh.
1737   cat <<_ACEOF
1738 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1739 
1740 Usage: $0 [OPTION]... [VAR=VALUE]...
1741 
1742 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1743 VAR=VALUE.  See below for descriptions of some of the useful variables.
1744 
1745 Defaults for the options are specified in brackets.
1746 
1747 Configuration:
1748   -h, --help              display this help and exit
1749       --help=short        display options specific to this package
1750       --help=recursive    display the short help of all the included packages
1751   -V, --version           display version information and exit
1752   -q, --quiet, --silent   do not print \`checking ...' messages
1753       --cache-file=FILE   cache test results in FILE [disabled]
1754   -C, --config-cache      alias for \`--cache-file=config.cache'
1755   -n, --no-create         do not create output files
1756       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1757 
1758 Installation directories:
1759   --prefix=PREFIX         install architecture-independent files in PREFIX
1760                           [$ac_default_prefix]
1761   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1762                           [PREFIX]
1763 
1764 By default, \`make install' will install all the files in
1765 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1766 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1767 for instance \`--prefix=\$HOME'.
1768 
1769 For better control, use the options below.
1770 
1771 Fine tuning of the installation directories:
1772   --bindir=DIR            user executables [EPREFIX/bin]
1773   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1774   --libexecdir=DIR        program executables [EPREFIX/libexec]
1775   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1776   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1777   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1778   --libdir=DIR            object code libraries [EPREFIX/lib]
1779   --includedir=DIR        C header files [PREFIX/include]
1780   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1781   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1782   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1783   --infodir=DIR           info documentation [DATAROOTDIR/info]
1784   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1785   --mandir=DIR            man documentation [DATAROOTDIR/man]
1786   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1787   --htmldir=DIR           html documentation [DOCDIR]
1788   --dvidir=DIR            dvi documentation [DOCDIR]
1789   --pdfdir=DIR            pdf documentation [DOCDIR]
1790   --psdir=DIR             ps documentation [DOCDIR]
1791 _ACEOF
1792 
1793   cat <<\_ACEOF
1794 
1795 X features:
1796   --x-includes=DIR    X include files are in DIR
1797   --x-libraries=DIR   X library files are in DIR
1798 
1799 System types:
1800   --build=BUILD     configure for building on BUILD [guessed]
1801   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1802   --target=TARGET   configure for building compilers for TARGET [HOST]
1803 _ACEOF
1804 fi
1805 
1806 if test -n "$ac_init_help"; then
1807   case $ac_init_help in
1808      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1809    esac
1810   cat <<\_ACEOF
1811 
1812 Optional Features:
1813   --disable-option-checking  ignore unrecognized --enable/--with options
1814   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1815   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1816   --enable-openjdk-only   suppress building custom source even if present
1817                           [disabled]
1818   --enable-debug          set the debug level to fastdebug (shorthand for
1819                           --with-debug-level=fastdebug) [disabled]
1820   --disable-headful       disable building headful support (graphical UI
1821                           support) [enabled]
1822   --enable-hotspot-test-in-build
1823                           run the Queens test after Hotspot build [disabled]
1824   --enable-unlimited-crypto
1825                           Enable unlimited crypto policy [disabled]
1826   --disable-debug-symbols disable generation of debug symbols [enabled]
1827   --disable-zip-debug-info
1828                           disable zipping of debug-info files [enabled]
1829   --enable-macosx-runtime-support
1830                           Deprecated. Option is kept for backwards
1831                           compatibility and is ignored
1832   --disable-freetype-bundling
1833                           disable bundling of the freetype library with the
1834                           build result [enabled on Windows or when using
1835                           --with-freetype, disabled otherwise]
1836   --enable-sjavac         use sjavac to do fast incremental compiles
1837                           [disabled]
1838   --disable-precompiled-headers
1839                           disable using precompiled headers when compiling C++
1840                           [enabled]
1841   --enable-ccache         enable using ccache to speed up recompilations
1842                           [disabled]
1843 
1844 Optional Packages:
1845   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1846   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1847   --with-custom-make-dir  use this directory for custom build/make files
1848   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1849                           support it), e.g. --with-target-bits=32 [guessed]
1850   --with-jdk-variant      JDK variant to build (normal) [normal]
1851   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1852   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1853                           client, minimal1, kernel, zero, zeroshark, core)
1854                           [server]
1855   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1856                           [release]
1857   --with-devkit           use this devkit for compilers, tools and resources
1858   --with-sys-root         alias for --with-sysroot for backwards compatability
1859   --with-sysroot          use this directory as sysroot)
1860   --with-tools-dir        alias for --with-toolchain-path for backwards
1861                           compatibility
1862   --with-toolchain-path   prepend these directories when searching for
1863                           toolchain binaries (compilers etc)
1864   --with-extra-path       prepend these directories to the default path
1865   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1866                           10.9 and later)
1867   --with-conf-name        use this as the name of the configuration [generated
1868                           from important configuration options]
1869   --with-builddeps-conf   use this configuration file for the builddeps
1870   --with-builddeps-server download and use build dependencies from this server
1871                           url
1872   --with-builddeps-dir    store downloaded build dependencies here
1873                           [/localhome/builddeps]
1874   --with-builddeps-group  chgrp the downloaded build dependencies to this
1875                           group
1876   --with-cacerts-file     specify alternative cacerts file
1877   --with-milestone        Set milestone value for build [internal]
1878   --with-update-version   Set update version value for build [b00]
1879   --with-user-release-suffix
1880                           Add a custom string to the version string if build
1881                           number isn't set.[username_builddateb00]
1882   --with-build-number     Set build number value for build [b00]
1883   --with-copyright-year   Set copyright year value for build [current year]
1884   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1885   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1886                           invocations of the Boot JDK, overriding the default
1887                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1888                           -enableassertions"
1889   --with-add-source-root  for each and every source directory, look in this
1890                           additional source root for the same directory; if it
1891                           exists and have files in it, include it in the build
1892   --with-override-source-root
1893                           for each and every source directory, look in this
1894                           override source root for the same directory; if it
1895                           exists, use that directory instead and ignore the
1896                           directory in the original source root
1897   --with-adds-and-overrides
1898                           use the subdirs 'adds' and 'overrides' in the
1899                           specified directory as add-source-root and
1900                           override-source-root
1901   --with-override-langtools
1902                           use this langtools dir for the build
1903   --with-override-corba   use this corba dir for the build
1904   --with-override-jaxp    use this jaxp dir for the build
1905   --with-override-jaxws   use this jaxws dir for the build
1906   --with-override-hotspot use this hotspot dir for the build
1907   --with-override-nashorn use this nashorn dir for the build
1908   --with-override-jdk     use this jdk dir for the build
1909   --with-import-hotspot   import hotspot binaries from this jdk image or
1910                           hotspot build dist dir instead of building from
1911                           source
1912   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1913                           to show possible values [platform dependent]
1914   --with-toolchain-version
1915                           the version of the toolchain to look for, use
1916                           '--help' to show possible values [platform
1917                           dependent]
1918   --with-jtreg            Regression Test Harness [probed]
1919   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1920   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1921   --with-extra-ldflags    extra flags to be used when linking jdk
1922   --with-x                use the X Window System
1923   --with-cups             specify prefix directory for the cups package
1924                           (expecting the headers under PATH/include)
1925   --with-cups-include     specify directory for the cups include files
1926   --with-freetype         specify prefix directory for the freetype package
1927                           (expecting the libraries under PATH/lib and the
1928                           headers under PATH/include)
1929   --with-freetype-include specify directory for the freetype include files
1930   --with-freetype-lib     specify directory for the freetype library
1931   --with-freetype-src     specify directory with freetype sources to
1932                           automatically build the library (experimental,
1933                           Windows-only)
1934   --with-alsa             specify prefix directory for the alsa package
1935                           (expecting the libraries under PATH/lib and the
1936                           headers under PATH/include)
1937   --with-alsa-include     specify directory for the alsa include files
1938   --with-alsa-lib         specify directory for the alsa library
1939   --with-giflib           use giflib from build system or OpenJDK source
1940                           (system, bundled) [bundled]
1941   --with-zlib             use zlib from build system or OpenJDK source
1942                           (system, bundled) [bundled]
1943   --with-stdc++lib=<static>,<dynamic>,<default>
1944                           force linking of the C++ runtime on Linux to either
1945                           static or dynamic, default is static with dynamic as
1946                           fallback
1947   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1948                           (Windows only) [probed]
1949   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1950                           (Windows only) [probed]
1951   --with-dxsdk            Deprecated. Option is kept for backwards
1952                           compatibility and is ignored
1953   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1954                           compatibility and is ignored
1955   --with-dxsdk-include    Deprecated. Option is kept for backwards
1956                           compatibility and is ignored
1957   --with-num-cores        number of cores in the build system, e.g.
1958                           --with-num-cores=8 [probed]
1959   --with-memory-size      memory (in MB) available in the build system, e.g.
1960                           --with-memory-size=1024 [probed]
1961   --with-jobs             number of parallel jobs to let make run [calculated
1962                           based on cores and memory]
1963   --with-sjavac-server-java
1964                           use this java binary for running the sjavac
1965                           background server [Boot JDK java]
1966   --with-ccache-dir       where to store ccache files [~/.ccache]
1967 
1968 Some influential environment variables:
1969   BASENAME    Override default value for BASENAME
1970   BASH        Override default value for BASH
1971   CAT         Override default value for CAT
1972   CHMOD       Override default value for CHMOD
1973   CMP         Override default value for CMP
1974   COMM        Override default value for COMM
1975   CP          Override default value for CP
1976   CUT         Override default value for CUT
1977   DATE        Override default value for DATE
1978   DIFF        Override default value for DIFF
1979   DIRNAME     Override default value for DIRNAME
1980   ECHO        Override default value for ECHO
1981   EXPR        Override default value for EXPR
1982   FILE        Override default value for FILE
1983   FIND        Override default value for FIND
1984   HEAD        Override default value for HEAD
1985   LN          Override default value for LN
1986   LS          Override default value for LS
1987   MKDIR       Override default value for MKDIR
1988   MKTEMP      Override default value for MKTEMP
1989   MV          Override default value for MV
1990   NAWK        Override default value for NAWK
1991   PRINTF      Override default value for PRINTF
1992   RM          Override default value for RM
1993   SH          Override default value for SH
1994   SORT        Override default value for SORT
1995   TAIL        Override default value for TAIL
1996   TAR         Override default value for TAR
1997   TEE         Override default value for TEE
1998   TOUCH       Override default value for TOUCH
1999   TR          Override default value for TR
2000   UNAME       Override default value for UNAME
2001   UNIQ        Override default value for UNIQ
2002   WC          Override default value for WC
2003   WHICH       Override default value for WHICH
2004   XARGS       Override default value for XARGS
2005   AWK         Override default value for AWK
2006   GREP        Override default value for GREP
2007   EGREP       Override default value for EGREP
2008   FGREP       Override default value for FGREP
2009   SED         Override default value for SED
2010   CYGPATH     Override default value for CYGPATH
2011   READLINK    Override default value for READLINK
2012   DF          Override default value for DF
2013   SETFILE     Override default value for SETFILE
2014   CPIO        Override default value for CPIO
2015   UNZIP       Override default value for UNZIP
2016   ZIP         Override default value for ZIP
2017   LDD         Override default value for LDD
2018   READELF     Override default value for READELF
2019   HG          Override default value for HG
2020   STAT        Override default value for STAT
2021   TIME        Override default value for TIME
2022   DSYMUTIL    Override default value for DSYMUTIL
2023   XATTR       Override default value for XATTR
2024   CODESIGN    Override default value for CODESIGN
2025   PKG_CONFIG  path to pkg-config utility
2026   CC          C compiler command
2027   CFLAGS      C compiler flags
2028   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2029               nonstandard directory <lib dir>
2030   LIBS        libraries to pass to the linker, e.g. -l<library>
2031   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2032               you have headers in a nonstandard directory <include dir>
2033   CXX         C++ compiler command
2034   CXXFLAGS    C++ compiler flags
2035   CPP         C preprocessor
2036   CXXCPP      C++ preprocessor
2037   AS          Override default value for AS
2038   AR          Override default value for AR
2039   OBJC        Objective C compiler command
2040   OBJCFLAGS   Objective C compiler flags
2041   LIPO        Override default value for LIPO
2042   STRIP       Override default value for STRIP
2043   NM          Override default value for NM
2044   GNM         Override default value for GNM
2045   MCS         Override default value for MCS
2046   OBJCOPY     Override default value for OBJCOPY
2047   OBJDUMP     Override default value for OBJDUMP
2048   BUILD_CC    Override default value for BUILD_CC
2049   BUILD_CXX   Override default value for BUILD_CXX
2050   BUILD_LD    Override default value for BUILD_LD
2051   JTREGEXE    Override default value for JTREGEXE
2052   XMKMF       Path to xmkmf, Makefile generator for X Window System
2053   FREETYPE_CFLAGS
2054               C compiler flags for FREETYPE, overriding pkg-config
2055   FREETYPE_LIBS
2056               linker flags for FREETYPE, overriding pkg-config
2057   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2058   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2059   LIBFFI_CFLAGS
2060               C compiler flags for LIBFFI, overriding pkg-config
2061   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2062   CCACHE      Override default value for CCACHE
2063 
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2066 
2067 Report bugs to <build-dev@openjdk.java.net>.
2068 OpenJDK home page: <http://openjdk.java.net>.
2069 _ACEOF
2070 ac_status=$?
2071 fi
2072 
2073 if test "$ac_init_help" = "recursive"; then
2074   # If there are subdirs, report their specific --help.
2075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076     test -d "$ac_dir" ||
2077       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2078       continue
2079     ac_builddir=.
2080 
2081 case "$ac_dir" in
2082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 *)
2084   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2085   # A ".." for each directory in $ac_dir_suffix.
2086   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2087   case $ac_top_builddir_sub in
2088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2090   esac ;;
2091 esac
2092 ac_abs_top_builddir=$ac_pwd
2093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2094 # for backward compatibility:
2095 ac_top_builddir=$ac_top_build_prefix
2096 
2097 case $srcdir in
2098   .)  # We are building in place.
2099     ac_srcdir=.
2100     ac_top_srcdir=$ac_top_builddir_sub
2101     ac_abs_top_srcdir=$ac_pwd ;;
2102   [\\/]* | ?:[\\/]* )  # Absolute name.
2103     ac_srcdir=$srcdir$ac_dir_suffix;
2104     ac_top_srcdir=$srcdir
2105     ac_abs_top_srcdir=$srcdir ;;
2106   *) # Relative name.
2107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2108     ac_top_srcdir=$ac_top_build_prefix$srcdir
2109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 esac
2111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2112 
2113     cd "$ac_dir" || { ac_status=$?; continue; }
2114     # Check for guested configure.
2115     if test -f "$ac_srcdir/configure.gnu"; then
2116       echo &&
2117       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2118     elif test -f "$ac_srcdir/configure"; then
2119       echo &&
2120       $SHELL "$ac_srcdir/configure" --help=recursive
2121     else
2122       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123     fi || ac_status=$?
2124     cd "$ac_pwd" || { ac_status=$?; break; }
2125   done
2126 fi
2127 
2128 test -n "$ac_init_help" && exit $ac_status
2129 if $ac_init_version; then
2130   cat <<\_ACEOF
2131 OpenJDK configure jdk8
2132 generated by GNU Autoconf 2.69
2133 
2134 Copyright (C) 2012 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2137 _ACEOF
2138   exit
2139 fi
2140 
2141 ## ------------------------ ##
2142 ## Autoconf initialization. ##
2143 ## ------------------------ ##
2144 
2145 # ac_fn_c_try_compile LINENO
2146 # --------------------------
2147 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_compile ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   rm -f conftest.$ac_objext
2152   if { { ac_try="$ac_compile"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159   (eval "$ac_compile") 2>conftest.err
2160   ac_status=$?
2161   if test -s conftest.err; then
2162     grep -v '^ *+' conftest.err >conftest.er1
2163     cat conftest.er1 >&5
2164     mv -f conftest.er1 conftest.err
2165   fi
2166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167   test $ac_status = 0; } && {
2168          test -z "$ac_c_werror_flag" ||
2169          test ! -s conftest.err
2170        } && test -s conftest.$ac_objext; then :
2171   ac_retval=0
2172 else
2173   $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175 
2176         ac_retval=1
2177 fi
2178   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179   as_fn_set_status $ac_retval
2180 
2181 } # ac_fn_c_try_compile
2182 
2183 # ac_fn_cxx_try_compile LINENO
2184 # ----------------------------
2185 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_cxx_try_compile ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   rm -f conftest.$ac_objext
2190   if { { ac_try="$ac_compile"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_compile") 2>conftest.err
2198   ac_status=$?
2199   if test -s conftest.err; then
2200     grep -v '^ *+' conftest.err >conftest.er1
2201     cat conftest.er1 >&5
2202     mv -f conftest.er1 conftest.err
2203   fi
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; } && {
2206          test -z "$ac_cxx_werror_flag" ||
2207          test ! -s conftest.err
2208        } && test -s conftest.$ac_objext; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213 
2214         ac_retval=1
2215 fi
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217   as_fn_set_status $ac_retval
2218 
2219 } # ac_fn_cxx_try_compile
2220 
2221 # ac_fn_c_try_cpp LINENO
2222 # ----------------------
2223 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_cpp ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
2243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244          test ! -s conftest.err
2245        }; 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_c_try_cpp
2257 
2258 # ac_fn_cxx_try_cpp LINENO
2259 # ------------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_cxx_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_cxx_preproc_warn_flag$ac_cxx_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_cxx_try_cpp
2294 
2295 # ac_fn_objc_try_compile LINENO
2296 # -----------------------------
2297 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_objc_try_compile ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   rm -f conftest.$ac_objext
2302   if { { ac_try="$ac_compile"
2303 case "(($ac_try" in
2304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305   *) ac_try_echo=$ac_try;;
2306 esac
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309   (eval "$ac_compile") 2>conftest.err
2310   ac_status=$?
2311   if test -s conftest.err; then
2312     grep -v '^ *+' conftest.err >conftest.er1
2313     cat conftest.er1 >&5
2314     mv -f conftest.er1 conftest.err
2315   fi
2316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317   test $ac_status = 0; } && {
2318          test -z "$ac_objc_werror_flag" ||
2319          test ! -s conftest.err
2320        } && test -s conftest.$ac_objext; then :
2321   ac_retval=0
2322 else
2323   $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325 
2326         ac_retval=1
2327 fi
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329   as_fn_set_status $ac_retval
2330 
2331 } # ac_fn_objc_try_compile
2332 
2333 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2334 # ---------------------------------------------------------
2335 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2336 # the include files in INCLUDES and setting the cache variable VAR
2337 # accordingly.
2338 ac_fn_cxx_check_header_mongrel ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   if eval \${$3+:} false; then :
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if eval \${$3+:} false; then :
2345   $as_echo_n "(cached) " >&6
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 else
2351   # Is the header compilable?
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2353 $as_echo_n "checking $2 usability... " >&6; }
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_cxx_try_compile "$LINENO"; then :
2360   ac_header_compiler=yes
2361 else
2362   ac_header_compiler=no
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2366 $as_echo "$ac_header_compiler" >&6; }
2367 
2368 # Is the header present?
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2370 $as_echo_n "checking $2 presence... " >&6; }
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 #include <$2>
2374 _ACEOF
2375 if ac_fn_cxx_try_cpp "$LINENO"; then :
2376   ac_header_preproc=yes
2377 else
2378   ac_header_preproc=no
2379 fi
2380 rm -f conftest.err conftest.i conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2382 $as_echo "$ac_header_preproc" >&6; }
2383 
2384 # So?  What about this header?
2385 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2386   yes:no: )
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2388 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2390 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2391     ;;
2392   no:yes:* )
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2394 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2396 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2398 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2400 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2403 ( $as_echo "## ----------------------------------------- ##
2404 ## Report this to build-dev@openjdk.java.net ##
2405 ## ----------------------------------------- ##"
2406      ) | sed "s/^/$as_me: WARNING:     /" >&2
2407     ;;
2408 esac
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=\$ac_header_compiler"
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 fi
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 
2422 } # ac_fn_cxx_check_header_mongrel
2423 
2424 # ac_fn_cxx_try_run LINENO
2425 # ------------------------
2426 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2427 # that executables *can* be run.
2428 ac_fn_cxx_try_run ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   if { { ac_try="$ac_link"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438   (eval "$ac_link") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2442   { { case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447 $as_echo "$ac_try_echo"; } >&5
2448   (eval "$ac_try") 2>&5
2449   ac_status=$?
2450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451   test $ac_status = 0; }; }; then :
2452   ac_retval=0
2453 else
2454   $as_echo "$as_me: program exited with status $ac_status" >&5
2455        $as_echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457 
2458        ac_retval=$ac_status
2459 fi
2460   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2461   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462   as_fn_set_status $ac_retval
2463 
2464 } # ac_fn_cxx_try_run
2465 
2466 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2467 # ---------------------------------------------------------
2468 # Tests whether HEADER exists and can be compiled using the include files in
2469 # INCLUDES, setting the cache variable VAR accordingly.
2470 ac_fn_cxx_check_header_compile ()
2471 {
2472   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if eval \${$3+:} false; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h.  */
2480 $4
2481 #include <$2>
2482 _ACEOF
2483 if ac_fn_cxx_try_compile "$LINENO"; then :
2484   eval "$3=yes"
2485 else
2486   eval "$3=no"
2487 fi
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 fi
2490 eval ac_res=\$$3
2491                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 
2495 } # ac_fn_cxx_check_header_compile
2496 
2497 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2498 # ----------------------------------------------
2499 # Tries to find the compile-time value of EXPR in a program that includes
2500 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2501 # computed
2502 ac_fn_cxx_compute_int ()
2503 {
2504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505   if test "$cross_compiling" = yes; then
2506     # Depending upon the size, compute the lo and hi bounds.
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h.  */
2509 $4
2510 int
2511 main ()
2512 {
2513 static int test_array [1 - 2 * !(($2) >= 0)];
2514 test_array [0] = 0;
2515 return test_array [0];
2516 
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_cxx_try_compile "$LINENO"; then :
2522   ac_lo=0 ac_mid=0
2523   while :; do
2524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 $4
2527 int
2528 main ()
2529 {
2530 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2531 test_array [0] = 0;
2532 return test_array [0];
2533 
2534   ;
2535   return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_cxx_try_compile "$LINENO"; then :
2539   ac_hi=$ac_mid; break
2540 else
2541   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2542                         if test $ac_lo -le $ac_mid; then
2543                           ac_lo= ac_hi=
2544                           break
2545                         fi
2546                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549   done
2550 else
2551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 int
2555 main ()
2556 {
2557 static int test_array [1 - 2 * !(($2) < 0)];
2558 test_array [0] = 0;
2559 return test_array [0];
2560 
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_cxx_try_compile "$LINENO"; then :
2566   ac_hi=-1 ac_mid=-1
2567   while :; do
2568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 $4
2571 int
2572 main ()
2573 {
2574 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2575 test_array [0] = 0;
2576 return test_array [0];
2577 
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_cxx_try_compile "$LINENO"; then :
2583   ac_lo=$ac_mid; break
2584 else
2585   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2586                         if test $ac_mid -le $ac_hi; then
2587                           ac_lo= ac_hi=
2588                           break
2589                         fi
2590                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593   done
2594 else
2595   ac_lo= ac_hi=
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 # Binary search between lo and hi bounds.
2601 while test "x$ac_lo" != "x$ac_hi"; do
2602   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 int
2607 main ()
2608 {
2609 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 test_array [0] = 0;
2611 return test_array [0];
2612 
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_cxx_try_compile "$LINENO"; then :
2618   ac_hi=$ac_mid
2619 else
2620   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 case $ac_lo in #((
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2626 '') ac_retval=1 ;;
2627 esac
2628   else
2629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 $4
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2634 #include <stdio.h>
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639 
2640   FILE *f = fopen ("conftest.val", "w");
2641   if (! f)
2642     return 1;
2643   if (($2) < 0)
2644     {
2645       long int i = longval ();
2646       if (i != ($2))
2647         return 1;
2648       fprintf (f, "%ld", i);
2649     }
2650   else
2651     {
2652       unsigned long int i = ulongval ();
2653       if (i != ($2))
2654         return 1;
2655       fprintf (f, "%lu", i);
2656     }
2657   /* Do not output a trailing newline, as this causes \r\n confusion
2658      on some platforms.  */
2659   return ferror (f) || fclose (f) != 0;
2660 
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_cxx_try_run "$LINENO"; then :
2666   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2667 else
2668   ac_retval=1
2669 fi
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671   conftest.$ac_objext conftest.beam conftest.$ac_ext
2672 rm -f conftest.val
2673 
2674   fi
2675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676   as_fn_set_status $ac_retval
2677 
2678 } # ac_fn_cxx_compute_int
2679 
2680 # ac_fn_cxx_try_link LINENO
2681 # -------------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded.
2683 ac_fn_cxx_try_link ()
2684 {
2685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686   rm -f conftest.$ac_objext conftest$ac_exeext
2687   if { { ac_try="$ac_link"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694   (eval "$ac_link") 2>conftest.err
2695   ac_status=$?
2696   if test -s conftest.err; then
2697     grep -v '^ *+' conftest.err >conftest.er1
2698     cat conftest.er1 >&5
2699     mv -f conftest.er1 conftest.err
2700   fi
2701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702   test $ac_status = 0; } && {
2703          test -z "$ac_cxx_werror_flag" ||
2704          test ! -s conftest.err
2705        } && test -s conftest$ac_exeext && {
2706          test "$cross_compiling" = yes ||
2707          test -x conftest$ac_exeext
2708        }; then :
2709   ac_retval=0
2710 else
2711   $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713 
2714         ac_retval=1
2715 fi
2716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2718   # interfere with the next link command; also delete a directory that is
2719   # left behind by Apple's compiler.  We do this before executing the actions.
2720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722   as_fn_set_status $ac_retval
2723 
2724 } # ac_fn_cxx_try_link
2725 
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2730 {
2731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h.  */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2741 #define $2 innocuous_$2
2742 
2743 /* System header to define __stub macros and hopefully few prototypes,
2744     which can conflict with char $2 (); below.
2745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746     <limits.h> exists even on freestanding compilers.  */
2747 
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2753 
2754 #undef $2
2755 
2756 /* Override any GCC internal prototype to avoid an error.
2757    Use char because int might match the return type of a GCC
2758    builtin and then its argument prototype would still apply.  */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764     to always fail with ENOSYS.  Some functions are actually named
2765     something starting with __ and the normal name is an alias.  */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2769 
2770 int
2771 main ()
2772 {
2773 return $2 ();
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779   eval "$3=yes"
2780 else
2781   eval "$3=no"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext \
2784     conftest$ac_exeext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 
2791 } # ac_fn_cxx_check_func
2792 
2793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2794 # -------------------------------------------------------
2795 # Tests whether HEADER exists and can be compiled using the include files in
2796 # INCLUDES, setting the cache variable VAR accordingly.
2797 ac_fn_c_check_header_compile ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if eval \${$3+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h.  */
2807 $4
2808 #include <$2>
2809 _ACEOF
2810 if ac_fn_c_try_compile "$LINENO"; then :
2811   eval "$3=yes"
2812 else
2813   eval "$3=no"
2814 fi
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 eval ac_res=\$$3
2818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2819 $as_echo "$ac_res" >&6; }
2820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2821 
2822 } # ac_fn_c_check_header_compile
2823 cat >config.log <<_ACEOF
2824 This file contains any messages produced by compilers while
2825 running configure, to aid debugging if configure makes a mistake.
2826 
2827 It was created by OpenJDK $as_me jdk8, which was
2828 generated by GNU Autoconf 2.69.  Invocation command line was
2829 
2830   $ $0 $@
2831 
2832 _ACEOF
2833 exec 5>>config.log
2834 {
2835 cat <<_ASUNAME
2836 ## --------- ##
2837 ## Platform. ##
2838 ## --------- ##
2839 
2840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 
2846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2847 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2848 
2849 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2850 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2852 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2853 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2854 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2855 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2856 
2857 _ASUNAME
2858 
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     $as_echo "PATH: $as_dir"
2865   done
2866 IFS=$as_save_IFS
2867 
2868 } >&5
2869 
2870 cat >&5 <<_ACEOF
2871 
2872 
2873 ## ----------- ##
2874 ## Core tests. ##
2875 ## ----------- ##
2876 
2877 _ACEOF
2878 
2879 
2880 # Keep a trace of the command line.
2881 # Strip out --no-create and --no-recursion so they do not pile up.
2882 # Strip out --silent because we don't want to record it for future runs.
2883 # Also quote any args containing shell meta-characters.
2884 # Make two passes to allow for proper duplicate-argument suppression.
2885 ac_configure_args=
2886 ac_configure_args0=
2887 ac_configure_args1=
2888 ac_must_keep_next=false
2889 for ac_pass in 1 2
2890 do
2891   for ac_arg
2892   do
2893     case $ac_arg in
2894     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2895     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2896     | -silent | --silent | --silen | --sile | --sil)
2897       continue ;;
2898     *\'*)
2899       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2900     esac
2901     case $ac_pass in
2902     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2903     2)
2904       as_fn_append ac_configure_args1 " '$ac_arg'"
2905       if test $ac_must_keep_next = true; then
2906         ac_must_keep_next=false # Got value, back to normal.
2907       else
2908         case $ac_arg in
2909           *=* | --config-cache | -C | -disable-* | --disable-* \
2910           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2911           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2912           | -with-* | --with-* | -without-* | --without-* | --x)
2913             case "$ac_configure_args0 " in
2914               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2915             esac
2916             ;;
2917           -* ) ac_must_keep_next=true ;;
2918         esac
2919       fi
2920       as_fn_append ac_configure_args " '$ac_arg'"
2921       ;;
2922     esac
2923   done
2924 done
2925 { ac_configure_args0=; unset ac_configure_args0;}
2926 { ac_configure_args1=; unset ac_configure_args1;}
2927 
2928 # When interrupted or exit'd, cleanup temporary files, and complete
2929 # config.log.  We remove comments because anyway the quotes in there
2930 # would cause problems or look ugly.
2931 # WARNING: Use '\'' to represent an apostrophe within the trap.
2932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2933 trap 'exit_status=$?
2934   # Save into config.log some information that might help in debugging.
2935   {
2936     echo
2937 
2938     $as_echo "## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##"
2941     echo
2942     # The following way of writing the cache mishandles newlines in values,
2943 (
2944   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2945     eval ac_val=\$$ac_var
2946     case $ac_val in #(
2947     *${as_nl}*)
2948       case $ac_var in #(
2949       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2950 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2951       esac
2952       case $ac_var in #(
2953       _ | IFS | as_nl) ;; #(
2954       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2955       *) { eval $ac_var=; unset $ac_var;} ;;
2956       esac ;;
2957     esac
2958   done
2959   (set) 2>&1 |
2960     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2961     *${as_nl}ac_space=\ *)
2962       sed -n \
2963         "s/'\''/'\''\\\\'\'''\''/g;
2964           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2965       ;; #(
2966     *)
2967       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2968       ;;
2969     esac |
2970     sort
2971 )
2972     echo
2973 
2974     $as_echo "## ----------------- ##
2975 ## Output variables. ##
2976 ## ----------------- ##"
2977     echo
2978     for ac_var in $ac_subst_vars
2979     do
2980       eval ac_val=\$$ac_var
2981       case $ac_val in
2982       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2983       esac
2984       $as_echo "$ac_var='\''$ac_val'\''"
2985     done | sort
2986     echo
2987 
2988     if test -n "$ac_subst_files"; then
2989       $as_echo "## ------------------- ##
2990 ## File substitutions. ##
2991 ## ------------------- ##"
2992       echo
2993       for ac_var in $ac_subst_files
2994       do
2995         eval ac_val=\$$ac_var
2996         case $ac_val in
2997         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998         esac
2999         $as_echo "$ac_var='\''$ac_val'\''"
3000       done | sort
3001       echo
3002     fi
3003 
3004     if test -s confdefs.h; then
3005       $as_echo "## ----------- ##
3006 ## confdefs.h. ##
3007 ## ----------- ##"
3008       echo
3009       cat confdefs.h
3010       echo
3011     fi
3012     test "$ac_signal" != 0 &&
3013       $as_echo "$as_me: caught signal $ac_signal"
3014     $as_echo "$as_me: exit $exit_status"
3015   } >&5
3016   rm -f core *.core core.conftest.* &&
3017     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3018     exit $exit_status
3019 ' 0
3020 for ac_signal in 1 2 13 15; do
3021   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3022 done
3023 ac_signal=0
3024 
3025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3026 rm -f -r conftest* confdefs.h
3027 
3028 $as_echo "/* confdefs.h */" > confdefs.h
3029 
3030 # Predefined preprocessor variables.
3031 
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_NAME "$PACKAGE_NAME"
3034 _ACEOF
3035 
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3038 _ACEOF
3039 
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3042 _ACEOF
3043 
3044 cat >>confdefs.h <<_ACEOF
3045 #define PACKAGE_STRING "$PACKAGE_STRING"
3046 _ACEOF
3047 
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3050 _ACEOF
3051 
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE_URL "$PACKAGE_URL"
3054 _ACEOF
3055 
3056 
3057 # Let the site file select an alternate cache file if it wants to.
3058 # Prefer an explicitly selected file to automatically selected ones.
3059 ac_site_file1=NONE
3060 ac_site_file2=NONE
3061 if test -n "$CONFIG_SITE"; then
3062   # We do not want a PATH search for config.site.
3063   case $CONFIG_SITE in #((
3064     -*)  ac_site_file1=./$CONFIG_SITE;;
3065     */*) ac_site_file1=$CONFIG_SITE;;
3066     *)   ac_site_file1=./$CONFIG_SITE;;
3067   esac
3068 elif test "x$prefix" != xNONE; then
3069   ac_site_file1=$prefix/share/config.site
3070   ac_site_file2=$prefix/etc/config.site
3071 else
3072   ac_site_file1=$ac_default_prefix/share/config.site
3073   ac_site_file2=$ac_default_prefix/etc/config.site
3074 fi
3075 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3076 do
3077   test "x$ac_site_file" = xNONE && continue
3078   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3079     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3080 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3081     sed 's/^/| /' "$ac_site_file" >&5
3082     . "$ac_site_file" \
3083       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $? "failed to load site script $ac_site_file
3086 See \`config.log' for more details" "$LINENO" 5; }
3087   fi
3088 done
3089 
3090 if test -r "$cache_file"; then
3091   # Some versions of bash will fail to source /dev/null (special files
3092   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3093   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3094     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3095 $as_echo "$as_me: loading cache $cache_file" >&6;}
3096     case $cache_file in
3097       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3098       *)                      . "./$cache_file";;
3099     esac
3100   fi
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3103 $as_echo "$as_me: creating cache $cache_file" >&6;}
3104   >$cache_file
3105 fi
3106 
3107 # Check that the precious variables saved in the cache have kept the same
3108 # value.
3109 ac_cache_corrupted=false
3110 for ac_var in $ac_precious_vars; do
3111   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3112   eval ac_new_set=\$ac_env_${ac_var}_set
3113   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3114   eval ac_new_val=\$ac_env_${ac_var}_value
3115   case $ac_old_set,$ac_new_set in
3116     set,)
3117       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3119       ac_cache_corrupted=: ;;
3120     ,set)
3121       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3123       ac_cache_corrupted=: ;;
3124     ,);;
3125     *)
3126       if test "x$ac_old_val" != "x$ac_new_val"; then
3127         # differences in whitespace do not lead to failure.
3128         ac_old_val_w=`echo x $ac_old_val`
3129         ac_new_val_w=`echo x $ac_new_val`
3130         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3131           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3133           ac_cache_corrupted=:
3134         else
3135           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3137           eval $ac_var=\$ac_old_val
3138         fi
3139         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3140 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3141         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3142 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3143       fi;;
3144   esac
3145   # Pass precious variables to config.status.
3146   if test "$ac_new_set" = set; then
3147     case $ac_new_val in
3148     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3149     *) ac_arg=$ac_var=$ac_new_val ;;
3150     esac
3151     case " $ac_configure_args " in
3152       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3153       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3154     esac
3155   fi
3156 done
3157 if $ac_cache_corrupted; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3162   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3163 fi
3164 ## -------------------- ##
3165 ## Main body of script. ##
3166 ## -------------------- ##
3167 
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 
3174 
3175 
3176 ac_aux_dir=
3177 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3178   if test -f "$ac_dir/install-sh"; then
3179     ac_aux_dir=$ac_dir
3180     ac_install_sh="$ac_aux_dir/install-sh -c"
3181     break
3182   elif test -f "$ac_dir/install.sh"; then
3183     ac_aux_dir=$ac_dir
3184     ac_install_sh="$ac_aux_dir/install.sh -c"
3185     break
3186   elif test -f "$ac_dir/shtool"; then
3187     ac_aux_dir=$ac_dir
3188     ac_install_sh="$ac_aux_dir/shtool install -c"
3189     break
3190   fi
3191 done
3192 if test -z "$ac_aux_dir"; then
3193   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
3194 fi
3195 
3196 # These three variables are undocumented and unsupported,
3197 # and are intended to be withdrawn in a future Autoconf release.
3198 # They can cause serious problems if a builder's source tree is in a directory
3199 # whose full name contains unusual characters.
3200 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3201 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3202 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3203 
3204 
3205 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3206 
3207 #
3208 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3209 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3210 #
3211 # This code is free software; you can redistribute it and/or modify it
3212 # under the terms of the GNU General Public License version 2 only, as
3213 # published by the Free Software Foundation.  Oracle designates this
3214 # particular file as subject to the "Classpath" exception as provided
3215 # by Oracle in the LICENSE file that accompanied this code.
3216 #
3217 # This code is distributed in the hope that it will be useful, but WITHOUT
3218 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3219 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3220 # version 2 for more details (a copy is included in the LICENSE file that
3221 # accompanied this code).
3222 #
3223 # You should have received a copy of the GNU General Public License version
3224 # 2 along with this work; if not, write to the Free Software Foundation,
3225 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3226 #
3227 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3228 # or visit www.oracle.com if you need additional information or have any
3229 # questions.
3230 #
3231 
3232 #
3233 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3234 #
3235 # This program is free software; you can redistribute it and/or modify
3236 # it under the terms of the GNU General Public License as published by
3237 # the Free Software Foundation; either version 2 of the License, or
3238 # (at your option) any later version.
3239 #
3240 # This program is distributed in the hope that it will be useful, but
3241 # WITHOUT ANY WARRANTY; without even the implied warranty of
3242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3243 # General Public License for more details.
3244 #
3245 # You should have received a copy of the GNU General Public License
3246 # along with this program; if not, write to the Free Software
3247 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3248 #
3249 # As a special exception to the GNU General Public License, if you
3250 # distribute this file as part of a program that contains a
3251 # configuration script generated by Autoconf, you may include it under
3252 # the same distribution terms that you use for the rest of that program.
3253 
3254 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3255 # ----------------------------------
3256 # PKG_PROG_PKG_CONFIG
3257 
3258 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3259 #
3260 # Check to see whether a particular set of modules exists.  Similar
3261 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3262 #
3263 #
3264 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3265 # this or PKG_CHECK_MODULES is called, or make sure to call
3266 # PKG_CHECK_EXISTS manually
3267 # --------------------------------------------------------------
3268 
3269 
3270 
3271 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3272 # ---------------------------------------------
3273 # _PKG_CONFIG
3274 
3275 # _PKG_SHORT_ERRORS_SUPPORTED
3276 # -----------------------------
3277 # _PKG_SHORT_ERRORS_SUPPORTED
3278 
3279 
3280 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3281 # [ACTION-IF-NOT-FOUND])
3282 #
3283 #
3284 # Note that if there is a possibility the first call to
3285 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3286 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3287 #
3288 #
3289 # --------------------------------------------------------------
3290 # PKG_CHECK_MODULES
3291 
3292 
3293 # Include these first...
3294 #
3295 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3296 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3297 #
3298 # This code is free software; you can redistribute it and/or modify it
3299 # under the terms of the GNU General Public License version 2 only, as
3300 # published by the Free Software Foundation.  Oracle designates this
3301 # particular file as subject to the "Classpath" exception as provided
3302 # by Oracle in the LICENSE file that accompanied this code.
3303 #
3304 # This code is distributed in the hope that it will be useful, but WITHOUT
3305 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3306 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3307 # version 2 for more details (a copy is included in the LICENSE file that
3308 # accompanied this code).
3309 #
3310 # You should have received a copy of the GNU General Public License version
3311 # 2 along with this work; if not, write to the Free Software Foundation,
3312 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3313 #
3314 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3315 # or visit www.oracle.com if you need additional information or have any
3316 # questions.
3317 #
3318 
3319 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3320 # If so, then append $1 to $2 \
3321 # Also set JVM_ARG_OK to true/false depending on outcome.
3322 
3323 
3324 # Appends a string to a path variable, only adding the : when needed.
3325 
3326 
3327 # Prepends a string to a path variable, only adding the : when needed.
3328 
3329 
3330 # This will make sure the given variable points to a full and proper
3331 # path. This means:
3332 # 1) There will be no spaces in the path. On posix platforms,
3333 #    spaces in the path will result in an error. On Windows,
3334 #    the path will be rewritten using short-style to be space-free.
3335 # 2) The path will be absolute, and it will be in unix-style (on
3336 #     cygwin).
3337 # $1: The name of the variable to fix
3338 
3339 
3340 # This will make sure the given variable points to a executable
3341 # with a full and proper path. This means:
3342 # 1) There will be no spaces in the path. On posix platforms,
3343 #    spaces in the path will result in an error. On Windows,
3344 #    the path will be rewritten using short-style to be space-free.
3345 # 2) The path will be absolute, and it will be in unix-style (on
3346 #     cygwin).
3347 # Any arguments given to the executable is preserved.
3348 # If the input variable does not have a directory specification, then
3349 # it need to be in the PATH.
3350 # $1: The name of the variable to fix
3351 
3352 
3353 
3354 
3355 # Register a --with argument but mark it as deprecated
3356 # $1: The name of the with argument to deprecate, not including --with-
3357 
3358 
3359 # Register a --enable argument but mark it as deprecated
3360 # $1: The name of the with argument to deprecate, not including --enable-
3361 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3362 
3363 
3364 
3365 
3366 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3367 # $1: variable to check
3368 
3369 
3370 # Check that there are no unprocessed overridden variables left.
3371 # If so, they are an incorrect argument and we will exit with an error.
3372 
3373 
3374 # Setup a tool for the given variable. If correctly specified by the user,
3375 # use that value, otherwise search for the tool using the supplied code snippet.
3376 # $1: variable to set
3377 # $2: code snippet to call to look for the tool
3378 
3379 
3380 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3381 # $1: variable to set
3382 # $2: executable name (or list of names) to look for
3383 
3384 
3385 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3386 # $1: variable to set
3387 # $2: executable name (or list of names) to look for
3388 
3389 
3390 # Like BASIC_PATH_PROGS but fails if no tool was found.
3391 # $1: variable to set
3392 # $2: executable name (or list of names) to look for
3393 
3394 
3395 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3396 # $1: variable to set
3397 # $2: autoconf macro to call to look for the special tool
3398 
3399 
3400 # Setup the most fundamental tools that relies on not much else to set up,
3401 # but is used by much of the early bootstrap code.
3402 
3403 
3404 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3405 
3406 
3407 # Evaluates platform specific overrides for devkit variables.
3408 # $1: Name of variable
3409 
3410 
3411 
3412 
3413 
3414 
3415 
3416 
3417 
3418 #%%% Simple tools %%%
3419 
3420 # Check if we have found a usable version of make
3421 # $1: the path to a potential make binary (or empty)
3422 # $2: the description on how we found this
3423 
3424 
3425 # Goes looking for a usable version of GNU make.
3426 
3427 
3428 
3429 
3430 
3431 
3432 # Check if build directory is on local disk. If not possible to determine,
3433 # we prefer to claim it's local.
3434 # Argument 1: directory to test
3435 # Argument 2: what to do if it is on local disk
3436 # Argument 3: what to do otherwise (remote disk or failure)
3437 
3438 
3439 # Check that source files have basic read permissions set. This might
3440 # not be the case in cygwin in certain conditions.
3441 
3442 
3443 
3444 
3445 #
3446 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3447 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3448 #
3449 # This code is free software; you can redistribute it and/or modify it
3450 # under the terms of the GNU General Public License version 2 only, as
3451 # published by the Free Software Foundation.  Oracle designates this
3452 # particular file as subject to the "Classpath" exception as provided
3453 # by Oracle in the LICENSE file that accompanied this code.
3454 #
3455 # This code is distributed in the hope that it will be useful, but WITHOUT
3456 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3457 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3458 # version 2 for more details (a copy is included in the LICENSE file that
3459 # accompanied this code).
3460 #
3461 # You should have received a copy of the GNU General Public License version
3462 # 2 along with this work; if not, write to the Free Software Foundation,
3463 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3464 #
3465 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3466 # or visit www.oracle.com if you need additional information or have any
3467 # questions.
3468 #
3469 
3470 
3471 
3472 
3473 
3474 # Helper function which possibly converts a path using DOS-style short mode.
3475 # If so, the updated path is stored in $new_path.
3476 # $1: The path to check
3477 
3478 
3479 # Helper function which possibly converts a path using DOS-style short mode.
3480 # If so, the updated path is stored in $new_path.
3481 # $1: The path to check
3482 
3483 
3484 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3485 # and could probably be heavily simplified. However, all changes in this
3486 # area tend to need lot of testing in different scenarios, and in lack of
3487 # proper unit testing, cleaning this up has not been deemed worth the effort
3488 # at the moment.
3489 
3490 
3491 
3492 
3493 
3494 
3495 
3496 
3497 
3498 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3499 
3500 
3501 
3502 
3503 #
3504 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3505 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3506 #
3507 # This code is free software; you can redistribute it and/or modify it
3508 # under the terms of the GNU General Public License version 2 only, as
3509 # published by the Free Software Foundation.  Oracle designates this
3510 # particular file as subject to the "Classpath" exception as provided
3511 # by Oracle in the LICENSE file that accompanied this code.
3512 #
3513 # This code is distributed in the hope that it will be useful, but WITHOUT
3514 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3515 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3516 # version 2 for more details (a copy is included in the LICENSE file that
3517 # accompanied this code).
3518 #
3519 # You should have received a copy of the GNU General Public License version
3520 # 2 along with this work; if not, write to the Free Software Foundation,
3521 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3522 #
3523 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3524 # or visit www.oracle.com if you need additional information or have any
3525 # questions.
3526 #
3527 
3528 
3529 
3530 
3531 
3532 
3533 
3534 
3535 
3536 
3537 
3538 # ... then the rest
3539 #
3540 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3541 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3542 #
3543 # This code is free software; you can redistribute it and/or modify it
3544 # under the terms of the GNU General Public License version 2 only, as
3545 # published by the Free Software Foundation.  Oracle designates this
3546 # particular file as subject to the "Classpath" exception as provided
3547 # by Oracle in the LICENSE file that accompanied this code.
3548 #
3549 # This code is distributed in the hope that it will be useful, but WITHOUT
3550 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3551 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3552 # version 2 for more details (a copy is included in the LICENSE file that
3553 # accompanied this code).
3554 #
3555 # You should have received a copy of the GNU General Public License version
3556 # 2 along with this work; if not, write to the Free Software Foundation,
3557 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3558 #
3559 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3560 # or visit www.oracle.com if you need additional information or have any
3561 # questions.
3562 #
3563 
3564 # Execute the check given as argument, and verify the result
3565 # If the Boot JDK was previously found, do nothing
3566 # $1 A command line (typically autoconf macro) to execute
3567 
3568 
3569 # Test: Is bootjdk explicitely set by command line arguments?
3570 
3571 
3572 # Test: Is bootjdk available from builddeps?
3573 
3574 
3575 # Test: Is $JAVA_HOME set?
3576 
3577 
3578 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3579 
3580 
3581 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3582 
3583 
3584 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3585 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3586 # $1 = Path to directory containing jdk installations.
3587 # $2 = String to append to the found JDK directory to get the proper JDK home
3588 
3589 
3590 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3591 # environmental variable as base for where to look.
3592 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3593 
3594 
3595 # Test: Is there a JDK installed in default, well-known locations?
3596 
3597 
3598 # Check that a command-line tool in the Boot JDK is correct
3599 # $1 = name of variable to assign
3600 # $2 = name of binary
3601 
3602 
3603 ###############################################################################
3604 #
3605 # We need a Boot JDK to bootstrap the build.
3606 #
3607 
3608 
3609 
3610 
3611 
3612 #
3613 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3614 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3615 #
3616 # This code is free software; you can redistribute it and/or modify it
3617 # under the terms of the GNU General Public License version 2 only, as
3618 # published by the Free Software Foundation.  Oracle designates this
3619 # particular file as subject to the "Classpath" exception as provided
3620 # by Oracle in the LICENSE file that accompanied this code.
3621 #
3622 # This code is distributed in the hope that it will be useful, but WITHOUT
3623 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3624 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3625 # version 2 for more details (a copy is included in the LICENSE file that
3626 # accompanied this code).
3627 #
3628 # You should have received a copy of the GNU General Public License version
3629 # 2 along with this work; if not, write to the Free Software Foundation,
3630 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3631 #
3632 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3633 # or visit www.oracle.com if you need additional information or have any
3634 # questions.
3635 #
3636 
3637 
3638 
3639 
3640 
3641 
3642 
3643 
3644 
3645 
3646 
3647 
3648 
3649 
3650 
3651 
3652 
3653 
3654 
3655 
3656 #
3657 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3658 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3659 #
3660 # This code is free software; you can redistribute it and/or modify it
3661 # under the terms of the GNU General Public License version 2 only, as
3662 # published by the Free Software Foundation.  Oracle designates this
3663 # particular file as subject to the "Classpath" exception as provided
3664 # by Oracle in the LICENSE file that accompanied this code.
3665 #
3666 # This code is distributed in the hope that it will be useful, but WITHOUT
3667 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3668 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3669 # version 2 for more details (a copy is included in the LICENSE file that
3670 # accompanied this code).
3671 #
3672 # You should have received a copy of the GNU General Public License version
3673 # 2 along with this work; if not, write to the Free Software Foundation,
3674 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3675 #
3676 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3677 # or visit www.oracle.com if you need additional information or have any
3678 # questions.
3679 #
3680 
3681 
3682 
3683 
3684 
3685 # Documentation on common flags used for solstudio in HIGHEST.
3686 #
3687 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3688 #          done with care, there are some assumptions below that need to
3689 #          be understood about the use of pointers, and IEEE behavior.
3690 #
3691 # -fns: Use non-standard floating point mode (not IEEE 754)
3692 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3693 # -fsingle: Use single precision floating point with 'float'
3694 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3695 #   (Source with excessing pointer casting and data access with mixed
3696 #    pointer types are not recommended)
3697 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3698 #   (If you expect perfect errno behavior, do not use this)
3699 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3700 # -xrestrict: Pointer parameters to functions do not overlap
3701 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3702 #    If you pass in multiple pointers to the same data, do not use this)
3703 # -xlibmil: Inline some library routines
3704 #   (If you expect perfect errno behavior, do not use this)
3705 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3706 #   (If you expect perfect errno behavior, do not use this)
3707 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3708 
3709     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3710     # Bug?
3711     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3712     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3713     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3714     #fi
3715 
3716 
3717 
3718 
3719 
3720 
3721 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3722 #                                  [RUN-IF-FALSE])
3723 # ------------------------------------------------------------
3724 # Check that the C compiler supports an argument
3725 
3726 
3727 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3728 #                                    [RUN-IF-FALSE])
3729 # ------------------------------------------------------------
3730 # Check that the C++ compiler supports an argument
3731 
3732 
3733 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3734 #                                [RUN-IF-FALSE])
3735 # ------------------------------------------------------------
3736 # Check that the C and C++ compilers support an argument
3737 
3738 
3739 
3740 
3741 
3742 
3743 
3744 #
3745 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3746 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3747 #
3748 # This code is free software; you can redistribute it and/or modify it
3749 # under the terms of the GNU General Public License version 2 only, as
3750 # published by the Free Software Foundation.  Oracle designates this
3751 # particular file as subject to the "Classpath" exception as provided
3752 # by Oracle in the LICENSE file that accompanied this code.
3753 #
3754 # This code is distributed in the hope that it will be useful, but WITHOUT
3755 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3756 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3757 # version 2 for more details (a copy is included in the LICENSE file that
3758 # accompanied this code).
3759 #
3760 # You should have received a copy of the GNU General Public License version
3761 # 2 along with this work; if not, write to the Free Software Foundation,
3762 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3763 #
3764 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3765 # or visit www.oracle.com if you need additional information or have any
3766 # questions.
3767 #
3768 
3769 
3770 
3771 
3772 
3773 cygwin_help() {
3774   case $1 in
3775     unzip)
3776       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3777       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3778       ;;
3779     zip)
3780       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3781       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3782       ;;
3783     make)
3784       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3785       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3786       ;;
3787     freetype)
3788       HELP_MSG="
3789 The freetype library can now be build during the configure process.
3790 Download the freetype sources and unpack them into an arbitrary directory:
3791 
3792 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3793 tar -xzf freetype-2.5.3.tar.gz
3794 
3795 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3796 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3797 builds or into '<freetype_src>/lib32' for 32-bit builds.
3798 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3799 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3800       ;;
3801   esac
3802 }
3803 
3804 msys_help() {
3805   PKGHANDLER_COMMAND=""
3806 }
3807 
3808 apt_help() {
3809   case $1 in
3810     devkit)
3811       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3812     openjdk)
3813       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3814     alsa)
3815       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3816     cups)
3817       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3818     freetype)
3819       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3820     pulse)
3821       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3822     x11)
3823       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3824     ccache)
3825       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3826   esac
3827 }
3828 
3829 yum_help() {
3830   case $1 in
3831     devkit)
3832       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3833     openjdk)
3834       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3835     alsa)
3836       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3837     cups)
3838       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3839     freetype)
3840       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3841     pulse)
3842       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3843     x11)
3844       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3845     ccache)
3846       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3847   esac
3848 }
3849 
3850 port_help() {
3851   PKGHANDLER_COMMAND=""
3852 }
3853 
3854 pkgutil_help() {
3855   PKGHANDLER_COMMAND=""
3856 }
3857 
3858 pkgadd_help() {
3859   PKGHANDLER_COMMAND=""
3860 }
3861 
3862 # This function will check if we're called from the "configure" wrapper while
3863 # printing --help. If so, we will print out additional information that can
3864 # only be extracted within the autoconf script, and then exit. This must be
3865 # called at the very beginning in configure.ac.
3866 
3867 
3868 
3869 
3870 #
3871 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3872 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3873 #
3874 # This code is free software; you can redistribute it and/or modify it
3875 # under the terms of the GNU General Public License version 2 only, as
3876 # published by the Free Software Foundation.  Oracle designates this
3877 # particular file as subject to the "Classpath" exception as provided
3878 # by Oracle in the LICENSE file that accompanied this code.
3879 #
3880 # This code is distributed in the hope that it will be useful, but WITHOUT
3881 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3882 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3883 # version 2 for more details (a copy is included in the LICENSE file that
3884 # accompanied this code).
3885 #
3886 # You should have received a copy of the GNU General Public License version
3887 # 2 along with this work; if not, write to the Free Software Foundation,
3888 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3889 #
3890 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3891 # or visit www.oracle.com if you need additional information or have any
3892 # questions.
3893 #
3894 
3895 
3896 
3897 
3898 
3899 
3900 
3901 
3902 
3903 
3904 ###############################################################################
3905 #
3906 # Should we build only OpenJDK even if closed sources are present?
3907 #
3908 
3909 
3910 
3911 
3912 ###############################################################################
3913 #
3914 # Setup version numbers
3915 #
3916 
3917 
3918 
3919 
3920 
3921 
3922 # Support for customization of the build process. Some build files
3923 # will include counterparts from this location, if they exist. This allows
3924 # for a degree of customization of the build targets and the rules/recipes
3925 # to create them
3926 
3927 # Check whether --with-custom-make-dir was given.
3928 if test "${with_custom_make_dir+set}" = set; then :
3929   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3930 fi
3931 
3932 
3933 
3934 #
3935 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3936 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3937 #
3938 # This code is free software; you can redistribute it and/or modify it
3939 # under the terms of the GNU General Public License version 2 only, as
3940 # published by the Free Software Foundation.  Oracle designates this
3941 # particular file as subject to the "Classpath" exception as provided
3942 # by Oracle in the LICENSE file that accompanied this code.
3943 #
3944 # This code is distributed in the hope that it will be useful, but WITHOUT
3945 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3946 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3947 # version 2 for more details (a copy is included in the LICENSE file that
3948 # accompanied this code).
3949 #
3950 # You should have received a copy of the GNU General Public License version
3951 # 2 along with this work; if not, write to the Free Software Foundation,
3952 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3953 #
3954 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3955 # or visit www.oracle.com if you need additional information or have any
3956 # questions.
3957 #
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 
3979 #
3980 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3981 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3982 #
3983 # This code is free software; you can redistribute it and/or modify it
3984 # under the terms of the GNU General Public License version 2 only, as
3985 # published by the Free Software Foundation.  Oracle designates this
3986 # particular file as subject to the "Classpath" exception as provided
3987 # by Oracle in the LICENSE file that accompanied this code.
3988 #
3989 # This code is distributed in the hope that it will be useful, but WITHOUT
3990 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3991 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3992 # version 2 for more details (a copy is included in the LICENSE file that
3993 # accompanied this code).
3994 #
3995 # You should have received a copy of the GNU General Public License version
3996 # 2 along with this work; if not, write to the Free Software Foundation,
3997 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3998 #
3999 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4000 # or visit www.oracle.com if you need additional information or have any
4001 # questions.
4002 #
4003 
4004 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4005 # Converts autoconf style CPU name to OpenJDK style, into
4006 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4007 
4008 
4009 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4010 # Converts autoconf style OS name to OpenJDK style, into
4011 # VAR_OS and VAR_OS_API.
4012 
4013 
4014 # Expects $host_os $host_cpu $build_os and $build_cpu
4015 # and $with_target_bits to have been setup!
4016 #
4017 # Translate the standard triplet(quadruplet) definition
4018 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4019 # OPENJDK_BUILD_OS, etc.
4020 
4021 
4022 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4023 # accordingly. Must be done after setting up build and target system, but before
4024 # doing anything else with these values.
4025 
4026 
4027 # Setup the legacy variables, for controlling the old makefiles.
4028 #
4029 
4030 
4031 
4032 
4033 #%%% Build and target systems %%%
4034 
4035 
4036 
4037 
4038 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4039 # Add -mX to various FLAGS variables.
4040 
4041 
4042 
4043 
4044 
4045 
4046 #
4047 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4048 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4049 #
4050 # This code is free software; you can redistribute it and/or modify it
4051 # under the terms of the GNU General Public License version 2 only, as
4052 # published by the Free Software Foundation.  Oracle designates this
4053 # particular file as subject to the "Classpath" exception as provided
4054 # by Oracle in the LICENSE file that accompanied this code.
4055 #
4056 # This code is distributed in the hope that it will be useful, but WITHOUT
4057 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4058 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4059 # version 2 for more details (a copy is included in the LICENSE file that
4060 # accompanied this code).
4061 #
4062 # You should have received a copy of the GNU General Public License version
4063 # 2 along with this work; if not, write to the Free Software Foundation,
4064 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4065 #
4066 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4067 # or visit www.oracle.com if you need additional information or have any
4068 # questions.
4069 #
4070 
4071 
4072 
4073 
4074 
4075 
4076 
4077 
4078 #
4079 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4080 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4081 #
4082 # This code is free software; you can redistribute it and/or modify it
4083 # under the terms of the GNU General Public License version 2 only, as
4084 # published by the Free Software Foundation.  Oracle designates this
4085 # particular file as subject to the "Classpath" exception as provided
4086 # by Oracle in the LICENSE file that accompanied this code.
4087 #
4088 # This code is distributed in the hope that it will be useful, but WITHOUT
4089 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4090 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4091 # version 2 for more details (a copy is included in the LICENSE file that
4092 # accompanied this code).
4093 #
4094 # You should have received a copy of the GNU General Public License version
4095 # 2 along with this work; if not, write to the Free Software Foundation,
4096 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4097 #
4098 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4099 # or visit www.oracle.com if you need additional information or have any
4100 # questions.
4101 #
4102 
4103 ########################################################################
4104 # This file is responsible for detecting, verifying and setting up the
4105 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4106 # proper paths to the binaries, but it will not setup any flags.
4107 #
4108 # The binaries used is determined by the toolchain type, which is the family of
4109 # compilers and related tools that are used.
4110 ########################################################################
4111 
4112 
4113 # All valid toolchains, regardless of platform (used by help.m4)
4114 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4115 
4116 # These toolchains are valid on different platforms
4117 VALID_TOOLCHAINS_linux="gcc clang"
4118 VALID_TOOLCHAINS_solaris="solstudio"
4119 VALID_TOOLCHAINS_macosx="gcc clang"
4120 VALID_TOOLCHAINS_aix="xlc"
4121 VALID_TOOLCHAINS_windows="microsoft"
4122 
4123 # Toolchain descriptions
4124 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4125 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4126 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4127 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4128 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4129 
4130 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4131 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4132 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4133 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4134 
4135 
4136 # Check if the configured compiler (C and C++) is of a specific version or
4137 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4138 #
4139 # Arguments:
4140 #   $1:   The version string to check against the found version
4141 #   $2:   block to run if the compiler is at least this version (>=)
4142 #   $3:   block to run if the compiler is older than this version (<)
4143 
4144 
4145 
4146 # Setup a number of variables describing how native output files are
4147 # named on this platform/toolchain.
4148 
4149 
4150 # Determine which toolchain type to use, and make sure it is valid for this
4151 # platform. Setup various information about the selected toolchain.
4152 
4153 
4154 # Before we start detecting the toolchain executables, we might need some
4155 # special setup, e.g. additional paths etc.
4156 
4157 
4158 # Restore path, etc
4159 
4160 
4161 # Check if a compiler is of the toolchain type we expect, and save the version
4162 # information from it. If the compiler does not match the expected type,
4163 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4164 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4165 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4166 #
4167 # $1 = compiler to test (CC or CXX)
4168 # $2 = human readable name of compiler (C or C++)
4169 
4170 
4171 
4172 # Try to locate the given C or C++ compiler in the path, or otherwise.
4173 #
4174 # $1 = compiler to test (CC or CXX)
4175 # $2 = human readable name of compiler (C or C++)
4176 # $3 = list of compiler names to search for
4177 
4178 
4179 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4180 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4181 # archiver (AR). Verify that the compilers are correct according to the
4182 # toolchain type.
4183 
4184 
4185 # Setup additional tools that is considered a part of the toolchain, but not the
4186 # core part. Many of these are highly platform-specific and do not exist,
4187 # and/or are not needed on all platforms.
4188 
4189 
4190 # Setup the build tools (i.e, the compiler and linker used to build programs
4191 # that should be run on the build platform, not the target platform, as a build
4192 # helper). Since the non-cross-compile case uses the normal, target compilers
4193 # for this, we can only do this after these have been setup.
4194 
4195 
4196 # Setup legacy variables that are still needed as alternative ways to refer to
4197 # parts of the toolchain.
4198 
4199 
4200 # Do some additional checks on the detected tools.
4201 
4202 
4203 # Setup the JTReg Regression Test Harness.
4204 
4205 
4206 
4207 #
4208 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4209 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4210 #
4211 # This code is free software; you can redistribute it and/or modify it
4212 # under the terms of the GNU General Public License version 2 only, as
4213 # published by the Free Software Foundation.  Oracle designates this
4214 # particular file as subject to the "Classpath" exception as provided
4215 # by Oracle in the LICENSE file that accompanied this code.
4216 #
4217 # This code is distributed in the hope that it will be useful, but WITHOUT
4218 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4219 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4220 # version 2 for more details (a copy is included in the LICENSE file that
4221 # accompanied this code).
4222 #
4223 # You should have received a copy of the GNU General Public License version
4224 # 2 along with this work; if not, write to the Free Software Foundation,
4225 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4226 #
4227 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4228 # or visit www.oracle.com if you need additional information or have any
4229 # questions.
4230 #
4231 
4232 ################################################################################
4233 
4234 VALID_VS_VERSIONS="2010 2012 2013"
4235 
4236 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4237 VS_VERSION_INTERNAL_2010=100
4238 VS_MSVCR_2010=msvcr100.dll
4239 # We don't use msvcp on Visual Studio 2010
4240 #VS_MSVCP_2010=msvcp100.dll
4241 VS_ENVVAR_2010="VS100COMNTOOLS"
4242 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4243 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4244 VS_VS_PLATFORM_NAME_2010="v100"
4245 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4246 
4247 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4248 VS_VERSION_INTERNAL_2012=110
4249 VS_MSVCR_2012=msvcr110.dll
4250 VS_MSVCP_2012=msvcp110.dll
4251 VS_ENVVAR_2012="VS110COMNTOOLS"
4252 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4253 VS_SDK_INSTALLDIR_2012=
4254 VS_VS_PLATFORM_NAME_2012="v110"
4255 VS_SDK_PLATFORM_NAME_2012=
4256 
4257 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4258 VS_VERSION_INTERNAL_2013=120
4259 VS_MSVCR_2013=msvcr120.dll
4260 VS_MSVCP_2013=msvcp120.dll
4261 VS_ENVVAR_2013="VS120COMNTOOLS"
4262 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4263 VS_SDK_INSTALLDIR_2013=
4264 VS_VS_PLATFORM_NAME_2013="v120"
4265 VS_SDK_PLATFORM_NAME_2013=
4266 
4267 ################################################################################
4268 
4269 
4270 
4271 ################################################################################
4272 
4273 
4274 
4275 ################################################################################
4276 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4277 # build environment and assigns it to VS_ENV_CMD
4278 
4279 
4280 ################################################################################
4281 
4282 
4283 
4284 ################################################################################
4285 # Check if the VS env variables were setup prior to running configure.
4286 # If not, then find vcvarsall.bat and run it automatically, and integrate
4287 # the set env variables into the spec file.
4288 
4289 
4290 
4291 
4292 
4293 
4294 
4295 
4296 
4297 
4298 
4299 
4300 
4301 
4302 # This line needs to be here, verbatim, after all includes and the dummy hook
4303 # definitions. It is replaced with custom functionality when building
4304 # custom sources.
4305 #CUSTOM_AUTOCONF_INCLUDE
4306 
4307 # Do not change or remove the following line, it is needed for consistency checks:
4308 DATE_WHEN_GENERATED=1526910855
4309 
4310 ###############################################################################
4311 #
4312 # Initialization / Boot-strapping
4313 #
4314 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4315 # thus it jumps back and forth, each time gaining something needed later on.
4316 #
4317 ###############################################################################
4318 
4319 # If we are requested to print additional help, do that and then exit.
4320 # This must be the very first call.
4321 
4322   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4323     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4324     $PRINTF "Which are valid to use depends on the build platform.\n"
4325     for toolchain in $VALID_TOOLCHAINS_all; do
4326       # Use indirect variable referencing
4327       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4328       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4329       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4330     done
4331 
4332     # And now exit directly
4333     exit 0
4334   fi
4335 
4336 
4337 # Basic initialization that must happen first of all in the normal process.
4338 
4339   # Save the original command line. This is passed to us by the wrapper configure script.
4340 
4341   DATE_WHEN_CONFIGURED=`LANG=C date`
4342 
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4344 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4346 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4347 
4348 
4349   # Start with tools that do not need have cross compilation support
4350   # and can be expected to be found in the default PATH. These tools are
4351   # used by configure. Nor are these tools expected to be found in the
4352   # devkit from the builddeps server either, since they are
4353   # needed to download the devkit.
4354 
4355   # First are all the simple required tools.
4356 
4357 
4358 
4359   # Publish this variable in the help.
4360 
4361 
4362   if test "x$BASENAME" = x; then
4363     # The variable is not set by user, try to locate tool using the code snippet
4364     for ac_prog in basename
4365 do
4366   # Extract the first word of "$ac_prog", so it can be a program name with args.
4367 set dummy $ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_path_BASENAME+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   case $BASENAME in
4374   [\\/]* | ?:[\\/]*)
4375   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4376   ;;
4377   *)
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383     for ac_exec_ext in '' $ac_executable_extensions; do
4384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390   done
4391 IFS=$as_save_IFS
4392 
4393   ;;
4394 esac
4395 fi
4396 BASENAME=$ac_cv_path_BASENAME
4397 if test -n "$BASENAME"; then
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4399 $as_echo "$BASENAME" >&6; }
4400 else
4401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404 
4405 
4406   test -n "$BASENAME" && break
4407 done
4408 
4409   else
4410     # The variable is set, but is it from the command line or the environment?
4411 
4412     # Try to remove the string !BASENAME! from our list.
4413     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4414     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4415       # If it failed, the variable was not from the command line. Ignore it,
4416       # but warn the user (except for BASH, which is always set by the calling BASH).
4417       if test "xBASENAME" != xBASH; then
4418         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4419 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4420       fi
4421       # Try to locate tool using the code snippet
4422       for ac_prog in basename
4423 do
4424   # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy $ac_prog; ac_word=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_path_BASENAME+:} false; then :
4429   $as_echo_n "(cached) " >&6
4430 else
4431   case $BASENAME in
4432   [\\/]* | ?:[\\/]*)
4433   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4434   ;;
4435   *)
4436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441     for ac_exec_ext in '' $ac_executable_extensions; do
4442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448   done
4449 IFS=$as_save_IFS
4450 
4451   ;;
4452 esac
4453 fi
4454 BASENAME=$ac_cv_path_BASENAME
4455 if test -n "$BASENAME"; then
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4457 $as_echo "$BASENAME" >&6; }
4458 else
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4462 
4463 
4464   test -n "$BASENAME" && break
4465 done
4466 
4467     else
4468       # If it succeeded, then it was overridden by the user. We will use it
4469       # for the tool.
4470 
4471       # First remove it from the list of overridden variables, so we can test
4472       # for unknown variables in the end.
4473       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4474 
4475       # Check if the provided tool contains a complete path.
4476       tool_specified="$BASENAME"
4477       tool_basename="${tool_specified##*/}"
4478       if test "x$tool_basename" = "x$tool_specified"; then
4479         # A command without a complete path is provided, search $PATH.
4480         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4481 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4482         # Extract the first word of "$tool_basename", so it can be a program name with args.
4483 set dummy $tool_basename; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_path_BASENAME+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   case $BASENAME in
4490   [\\/]* | ?:[\\/]*)
4491   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4492   ;;
4493   *)
4494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4496 do
4497   IFS=$as_save_IFS
4498   test -z "$as_dir" && as_dir=.
4499     for ac_exec_ext in '' $ac_executable_extensions; do
4500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4501     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503     break 2
4504   fi
4505 done
4506   done
4507 IFS=$as_save_IFS
4508 
4509   ;;
4510 esac
4511 fi
4512 BASENAME=$ac_cv_path_BASENAME
4513 if test -n "$BASENAME"; then
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4515 $as_echo "$BASENAME" >&6; }
4516 else
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4519 fi
4520 
4521 
4522         if test "x$BASENAME" = x; then
4523           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4524         fi
4525       else
4526         # Otherwise we believe it is a complete path. Use it as it is.
4527         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4528 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4530 $as_echo_n "checking for BASENAME... " >&6; }
4531         if test ! -x "$tool_specified"; then
4532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4533 $as_echo "not found" >&6; }
4534           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4535         fi
4536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4537 $as_echo "$tool_specified" >&6; }
4538       fi
4539     fi
4540   fi
4541 
4542 
4543 
4544   if test "x$BASENAME" = x; then
4545     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4546   fi
4547 
4548 
4549 
4550 
4551 
4552   # Publish this variable in the help.
4553 
4554 
4555   if test "x$BASH" = x; then
4556     # The variable is not set by user, try to locate tool using the code snippet
4557     for ac_prog in bash
4558 do
4559   # Extract the first word of "$ac_prog", so it can be a program name with args.
4560 set dummy $ac_prog; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if ${ac_cv_path_BASH+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   case $BASH in
4567   [\\/]* | ?:[\\/]*)
4568   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4569   ;;
4570   *)
4571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576     for ac_exec_ext in '' $ac_executable_extensions; do
4577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580     break 2
4581   fi
4582 done
4583   done
4584 IFS=$as_save_IFS
4585 
4586   ;;
4587 esac
4588 fi
4589 BASH=$ac_cv_path_BASH
4590 if test -n "$BASH"; then
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4592 $as_echo "$BASH" >&6; }
4593 else
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597 
4598 
4599   test -n "$BASH" && break
4600 done
4601 
4602   else
4603     # The variable is set, but is it from the command line or the environment?
4604 
4605     # Try to remove the string !BASH! from our list.
4606     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4607     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4608       # If it failed, the variable was not from the command line. Ignore it,
4609       # but warn the user (except for BASH, which is always set by the calling BASH).
4610       if test "xBASH" != xBASH; then
4611         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4612 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4613       fi
4614       # Try to locate tool using the code snippet
4615       for ac_prog in bash
4616 do
4617   # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_path_BASH+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624   case $BASH in
4625   [\\/]* | ?:[\\/]*)
4626   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4627   ;;
4628   *)
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_exec_ext in '' $ac_executable_extensions; do
4635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638     break 2
4639   fi
4640 done
4641   done
4642 IFS=$as_save_IFS
4643 
4644   ;;
4645 esac
4646 fi
4647 BASH=$ac_cv_path_BASH
4648 if test -n "$BASH"; then
4649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4650 $as_echo "$BASH" >&6; }
4651 else
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4654 fi
4655 
4656 
4657   test -n "$BASH" && break
4658 done
4659 
4660     else
4661       # If it succeeded, then it was overridden by the user. We will use it
4662       # for the tool.
4663 
4664       # First remove it from the list of overridden variables, so we can test
4665       # for unknown variables in the end.
4666       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4667 
4668       # Check if the provided tool contains a complete path.
4669       tool_specified="$BASH"
4670       tool_basename="${tool_specified##*/}"
4671       if test "x$tool_basename" = "x$tool_specified"; then
4672         # A command without a complete path is provided, search $PATH.
4673         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4674 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4675         # Extract the first word of "$tool_basename", so it can be a program name with args.
4676 set dummy $tool_basename; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_path_BASH+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   case $BASH in
4683   [\\/]* | ?:[\\/]*)
4684   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4685   ;;
4686   *)
4687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692     for ac_exec_ext in '' $ac_executable_extensions; do
4693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699   done
4700 IFS=$as_save_IFS
4701 
4702   ;;
4703 esac
4704 fi
4705 BASH=$ac_cv_path_BASH
4706 if test -n "$BASH"; then
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4708 $as_echo "$BASH" >&6; }
4709 else
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713 
4714 
4715         if test "x$BASH" = x; then
4716           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4717         fi
4718       else
4719         # Otherwise we believe it is a complete path. Use it as it is.
4720         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4721 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4723 $as_echo_n "checking for BASH... " >&6; }
4724         if test ! -x "$tool_specified"; then
4725           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4726 $as_echo "not found" >&6; }
4727           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4728         fi
4729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4730 $as_echo "$tool_specified" >&6; }
4731       fi
4732     fi
4733   fi
4734 
4735 
4736 
4737   if test "x$BASH" = x; then
4738     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4739   fi
4740 
4741 
4742 
4743 
4744 
4745   # Publish this variable in the help.
4746 
4747 
4748   if test "x$CAT" = x; then
4749     # The variable is not set by user, try to locate tool using the code snippet
4750     for ac_prog in cat
4751 do
4752   # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy $ac_prog; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_path_CAT+:} false; then :
4757   $as_echo_n "(cached) " >&6
4758 else
4759   case $CAT in
4760   [\\/]* | ?:[\\/]*)
4761   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4762   ;;
4763   *)
4764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769     for ac_exec_ext in '' $ac_executable_extensions; do
4770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776   done
4777 IFS=$as_save_IFS
4778 
4779   ;;
4780 esac
4781 fi
4782 CAT=$ac_cv_path_CAT
4783 if test -n "$CAT"; then
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4785 $as_echo "$CAT" >&6; }
4786 else
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4789 fi
4790 
4791 
4792   test -n "$CAT" && break
4793 done
4794 
4795   else
4796     # The variable is set, but is it from the command line or the environment?
4797 
4798     # Try to remove the string !CAT! from our list.
4799     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4800     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4801       # If it failed, the variable was not from the command line. Ignore it,
4802       # but warn the user (except for BASH, which is always set by the calling BASH).
4803       if test "xCAT" != xBASH; then
4804         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4805 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4806       fi
4807       # Try to locate tool using the code snippet
4808       for ac_prog in cat
4809 do
4810   # Extract the first word of "$ac_prog", so it can be a program name with args.
4811 set dummy $ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_path_CAT+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   case $CAT in
4818   [\\/]* | ?:[\\/]*)
4819   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4820   ;;
4821   *)
4822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825   IFS=$as_save_IFS
4826   test -z "$as_dir" && as_dir=.
4827     for ac_exec_ext in '' $ac_executable_extensions; do
4828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831     break 2
4832   fi
4833 done
4834   done
4835 IFS=$as_save_IFS
4836 
4837   ;;
4838 esac
4839 fi
4840 CAT=$ac_cv_path_CAT
4841 if test -n "$CAT"; then
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4843 $as_echo "$CAT" >&6; }
4844 else
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848 
4849 
4850   test -n "$CAT" && break
4851 done
4852 
4853     else
4854       # If it succeeded, then it was overridden by the user. We will use it
4855       # for the tool.
4856 
4857       # First remove it from the list of overridden variables, so we can test
4858       # for unknown variables in the end.
4859       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4860 
4861       # Check if the provided tool contains a complete path.
4862       tool_specified="$CAT"
4863       tool_basename="${tool_specified##*/}"
4864       if test "x$tool_basename" = "x$tool_specified"; then
4865         # A command without a complete path is provided, search $PATH.
4866         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4867 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4868         # Extract the first word of "$tool_basename", so it can be a program name with args.
4869 set dummy $tool_basename; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_path_CAT+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   case $CAT in
4876   [\\/]* | ?:[\\/]*)
4877   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4878   ;;
4879   *)
4880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     for ac_exec_ext in '' $ac_executable_extensions; do
4886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892   done
4893 IFS=$as_save_IFS
4894 
4895   ;;
4896 esac
4897 fi
4898 CAT=$ac_cv_path_CAT
4899 if test -n "$CAT"; then
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4901 $as_echo "$CAT" >&6; }
4902 else
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905 fi
4906 
4907 
4908         if test "x$CAT" = x; then
4909           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4910         fi
4911       else
4912         # Otherwise we believe it is a complete path. Use it as it is.
4913         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4914 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4916 $as_echo_n "checking for CAT... " >&6; }
4917         if test ! -x "$tool_specified"; then
4918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4919 $as_echo "not found" >&6; }
4920           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4921         fi
4922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4923 $as_echo "$tool_specified" >&6; }
4924       fi
4925     fi
4926   fi
4927 
4928 
4929 
4930   if test "x$CAT" = x; then
4931     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4932   fi
4933 
4934 
4935 
4936 
4937 
4938   # Publish this variable in the help.
4939 
4940 
4941   if test "x$CHMOD" = x; then
4942     # The variable is not set by user, try to locate tool using the code snippet
4943     for ac_prog in chmod
4944 do
4945   # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_path_CHMOD+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   case $CHMOD in
4953   [\\/]* | ?:[\\/]*)
4954   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4955   ;;
4956   *)
4957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971 
4972   ;;
4973 esac
4974 fi
4975 CHMOD=$ac_cv_path_CHMOD
4976 if test -n "$CHMOD"; then
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4978 $as_echo "$CHMOD" >&6; }
4979 else
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983 
4984 
4985   test -n "$CHMOD" && break
4986 done
4987 
4988   else
4989     # The variable is set, but is it from the command line or the environment?
4990 
4991     # Try to remove the string !CHMOD! from our list.
4992     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4993     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4994       # If it failed, the variable was not from the command line. Ignore it,
4995       # but warn the user (except for BASH, which is always set by the calling BASH).
4996       if test "xCHMOD" != xBASH; then
4997         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4998 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4999       fi
5000       # Try to locate tool using the code snippet
5001       for ac_prog in chmod
5002 do
5003   # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if ${ac_cv_path_CHMOD+:} false; then :
5008   $as_echo_n "(cached) " >&6
5009 else
5010   case $CHMOD in
5011   [\\/]* | ?:[\\/]*)
5012   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5013   ;;
5014   *)
5015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_exec_ext in '' $ac_executable_extensions; do
5021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027   done
5028 IFS=$as_save_IFS
5029 
5030   ;;
5031 esac
5032 fi
5033 CHMOD=$ac_cv_path_CHMOD
5034 if test -n "$CHMOD"; then
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5036 $as_echo "$CHMOD" >&6; }
5037 else
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041 
5042 
5043   test -n "$CHMOD" && break
5044 done
5045 
5046     else
5047       # If it succeeded, then it was overridden by the user. We will use it
5048       # for the tool.
5049 
5050       # First remove it from the list of overridden variables, so we can test
5051       # for unknown variables in the end.
5052       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5053 
5054       # Check if the provided tool contains a complete path.
5055       tool_specified="$CHMOD"
5056       tool_basename="${tool_specified##*/}"
5057       if test "x$tool_basename" = "x$tool_specified"; then
5058         # A command without a complete path is provided, search $PATH.
5059         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5060 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5061         # Extract the first word of "$tool_basename", so it can be a program name with args.
5062 set dummy $tool_basename; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_path_CHMOD+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   case $CHMOD in
5069   [\\/]* | ?:[\\/]*)
5070   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5071   ;;
5072   *)
5073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085   done
5086 IFS=$as_save_IFS
5087 
5088   ;;
5089 esac
5090 fi
5091 CHMOD=$ac_cv_path_CHMOD
5092 if test -n "$CHMOD"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5094 $as_echo "$CHMOD" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099 
5100 
5101         if test "x$CHMOD" = x; then
5102           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5103         fi
5104       else
5105         # Otherwise we believe it is a complete path. Use it as it is.
5106         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5107 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5109 $as_echo_n "checking for CHMOD... " >&6; }
5110         if test ! -x "$tool_specified"; then
5111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5112 $as_echo "not found" >&6; }
5113           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5114         fi
5115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5116 $as_echo "$tool_specified" >&6; }
5117       fi
5118     fi
5119   fi
5120 
5121 
5122 
5123   if test "x$CHMOD" = x; then
5124     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5125   fi
5126 
5127 
5128 
5129 
5130 
5131   # Publish this variable in the help.
5132 
5133 
5134   if test "x$CMP" = x; then
5135     # The variable is not set by user, try to locate tool using the code snippet
5136     for ac_prog in cmp
5137 do
5138   # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_CMP+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   case $CMP in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162   done
5163 IFS=$as_save_IFS
5164 
5165   ;;
5166 esac
5167 fi
5168 CMP=$ac_cv_path_CMP
5169 if test -n "$CMP"; then
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5171 $as_echo "$CMP" >&6; }
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176 
5177 
5178   test -n "$CMP" && break
5179 done
5180 
5181   else
5182     # The variable is set, but is it from the command line or the environment?
5183 
5184     # Try to remove the string !CMP! from our list.
5185     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5186     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5187       # If it failed, the variable was not from the command line. Ignore it,
5188       # but warn the user (except for BASH, which is always set by the calling BASH).
5189       if test "xCMP" != xBASH; then
5190         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5191 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5192       fi
5193       # Try to locate tool using the code snippet
5194       for ac_prog in cmp
5195 do
5196   # Extract the first word of "$ac_prog", so it can be a program name with args.
5197 set dummy $ac_prog; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_path_CMP+:} false; then :
5201   $as_echo_n "(cached) " >&6
5202 else
5203   case $CMP in
5204   [\\/]* | ?:[\\/]*)
5205   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5206   ;;
5207   *)
5208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220   done
5221 IFS=$as_save_IFS
5222 
5223   ;;
5224 esac
5225 fi
5226 CMP=$ac_cv_path_CMP
5227 if test -n "$CMP"; then
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5229 $as_echo "$CMP" >&6; }
5230 else
5231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233 fi
5234 
5235 
5236   test -n "$CMP" && break
5237 done
5238 
5239     else
5240       # If it succeeded, then it was overridden by the user. We will use it
5241       # for the tool.
5242 
5243       # First remove it from the list of overridden variables, so we can test
5244       # for unknown variables in the end.
5245       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5246 
5247       # Check if the provided tool contains a complete path.
5248       tool_specified="$CMP"
5249       tool_basename="${tool_specified##*/}"
5250       if test "x$tool_basename" = "x$tool_specified"; then
5251         # A command without a complete path is provided, search $PATH.
5252         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5253 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5254         # Extract the first word of "$tool_basename", so it can be a program name with args.
5255 set dummy $tool_basename; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_path_CMP+:} false; then :
5259   $as_echo_n "(cached) " >&6
5260 else
5261   case $CMP in
5262   [\\/]* | ?:[\\/]*)
5263   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5264   ;;
5265   *)
5266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271     for ac_exec_ext in '' $ac_executable_extensions; do
5272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275     break 2
5276   fi
5277 done
5278   done
5279 IFS=$as_save_IFS
5280 
5281   ;;
5282 esac
5283 fi
5284 CMP=$ac_cv_path_CMP
5285 if test -n "$CMP"; then
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5287 $as_echo "$CMP" >&6; }
5288 else
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 fi
5292 
5293 
5294         if test "x$CMP" = x; then
5295           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5296         fi
5297       else
5298         # Otherwise we believe it is a complete path. Use it as it is.
5299         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5300 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5302 $as_echo_n "checking for CMP... " >&6; }
5303         if test ! -x "$tool_specified"; then
5304           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5305 $as_echo "not found" >&6; }
5306           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5307         fi
5308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5309 $as_echo "$tool_specified" >&6; }
5310       fi
5311     fi
5312   fi
5313 
5314 
5315 
5316   if test "x$CMP" = x; then
5317     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5318   fi
5319 
5320 
5321 
5322 
5323 
5324   # Publish this variable in the help.
5325 
5326 
5327   if test "x$COMM" = x; then
5328     # The variable is not set by user, try to locate tool using the code snippet
5329     for ac_prog in comm
5330 do
5331   # Extract the first word of "$ac_prog", so it can be a program name with args.
5332 set dummy $ac_prog; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_path_COMM+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   case $COMM in
5339   [\\/]* | ?:[\\/]*)
5340   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5341   ;;
5342   *)
5343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357 
5358   ;;
5359 esac
5360 fi
5361 COMM=$ac_cv_path_COMM
5362 if test -n "$COMM"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5364 $as_echo "$COMM" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369 
5370 
5371   test -n "$COMM" && break
5372 done
5373 
5374   else
5375     # The variable is set, but is it from the command line or the environment?
5376 
5377     # Try to remove the string !COMM! from our list.
5378     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5379     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5380       # If it failed, the variable was not from the command line. Ignore it,
5381       # but warn the user (except for BASH, which is always set by the calling BASH).
5382       if test "xCOMM" != xBASH; then
5383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5384 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5385       fi
5386       # Try to locate tool using the code snippet
5387       for ac_prog in comm
5388 do
5389   # Extract the first word of "$ac_prog", so it can be a program name with args.
5390 set dummy $ac_prog; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_COMM+:} false; then :
5394   $as_echo_n "(cached) " >&6
5395 else
5396   case $COMM in
5397   [\\/]* | ?:[\\/]*)
5398   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5399   ;;
5400   *)
5401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5403 do
5404   IFS=$as_save_IFS
5405   test -z "$as_dir" && as_dir=.
5406     for ac_exec_ext in '' $ac_executable_extensions; do
5407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410     break 2
5411   fi
5412 done
5413   done
5414 IFS=$as_save_IFS
5415 
5416   ;;
5417 esac
5418 fi
5419 COMM=$ac_cv_path_COMM
5420 if test -n "$COMM"; then
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5422 $as_echo "$COMM" >&6; }
5423 else
5424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427 
5428 
5429   test -n "$COMM" && break
5430 done
5431 
5432     else
5433       # If it succeeded, then it was overridden by the user. We will use it
5434       # for the tool.
5435 
5436       # First remove it from the list of overridden variables, so we can test
5437       # for unknown variables in the end.
5438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5439 
5440       # Check if the provided tool contains a complete path.
5441       tool_specified="$COMM"
5442       tool_basename="${tool_specified##*/}"
5443       if test "x$tool_basename" = "x$tool_specified"; then
5444         # A command without a complete path is provided, search $PATH.
5445         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5446 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5447         # Extract the first word of "$tool_basename", so it can be a program name with args.
5448 set dummy $tool_basename; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_path_COMM+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   case $COMM in
5455   [\\/]* | ?:[\\/]*)
5456   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5457   ;;
5458   *)
5459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464     for ac_exec_ext in '' $ac_executable_extensions; do
5465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468     break 2
5469   fi
5470 done
5471   done
5472 IFS=$as_save_IFS
5473 
5474   ;;
5475 esac
5476 fi
5477 COMM=$ac_cv_path_COMM
5478 if test -n "$COMM"; then
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5480 $as_echo "$COMM" >&6; }
5481 else
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485 
5486 
5487         if test "x$COMM" = x; then
5488           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5489         fi
5490       else
5491         # Otherwise we believe it is a complete path. Use it as it is.
5492         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5493 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5495 $as_echo_n "checking for COMM... " >&6; }
5496         if test ! -x "$tool_specified"; then
5497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5498 $as_echo "not found" >&6; }
5499           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5500         fi
5501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5502 $as_echo "$tool_specified" >&6; }
5503       fi
5504     fi
5505   fi
5506 
5507 
5508 
5509   if test "x$COMM" = x; then
5510     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5511   fi
5512 
5513 
5514 
5515 
5516 
5517   # Publish this variable in the help.
5518 
5519 
5520   if test "x$CP" = x; then
5521     # The variable is not set by user, try to locate tool using the code snippet
5522     for ac_prog in cp
5523 do
5524   # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy $ac_prog; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_path_CP+:} false; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   case $CP in
5532   [\\/]* | ?:[\\/]*)
5533   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5534   ;;
5535   *)
5536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5538 do
5539   IFS=$as_save_IFS
5540   test -z "$as_dir" && as_dir=.
5541     for ac_exec_ext in '' $ac_executable_extensions; do
5542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545     break 2
5546   fi
5547 done
5548   done
5549 IFS=$as_save_IFS
5550 
5551   ;;
5552 esac
5553 fi
5554 CP=$ac_cv_path_CP
5555 if test -n "$CP"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5557 $as_echo "$CP" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562 
5563 
5564   test -n "$CP" && break
5565 done
5566 
5567   else
5568     # The variable is set, but is it from the command line or the environment?
5569 
5570     # Try to remove the string !CP! from our list.
5571     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5572     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5573       # If it failed, the variable was not from the command line. Ignore it,
5574       # but warn the user (except for BASH, which is always set by the calling BASH).
5575       if test "xCP" != xBASH; then
5576         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5577 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5578       fi
5579       # Try to locate tool using the code snippet
5580       for ac_prog in cp
5581 do
5582   # Extract the first word of "$ac_prog", so it can be a program name with args.
5583 set dummy $ac_prog; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_path_CP+:} false; then :
5587   $as_echo_n "(cached) " >&6
5588 else
5589   case $CP in
5590   [\\/]* | ?:[\\/]*)
5591   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5592   ;;
5593   *)
5594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599     for ac_exec_ext in '' $ac_executable_extensions; do
5600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603     break 2
5604   fi
5605 done
5606   done
5607 IFS=$as_save_IFS
5608 
5609   ;;
5610 esac
5611 fi
5612 CP=$ac_cv_path_CP
5613 if test -n "$CP"; then
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5615 $as_echo "$CP" >&6; }
5616 else
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620 
5621 
5622   test -n "$CP" && break
5623 done
5624 
5625     else
5626       # If it succeeded, then it was overridden by the user. We will use it
5627       # for the tool.
5628 
5629       # First remove it from the list of overridden variables, so we can test
5630       # for unknown variables in the end.
5631       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5632 
5633       # Check if the provided tool contains a complete path.
5634       tool_specified="$CP"
5635       tool_basename="${tool_specified##*/}"
5636       if test "x$tool_basename" = "x$tool_specified"; then
5637         # A command without a complete path is provided, search $PATH.
5638         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5639 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5640         # Extract the first word of "$tool_basename", so it can be a program name with args.
5641 set dummy $tool_basename; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_path_CP+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   case $CP in
5648   [\\/]* | ?:[\\/]*)
5649   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5650   ;;
5651   *)
5652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657     for ac_exec_ext in '' $ac_executable_extensions; do
5658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664   done
5665 IFS=$as_save_IFS
5666 
5667   ;;
5668 esac
5669 fi
5670 CP=$ac_cv_path_CP
5671 if test -n "$CP"; then
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5673 $as_echo "$CP" >&6; }
5674 else
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5677 fi
5678 
5679 
5680         if test "x$CP" = x; then
5681           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5682         fi
5683       else
5684         # Otherwise we believe it is a complete path. Use it as it is.
5685         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5686 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5688 $as_echo_n "checking for CP... " >&6; }
5689         if test ! -x "$tool_specified"; then
5690           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5691 $as_echo "not found" >&6; }
5692           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5693         fi
5694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5695 $as_echo "$tool_specified" >&6; }
5696       fi
5697     fi
5698   fi
5699 
5700 
5701 
5702   if test "x$CP" = x; then
5703     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5704   fi
5705 
5706 
5707 
5708 
5709 
5710   # Publish this variable in the help.
5711 
5712 
5713   if test "x$CUT" = x; then
5714     # The variable is not set by user, try to locate tool using the code snippet
5715     for ac_prog in cut
5716 do
5717   # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_path_CUT+:} false; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   case $CUT in
5725   [\\/]* | ?:[\\/]*)
5726   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5727   ;;
5728   *)
5729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734     for ac_exec_ext in '' $ac_executable_extensions; do
5735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738     break 2
5739   fi
5740 done
5741   done
5742 IFS=$as_save_IFS
5743 
5744   ;;
5745 esac
5746 fi
5747 CUT=$ac_cv_path_CUT
5748 if test -n "$CUT"; then
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5750 $as_echo "$CUT" >&6; }
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755 
5756 
5757   test -n "$CUT" && break
5758 done
5759 
5760   else
5761     # The variable is set, but is it from the command line or the environment?
5762 
5763     # Try to remove the string !CUT! from our list.
5764     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5765     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5766       # If it failed, the variable was not from the command line. Ignore it,
5767       # but warn the user (except for BASH, which is always set by the calling BASH).
5768       if test "xCUT" != xBASH; then
5769         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5770 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5771       fi
5772       # Try to locate tool using the code snippet
5773       for ac_prog in cut
5774 do
5775   # Extract the first word of "$ac_prog", so it can be a program name with args.
5776 set dummy $ac_prog; ac_word=$2
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 $as_echo_n "checking for $ac_word... " >&6; }
5779 if ${ac_cv_path_CUT+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   case $CUT in
5783   [\\/]* | ?:[\\/]*)
5784   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5785   ;;
5786   *)
5787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790   IFS=$as_save_IFS
5791   test -z "$as_dir" && as_dir=.
5792     for ac_exec_ext in '' $ac_executable_extensions; do
5793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5796     break 2
5797   fi
5798 done
5799   done
5800 IFS=$as_save_IFS
5801 
5802   ;;
5803 esac
5804 fi
5805 CUT=$ac_cv_path_CUT
5806 if test -n "$CUT"; then
5807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5808 $as_echo "$CUT" >&6; }
5809 else
5810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813 
5814 
5815   test -n "$CUT" && break
5816 done
5817 
5818     else
5819       # If it succeeded, then it was overridden by the user. We will use it
5820       # for the tool.
5821 
5822       # First remove it from the list of overridden variables, so we can test
5823       # for unknown variables in the end.
5824       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5825 
5826       # Check if the provided tool contains a complete path.
5827       tool_specified="$CUT"
5828       tool_basename="${tool_specified##*/}"
5829       if test "x$tool_basename" = "x$tool_specified"; then
5830         # A command without a complete path is provided, search $PATH.
5831         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5832 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5833         # Extract the first word of "$tool_basename", so it can be a program name with args.
5834 set dummy $tool_basename; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_path_CUT+:} false; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   case $CUT in
5841   [\\/]* | ?:[\\/]*)
5842   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5843   ;;
5844   *)
5845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850     for ac_exec_ext in '' $ac_executable_extensions; do
5851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857   done
5858 IFS=$as_save_IFS
5859 
5860   ;;
5861 esac
5862 fi
5863 CUT=$ac_cv_path_CUT
5864 if test -n "$CUT"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5866 $as_echo "$CUT" >&6; }
5867 else
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871 
5872 
5873         if test "x$CUT" = x; then
5874           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5875         fi
5876       else
5877         # Otherwise we believe it is a complete path. Use it as it is.
5878         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5879 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5881 $as_echo_n "checking for CUT... " >&6; }
5882         if test ! -x "$tool_specified"; then
5883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5884 $as_echo "not found" >&6; }
5885           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5886         fi
5887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5888 $as_echo "$tool_specified" >&6; }
5889       fi
5890     fi
5891   fi
5892 
5893 
5894 
5895   if test "x$CUT" = x; then
5896     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5897   fi
5898 
5899 
5900 
5901 
5902 
5903   # Publish this variable in the help.
5904 
5905 
5906   if test "x$DATE" = x; then
5907     # The variable is not set by user, try to locate tool using the code snippet
5908     for ac_prog in date
5909 do
5910   # Extract the first word of "$ac_prog", so it can be a program name with args.
5911 set dummy $ac_prog; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if ${ac_cv_path_DATE+:} false; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   case $DATE in
5918   [\\/]* | ?:[\\/]*)
5919   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5920   ;;
5921   *)
5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927     for ac_exec_ext in '' $ac_executable_extensions; do
5928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934   done
5935 IFS=$as_save_IFS
5936 
5937   ;;
5938 esac
5939 fi
5940 DATE=$ac_cv_path_DATE
5941 if test -n "$DATE"; then
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5943 $as_echo "$DATE" >&6; }
5944 else
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948 
5949 
5950   test -n "$DATE" && break
5951 done
5952 
5953   else
5954     # The variable is set, but is it from the command line or the environment?
5955 
5956     # Try to remove the string !DATE! from our list.
5957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5959       # If it failed, the variable was not from the command line. Ignore it,
5960       # but warn the user (except for BASH, which is always set by the calling BASH).
5961       if test "xDATE" != xBASH; then
5962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5963 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5964       fi
5965       # Try to locate tool using the code snippet
5966       for ac_prog in date
5967 do
5968   # Extract the first word of "$ac_prog", so it can be a program name with args.
5969 set dummy $ac_prog; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_path_DATE+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   case $DATE in
5976   [\\/]* | ?:[\\/]*)
5977   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5978   ;;
5979   *)
5980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985     for ac_exec_ext in '' $ac_executable_extensions; do
5986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992   done
5993 IFS=$as_save_IFS
5994 
5995   ;;
5996 esac
5997 fi
5998 DATE=$ac_cv_path_DATE
5999 if test -n "$DATE"; then
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6001 $as_echo "$DATE" >&6; }
6002 else
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6005 fi
6006 
6007 
6008   test -n "$DATE" && break
6009 done
6010 
6011     else
6012       # If it succeeded, then it was overridden by the user. We will use it
6013       # for the tool.
6014 
6015       # First remove it from the list of overridden variables, so we can test
6016       # for unknown variables in the end.
6017       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6018 
6019       # Check if the provided tool contains a complete path.
6020       tool_specified="$DATE"
6021       tool_basename="${tool_specified##*/}"
6022       if test "x$tool_basename" = "x$tool_specified"; then
6023         # A command without a complete path is provided, search $PATH.
6024         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6025 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6026         # Extract the first word of "$tool_basename", so it can be a program name with args.
6027 set dummy $tool_basename; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_path_DATE+:} false; then :
6031   $as_echo_n "(cached) " >&6
6032 else
6033   case $DATE in
6034   [\\/]* | ?:[\\/]*)
6035   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6036   ;;
6037   *)
6038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043     for ac_exec_ext in '' $ac_executable_extensions; do
6044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050   done
6051 IFS=$as_save_IFS
6052 
6053   ;;
6054 esac
6055 fi
6056 DATE=$ac_cv_path_DATE
6057 if test -n "$DATE"; then
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6059 $as_echo "$DATE" >&6; }
6060 else
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064 
6065 
6066         if test "x$DATE" = x; then
6067           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6068         fi
6069       else
6070         # Otherwise we believe it is a complete path. Use it as it is.
6071         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6072 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6074 $as_echo_n "checking for DATE... " >&6; }
6075         if test ! -x "$tool_specified"; then
6076           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6077 $as_echo "not found" >&6; }
6078           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6079         fi
6080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6081 $as_echo "$tool_specified" >&6; }
6082       fi
6083     fi
6084   fi
6085 
6086 
6087 
6088   if test "x$DATE" = x; then
6089     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6090   fi
6091 
6092 
6093 
6094 
6095 
6096   # Publish this variable in the help.
6097 
6098 
6099   if test "x$DIFF" = x; then
6100     # The variable is not set by user, try to locate tool using the code snippet
6101     for ac_prog in gdiff diff
6102 do
6103   # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_path_DIFF+:} false; then :
6108   $as_echo_n "(cached) " >&6
6109 else
6110   case $DIFF in
6111   [\\/]* | ?:[\\/]*)
6112   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6113   ;;
6114   *)
6115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6117 do
6118   IFS=$as_save_IFS
6119   test -z "$as_dir" && as_dir=.
6120     for ac_exec_ext in '' $ac_executable_extensions; do
6121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124     break 2
6125   fi
6126 done
6127   done
6128 IFS=$as_save_IFS
6129 
6130   ;;
6131 esac
6132 fi
6133 DIFF=$ac_cv_path_DIFF
6134 if test -n "$DIFF"; then
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6136 $as_echo "$DIFF" >&6; }
6137 else
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6140 fi
6141 
6142 
6143   test -n "$DIFF" && break
6144 done
6145 
6146   else
6147     # The variable is set, but is it from the command line or the environment?
6148 
6149     # Try to remove the string !DIFF! from our list.
6150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6152       # If it failed, the variable was not from the command line. Ignore it,
6153       # but warn the user (except for BASH, which is always set by the calling BASH).
6154       if test "xDIFF" != xBASH; then
6155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6156 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6157       fi
6158       # Try to locate tool using the code snippet
6159       for ac_prog in gdiff diff
6160 do
6161   # Extract the first word of "$ac_prog", so it can be a program name with args.
6162 set dummy $ac_prog; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_path_DIFF+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   case $DIFF in
6169   [\\/]* | ?:[\\/]*)
6170   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6171   ;;
6172   *)
6173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178     for ac_exec_ext in '' $ac_executable_extensions; do
6179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182     break 2
6183   fi
6184 done
6185   done
6186 IFS=$as_save_IFS
6187 
6188   ;;
6189 esac
6190 fi
6191 DIFF=$ac_cv_path_DIFF
6192 if test -n "$DIFF"; then
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6194 $as_echo "$DIFF" >&6; }
6195 else
6196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199 
6200 
6201   test -n "$DIFF" && break
6202 done
6203 
6204     else
6205       # If it succeeded, then it was overridden by the user. We will use it
6206       # for the tool.
6207 
6208       # First remove it from the list of overridden variables, so we can test
6209       # for unknown variables in the end.
6210       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6211 
6212       # Check if the provided tool contains a complete path.
6213       tool_specified="$DIFF"
6214       tool_basename="${tool_specified##*/}"
6215       if test "x$tool_basename" = "x$tool_specified"; then
6216         # A command without a complete path is provided, search $PATH.
6217         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6218 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6219         # Extract the first word of "$tool_basename", so it can be a program name with args.
6220 set dummy $tool_basename; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if ${ac_cv_path_DIFF+:} false; then :
6224   $as_echo_n "(cached) " >&6
6225 else
6226   case $DIFF in
6227   [\\/]* | ?:[\\/]*)
6228   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6229   ;;
6230   *)
6231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236     for ac_exec_ext in '' $ac_executable_extensions; do
6237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243   done
6244 IFS=$as_save_IFS
6245 
6246   ;;
6247 esac
6248 fi
6249 DIFF=$ac_cv_path_DIFF
6250 if test -n "$DIFF"; then
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6252 $as_echo "$DIFF" >&6; }
6253 else
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257 
6258 
6259         if test "x$DIFF" = x; then
6260           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6261         fi
6262       else
6263         # Otherwise we believe it is a complete path. Use it as it is.
6264         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6265 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6267 $as_echo_n "checking for DIFF... " >&6; }
6268         if test ! -x "$tool_specified"; then
6269           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6270 $as_echo "not found" >&6; }
6271           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6272         fi
6273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6274 $as_echo "$tool_specified" >&6; }
6275       fi
6276     fi
6277   fi
6278 
6279 
6280 
6281   if test "x$DIFF" = x; then
6282     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6283   fi
6284 
6285 
6286 
6287 
6288 
6289   # Publish this variable in the help.
6290 
6291 
6292   if test "x$DIRNAME" = x; then
6293     # The variable is not set by user, try to locate tool using the code snippet
6294     for ac_prog in dirname
6295 do
6296   # Extract the first word of "$ac_prog", so it can be a program name with args.
6297 set dummy $ac_prog; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_path_DIRNAME+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   case $DIRNAME in
6304   [\\/]* | ?:[\\/]*)
6305   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6306   ;;
6307   *)
6308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313     for ac_exec_ext in '' $ac_executable_extensions; do
6314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320   done
6321 IFS=$as_save_IFS
6322 
6323   ;;
6324 esac
6325 fi
6326 DIRNAME=$ac_cv_path_DIRNAME
6327 if test -n "$DIRNAME"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6329 $as_echo "$DIRNAME" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334 
6335 
6336   test -n "$DIRNAME" && break
6337 done
6338 
6339   else
6340     # The variable is set, but is it from the command line or the environment?
6341 
6342     # Try to remove the string !DIRNAME! from our list.
6343     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6344     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6345       # If it failed, the variable was not from the command line. Ignore it,
6346       # but warn the user (except for BASH, which is always set by the calling BASH).
6347       if test "xDIRNAME" != xBASH; then
6348         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6349 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6350       fi
6351       # Try to locate tool using the code snippet
6352       for ac_prog in dirname
6353 do
6354   # Extract the first word of "$ac_prog", so it can be a program name with args.
6355 set dummy $ac_prog; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_path_DIRNAME+:} false; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361   case $DIRNAME in
6362   [\\/]* | ?:[\\/]*)
6363   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6364   ;;
6365   *)
6366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371     for ac_exec_ext in '' $ac_executable_extensions; do
6372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378   done
6379 IFS=$as_save_IFS
6380 
6381   ;;
6382 esac
6383 fi
6384 DIRNAME=$ac_cv_path_DIRNAME
6385 if test -n "$DIRNAME"; then
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6387 $as_echo "$DIRNAME" >&6; }
6388 else
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392 
6393 
6394   test -n "$DIRNAME" && break
6395 done
6396 
6397     else
6398       # If it succeeded, then it was overridden by the user. We will use it
6399       # for the tool.
6400 
6401       # First remove it from the list of overridden variables, so we can test
6402       # for unknown variables in the end.
6403       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6404 
6405       # Check if the provided tool contains a complete path.
6406       tool_specified="$DIRNAME"
6407       tool_basename="${tool_specified##*/}"
6408       if test "x$tool_basename" = "x$tool_specified"; then
6409         # A command without a complete path is provided, search $PATH.
6410         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6411 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6412         # Extract the first word of "$tool_basename", so it can be a program name with args.
6413 set dummy $tool_basename; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_path_DIRNAME+:} false; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   case $DIRNAME in
6420   [\\/]* | ?:[\\/]*)
6421   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6422   ;;
6423   *)
6424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429     for ac_exec_ext in '' $ac_executable_extensions; do
6430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436   done
6437 IFS=$as_save_IFS
6438 
6439   ;;
6440 esac
6441 fi
6442 DIRNAME=$ac_cv_path_DIRNAME
6443 if test -n "$DIRNAME"; then
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6445 $as_echo "$DIRNAME" >&6; }
6446 else
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450 
6451 
6452         if test "x$DIRNAME" = x; then
6453           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6454         fi
6455       else
6456         # Otherwise we believe it is a complete path. Use it as it is.
6457         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6458 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6460 $as_echo_n "checking for DIRNAME... " >&6; }
6461         if test ! -x "$tool_specified"; then
6462           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6463 $as_echo "not found" >&6; }
6464           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6465         fi
6466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6467 $as_echo "$tool_specified" >&6; }
6468       fi
6469     fi
6470   fi
6471 
6472 
6473 
6474   if test "x$DIRNAME" = x; then
6475     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6476   fi
6477 
6478 
6479 
6480 
6481 
6482   # Publish this variable in the help.
6483 
6484 
6485   if test "x$ECHO" = x; then
6486     # The variable is not set by user, try to locate tool using the code snippet
6487     for ac_prog in echo
6488 do
6489   # Extract the first word of "$ac_prog", so it can be a program name with args.
6490 set dummy $ac_prog; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_path_ECHO+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   case $ECHO in
6497   [\\/]* | ?:[\\/]*)
6498   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6499   ;;
6500   *)
6501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506     for ac_exec_ext in '' $ac_executable_extensions; do
6507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513   done
6514 IFS=$as_save_IFS
6515 
6516   ;;
6517 esac
6518 fi
6519 ECHO=$ac_cv_path_ECHO
6520 if test -n "$ECHO"; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6522 $as_echo "$ECHO" >&6; }
6523 else
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6526 fi
6527 
6528 
6529   test -n "$ECHO" && break
6530 done
6531 
6532   else
6533     # The variable is set, but is it from the command line or the environment?
6534 
6535     # Try to remove the string !ECHO! from our list.
6536     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6537     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6538       # If it failed, the variable was not from the command line. Ignore it,
6539       # but warn the user (except for BASH, which is always set by the calling BASH).
6540       if test "xECHO" != xBASH; then
6541         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6542 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6543       fi
6544       # Try to locate tool using the code snippet
6545       for ac_prog in echo
6546 do
6547   # Extract the first word of "$ac_prog", so it can be a program name with args.
6548 set dummy $ac_prog; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_path_ECHO+:} false; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554   case $ECHO in
6555   [\\/]* | ?:[\\/]*)
6556   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6557   ;;
6558   *)
6559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564     for ac_exec_ext in '' $ac_executable_extensions; do
6565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571   done
6572 IFS=$as_save_IFS
6573 
6574   ;;
6575 esac
6576 fi
6577 ECHO=$ac_cv_path_ECHO
6578 if test -n "$ECHO"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6580 $as_echo "$ECHO" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585 
6586 
6587   test -n "$ECHO" && break
6588 done
6589 
6590     else
6591       # If it succeeded, then it was overridden by the user. We will use it
6592       # for the tool.
6593 
6594       # First remove it from the list of overridden variables, so we can test
6595       # for unknown variables in the end.
6596       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6597 
6598       # Check if the provided tool contains a complete path.
6599       tool_specified="$ECHO"
6600       tool_basename="${tool_specified##*/}"
6601       if test "x$tool_basename" = "x$tool_specified"; then
6602         # A command without a complete path is provided, search $PATH.
6603         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6604 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6605         # Extract the first word of "$tool_basename", so it can be a program name with args.
6606 set dummy $tool_basename; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_path_ECHO+:} false; then :
6610   $as_echo_n "(cached) " >&6
6611 else
6612   case $ECHO in
6613   [\\/]* | ?:[\\/]*)
6614   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6615   ;;
6616   *)
6617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622     for ac_exec_ext in '' $ac_executable_extensions; do
6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629   done
6630 IFS=$as_save_IFS
6631 
6632   ;;
6633 esac
6634 fi
6635 ECHO=$ac_cv_path_ECHO
6636 if test -n "$ECHO"; then
6637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6638 $as_echo "$ECHO" >&6; }
6639 else
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643 
6644 
6645         if test "x$ECHO" = x; then
6646           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6647         fi
6648       else
6649         # Otherwise we believe it is a complete path. Use it as it is.
6650         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6651 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6652         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6653 $as_echo_n "checking for ECHO... " >&6; }
6654         if test ! -x "$tool_specified"; then
6655           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6656 $as_echo "not found" >&6; }
6657           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6658         fi
6659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6660 $as_echo "$tool_specified" >&6; }
6661       fi
6662     fi
6663   fi
6664 
6665 
6666 
6667   if test "x$ECHO" = x; then
6668     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6669   fi
6670 
6671 
6672 
6673 
6674 
6675   # Publish this variable in the help.
6676 
6677 
6678   if test "x$EXPR" = x; then
6679     # The variable is not set by user, try to locate tool using the code snippet
6680     for ac_prog in expr
6681 do
6682   # Extract the first word of "$ac_prog", so it can be a program name with args.
6683 set dummy $ac_prog; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_path_EXPR+:} false; then :
6687   $as_echo_n "(cached) " >&6
6688 else
6689   case $EXPR in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699     for ac_exec_ext in '' $ac_executable_extensions; do
6700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6701     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706   done
6707 IFS=$as_save_IFS
6708 
6709   ;;
6710 esac
6711 fi
6712 EXPR=$ac_cv_path_EXPR
6713 if test -n "$EXPR"; then
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6715 $as_echo "$EXPR" >&6; }
6716 else
6717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720 
6721 
6722   test -n "$EXPR" && break
6723 done
6724 
6725   else
6726     # The variable is set, but is it from the command line or the environment?
6727 
6728     # Try to remove the string !EXPR! from our list.
6729     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6730     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6731       # If it failed, the variable was not from the command line. Ignore it,
6732       # but warn the user (except for BASH, which is always set by the calling BASH).
6733       if test "xEXPR" != xBASH; then
6734         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6735 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6736       fi
6737       # Try to locate tool using the code snippet
6738       for ac_prog in expr
6739 do
6740   # Extract the first word of "$ac_prog", so it can be a program name with args.
6741 set dummy $ac_prog; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_path_EXPR+:} false; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747   case $EXPR in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757     for ac_exec_ext in '' $ac_executable_extensions; do
6758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764   done
6765 IFS=$as_save_IFS
6766 
6767   ;;
6768 esac
6769 fi
6770 EXPR=$ac_cv_path_EXPR
6771 if test -n "$EXPR"; then
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6773 $as_echo "$EXPR" >&6; }
6774 else
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776 $as_echo "no" >&6; }
6777 fi
6778 
6779 
6780   test -n "$EXPR" && break
6781 done
6782 
6783     else
6784       # If it succeeded, then it was overridden by the user. We will use it
6785       # for the tool.
6786 
6787       # First remove it from the list of overridden variables, so we can test
6788       # for unknown variables in the end.
6789       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6790 
6791       # Check if the provided tool contains a complete path.
6792       tool_specified="$EXPR"
6793       tool_basename="${tool_specified##*/}"
6794       if test "x$tool_basename" = "x$tool_specified"; then
6795         # A command without a complete path is provided, search $PATH.
6796         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6797 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6798         # Extract the first word of "$tool_basename", so it can be a program name with args.
6799 set dummy $tool_basename; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_path_EXPR+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   case $EXPR in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822   done
6823 IFS=$as_save_IFS
6824 
6825   ;;
6826 esac
6827 fi
6828 EXPR=$ac_cv_path_EXPR
6829 if test -n "$EXPR"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6831 $as_echo "$EXPR" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836 
6837 
6838         if test "x$EXPR" = x; then
6839           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6840         fi
6841       else
6842         # Otherwise we believe it is a complete path. Use it as it is.
6843         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6844 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6845         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6846 $as_echo_n "checking for EXPR... " >&6; }
6847         if test ! -x "$tool_specified"; then
6848           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6849 $as_echo "not found" >&6; }
6850           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6851         fi
6852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6853 $as_echo "$tool_specified" >&6; }
6854       fi
6855     fi
6856   fi
6857 
6858 
6859 
6860   if test "x$EXPR" = x; then
6861     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6862   fi
6863 
6864 
6865 
6866 
6867 
6868   # Publish this variable in the help.
6869 
6870 
6871   if test "x$FILE" = x; then
6872     # The variable is not set by user, try to locate tool using the code snippet
6873     for ac_prog in file
6874 do
6875   # Extract the first word of "$ac_prog", so it can be a program name with args.
6876 set dummy $ac_prog; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_path_FILE+:} false; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   case $FILE in
6883   [\\/]* | ?:[\\/]*)
6884   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6885   ;;
6886   *)
6887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892     for ac_exec_ext in '' $ac_executable_extensions; do
6893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899   done
6900 IFS=$as_save_IFS
6901 
6902   ;;
6903 esac
6904 fi
6905 FILE=$ac_cv_path_FILE
6906 if test -n "$FILE"; then
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6908 $as_echo "$FILE" >&6; }
6909 else
6910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 $as_echo "no" >&6; }
6912 fi
6913 
6914 
6915   test -n "$FILE" && break
6916 done
6917 
6918   else
6919     # The variable is set, but is it from the command line or the environment?
6920 
6921     # Try to remove the string !FILE! from our list.
6922     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6923     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6924       # If it failed, the variable was not from the command line. Ignore it,
6925       # but warn the user (except for BASH, which is always set by the calling BASH).
6926       if test "xFILE" != xBASH; then
6927         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6928 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6929       fi
6930       # Try to locate tool using the code snippet
6931       for ac_prog in file
6932 do
6933   # Extract the first word of "$ac_prog", so it can be a program name with args.
6934 set dummy $ac_prog; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_path_FILE+:} false; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   case $FILE in
6941   [\\/]* | ?:[\\/]*)
6942   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6943   ;;
6944   *)
6945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950     for ac_exec_ext in '' $ac_executable_extensions; do
6951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957   done
6958 IFS=$as_save_IFS
6959 
6960   ;;
6961 esac
6962 fi
6963 FILE=$ac_cv_path_FILE
6964 if test -n "$FILE"; then
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6966 $as_echo "$FILE" >&6; }
6967 else
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971 
6972 
6973   test -n "$FILE" && break
6974 done
6975 
6976     else
6977       # If it succeeded, then it was overridden by the user. We will use it
6978       # for the tool.
6979 
6980       # First remove it from the list of overridden variables, so we can test
6981       # for unknown variables in the end.
6982       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6983 
6984       # Check if the provided tool contains a complete path.
6985       tool_specified="$FILE"
6986       tool_basename="${tool_specified##*/}"
6987       if test "x$tool_basename" = "x$tool_specified"; then
6988         # A command without a complete path is provided, search $PATH.
6989         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6990 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6991         # Extract the first word of "$tool_basename", so it can be a program name with args.
6992 set dummy $tool_basename; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_path_FILE+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   case $FILE in
6999   [\\/]* | ?:[\\/]*)
7000   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7001   ;;
7002   *)
7003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008     for ac_exec_ext in '' $ac_executable_extensions; do
7009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012     break 2
7013   fi
7014 done
7015   done
7016 IFS=$as_save_IFS
7017 
7018   ;;
7019 esac
7020 fi
7021 FILE=$ac_cv_path_FILE
7022 if test -n "$FILE"; then
7023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7024 $as_echo "$FILE" >&6; }
7025 else
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029 
7030 
7031         if test "x$FILE" = x; then
7032           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7033         fi
7034       else
7035         # Otherwise we believe it is a complete path. Use it as it is.
7036         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7037 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7039 $as_echo_n "checking for FILE... " >&6; }
7040         if test ! -x "$tool_specified"; then
7041           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7042 $as_echo "not found" >&6; }
7043           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7044         fi
7045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7046 $as_echo "$tool_specified" >&6; }
7047       fi
7048     fi
7049   fi
7050 
7051 
7052 
7053   if test "x$FILE" = x; then
7054     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7055   fi
7056 
7057 
7058 
7059 
7060 
7061   # Publish this variable in the help.
7062 
7063 
7064   if test "x$FIND" = x; then
7065     # The variable is not set by user, try to locate tool using the code snippet
7066     for ac_prog in find
7067 do
7068   # Extract the first word of "$ac_prog", so it can be a program name with args.
7069 set dummy $ac_prog; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_path_FIND+:} false; then :
7073   $as_echo_n "(cached) " >&6
7074 else
7075   case $FIND in
7076   [\\/]* | ?:[\\/]*)
7077   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7078   ;;
7079   *)
7080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083   IFS=$as_save_IFS
7084   test -z "$as_dir" && as_dir=.
7085     for ac_exec_ext in '' $ac_executable_extensions; do
7086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089     break 2
7090   fi
7091 done
7092   done
7093 IFS=$as_save_IFS
7094 
7095   ;;
7096 esac
7097 fi
7098 FIND=$ac_cv_path_FIND
7099 if test -n "$FIND"; then
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7101 $as_echo "$FIND" >&6; }
7102 else
7103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 fi
7106 
7107 
7108   test -n "$FIND" && break
7109 done
7110 
7111   else
7112     # The variable is set, but is it from the command line or the environment?
7113 
7114     # Try to remove the string !FIND! from our list.
7115     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7116     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7117       # If it failed, the variable was not from the command line. Ignore it,
7118       # but warn the user (except for BASH, which is always set by the calling BASH).
7119       if test "xFIND" != xBASH; then
7120         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7121 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7122       fi
7123       # Try to locate tool using the code snippet
7124       for ac_prog in find
7125 do
7126   # Extract the first word of "$ac_prog", so it can be a program name with args.
7127 set dummy $ac_prog; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_path_FIND+:} false; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   case $FIND in
7134   [\\/]* | ?:[\\/]*)
7135   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7136   ;;
7137   *)
7138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141   IFS=$as_save_IFS
7142   test -z "$as_dir" && as_dir=.
7143     for ac_exec_ext in '' $ac_executable_extensions; do
7144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147     break 2
7148   fi
7149 done
7150   done
7151 IFS=$as_save_IFS
7152 
7153   ;;
7154 esac
7155 fi
7156 FIND=$ac_cv_path_FIND
7157 if test -n "$FIND"; then
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7159 $as_echo "$FIND" >&6; }
7160 else
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164 
7165 
7166   test -n "$FIND" && break
7167 done
7168 
7169     else
7170       # If it succeeded, then it was overridden by the user. We will use it
7171       # for the tool.
7172 
7173       # First remove it from the list of overridden variables, so we can test
7174       # for unknown variables in the end.
7175       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7176 
7177       # Check if the provided tool contains a complete path.
7178       tool_specified="$FIND"
7179       tool_basename="${tool_specified##*/}"
7180       if test "x$tool_basename" = "x$tool_specified"; then
7181         # A command without a complete path is provided, search $PATH.
7182         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7183 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7184         # Extract the first word of "$tool_basename", so it can be a program name with args.
7185 set dummy $tool_basename; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if ${ac_cv_path_FIND+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   case $FIND in
7192   [\\/]* | ?:[\\/]*)
7193   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7194   ;;
7195   *)
7196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208   done
7209 IFS=$as_save_IFS
7210 
7211   ;;
7212 esac
7213 fi
7214 FIND=$ac_cv_path_FIND
7215 if test -n "$FIND"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7217 $as_echo "$FIND" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222 
7223 
7224         if test "x$FIND" = x; then
7225           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7226         fi
7227       else
7228         # Otherwise we believe it is a complete path. Use it as it is.
7229         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7230 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7232 $as_echo_n "checking for FIND... " >&6; }
7233         if test ! -x "$tool_specified"; then
7234           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7235 $as_echo "not found" >&6; }
7236           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7237         fi
7238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7239 $as_echo "$tool_specified" >&6; }
7240       fi
7241     fi
7242   fi
7243 
7244 
7245 
7246   if test "x$FIND" = x; then
7247     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7248   fi
7249 
7250 
7251 
7252 
7253 
7254   # Publish this variable in the help.
7255 
7256 
7257   if test "x$HEAD" = x; then
7258     # The variable is not set by user, try to locate tool using the code snippet
7259     for ac_prog in head
7260 do
7261   # Extract the first word of "$ac_prog", so it can be a program name with args.
7262 set dummy $ac_prog; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_path_HEAD+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   case $HEAD in
7269   [\\/]* | ?:[\\/]*)
7270   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7271   ;;
7272   *)
7273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278     for ac_exec_ext in '' $ac_executable_extensions; do
7279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285   done
7286 IFS=$as_save_IFS
7287 
7288   ;;
7289 esac
7290 fi
7291 HEAD=$ac_cv_path_HEAD
7292 if test -n "$HEAD"; then
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7294 $as_echo "$HEAD" >&6; }
7295 else
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 fi
7299 
7300 
7301   test -n "$HEAD" && break
7302 done
7303 
7304   else
7305     # The variable is set, but is it from the command line or the environment?
7306 
7307     # Try to remove the string !HEAD! from our list.
7308     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7309     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7310       # If it failed, the variable was not from the command line. Ignore it,
7311       # but warn the user (except for BASH, which is always set by the calling BASH).
7312       if test "xHEAD" != xBASH; then
7313         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7314 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7315       fi
7316       # Try to locate tool using the code snippet
7317       for ac_prog in head
7318 do
7319   # Extract the first word of "$ac_prog", so it can be a program name with args.
7320 set dummy $ac_prog; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if ${ac_cv_path_HEAD+:} false; then :
7324   $as_echo_n "(cached) " >&6
7325 else
7326   case $HEAD in
7327   [\\/]* | ?:[\\/]*)
7328   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7329   ;;
7330   *)
7331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334   IFS=$as_save_IFS
7335   test -z "$as_dir" && as_dir=.
7336     for ac_exec_ext in '' $ac_executable_extensions; do
7337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340     break 2
7341   fi
7342 done
7343   done
7344 IFS=$as_save_IFS
7345 
7346   ;;
7347 esac
7348 fi
7349 HEAD=$ac_cv_path_HEAD
7350 if test -n "$HEAD"; then
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7352 $as_echo "$HEAD" >&6; }
7353 else
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357 
7358 
7359   test -n "$HEAD" && break
7360 done
7361 
7362     else
7363       # If it succeeded, then it was overridden by the user. We will use it
7364       # for the tool.
7365 
7366       # First remove it from the list of overridden variables, so we can test
7367       # for unknown variables in the end.
7368       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7369 
7370       # Check if the provided tool contains a complete path.
7371       tool_specified="$HEAD"
7372       tool_basename="${tool_specified##*/}"
7373       if test "x$tool_basename" = "x$tool_specified"; then
7374         # A command without a complete path is provided, search $PATH.
7375         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7376 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7377         # Extract the first word of "$tool_basename", so it can be a program name with args.
7378 set dummy $tool_basename; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_path_HEAD+:} false; then :
7382   $as_echo_n "(cached) " >&6
7383 else
7384   case $HEAD in
7385   [\\/]* | ?:[\\/]*)
7386   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7387   ;;
7388   *)
7389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394     for ac_exec_ext in '' $ac_executable_extensions; do
7395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401   done
7402 IFS=$as_save_IFS
7403 
7404   ;;
7405 esac
7406 fi
7407 HEAD=$ac_cv_path_HEAD
7408 if test -n "$HEAD"; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7410 $as_echo "$HEAD" >&6; }
7411 else
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415 
7416 
7417         if test "x$HEAD" = x; then
7418           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7419         fi
7420       else
7421         # Otherwise we believe it is a complete path. Use it as it is.
7422         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7423 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7425 $as_echo_n "checking for HEAD... " >&6; }
7426         if test ! -x "$tool_specified"; then
7427           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7428 $as_echo "not found" >&6; }
7429           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7430         fi
7431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7432 $as_echo "$tool_specified" >&6; }
7433       fi
7434     fi
7435   fi
7436 
7437 
7438 
7439   if test "x$HEAD" = x; then
7440     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7441   fi
7442 
7443 
7444 
7445 
7446 
7447   # Publish this variable in the help.
7448 
7449 
7450   if test "x$LN" = x; then
7451     # The variable is not set by user, try to locate tool using the code snippet
7452     for ac_prog in ln
7453 do
7454   # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if ${ac_cv_path_LN+:} false; then :
7459   $as_echo_n "(cached) " >&6
7460 else
7461   case $LN in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471     for ac_exec_ext in '' $ac_executable_extensions; do
7472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478   done
7479 IFS=$as_save_IFS
7480 
7481   ;;
7482 esac
7483 fi
7484 LN=$ac_cv_path_LN
7485 if test -n "$LN"; then
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7487 $as_echo "$LN" >&6; }
7488 else
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492 
7493 
7494   test -n "$LN" && break
7495 done
7496 
7497   else
7498     # The variable is set, but is it from the command line or the environment?
7499 
7500     # Try to remove the string !LN! from our list.
7501     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7502     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7503       # If it failed, the variable was not from the command line. Ignore it,
7504       # but warn the user (except for BASH, which is always set by the calling BASH).
7505       if test "xLN" != xBASH; then
7506         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7507 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7508       fi
7509       # Try to locate tool using the code snippet
7510       for ac_prog in ln
7511 do
7512   # Extract the first word of "$ac_prog", so it can be a program name with args.
7513 set dummy $ac_prog; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_path_LN+:} false; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   case $LN in
7520   [\\/]* | ?:[\\/]*)
7521   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7522   ;;
7523   *)
7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538 
7539   ;;
7540 esac
7541 fi
7542 LN=$ac_cv_path_LN
7543 if test -n "$LN"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7545 $as_echo "$LN" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550 
7551 
7552   test -n "$LN" && break
7553 done
7554 
7555     else
7556       # If it succeeded, then it was overridden by the user. We will use it
7557       # for the tool.
7558 
7559       # First remove it from the list of overridden variables, so we can test
7560       # for unknown variables in the end.
7561       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7562 
7563       # Check if the provided tool contains a complete path.
7564       tool_specified="$LN"
7565       tool_basename="${tool_specified##*/}"
7566       if test "x$tool_basename" = "x$tool_specified"; then
7567         # A command without a complete path is provided, search $PATH.
7568         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7569 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7570         # Extract the first word of "$tool_basename", so it can be a program name with args.
7571 set dummy $tool_basename; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_path_LN+:} false; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   case $LN in
7578   [\\/]* | ?:[\\/]*)
7579   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7580   ;;
7581   *)
7582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587     for ac_exec_ext in '' $ac_executable_extensions; do
7588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594   done
7595 IFS=$as_save_IFS
7596 
7597   ;;
7598 esac
7599 fi
7600 LN=$ac_cv_path_LN
7601 if test -n "$LN"; then
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7603 $as_echo "$LN" >&6; }
7604 else
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608 
7609 
7610         if test "x$LN" = x; then
7611           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7612         fi
7613       else
7614         # Otherwise we believe it is a complete path. Use it as it is.
7615         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7616 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7618 $as_echo_n "checking for LN... " >&6; }
7619         if test ! -x "$tool_specified"; then
7620           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7621 $as_echo "not found" >&6; }
7622           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7623         fi
7624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7625 $as_echo "$tool_specified" >&6; }
7626       fi
7627     fi
7628   fi
7629 
7630 
7631 
7632   if test "x$LN" = x; then
7633     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7634   fi
7635 
7636 
7637 
7638 
7639 
7640   # Publish this variable in the help.
7641 
7642 
7643   if test "x$LS" = x; then
7644     # The variable is not set by user, try to locate tool using the code snippet
7645     for ac_prog in ls
7646 do
7647   # Extract the first word of "$ac_prog", so it can be a program name with args.
7648 set dummy $ac_prog; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if ${ac_cv_path_LS+:} false; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   case $LS in
7655   [\\/]* | ?:[\\/]*)
7656   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7657   ;;
7658   *)
7659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662   IFS=$as_save_IFS
7663   test -z "$as_dir" && as_dir=.
7664     for ac_exec_ext in '' $ac_executable_extensions; do
7665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668     break 2
7669   fi
7670 done
7671   done
7672 IFS=$as_save_IFS
7673 
7674   ;;
7675 esac
7676 fi
7677 LS=$ac_cv_path_LS
7678 if test -n "$LS"; then
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7680 $as_echo "$LS" >&6; }
7681 else
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685 
7686 
7687   test -n "$LS" && break
7688 done
7689 
7690   else
7691     # The variable is set, but is it from the command line or the environment?
7692 
7693     # Try to remove the string !LS! from our list.
7694     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7695     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7696       # If it failed, the variable was not from the command line. Ignore it,
7697       # but warn the user (except for BASH, which is always set by the calling BASH).
7698       if test "xLS" != xBASH; then
7699         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7700 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7701       fi
7702       # Try to locate tool using the code snippet
7703       for ac_prog in ls
7704 do
7705   # Extract the first word of "$ac_prog", so it can be a program name with args.
7706 set dummy $ac_prog; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_path_LS+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   case $LS in
7713   [\\/]* | ?:[\\/]*)
7714   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7715   ;;
7716   *)
7717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720   IFS=$as_save_IFS
7721   test -z "$as_dir" && as_dir=.
7722     for ac_exec_ext in '' $ac_executable_extensions; do
7723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726     break 2
7727   fi
7728 done
7729   done
7730 IFS=$as_save_IFS
7731 
7732   ;;
7733 esac
7734 fi
7735 LS=$ac_cv_path_LS
7736 if test -n "$LS"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7738 $as_echo "$LS" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743 
7744 
7745   test -n "$LS" && break
7746 done
7747 
7748     else
7749       # If it succeeded, then it was overridden by the user. We will use it
7750       # for the tool.
7751 
7752       # First remove it from the list of overridden variables, so we can test
7753       # for unknown variables in the end.
7754       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7755 
7756       # Check if the provided tool contains a complete path.
7757       tool_specified="$LS"
7758       tool_basename="${tool_specified##*/}"
7759       if test "x$tool_basename" = "x$tool_specified"; then
7760         # A command without a complete path is provided, search $PATH.
7761         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7762 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7763         # Extract the first word of "$tool_basename", so it can be a program name with args.
7764 set dummy $tool_basename; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_path_LS+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   case $LS in
7771   [\\/]* | ?:[\\/]*)
7772   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7773   ;;
7774   *)
7775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780     for ac_exec_ext in '' $ac_executable_extensions; do
7781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787   done
7788 IFS=$as_save_IFS
7789 
7790   ;;
7791 esac
7792 fi
7793 LS=$ac_cv_path_LS
7794 if test -n "$LS"; then
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7796 $as_echo "$LS" >&6; }
7797 else
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801 
7802 
7803         if test "x$LS" = x; then
7804           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7805         fi
7806       else
7807         # Otherwise we believe it is a complete path. Use it as it is.
7808         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7809 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7811 $as_echo_n "checking for LS... " >&6; }
7812         if test ! -x "$tool_specified"; then
7813           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7814 $as_echo "not found" >&6; }
7815           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7816         fi
7817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7818 $as_echo "$tool_specified" >&6; }
7819       fi
7820     fi
7821   fi
7822 
7823 
7824 
7825   if test "x$LS" = x; then
7826     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7827   fi
7828 
7829 
7830 
7831 
7832 
7833   # Publish this variable in the help.
7834 
7835 
7836   if test "x$MKDIR" = x; then
7837     # The variable is not set by user, try to locate tool using the code snippet
7838     for ac_prog in mkdir
7839 do
7840   # Extract the first word of "$ac_prog", so it can be a program name with args.
7841 set dummy $ac_prog; ac_word=$2
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 $as_echo_n "checking for $ac_word... " >&6; }
7844 if ${ac_cv_path_MKDIR+:} false; then :
7845   $as_echo_n "(cached) " >&6
7846 else
7847   case $MKDIR in
7848   [\\/]* | ?:[\\/]*)
7849   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7850   ;;
7851   *)
7852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     for ac_exec_ext in '' $ac_executable_extensions; do
7858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7859     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861     break 2
7862   fi
7863 done
7864   done
7865 IFS=$as_save_IFS
7866 
7867   ;;
7868 esac
7869 fi
7870 MKDIR=$ac_cv_path_MKDIR
7871 if test -n "$MKDIR"; then
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7873 $as_echo "$MKDIR" >&6; }
7874 else
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 fi
7878 
7879 
7880   test -n "$MKDIR" && break
7881 done
7882 
7883   else
7884     # The variable is set, but is it from the command line or the environment?
7885 
7886     # Try to remove the string !MKDIR! from our list.
7887     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7888     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7889       # If it failed, the variable was not from the command line. Ignore it,
7890       # but warn the user (except for BASH, which is always set by the calling BASH).
7891       if test "xMKDIR" != xBASH; then
7892         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7893 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7894       fi
7895       # Try to locate tool using the code snippet
7896       for ac_prog in mkdir
7897 do
7898   # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_path_MKDIR+:} false; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   case $MKDIR in
7906   [\\/]* | ?:[\\/]*)
7907   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7908   ;;
7909   *)
7910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915     for ac_exec_ext in '' $ac_executable_extensions; do
7916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7917     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919     break 2
7920   fi
7921 done
7922   done
7923 IFS=$as_save_IFS
7924 
7925   ;;
7926 esac
7927 fi
7928 MKDIR=$ac_cv_path_MKDIR
7929 if test -n "$MKDIR"; then
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7931 $as_echo "$MKDIR" >&6; }
7932 else
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936 
7937 
7938   test -n "$MKDIR" && break
7939 done
7940 
7941     else
7942       # If it succeeded, then it was overridden by the user. We will use it
7943       # for the tool.
7944 
7945       # First remove it from the list of overridden variables, so we can test
7946       # for unknown variables in the end.
7947       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7948 
7949       # Check if the provided tool contains a complete path.
7950       tool_specified="$MKDIR"
7951       tool_basename="${tool_specified##*/}"
7952       if test "x$tool_basename" = "x$tool_specified"; then
7953         # A command without a complete path is provided, search $PATH.
7954         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7955 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7956         # Extract the first word of "$tool_basename", so it can be a program name with args.
7957 set dummy $tool_basename; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_path_MKDIR+:} false; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   case $MKDIR in
7964   [\\/]* | ?:[\\/]*)
7965   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7966   ;;
7967   *)
7968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971   IFS=$as_save_IFS
7972   test -z "$as_dir" && as_dir=.
7973     for ac_exec_ext in '' $ac_executable_extensions; do
7974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977     break 2
7978   fi
7979 done
7980   done
7981 IFS=$as_save_IFS
7982 
7983   ;;
7984 esac
7985 fi
7986 MKDIR=$ac_cv_path_MKDIR
7987 if test -n "$MKDIR"; then
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7989 $as_echo "$MKDIR" >&6; }
7990 else
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7993 fi
7994 
7995 
7996         if test "x$MKDIR" = x; then
7997           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7998         fi
7999       else
8000         # Otherwise we believe it is a complete path. Use it as it is.
8001         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8002 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8004 $as_echo_n "checking for MKDIR... " >&6; }
8005         if test ! -x "$tool_specified"; then
8006           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8007 $as_echo "not found" >&6; }
8008           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8009         fi
8010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8011 $as_echo "$tool_specified" >&6; }
8012       fi
8013     fi
8014   fi
8015 
8016 
8017 
8018   if test "x$MKDIR" = x; then
8019     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8020   fi
8021 
8022 
8023 
8024 
8025 
8026   # Publish this variable in the help.
8027 
8028 
8029   if test "x$MKTEMP" = x; then
8030     # The variable is not set by user, try to locate tool using the code snippet
8031     for ac_prog in mktemp
8032 do
8033   # Extract the first word of "$ac_prog", so it can be a program name with args.
8034 set dummy $ac_prog; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_path_MKTEMP+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   case $MKTEMP in
8041   [\\/]* | ?:[\\/]*)
8042   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8043   ;;
8044   *)
8045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8047 do
8048   IFS=$as_save_IFS
8049   test -z "$as_dir" && as_dir=.
8050     for ac_exec_ext in '' $ac_executable_extensions; do
8051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054     break 2
8055   fi
8056 done
8057   done
8058 IFS=$as_save_IFS
8059 
8060   ;;
8061 esac
8062 fi
8063 MKTEMP=$ac_cv_path_MKTEMP
8064 if test -n "$MKTEMP"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8066 $as_echo "$MKTEMP" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071 
8072 
8073   test -n "$MKTEMP" && break
8074 done
8075 
8076   else
8077     # The variable is set, but is it from the command line or the environment?
8078 
8079     # Try to remove the string !MKTEMP! from our list.
8080     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8081     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8082       # If it failed, the variable was not from the command line. Ignore it,
8083       # but warn the user (except for BASH, which is always set by the calling BASH).
8084       if test "xMKTEMP" != xBASH; then
8085         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8086 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8087       fi
8088       # Try to locate tool using the code snippet
8089       for ac_prog in mktemp
8090 do
8091   # Extract the first word of "$ac_prog", so it can be a program name with args.
8092 set dummy $ac_prog; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if ${ac_cv_path_MKTEMP+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098   case $MKTEMP in
8099   [\\/]* | ?:[\\/]*)
8100   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8101   ;;
8102   *)
8103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108     for ac_exec_ext in '' $ac_executable_extensions; do
8109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115   done
8116 IFS=$as_save_IFS
8117 
8118   ;;
8119 esac
8120 fi
8121 MKTEMP=$ac_cv_path_MKTEMP
8122 if test -n "$MKTEMP"; then
8123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8124 $as_echo "$MKTEMP" >&6; }
8125 else
8126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 $as_echo "no" >&6; }
8128 fi
8129 
8130 
8131   test -n "$MKTEMP" && break
8132 done
8133 
8134     else
8135       # If it succeeded, then it was overridden by the user. We will use it
8136       # for the tool.
8137 
8138       # First remove it from the list of overridden variables, so we can test
8139       # for unknown variables in the end.
8140       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8141 
8142       # Check if the provided tool contains a complete path.
8143       tool_specified="$MKTEMP"
8144       tool_basename="${tool_specified##*/}"
8145       if test "x$tool_basename" = "x$tool_specified"; then
8146         # A command without a complete path is provided, search $PATH.
8147         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8148 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8149         # Extract the first word of "$tool_basename", so it can be a program name with args.
8150 set dummy $tool_basename; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_path_MKTEMP+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   case $MKTEMP in
8157   [\\/]* | ?:[\\/]*)
8158   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8159   ;;
8160   *)
8161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166     for ac_exec_ext in '' $ac_executable_extensions; do
8167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173   done
8174 IFS=$as_save_IFS
8175 
8176   ;;
8177 esac
8178 fi
8179 MKTEMP=$ac_cv_path_MKTEMP
8180 if test -n "$MKTEMP"; then
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8182 $as_echo "$MKTEMP" >&6; }
8183 else
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187 
8188 
8189         if test "x$MKTEMP" = x; then
8190           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8191         fi
8192       else
8193         # Otherwise we believe it is a complete path. Use it as it is.
8194         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8195 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8197 $as_echo_n "checking for MKTEMP... " >&6; }
8198         if test ! -x "$tool_specified"; then
8199           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8200 $as_echo "not found" >&6; }
8201           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8202         fi
8203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8204 $as_echo "$tool_specified" >&6; }
8205       fi
8206     fi
8207   fi
8208 
8209 
8210 
8211   if test "x$MKTEMP" = x; then
8212     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8213   fi
8214 
8215 
8216 
8217 
8218 
8219   # Publish this variable in the help.
8220 
8221 
8222   if test "x$MV" = x; then
8223     # The variable is not set by user, try to locate tool using the code snippet
8224     for ac_prog in mv
8225 do
8226   # Extract the first word of "$ac_prog", so it can be a program name with args.
8227 set dummy $ac_prog; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_path_MV+:} false; then :
8231   $as_echo_n "(cached) " >&6
8232 else
8233   case $MV in
8234   [\\/]* | ?:[\\/]*)
8235   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8236   ;;
8237   *)
8238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241   IFS=$as_save_IFS
8242   test -z "$as_dir" && as_dir=.
8243     for ac_exec_ext in '' $ac_executable_extensions; do
8244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247     break 2
8248   fi
8249 done
8250   done
8251 IFS=$as_save_IFS
8252 
8253   ;;
8254 esac
8255 fi
8256 MV=$ac_cv_path_MV
8257 if test -n "$MV"; then
8258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8259 $as_echo "$MV" >&6; }
8260 else
8261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8263 fi
8264 
8265 
8266   test -n "$MV" && break
8267 done
8268 
8269   else
8270     # The variable is set, but is it from the command line or the environment?
8271 
8272     # Try to remove the string !MV! from our list.
8273     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8274     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8275       # If it failed, the variable was not from the command line. Ignore it,
8276       # but warn the user (except for BASH, which is always set by the calling BASH).
8277       if test "xMV" != xBASH; then
8278         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8279 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8280       fi
8281       # Try to locate tool using the code snippet
8282       for ac_prog in mv
8283 do
8284   # Extract the first word of "$ac_prog", so it can be a program name with args.
8285 set dummy $ac_prog; ac_word=$2
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8287 $as_echo_n "checking for $ac_word... " >&6; }
8288 if ${ac_cv_path_MV+:} false; then :
8289   $as_echo_n "(cached) " >&6
8290 else
8291   case $MV in
8292   [\\/]* | ?:[\\/]*)
8293   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8294   ;;
8295   *)
8296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299   IFS=$as_save_IFS
8300   test -z "$as_dir" && as_dir=.
8301     for ac_exec_ext in '' $ac_executable_extensions; do
8302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8303     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305     break 2
8306   fi
8307 done
8308   done
8309 IFS=$as_save_IFS
8310 
8311   ;;
8312 esac
8313 fi
8314 MV=$ac_cv_path_MV
8315 if test -n "$MV"; then
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8317 $as_echo "$MV" >&6; }
8318 else
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322 
8323 
8324   test -n "$MV" && break
8325 done
8326 
8327     else
8328       # If it succeeded, then it was overridden by the user. We will use it
8329       # for the tool.
8330 
8331       # First remove it from the list of overridden variables, so we can test
8332       # for unknown variables in the end.
8333       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8334 
8335       # Check if the provided tool contains a complete path.
8336       tool_specified="$MV"
8337       tool_basename="${tool_specified##*/}"
8338       if test "x$tool_basename" = "x$tool_specified"; then
8339         # A command without a complete path is provided, search $PATH.
8340         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8341 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8342         # Extract the first word of "$tool_basename", so it can be a program name with args.
8343 set dummy $tool_basename; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_path_MV+:} false; then :
8347   $as_echo_n "(cached) " >&6
8348 else
8349   case $MV in
8350   [\\/]* | ?:[\\/]*)
8351   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8352   ;;
8353   *)
8354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357   IFS=$as_save_IFS
8358   test -z "$as_dir" && as_dir=.
8359     for ac_exec_ext in '' $ac_executable_extensions; do
8360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363     break 2
8364   fi
8365 done
8366   done
8367 IFS=$as_save_IFS
8368 
8369   ;;
8370 esac
8371 fi
8372 MV=$ac_cv_path_MV
8373 if test -n "$MV"; then
8374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8375 $as_echo "$MV" >&6; }
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8379 fi
8380 
8381 
8382         if test "x$MV" = x; then
8383           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8384         fi
8385       else
8386         # Otherwise we believe it is a complete path. Use it as it is.
8387         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8388 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8390 $as_echo_n "checking for MV... " >&6; }
8391         if test ! -x "$tool_specified"; then
8392           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8393 $as_echo "not found" >&6; }
8394           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8395         fi
8396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8397 $as_echo "$tool_specified" >&6; }
8398       fi
8399     fi
8400   fi
8401 
8402 
8403 
8404   if test "x$MV" = x; then
8405     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8406   fi
8407 
8408 
8409 
8410 
8411 
8412   # Publish this variable in the help.
8413 
8414 
8415   if test "x$NAWK" = x; then
8416     # The variable is not set by user, try to locate tool using the code snippet
8417     for ac_prog in nawk gawk awk
8418 do
8419   # Extract the first word of "$ac_prog", so it can be a program name with args.
8420 set dummy $ac_prog; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_path_NAWK+:} false; then :
8424   $as_echo_n "(cached) " >&6
8425 else
8426   case $NAWK in
8427   [\\/]* | ?:[\\/]*)
8428   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8429   ;;
8430   *)
8431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434   IFS=$as_save_IFS
8435   test -z "$as_dir" && as_dir=.
8436     for ac_exec_ext in '' $ac_executable_extensions; do
8437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440     break 2
8441   fi
8442 done
8443   done
8444 IFS=$as_save_IFS
8445 
8446   ;;
8447 esac
8448 fi
8449 NAWK=$ac_cv_path_NAWK
8450 if test -n "$NAWK"; then
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8452 $as_echo "$NAWK" >&6; }
8453 else
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8456 fi
8457 
8458 
8459   test -n "$NAWK" && break
8460 done
8461 
8462   else
8463     # The variable is set, but is it from the command line or the environment?
8464 
8465     # Try to remove the string !NAWK! from our list.
8466     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8467     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8468       # If it failed, the variable was not from the command line. Ignore it,
8469       # but warn the user (except for BASH, which is always set by the calling BASH).
8470       if test "xNAWK" != xBASH; then
8471         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8472 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8473       fi
8474       # Try to locate tool using the code snippet
8475       for ac_prog in nawk gawk awk
8476 do
8477   # Extract the first word of "$ac_prog", so it can be a program name with args.
8478 set dummy $ac_prog; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_path_NAWK+:} false; then :
8482   $as_echo_n "(cached) " >&6
8483 else
8484   case $NAWK in
8485   [\\/]* | ?:[\\/]*)
8486   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8487   ;;
8488   *)
8489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492   IFS=$as_save_IFS
8493   test -z "$as_dir" && as_dir=.
8494     for ac_exec_ext in '' $ac_executable_extensions; do
8495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8496     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498     break 2
8499   fi
8500 done
8501   done
8502 IFS=$as_save_IFS
8503 
8504   ;;
8505 esac
8506 fi
8507 NAWK=$ac_cv_path_NAWK
8508 if test -n "$NAWK"; then
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8510 $as_echo "$NAWK" >&6; }
8511 else
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8514 fi
8515 
8516 
8517   test -n "$NAWK" && break
8518 done
8519 
8520     else
8521       # If it succeeded, then it was overridden by the user. We will use it
8522       # for the tool.
8523 
8524       # First remove it from the list of overridden variables, so we can test
8525       # for unknown variables in the end.
8526       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8527 
8528       # Check if the provided tool contains a complete path.
8529       tool_specified="$NAWK"
8530       tool_basename="${tool_specified##*/}"
8531       if test "x$tool_basename" = "x$tool_specified"; then
8532         # A command without a complete path is provided, search $PATH.
8533         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8534 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8535         # Extract the first word of "$tool_basename", so it can be a program name with args.
8536 set dummy $tool_basename; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_path_NAWK+:} false; then :
8540   $as_echo_n "(cached) " >&6
8541 else
8542   case $NAWK in
8543   [\\/]* | ?:[\\/]*)
8544   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8545   ;;
8546   *)
8547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550   IFS=$as_save_IFS
8551   test -z "$as_dir" && as_dir=.
8552     for ac_exec_ext in '' $ac_executable_extensions; do
8553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556     break 2
8557   fi
8558 done
8559   done
8560 IFS=$as_save_IFS
8561 
8562   ;;
8563 esac
8564 fi
8565 NAWK=$ac_cv_path_NAWK
8566 if test -n "$NAWK"; then
8567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8568 $as_echo "$NAWK" >&6; }
8569 else
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8572 fi
8573 
8574 
8575         if test "x$NAWK" = x; then
8576           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8577         fi
8578       else
8579         # Otherwise we believe it is a complete path. Use it as it is.
8580         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8581 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8583 $as_echo_n "checking for NAWK... " >&6; }
8584         if test ! -x "$tool_specified"; then
8585           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8586 $as_echo "not found" >&6; }
8587           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8588         fi
8589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8590 $as_echo "$tool_specified" >&6; }
8591       fi
8592     fi
8593   fi
8594 
8595 
8596 
8597   if test "x$NAWK" = x; then
8598     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8599   fi
8600 
8601 
8602 
8603 
8604 
8605   # Publish this variable in the help.
8606 
8607 
8608   if test "x$PRINTF" = x; then
8609     # The variable is not set by user, try to locate tool using the code snippet
8610     for ac_prog in printf
8611 do
8612   # Extract the first word of "$ac_prog", so it can be a program name with args.
8613 set dummy $ac_prog; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_path_PRINTF+:} false; then :
8617   $as_echo_n "(cached) " >&6
8618 else
8619   case $PRINTF in
8620   [\\/]* | ?:[\\/]*)
8621   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8622   ;;
8623   *)
8624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627   IFS=$as_save_IFS
8628   test -z "$as_dir" && as_dir=.
8629     for ac_exec_ext in '' $ac_executable_extensions; do
8630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633     break 2
8634   fi
8635 done
8636   done
8637 IFS=$as_save_IFS
8638 
8639   ;;
8640 esac
8641 fi
8642 PRINTF=$ac_cv_path_PRINTF
8643 if test -n "$PRINTF"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8645 $as_echo "$PRINTF" >&6; }
8646 else
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650 
8651 
8652   test -n "$PRINTF" && break
8653 done
8654 
8655   else
8656     # The variable is set, but is it from the command line or the environment?
8657 
8658     # Try to remove the string !PRINTF! from our list.
8659     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8660     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8661       # If it failed, the variable was not from the command line. Ignore it,
8662       # but warn the user (except for BASH, which is always set by the calling BASH).
8663       if test "xPRINTF" != xBASH; then
8664         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8665 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8666       fi
8667       # Try to locate tool using the code snippet
8668       for ac_prog in printf
8669 do
8670   # Extract the first word of "$ac_prog", so it can be a program name with args.
8671 set dummy $ac_prog; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if ${ac_cv_path_PRINTF+:} false; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   case $PRINTF in
8678   [\\/]* | ?:[\\/]*)
8679   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8680   ;;
8681   *)
8682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8684 do
8685   IFS=$as_save_IFS
8686   test -z "$as_dir" && as_dir=.
8687     for ac_exec_ext in '' $ac_executable_extensions; do
8688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691     break 2
8692   fi
8693 done
8694   done
8695 IFS=$as_save_IFS
8696 
8697   ;;
8698 esac
8699 fi
8700 PRINTF=$ac_cv_path_PRINTF
8701 if test -n "$PRINTF"; then
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8703 $as_echo "$PRINTF" >&6; }
8704 else
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8707 fi
8708 
8709 
8710   test -n "$PRINTF" && break
8711 done
8712 
8713     else
8714       # If it succeeded, then it was overridden by the user. We will use it
8715       # for the tool.
8716 
8717       # First remove it from the list of overridden variables, so we can test
8718       # for unknown variables in the end.
8719       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8720 
8721       # Check if the provided tool contains a complete path.
8722       tool_specified="$PRINTF"
8723       tool_basename="${tool_specified##*/}"
8724       if test "x$tool_basename" = "x$tool_specified"; then
8725         # A command without a complete path is provided, search $PATH.
8726         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8727 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8728         # Extract the first word of "$tool_basename", so it can be a program name with args.
8729 set dummy $tool_basename; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if ${ac_cv_path_PRINTF+:} false; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   case $PRINTF in
8736   [\\/]* | ?:[\\/]*)
8737   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8738   ;;
8739   *)
8740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745     for ac_exec_ext in '' $ac_executable_extensions; do
8746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752   done
8753 IFS=$as_save_IFS
8754 
8755   ;;
8756 esac
8757 fi
8758 PRINTF=$ac_cv_path_PRINTF
8759 if test -n "$PRINTF"; then
8760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8761 $as_echo "$PRINTF" >&6; }
8762 else
8763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8765 fi
8766 
8767 
8768         if test "x$PRINTF" = x; then
8769           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8770         fi
8771       else
8772         # Otherwise we believe it is a complete path. Use it as it is.
8773         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8774 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8776 $as_echo_n "checking for PRINTF... " >&6; }
8777         if test ! -x "$tool_specified"; then
8778           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8779 $as_echo "not found" >&6; }
8780           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8781         fi
8782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8783 $as_echo "$tool_specified" >&6; }
8784       fi
8785     fi
8786   fi
8787 
8788 
8789 
8790   if test "x$PRINTF" = x; then
8791     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8792   fi
8793 
8794 
8795 
8796 
8797 
8798   # Publish this variable in the help.
8799 
8800 
8801   if test "x$RM" = x; then
8802     # The variable is not set by user, try to locate tool using the code snippet
8803     for ac_prog in rm
8804 do
8805   # Extract the first word of "$ac_prog", so it can be a program name with args.
8806 set dummy $ac_prog; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if ${ac_cv_path_RM+:} false; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   case $RM in
8813   [\\/]* | ?:[\\/]*)
8814   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8815   ;;
8816   *)
8817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in $PATH
8819 do
8820   IFS=$as_save_IFS
8821   test -z "$as_dir" && as_dir=.
8822     for ac_exec_ext in '' $ac_executable_extensions; do
8823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8824     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8826     break 2
8827   fi
8828 done
8829   done
8830 IFS=$as_save_IFS
8831 
8832   ;;
8833 esac
8834 fi
8835 RM=$ac_cv_path_RM
8836 if test -n "$RM"; then
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8838 $as_echo "$RM" >&6; }
8839 else
8840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842 fi
8843 
8844 
8845   test -n "$RM" && break
8846 done
8847 
8848   else
8849     # The variable is set, but is it from the command line or the environment?
8850 
8851     # Try to remove the string !RM! from our list.
8852     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8853     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8854       # If it failed, the variable was not from the command line. Ignore it,
8855       # but warn the user (except for BASH, which is always set by the calling BASH).
8856       if test "xRM" != xBASH; then
8857         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8858 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8859       fi
8860       # Try to locate tool using the code snippet
8861       for ac_prog in rm
8862 do
8863   # Extract the first word of "$ac_prog", so it can be a program name with args.
8864 set dummy $ac_prog; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_path_RM+:} false; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   case $RM in
8871   [\\/]* | ?:[\\/]*)
8872   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8873   ;;
8874   *)
8875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876 for as_dir in $PATH
8877 do
8878   IFS=$as_save_IFS
8879   test -z "$as_dir" && as_dir=.
8880     for ac_exec_ext in '' $ac_executable_extensions; do
8881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8882     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8884     break 2
8885   fi
8886 done
8887   done
8888 IFS=$as_save_IFS
8889 
8890   ;;
8891 esac
8892 fi
8893 RM=$ac_cv_path_RM
8894 if test -n "$RM"; then
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8896 $as_echo "$RM" >&6; }
8897 else
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8900 fi
8901 
8902 
8903   test -n "$RM" && break
8904 done
8905 
8906     else
8907       # If it succeeded, then it was overridden by the user. We will use it
8908       # for the tool.
8909 
8910       # First remove it from the list of overridden variables, so we can test
8911       # for unknown variables in the end.
8912       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8913 
8914       # Check if the provided tool contains a complete path.
8915       tool_specified="$RM"
8916       tool_basename="${tool_specified##*/}"
8917       if test "x$tool_basename" = "x$tool_specified"; then
8918         # A command without a complete path is provided, search $PATH.
8919         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8920 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8921         # Extract the first word of "$tool_basename", so it can be a program name with args.
8922 set dummy $tool_basename; ac_word=$2
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 $as_echo_n "checking for $ac_word... " >&6; }
8925 if ${ac_cv_path_RM+:} false; then :
8926   $as_echo_n "(cached) " >&6
8927 else
8928   case $RM in
8929   [\\/]* | ?:[\\/]*)
8930   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8931   ;;
8932   *)
8933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8935 do
8936   IFS=$as_save_IFS
8937   test -z "$as_dir" && as_dir=.
8938     for ac_exec_ext in '' $ac_executable_extensions; do
8939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8940     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942     break 2
8943   fi
8944 done
8945   done
8946 IFS=$as_save_IFS
8947 
8948   ;;
8949 esac
8950 fi
8951 RM=$ac_cv_path_RM
8952 if test -n "$RM"; then
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8954 $as_echo "$RM" >&6; }
8955 else
8956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8958 fi
8959 
8960 
8961         if test "x$RM" = x; then
8962           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8963         fi
8964       else
8965         # Otherwise we believe it is a complete path. Use it as it is.
8966         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8967 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8969 $as_echo_n "checking for RM... " >&6; }
8970         if test ! -x "$tool_specified"; then
8971           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8972 $as_echo "not found" >&6; }
8973           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8974         fi
8975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8976 $as_echo "$tool_specified" >&6; }
8977       fi
8978     fi
8979   fi
8980 
8981 
8982 
8983   if test "x$RM" = x; then
8984     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8985   fi
8986 
8987 
8988 
8989 
8990 
8991   # Publish this variable in the help.
8992 
8993 
8994   if test "x$SH" = x; then
8995     # The variable is not set by user, try to locate tool using the code snippet
8996     for ac_prog in sh
8997 do
8998   # Extract the first word of "$ac_prog", so it can be a program name with args.
8999 set dummy $ac_prog; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if ${ac_cv_path_SH+:} false; then :
9003   $as_echo_n "(cached) " >&6
9004 else
9005   case $SH in
9006   [\\/]* | ?:[\\/]*)
9007   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9008   ;;
9009   *)
9010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9012 do
9013   IFS=$as_save_IFS
9014   test -z "$as_dir" && as_dir=.
9015     for ac_exec_ext in '' $ac_executable_extensions; do
9016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019     break 2
9020   fi
9021 done
9022   done
9023 IFS=$as_save_IFS
9024 
9025   ;;
9026 esac
9027 fi
9028 SH=$ac_cv_path_SH
9029 if test -n "$SH"; then
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9031 $as_echo "$SH" >&6; }
9032 else
9033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9035 fi
9036 
9037 
9038   test -n "$SH" && break
9039 done
9040 
9041   else
9042     # The variable is set, but is it from the command line or the environment?
9043 
9044     # Try to remove the string !SH! from our list.
9045     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9046     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9047       # If it failed, the variable was not from the command line. Ignore it,
9048       # but warn the user (except for BASH, which is always set by the calling BASH).
9049       if test "xSH" != xBASH; then
9050         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9051 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9052       fi
9053       # Try to locate tool using the code snippet
9054       for ac_prog in sh
9055 do
9056   # Extract the first word of "$ac_prog", so it can be a program name with args.
9057 set dummy $ac_prog; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if ${ac_cv_path_SH+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   case $SH in
9064   [\\/]* | ?:[\\/]*)
9065   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9066   ;;
9067   *)
9068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9070 do
9071   IFS=$as_save_IFS
9072   test -z "$as_dir" && as_dir=.
9073     for ac_exec_ext in '' $ac_executable_extensions; do
9074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9075     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077     break 2
9078   fi
9079 done
9080   done
9081 IFS=$as_save_IFS
9082 
9083   ;;
9084 esac
9085 fi
9086 SH=$ac_cv_path_SH
9087 if test -n "$SH"; then
9088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9089 $as_echo "$SH" >&6; }
9090 else
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9093 fi
9094 
9095 
9096   test -n "$SH" && break
9097 done
9098 
9099     else
9100       # If it succeeded, then it was overridden by the user. We will use it
9101       # for the tool.
9102 
9103       # First remove it from the list of overridden variables, so we can test
9104       # for unknown variables in the end.
9105       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9106 
9107       # Check if the provided tool contains a complete path.
9108       tool_specified="$SH"
9109       tool_basename="${tool_specified##*/}"
9110       if test "x$tool_basename" = "x$tool_specified"; then
9111         # A command without a complete path is provided, search $PATH.
9112         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9113 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9114         # Extract the first word of "$tool_basename", so it can be a program name with args.
9115 set dummy $tool_basename; ac_word=$2
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117 $as_echo_n "checking for $ac_word... " >&6; }
9118 if ${ac_cv_path_SH+:} false; then :
9119   $as_echo_n "(cached) " >&6
9120 else
9121   case $SH in
9122   [\\/]* | ?:[\\/]*)
9123   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9124   ;;
9125   *)
9126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9128 do
9129   IFS=$as_save_IFS
9130   test -z "$as_dir" && as_dir=.
9131     for ac_exec_ext in '' $ac_executable_extensions; do
9132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135     break 2
9136   fi
9137 done
9138   done
9139 IFS=$as_save_IFS
9140 
9141   ;;
9142 esac
9143 fi
9144 SH=$ac_cv_path_SH
9145 if test -n "$SH"; then
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9147 $as_echo "$SH" >&6; }
9148 else
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9151 fi
9152 
9153 
9154         if test "x$SH" = x; then
9155           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9156         fi
9157       else
9158         # Otherwise we believe it is a complete path. Use it as it is.
9159         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9160 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9162 $as_echo_n "checking for SH... " >&6; }
9163         if test ! -x "$tool_specified"; then
9164           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9165 $as_echo "not found" >&6; }
9166           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9167         fi
9168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9169 $as_echo "$tool_specified" >&6; }
9170       fi
9171     fi
9172   fi
9173 
9174 
9175 
9176   if test "x$SH" = x; then
9177     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9178   fi
9179 
9180 
9181 
9182 
9183 
9184   # Publish this variable in the help.
9185 
9186 
9187   if test "x$SORT" = x; then
9188     # The variable is not set by user, try to locate tool using the code snippet
9189     for ac_prog in sort
9190 do
9191   # Extract the first word of "$ac_prog", so it can be a program name with args.
9192 set dummy $ac_prog; ac_word=$2
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 $as_echo_n "checking for $ac_word... " >&6; }
9195 if ${ac_cv_path_SORT+:} false; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   case $SORT in
9199   [\\/]* | ?:[\\/]*)
9200   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9201   ;;
9202   *)
9203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 for as_dir in $PATH
9205 do
9206   IFS=$as_save_IFS
9207   test -z "$as_dir" && as_dir=.
9208     for ac_exec_ext in '' $ac_executable_extensions; do
9209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9210     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9212     break 2
9213   fi
9214 done
9215   done
9216 IFS=$as_save_IFS
9217 
9218   ;;
9219 esac
9220 fi
9221 SORT=$ac_cv_path_SORT
9222 if test -n "$SORT"; then
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9224 $as_echo "$SORT" >&6; }
9225 else
9226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9227 $as_echo "no" >&6; }
9228 fi
9229 
9230 
9231   test -n "$SORT" && break
9232 done
9233 
9234   else
9235     # The variable is set, but is it from the command line or the environment?
9236 
9237     # Try to remove the string !SORT! from our list.
9238     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9239     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9240       # If it failed, the variable was not from the command line. Ignore it,
9241       # but warn the user (except for BASH, which is always set by the calling BASH).
9242       if test "xSORT" != xBASH; then
9243         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9244 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9245       fi
9246       # Try to locate tool using the code snippet
9247       for ac_prog in sort
9248 do
9249   # Extract the first word of "$ac_prog", so it can be a program name with args.
9250 set dummy $ac_prog; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if ${ac_cv_path_SORT+:} false; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   case $SORT in
9257   [\\/]* | ?:[\\/]*)
9258   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9259   ;;
9260   *)
9261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264   IFS=$as_save_IFS
9265   test -z "$as_dir" && as_dir=.
9266     for ac_exec_ext in '' $ac_executable_extensions; do
9267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9268     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270     break 2
9271   fi
9272 done
9273   done
9274 IFS=$as_save_IFS
9275 
9276   ;;
9277 esac
9278 fi
9279 SORT=$ac_cv_path_SORT
9280 if test -n "$SORT"; then
9281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9282 $as_echo "$SORT" >&6; }
9283 else
9284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9285 $as_echo "no" >&6; }
9286 fi
9287 
9288 
9289   test -n "$SORT" && break
9290 done
9291 
9292     else
9293       # If it succeeded, then it was overridden by the user. We will use it
9294       # for the tool.
9295 
9296       # First remove it from the list of overridden variables, so we can test
9297       # for unknown variables in the end.
9298       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9299 
9300       # Check if the provided tool contains a complete path.
9301       tool_specified="$SORT"
9302       tool_basename="${tool_specified##*/}"
9303       if test "x$tool_basename" = "x$tool_specified"; then
9304         # A command without a complete path is provided, search $PATH.
9305         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9306 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9307         # Extract the first word of "$tool_basename", so it can be a program name with args.
9308 set dummy $tool_basename; ac_word=$2
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310 $as_echo_n "checking for $ac_word... " >&6; }
9311 if ${ac_cv_path_SORT+:} false; then :
9312   $as_echo_n "(cached) " >&6
9313 else
9314   case $SORT in
9315   [\\/]* | ?:[\\/]*)
9316   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9317   ;;
9318   *)
9319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9321 do
9322   IFS=$as_save_IFS
9323   test -z "$as_dir" && as_dir=.
9324     for ac_exec_ext in '' $ac_executable_extensions; do
9325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328     break 2
9329   fi
9330 done
9331   done
9332 IFS=$as_save_IFS
9333 
9334   ;;
9335 esac
9336 fi
9337 SORT=$ac_cv_path_SORT
9338 if test -n "$SORT"; then
9339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9340 $as_echo "$SORT" >&6; }
9341 else
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343 $as_echo "no" >&6; }
9344 fi
9345 
9346 
9347         if test "x$SORT" = x; then
9348           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9349         fi
9350       else
9351         # Otherwise we believe it is a complete path. Use it as it is.
9352         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9353 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9355 $as_echo_n "checking for SORT... " >&6; }
9356         if test ! -x "$tool_specified"; then
9357           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9358 $as_echo "not found" >&6; }
9359           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9360         fi
9361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9362 $as_echo "$tool_specified" >&6; }
9363       fi
9364     fi
9365   fi
9366 
9367 
9368 
9369   if test "x$SORT" = x; then
9370     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9371   fi
9372 
9373 
9374 
9375 
9376 
9377   # Publish this variable in the help.
9378 
9379 
9380   if test "x$TAIL" = x; then
9381     # The variable is not set by user, try to locate tool using the code snippet
9382     for ac_prog in tail
9383 do
9384   # Extract the first word of "$ac_prog", so it can be a program name with args.
9385 set dummy $ac_prog; ac_word=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 $as_echo_n "checking for $ac_word... " >&6; }
9388 if ${ac_cv_path_TAIL+:} false; then :
9389   $as_echo_n "(cached) " >&6
9390 else
9391   case $TAIL in
9392   [\\/]* | ?:[\\/]*)
9393   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9394   ;;
9395   *)
9396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9398 do
9399   IFS=$as_save_IFS
9400   test -z "$as_dir" && as_dir=.
9401     for ac_exec_ext in '' $ac_executable_extensions; do
9402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9403     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405     break 2
9406   fi
9407 done
9408   done
9409 IFS=$as_save_IFS
9410 
9411   ;;
9412 esac
9413 fi
9414 TAIL=$ac_cv_path_TAIL
9415 if test -n "$TAIL"; then
9416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9417 $as_echo "$TAIL" >&6; }
9418 else
9419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9421 fi
9422 
9423 
9424   test -n "$TAIL" && break
9425 done
9426 
9427   else
9428     # The variable is set, but is it from the command line or the environment?
9429 
9430     # Try to remove the string !TAIL! from our list.
9431     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9432     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9433       # If it failed, the variable was not from the command line. Ignore it,
9434       # but warn the user (except for BASH, which is always set by the calling BASH).
9435       if test "xTAIL" != xBASH; then
9436         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9437 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9438       fi
9439       # Try to locate tool using the code snippet
9440       for ac_prog in tail
9441 do
9442   # Extract the first word of "$ac_prog", so it can be a program name with args.
9443 set dummy $ac_prog; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if ${ac_cv_path_TAIL+:} false; then :
9447   $as_echo_n "(cached) " >&6
9448 else
9449   case $TAIL in
9450   [\\/]* | ?:[\\/]*)
9451   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9452   ;;
9453   *)
9454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455 for as_dir in $PATH
9456 do
9457   IFS=$as_save_IFS
9458   test -z "$as_dir" && as_dir=.
9459     for ac_exec_ext in '' $ac_executable_extensions; do
9460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9461     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9463     break 2
9464   fi
9465 done
9466   done
9467 IFS=$as_save_IFS
9468 
9469   ;;
9470 esac
9471 fi
9472 TAIL=$ac_cv_path_TAIL
9473 if test -n "$TAIL"; then
9474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9475 $as_echo "$TAIL" >&6; }
9476 else
9477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9479 fi
9480 
9481 
9482   test -n "$TAIL" && break
9483 done
9484 
9485     else
9486       # If it succeeded, then it was overridden by the user. We will use it
9487       # for the tool.
9488 
9489       # First remove it from the list of overridden variables, so we can test
9490       # for unknown variables in the end.
9491       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9492 
9493       # Check if the provided tool contains a complete path.
9494       tool_specified="$TAIL"
9495       tool_basename="${tool_specified##*/}"
9496       if test "x$tool_basename" = "x$tool_specified"; then
9497         # A command without a complete path is provided, search $PATH.
9498         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9499 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9500         # Extract the first word of "$tool_basename", so it can be a program name with args.
9501 set dummy $tool_basename; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503 $as_echo_n "checking for $ac_word... " >&6; }
9504 if ${ac_cv_path_TAIL+:} false; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   case $TAIL in
9508   [\\/]* | ?:[\\/]*)
9509   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9510   ;;
9511   *)
9512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9514 do
9515   IFS=$as_save_IFS
9516   test -z "$as_dir" && as_dir=.
9517     for ac_exec_ext in '' $ac_executable_extensions; do
9518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521     break 2
9522   fi
9523 done
9524   done
9525 IFS=$as_save_IFS
9526 
9527   ;;
9528 esac
9529 fi
9530 TAIL=$ac_cv_path_TAIL
9531 if test -n "$TAIL"; then
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9533 $as_echo "$TAIL" >&6; }
9534 else
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9537 fi
9538 
9539 
9540         if test "x$TAIL" = x; then
9541           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9542         fi
9543       else
9544         # Otherwise we believe it is a complete path. Use it as it is.
9545         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9546 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9547         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9548 $as_echo_n "checking for TAIL... " >&6; }
9549         if test ! -x "$tool_specified"; then
9550           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9551 $as_echo "not found" >&6; }
9552           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9553         fi
9554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9555 $as_echo "$tool_specified" >&6; }
9556       fi
9557     fi
9558   fi
9559 
9560 
9561 
9562   if test "x$TAIL" = x; then
9563     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9564   fi
9565 
9566 
9567 
9568 
9569 
9570   # Publish this variable in the help.
9571 
9572 
9573   if test "x$TAR" = x; then
9574     # The variable is not set by user, try to locate tool using the code snippet
9575     for ac_prog in tar
9576 do
9577   # Extract the first word of "$ac_prog", so it can be a program name with args.
9578 set dummy $ac_prog; ac_word=$2
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9580 $as_echo_n "checking for $ac_word... " >&6; }
9581 if ${ac_cv_path_TAR+:} false; then :
9582   $as_echo_n "(cached) " >&6
9583 else
9584   case $TAR in
9585   [\\/]* | ?:[\\/]*)
9586   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9587   ;;
9588   *)
9589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590 for as_dir in $PATH
9591 do
9592   IFS=$as_save_IFS
9593   test -z "$as_dir" && as_dir=.
9594     for ac_exec_ext in '' $ac_executable_extensions; do
9595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9596     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598     break 2
9599   fi
9600 done
9601   done
9602 IFS=$as_save_IFS
9603 
9604   ;;
9605 esac
9606 fi
9607 TAR=$ac_cv_path_TAR
9608 if test -n "$TAR"; then
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9610 $as_echo "$TAR" >&6; }
9611 else
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9614 fi
9615 
9616 
9617   test -n "$TAR" && break
9618 done
9619 
9620   else
9621     # The variable is set, but is it from the command line or the environment?
9622 
9623     # Try to remove the string !TAR! from our list.
9624     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9625     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9626       # If it failed, the variable was not from the command line. Ignore it,
9627       # but warn the user (except for BASH, which is always set by the calling BASH).
9628       if test "xTAR" != xBASH; then
9629         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9630 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9631       fi
9632       # Try to locate tool using the code snippet
9633       for ac_prog in tar
9634 do
9635   # Extract the first word of "$ac_prog", so it can be a program name with args.
9636 set dummy $ac_prog; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if ${ac_cv_path_TAR+:} false; then :
9640   $as_echo_n "(cached) " >&6
9641 else
9642   case $TAR in
9643   [\\/]* | ?:[\\/]*)
9644   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9645   ;;
9646   *)
9647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9649 do
9650   IFS=$as_save_IFS
9651   test -z "$as_dir" && as_dir=.
9652     for ac_exec_ext in '' $ac_executable_extensions; do
9653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656     break 2
9657   fi
9658 done
9659   done
9660 IFS=$as_save_IFS
9661 
9662   ;;
9663 esac
9664 fi
9665 TAR=$ac_cv_path_TAR
9666 if test -n "$TAR"; then
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9668 $as_echo "$TAR" >&6; }
9669 else
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9672 fi
9673 
9674 
9675   test -n "$TAR" && break
9676 done
9677 
9678     else
9679       # If it succeeded, then it was overridden by the user. We will use it
9680       # for the tool.
9681 
9682       # First remove it from the list of overridden variables, so we can test
9683       # for unknown variables in the end.
9684       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9685 
9686       # Check if the provided tool contains a complete path.
9687       tool_specified="$TAR"
9688       tool_basename="${tool_specified##*/}"
9689       if test "x$tool_basename" = "x$tool_specified"; then
9690         # A command without a complete path is provided, search $PATH.
9691         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9692 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9693         # Extract the first word of "$tool_basename", so it can be a program name with args.
9694 set dummy $tool_basename; ac_word=$2
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696 $as_echo_n "checking for $ac_word... " >&6; }
9697 if ${ac_cv_path_TAR+:} false; then :
9698   $as_echo_n "(cached) " >&6
9699 else
9700   case $TAR in
9701   [\\/]* | ?:[\\/]*)
9702   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9703   ;;
9704   *)
9705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708   IFS=$as_save_IFS
9709   test -z "$as_dir" && as_dir=.
9710     for ac_exec_ext in '' $ac_executable_extensions; do
9711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714     break 2
9715   fi
9716 done
9717   done
9718 IFS=$as_save_IFS
9719 
9720   ;;
9721 esac
9722 fi
9723 TAR=$ac_cv_path_TAR
9724 if test -n "$TAR"; then
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9726 $as_echo "$TAR" >&6; }
9727 else
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730 fi
9731 
9732 
9733         if test "x$TAR" = x; then
9734           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9735         fi
9736       else
9737         # Otherwise we believe it is a complete path. Use it as it is.
9738         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9739 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9741 $as_echo_n "checking for TAR... " >&6; }
9742         if test ! -x "$tool_specified"; then
9743           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9744 $as_echo "not found" >&6; }
9745           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9746         fi
9747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9748 $as_echo "$tool_specified" >&6; }
9749       fi
9750     fi
9751   fi
9752 
9753 
9754 
9755   if test "x$TAR" = x; then
9756     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9757   fi
9758 
9759 
9760 
9761 
9762 
9763   # Publish this variable in the help.
9764 
9765 
9766   if test "x$TEE" = x; then
9767     # The variable is not set by user, try to locate tool using the code snippet
9768     for ac_prog in tee
9769 do
9770   # Extract the first word of "$ac_prog", so it can be a program name with args.
9771 set dummy $ac_prog; ac_word=$2
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9773 $as_echo_n "checking for $ac_word... " >&6; }
9774 if ${ac_cv_path_TEE+:} false; then :
9775   $as_echo_n "(cached) " >&6
9776 else
9777   case $TEE in
9778   [\\/]* | ?:[\\/]*)
9779   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9780   ;;
9781   *)
9782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 for as_dir in $PATH
9784 do
9785   IFS=$as_save_IFS
9786   test -z "$as_dir" && as_dir=.
9787     for ac_exec_ext in '' $ac_executable_extensions; do
9788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791     break 2
9792   fi
9793 done
9794   done
9795 IFS=$as_save_IFS
9796 
9797   ;;
9798 esac
9799 fi
9800 TEE=$ac_cv_path_TEE
9801 if test -n "$TEE"; then
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9803 $as_echo "$TEE" >&6; }
9804 else
9805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9807 fi
9808 
9809 
9810   test -n "$TEE" && break
9811 done
9812 
9813   else
9814     # The variable is set, but is it from the command line or the environment?
9815 
9816     # Try to remove the string !TEE! from our list.
9817     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9818     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9819       # If it failed, the variable was not from the command line. Ignore it,
9820       # but warn the user (except for BASH, which is always set by the calling BASH).
9821       if test "xTEE" != xBASH; then
9822         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9823 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9824       fi
9825       # Try to locate tool using the code snippet
9826       for ac_prog in tee
9827 do
9828   # Extract the first word of "$ac_prog", so it can be a program name with args.
9829 set dummy $ac_prog; ac_word=$2
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9831 $as_echo_n "checking for $ac_word... " >&6; }
9832 if ${ac_cv_path_TEE+:} false; then :
9833   $as_echo_n "(cached) " >&6
9834 else
9835   case $TEE in
9836   [\\/]* | ?:[\\/]*)
9837   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9838   ;;
9839   *)
9840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9841 for as_dir in $PATH
9842 do
9843   IFS=$as_save_IFS
9844   test -z "$as_dir" && as_dir=.
9845     for ac_exec_ext in '' $ac_executable_extensions; do
9846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9847     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9849     break 2
9850   fi
9851 done
9852   done
9853 IFS=$as_save_IFS
9854 
9855   ;;
9856 esac
9857 fi
9858 TEE=$ac_cv_path_TEE
9859 if test -n "$TEE"; then
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9861 $as_echo "$TEE" >&6; }
9862 else
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9865 fi
9866 
9867 
9868   test -n "$TEE" && break
9869 done
9870 
9871     else
9872       # If it succeeded, then it was overridden by the user. We will use it
9873       # for the tool.
9874 
9875       # First remove it from the list of overridden variables, so we can test
9876       # for unknown variables in the end.
9877       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9878 
9879       # Check if the provided tool contains a complete path.
9880       tool_specified="$TEE"
9881       tool_basename="${tool_specified##*/}"
9882       if test "x$tool_basename" = "x$tool_specified"; then
9883         # A command without a complete path is provided, search $PATH.
9884         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9885 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9886         # Extract the first word of "$tool_basename", so it can be a program name with args.
9887 set dummy $tool_basename; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_path_TEE+:} false; then :
9891   $as_echo_n "(cached) " >&6
9892 else
9893   case $TEE in
9894   [\\/]* | ?:[\\/]*)
9895   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9896   ;;
9897   *)
9898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $PATH
9900 do
9901   IFS=$as_save_IFS
9902   test -z "$as_dir" && as_dir=.
9903     for ac_exec_ext in '' $ac_executable_extensions; do
9904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9905     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9907     break 2
9908   fi
9909 done
9910   done
9911 IFS=$as_save_IFS
9912 
9913   ;;
9914 esac
9915 fi
9916 TEE=$ac_cv_path_TEE
9917 if test -n "$TEE"; then
9918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9919 $as_echo "$TEE" >&6; }
9920 else
9921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922 $as_echo "no" >&6; }
9923 fi
9924 
9925 
9926         if test "x$TEE" = x; then
9927           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9928         fi
9929       else
9930         # Otherwise we believe it is a complete path. Use it as it is.
9931         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9932 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9934 $as_echo_n "checking for TEE... " >&6; }
9935         if test ! -x "$tool_specified"; then
9936           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9937 $as_echo "not found" >&6; }
9938           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9939         fi
9940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9941 $as_echo "$tool_specified" >&6; }
9942       fi
9943     fi
9944   fi
9945 
9946 
9947 
9948   if test "x$TEE" = x; then
9949     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9950   fi
9951 
9952 
9953 
9954 
9955 
9956   # Publish this variable in the help.
9957 
9958 
9959   if test "x$TOUCH" = x; then
9960     # The variable is not set by user, try to locate tool using the code snippet
9961     for ac_prog in touch
9962 do
9963   # Extract the first word of "$ac_prog", so it can be a program name with args.
9964 set dummy $ac_prog; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if ${ac_cv_path_TOUCH+:} false; then :
9968   $as_echo_n "(cached) " >&6
9969 else
9970   case $TOUCH in
9971   [\\/]* | ?:[\\/]*)
9972   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9973   ;;
9974   *)
9975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9977 do
9978   IFS=$as_save_IFS
9979   test -z "$as_dir" && as_dir=.
9980     for ac_exec_ext in '' $ac_executable_extensions; do
9981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984     break 2
9985   fi
9986 done
9987   done
9988 IFS=$as_save_IFS
9989 
9990   ;;
9991 esac
9992 fi
9993 TOUCH=$ac_cv_path_TOUCH
9994 if test -n "$TOUCH"; then
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9996 $as_echo "$TOUCH" >&6; }
9997 else
9998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000 fi
10001 
10002 
10003   test -n "$TOUCH" && break
10004 done
10005 
10006   else
10007     # The variable is set, but is it from the command line or the environment?
10008 
10009     # Try to remove the string !TOUCH! from our list.
10010     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10011     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10012       # If it failed, the variable was not from the command line. Ignore it,
10013       # but warn the user (except for BASH, which is always set by the calling BASH).
10014       if test "xTOUCH" != xBASH; then
10015         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10016 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10017       fi
10018       # Try to locate tool using the code snippet
10019       for ac_prog in touch
10020 do
10021   # Extract the first word of "$ac_prog", so it can be a program name with args.
10022 set dummy $ac_prog; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if ${ac_cv_path_TOUCH+:} false; then :
10026   $as_echo_n "(cached) " >&6
10027 else
10028   case $TOUCH in
10029   [\\/]* | ?:[\\/]*)
10030   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10031   ;;
10032   *)
10033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $PATH
10035 do
10036   IFS=$as_save_IFS
10037   test -z "$as_dir" && as_dir=.
10038     for ac_exec_ext in '' $ac_executable_extensions; do
10039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10040     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042     break 2
10043   fi
10044 done
10045   done
10046 IFS=$as_save_IFS
10047 
10048   ;;
10049 esac
10050 fi
10051 TOUCH=$ac_cv_path_TOUCH
10052 if test -n "$TOUCH"; then
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10054 $as_echo "$TOUCH" >&6; }
10055 else
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10058 fi
10059 
10060 
10061   test -n "$TOUCH" && break
10062 done
10063 
10064     else
10065       # If it succeeded, then it was overridden by the user. We will use it
10066       # for the tool.
10067 
10068       # First remove it from the list of overridden variables, so we can test
10069       # for unknown variables in the end.
10070       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10071 
10072       # Check if the provided tool contains a complete path.
10073       tool_specified="$TOUCH"
10074       tool_basename="${tool_specified##*/}"
10075       if test "x$tool_basename" = "x$tool_specified"; then
10076         # A command without a complete path is provided, search $PATH.
10077         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10078 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10079         # Extract the first word of "$tool_basename", so it can be a program name with args.
10080 set dummy $tool_basename; ac_word=$2
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082 $as_echo_n "checking for $ac_word... " >&6; }
10083 if ${ac_cv_path_TOUCH+:} false; then :
10084   $as_echo_n "(cached) " >&6
10085 else
10086   case $TOUCH in
10087   [\\/]* | ?:[\\/]*)
10088   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10089   ;;
10090   *)
10091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10093 do
10094   IFS=$as_save_IFS
10095   test -z "$as_dir" && as_dir=.
10096     for ac_exec_ext in '' $ac_executable_extensions; do
10097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100     break 2
10101   fi
10102 done
10103   done
10104 IFS=$as_save_IFS
10105 
10106   ;;
10107 esac
10108 fi
10109 TOUCH=$ac_cv_path_TOUCH
10110 if test -n "$TOUCH"; then
10111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10112 $as_echo "$TOUCH" >&6; }
10113 else
10114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10116 fi
10117 
10118 
10119         if test "x$TOUCH" = x; then
10120           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10121         fi
10122       else
10123         # Otherwise we believe it is a complete path. Use it as it is.
10124         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10125 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10126         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10127 $as_echo_n "checking for TOUCH... " >&6; }
10128         if test ! -x "$tool_specified"; then
10129           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10130 $as_echo "not found" >&6; }
10131           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10132         fi
10133         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10134 $as_echo "$tool_specified" >&6; }
10135       fi
10136     fi
10137   fi
10138 
10139 
10140 
10141   if test "x$TOUCH" = x; then
10142     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10143   fi
10144 
10145 
10146 
10147 
10148 
10149   # Publish this variable in the help.
10150 
10151 
10152   if test "x$TR" = x; then
10153     # The variable is not set by user, try to locate tool using the code snippet
10154     for ac_prog in tr
10155 do
10156   # Extract the first word of "$ac_prog", so it can be a program name with args.
10157 set dummy $ac_prog; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if ${ac_cv_path_TR+:} false; then :
10161   $as_echo_n "(cached) " >&6
10162 else
10163   case $TR in
10164   [\\/]* | ?:[\\/]*)
10165   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10166   ;;
10167   *)
10168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10170 do
10171   IFS=$as_save_IFS
10172   test -z "$as_dir" && as_dir=.
10173     for ac_exec_ext in '' $ac_executable_extensions; do
10174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10175     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177     break 2
10178   fi
10179 done
10180   done
10181 IFS=$as_save_IFS
10182 
10183   ;;
10184 esac
10185 fi
10186 TR=$ac_cv_path_TR
10187 if test -n "$TR"; then
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10189 $as_echo "$TR" >&6; }
10190 else
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10193 fi
10194 
10195 
10196   test -n "$TR" && break
10197 done
10198 
10199   else
10200     # The variable is set, but is it from the command line or the environment?
10201 
10202     # Try to remove the string !TR! from our list.
10203     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10204     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10205       # If it failed, the variable was not from the command line. Ignore it,
10206       # but warn the user (except for BASH, which is always set by the calling BASH).
10207       if test "xTR" != xBASH; then
10208         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10209 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10210       fi
10211       # Try to locate tool using the code snippet
10212       for ac_prog in tr
10213 do
10214   # Extract the first word of "$ac_prog", so it can be a program name with args.
10215 set dummy $ac_prog; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if ${ac_cv_path_TR+:} false; then :
10219   $as_echo_n "(cached) " >&6
10220 else
10221   case $TR in
10222   [\\/]* | ?:[\\/]*)
10223   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10224   ;;
10225   *)
10226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10228 do
10229   IFS=$as_save_IFS
10230   test -z "$as_dir" && as_dir=.
10231     for ac_exec_ext in '' $ac_executable_extensions; do
10232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235     break 2
10236   fi
10237 done
10238   done
10239 IFS=$as_save_IFS
10240 
10241   ;;
10242 esac
10243 fi
10244 TR=$ac_cv_path_TR
10245 if test -n "$TR"; then
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10247 $as_echo "$TR" >&6; }
10248 else
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10251 fi
10252 
10253 
10254   test -n "$TR" && break
10255 done
10256 
10257     else
10258       # If it succeeded, then it was overridden by the user. We will use it
10259       # for the tool.
10260 
10261       # First remove it from the list of overridden variables, so we can test
10262       # for unknown variables in the end.
10263       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10264 
10265       # Check if the provided tool contains a complete path.
10266       tool_specified="$TR"
10267       tool_basename="${tool_specified##*/}"
10268       if test "x$tool_basename" = "x$tool_specified"; then
10269         # A command without a complete path is provided, search $PATH.
10270         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10271 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10272         # Extract the first word of "$tool_basename", so it can be a program name with args.
10273 set dummy $tool_basename; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_path_TR+:} false; then :
10277   $as_echo_n "(cached) " >&6
10278 else
10279   case $TR in
10280   [\\/]* | ?:[\\/]*)
10281   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10282   ;;
10283   *)
10284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285 for as_dir in $PATH
10286 do
10287   IFS=$as_save_IFS
10288   test -z "$as_dir" && as_dir=.
10289     for ac_exec_ext in '' $ac_executable_extensions; do
10290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293     break 2
10294   fi
10295 done
10296   done
10297 IFS=$as_save_IFS
10298 
10299   ;;
10300 esac
10301 fi
10302 TR=$ac_cv_path_TR
10303 if test -n "$TR"; then
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10305 $as_echo "$TR" >&6; }
10306 else
10307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10309 fi
10310 
10311 
10312         if test "x$TR" = x; then
10313           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10314         fi
10315       else
10316         # Otherwise we believe it is a complete path. Use it as it is.
10317         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10318 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10320 $as_echo_n "checking for TR... " >&6; }
10321         if test ! -x "$tool_specified"; then
10322           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10323 $as_echo "not found" >&6; }
10324           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10325         fi
10326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10327 $as_echo "$tool_specified" >&6; }
10328       fi
10329     fi
10330   fi
10331 
10332 
10333 
10334   if test "x$TR" = x; then
10335     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10336   fi
10337 
10338 
10339 
10340 
10341 
10342   # Publish this variable in the help.
10343 
10344 
10345   if test "x$UNAME" = x; then
10346     # The variable is not set by user, try to locate tool using the code snippet
10347     for ac_prog in uname
10348 do
10349   # Extract the first word of "$ac_prog", so it can be a program name with args.
10350 set dummy $ac_prog; ac_word=$2
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10352 $as_echo_n "checking for $ac_word... " >&6; }
10353 if ${ac_cv_path_UNAME+:} false; then :
10354   $as_echo_n "(cached) " >&6
10355 else
10356   case $UNAME in
10357   [\\/]* | ?:[\\/]*)
10358   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10359   ;;
10360   *)
10361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10363 do
10364   IFS=$as_save_IFS
10365   test -z "$as_dir" && as_dir=.
10366     for ac_exec_ext in '' $ac_executable_extensions; do
10367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370     break 2
10371   fi
10372 done
10373   done
10374 IFS=$as_save_IFS
10375 
10376   ;;
10377 esac
10378 fi
10379 UNAME=$ac_cv_path_UNAME
10380 if test -n "$UNAME"; then
10381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10382 $as_echo "$UNAME" >&6; }
10383 else
10384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10386 fi
10387 
10388 
10389   test -n "$UNAME" && break
10390 done
10391 
10392   else
10393     # The variable is set, but is it from the command line or the environment?
10394 
10395     # Try to remove the string !UNAME! from our list.
10396     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10397     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10398       # If it failed, the variable was not from the command line. Ignore it,
10399       # but warn the user (except for BASH, which is always set by the calling BASH).
10400       if test "xUNAME" != xBASH; then
10401         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10402 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10403       fi
10404       # Try to locate tool using the code snippet
10405       for ac_prog in uname
10406 do
10407   # Extract the first word of "$ac_prog", so it can be a program name with args.
10408 set dummy $ac_prog; ac_word=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if ${ac_cv_path_UNAME+:} false; then :
10412   $as_echo_n "(cached) " >&6
10413 else
10414   case $UNAME in
10415   [\\/]* | ?:[\\/]*)
10416   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10417   ;;
10418   *)
10419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10421 do
10422   IFS=$as_save_IFS
10423   test -z "$as_dir" && as_dir=.
10424     for ac_exec_ext in '' $ac_executable_extensions; do
10425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10426     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428     break 2
10429   fi
10430 done
10431   done
10432 IFS=$as_save_IFS
10433 
10434   ;;
10435 esac
10436 fi
10437 UNAME=$ac_cv_path_UNAME
10438 if test -n "$UNAME"; then
10439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10440 $as_echo "$UNAME" >&6; }
10441 else
10442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10444 fi
10445 
10446 
10447   test -n "$UNAME" && break
10448 done
10449 
10450     else
10451       # If it succeeded, then it was overridden by the user. We will use it
10452       # for the tool.
10453 
10454       # First remove it from the list of overridden variables, so we can test
10455       # for unknown variables in the end.
10456       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10457 
10458       # Check if the provided tool contains a complete path.
10459       tool_specified="$UNAME"
10460       tool_basename="${tool_specified##*/}"
10461       if test "x$tool_basename" = "x$tool_specified"; then
10462         # A command without a complete path is provided, search $PATH.
10463         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10464 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10465         # Extract the first word of "$tool_basename", so it can be a program name with args.
10466 set dummy $tool_basename; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10468 $as_echo_n "checking for $ac_word... " >&6; }
10469 if ${ac_cv_path_UNAME+:} false; then :
10470   $as_echo_n "(cached) " >&6
10471 else
10472   case $UNAME in
10473   [\\/]* | ?:[\\/]*)
10474   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10475   ;;
10476   *)
10477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10479 do
10480   IFS=$as_save_IFS
10481   test -z "$as_dir" && as_dir=.
10482     for ac_exec_ext in '' $ac_executable_extensions; do
10483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10486     break 2
10487   fi
10488 done
10489   done
10490 IFS=$as_save_IFS
10491 
10492   ;;
10493 esac
10494 fi
10495 UNAME=$ac_cv_path_UNAME
10496 if test -n "$UNAME"; then
10497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10498 $as_echo "$UNAME" >&6; }
10499 else
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10502 fi
10503 
10504 
10505         if test "x$UNAME" = x; then
10506           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10507         fi
10508       else
10509         # Otherwise we believe it is a complete path. Use it as it is.
10510         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10511 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10512         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10513 $as_echo_n "checking for UNAME... " >&6; }
10514         if test ! -x "$tool_specified"; then
10515           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10516 $as_echo "not found" >&6; }
10517           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10518         fi
10519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10520 $as_echo "$tool_specified" >&6; }
10521       fi
10522     fi
10523   fi
10524 
10525 
10526 
10527   if test "x$UNAME" = x; then
10528     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10529   fi
10530 
10531 
10532 
10533 
10534 
10535   # Publish this variable in the help.
10536 
10537 
10538   if test "x$UNIQ" = x; then
10539     # The variable is not set by user, try to locate tool using the code snippet
10540     for ac_prog in uniq
10541 do
10542   # Extract the first word of "$ac_prog", so it can be a program name with args.
10543 set dummy $ac_prog; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_path_UNIQ+:} false; then :
10547   $as_echo_n "(cached) " >&6
10548 else
10549   case $UNIQ in
10550   [\\/]* | ?:[\\/]*)
10551   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10552   ;;
10553   *)
10554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 for as_dir in $PATH
10556 do
10557   IFS=$as_save_IFS
10558   test -z "$as_dir" && as_dir=.
10559     for ac_exec_ext in '' $ac_executable_extensions; do
10560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563     break 2
10564   fi
10565 done
10566   done
10567 IFS=$as_save_IFS
10568 
10569   ;;
10570 esac
10571 fi
10572 UNIQ=$ac_cv_path_UNIQ
10573 if test -n "$UNIQ"; then
10574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10575 $as_echo "$UNIQ" >&6; }
10576 else
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10579 fi
10580 
10581 
10582   test -n "$UNIQ" && break
10583 done
10584 
10585   else
10586     # The variable is set, but is it from the command line or the environment?
10587 
10588     # Try to remove the string !UNIQ! from our list.
10589     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10590     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10591       # If it failed, the variable was not from the command line. Ignore it,
10592       # but warn the user (except for BASH, which is always set by the calling BASH).
10593       if test "xUNIQ" != xBASH; then
10594         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10595 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10596       fi
10597       # Try to locate tool using the code snippet
10598       for ac_prog in uniq
10599 do
10600   # Extract the first word of "$ac_prog", so it can be a program name with args.
10601 set dummy $ac_prog; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_path_UNIQ+:} false; then :
10605   $as_echo_n "(cached) " >&6
10606 else
10607   case $UNIQ in
10608   [\\/]* | ?:[\\/]*)
10609   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10610   ;;
10611   *)
10612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10614 do
10615   IFS=$as_save_IFS
10616   test -z "$as_dir" && as_dir=.
10617     for ac_exec_ext in '' $ac_executable_extensions; do
10618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621     break 2
10622   fi
10623 done
10624   done
10625 IFS=$as_save_IFS
10626 
10627   ;;
10628 esac
10629 fi
10630 UNIQ=$ac_cv_path_UNIQ
10631 if test -n "$UNIQ"; then
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10633 $as_echo "$UNIQ" >&6; }
10634 else
10635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10637 fi
10638 
10639 
10640   test -n "$UNIQ" && break
10641 done
10642 
10643     else
10644       # If it succeeded, then it was overridden by the user. We will use it
10645       # for the tool.
10646 
10647       # First remove it from the list of overridden variables, so we can test
10648       # for unknown variables in the end.
10649       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10650 
10651       # Check if the provided tool contains a complete path.
10652       tool_specified="$UNIQ"
10653       tool_basename="${tool_specified##*/}"
10654       if test "x$tool_basename" = "x$tool_specified"; then
10655         # A command without a complete path is provided, search $PATH.
10656         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10657 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10658         # Extract the first word of "$tool_basename", so it can be a program name with args.
10659 set dummy $tool_basename; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if ${ac_cv_path_UNIQ+:} false; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   case $UNIQ in
10666   [\\/]* | ?:[\\/]*)
10667   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10668   ;;
10669   *)
10670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673   IFS=$as_save_IFS
10674   test -z "$as_dir" && as_dir=.
10675     for ac_exec_ext in '' $ac_executable_extensions; do
10676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679     break 2
10680   fi
10681 done
10682   done
10683 IFS=$as_save_IFS
10684 
10685   ;;
10686 esac
10687 fi
10688 UNIQ=$ac_cv_path_UNIQ
10689 if test -n "$UNIQ"; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10691 $as_echo "$UNIQ" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696 
10697 
10698         if test "x$UNIQ" = x; then
10699           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10700         fi
10701       else
10702         # Otherwise we believe it is a complete path. Use it as it is.
10703         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10704 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10706 $as_echo_n "checking for UNIQ... " >&6; }
10707         if test ! -x "$tool_specified"; then
10708           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10709 $as_echo "not found" >&6; }
10710           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10711         fi
10712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10713 $as_echo "$tool_specified" >&6; }
10714       fi
10715     fi
10716   fi
10717 
10718 
10719 
10720   if test "x$UNIQ" = x; then
10721     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10722   fi
10723 
10724 
10725 
10726 
10727 
10728   # Publish this variable in the help.
10729 
10730 
10731   if test "x$WC" = x; then
10732     # The variable is not set by user, try to locate tool using the code snippet
10733     for ac_prog in wc
10734 do
10735   # Extract the first word of "$ac_prog", so it can be a program name with args.
10736 set dummy $ac_prog; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if ${ac_cv_path_WC+:} false; then :
10740   $as_echo_n "(cached) " >&6
10741 else
10742   case $WC in
10743   [\\/]* | ?:[\\/]*)
10744   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10745   ;;
10746   *)
10747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10749 do
10750   IFS=$as_save_IFS
10751   test -z "$as_dir" && as_dir=.
10752     for ac_exec_ext in '' $ac_executable_extensions; do
10753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756     break 2
10757   fi
10758 done
10759   done
10760 IFS=$as_save_IFS
10761 
10762   ;;
10763 esac
10764 fi
10765 WC=$ac_cv_path_WC
10766 if test -n "$WC"; then
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10768 $as_echo "$WC" >&6; }
10769 else
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10772 fi
10773 
10774 
10775   test -n "$WC" && break
10776 done
10777 
10778   else
10779     # The variable is set, but is it from the command line or the environment?
10780 
10781     # Try to remove the string !WC! from our list.
10782     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10783     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10784       # If it failed, the variable was not from the command line. Ignore it,
10785       # but warn the user (except for BASH, which is always set by the calling BASH).
10786       if test "xWC" != xBASH; then
10787         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10788 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10789       fi
10790       # Try to locate tool using the code snippet
10791       for ac_prog in wc
10792 do
10793   # Extract the first word of "$ac_prog", so it can be a program name with args.
10794 set dummy $ac_prog; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_path_WC+:} false; then :
10798   $as_echo_n "(cached) " >&6
10799 else
10800   case $WC in
10801   [\\/]* | ?:[\\/]*)
10802   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10803   ;;
10804   *)
10805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10807 do
10808   IFS=$as_save_IFS
10809   test -z "$as_dir" && as_dir=.
10810     for ac_exec_ext in '' $ac_executable_extensions; do
10811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10812     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814     break 2
10815   fi
10816 done
10817   done
10818 IFS=$as_save_IFS
10819 
10820   ;;
10821 esac
10822 fi
10823 WC=$ac_cv_path_WC
10824 if test -n "$WC"; then
10825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10826 $as_echo "$WC" >&6; }
10827 else
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10830 fi
10831 
10832 
10833   test -n "$WC" && break
10834 done
10835 
10836     else
10837       # If it succeeded, then it was overridden by the user. We will use it
10838       # for the tool.
10839 
10840       # First remove it from the list of overridden variables, so we can test
10841       # for unknown variables in the end.
10842       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10843 
10844       # Check if the provided tool contains a complete path.
10845       tool_specified="$WC"
10846       tool_basename="${tool_specified##*/}"
10847       if test "x$tool_basename" = "x$tool_specified"; then
10848         # A command without a complete path is provided, search $PATH.
10849         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10850 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10851         # Extract the first word of "$tool_basename", so it can be a program name with args.
10852 set dummy $tool_basename; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 $as_echo_n "checking for $ac_word... " >&6; }
10855 if ${ac_cv_path_WC+:} false; then :
10856   $as_echo_n "(cached) " >&6
10857 else
10858   case $WC in
10859   [\\/]* | ?:[\\/]*)
10860   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10861   ;;
10862   *)
10863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10865 do
10866   IFS=$as_save_IFS
10867   test -z "$as_dir" && as_dir=.
10868     for ac_exec_ext in '' $ac_executable_extensions; do
10869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872     break 2
10873   fi
10874 done
10875   done
10876 IFS=$as_save_IFS
10877 
10878   ;;
10879 esac
10880 fi
10881 WC=$ac_cv_path_WC
10882 if test -n "$WC"; then
10883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10884 $as_echo "$WC" >&6; }
10885 else
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10888 fi
10889 
10890 
10891         if test "x$WC" = x; then
10892           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10893         fi
10894       else
10895         # Otherwise we believe it is a complete path. Use it as it is.
10896         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10897 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10898         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10899 $as_echo_n "checking for WC... " >&6; }
10900         if test ! -x "$tool_specified"; then
10901           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10902 $as_echo "not found" >&6; }
10903           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10904         fi
10905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10906 $as_echo "$tool_specified" >&6; }
10907       fi
10908     fi
10909   fi
10910 
10911 
10912 
10913   if test "x$WC" = x; then
10914     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10915   fi
10916 
10917 
10918 
10919 
10920 
10921   # Publish this variable in the help.
10922 
10923 
10924   if test "x$WHICH" = x; then
10925     # The variable is not set by user, try to locate tool using the code snippet
10926     for ac_prog in which
10927 do
10928   # Extract the first word of "$ac_prog", so it can be a program name with args.
10929 set dummy $ac_prog; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_path_WHICH+:} false; then :
10933   $as_echo_n "(cached) " >&6
10934 else
10935   case $WHICH in
10936   [\\/]* | ?:[\\/]*)
10937   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10938   ;;
10939   *)
10940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943   IFS=$as_save_IFS
10944   test -z "$as_dir" && as_dir=.
10945     for ac_exec_ext in '' $ac_executable_extensions; do
10946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949     break 2
10950   fi
10951 done
10952   done
10953 IFS=$as_save_IFS
10954 
10955   ;;
10956 esac
10957 fi
10958 WHICH=$ac_cv_path_WHICH
10959 if test -n "$WHICH"; then
10960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10961 $as_echo "$WHICH" >&6; }
10962 else
10963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10965 fi
10966 
10967 
10968   test -n "$WHICH" && break
10969 done
10970 
10971   else
10972     # The variable is set, but is it from the command line or the environment?
10973 
10974     # Try to remove the string !WHICH! from our list.
10975     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10976     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10977       # If it failed, the variable was not from the command line. Ignore it,
10978       # but warn the user (except for BASH, which is always set by the calling BASH).
10979       if test "xWHICH" != xBASH; then
10980         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10981 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10982       fi
10983       # Try to locate tool using the code snippet
10984       for ac_prog in which
10985 do
10986   # Extract the first word of "$ac_prog", so it can be a program name with args.
10987 set dummy $ac_prog; ac_word=$2
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10989 $as_echo_n "checking for $ac_word... " >&6; }
10990 if ${ac_cv_path_WHICH+:} false; then :
10991   $as_echo_n "(cached) " >&6
10992 else
10993   case $WHICH in
10994   [\\/]* | ?:[\\/]*)
10995   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10996   ;;
10997   *)
10998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in $PATH
11000 do
11001   IFS=$as_save_IFS
11002   test -z "$as_dir" && as_dir=.
11003     for ac_exec_ext in '' $ac_executable_extensions; do
11004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007     break 2
11008   fi
11009 done
11010   done
11011 IFS=$as_save_IFS
11012 
11013   ;;
11014 esac
11015 fi
11016 WHICH=$ac_cv_path_WHICH
11017 if test -n "$WHICH"; then
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11019 $as_echo "$WHICH" >&6; }
11020 else
11021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11023 fi
11024 
11025 
11026   test -n "$WHICH" && break
11027 done
11028 
11029     else
11030       # If it succeeded, then it was overridden by the user. We will use it
11031       # for the tool.
11032 
11033       # First remove it from the list of overridden variables, so we can test
11034       # for unknown variables in the end.
11035       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11036 
11037       # Check if the provided tool contains a complete path.
11038       tool_specified="$WHICH"
11039       tool_basename="${tool_specified##*/}"
11040       if test "x$tool_basename" = "x$tool_specified"; then
11041         # A command without a complete path is provided, search $PATH.
11042         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11043 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11044         # Extract the first word of "$tool_basename", so it can be a program name with args.
11045 set dummy $tool_basename; ac_word=$2
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11047 $as_echo_n "checking for $ac_word... " >&6; }
11048 if ${ac_cv_path_WHICH+:} false; then :
11049   $as_echo_n "(cached) " >&6
11050 else
11051   case $WHICH in
11052   [\\/]* | ?:[\\/]*)
11053   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11054   ;;
11055   *)
11056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11058 do
11059   IFS=$as_save_IFS
11060   test -z "$as_dir" && as_dir=.
11061     for ac_exec_ext in '' $ac_executable_extensions; do
11062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11063     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065     break 2
11066   fi
11067 done
11068   done
11069 IFS=$as_save_IFS
11070 
11071   ;;
11072 esac
11073 fi
11074 WHICH=$ac_cv_path_WHICH
11075 if test -n "$WHICH"; then
11076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11077 $as_echo "$WHICH" >&6; }
11078 else
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11081 fi
11082 
11083 
11084         if test "x$WHICH" = x; then
11085           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11086         fi
11087       else
11088         # Otherwise we believe it is a complete path. Use it as it is.
11089         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11090 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11091         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11092 $as_echo_n "checking for WHICH... " >&6; }
11093         if test ! -x "$tool_specified"; then
11094           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11095 $as_echo "not found" >&6; }
11096           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11097         fi
11098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11099 $as_echo "$tool_specified" >&6; }
11100       fi
11101     fi
11102   fi
11103 
11104 
11105 
11106   if test "x$WHICH" = x; then
11107     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11108   fi
11109 
11110 
11111 
11112 
11113 
11114   # Publish this variable in the help.
11115 
11116 
11117   if test "x$XARGS" = x; then
11118     # The variable is not set by user, try to locate tool using the code snippet
11119     for ac_prog in xargs
11120 do
11121   # Extract the first word of "$ac_prog", so it can be a program name with args.
11122 set dummy $ac_prog; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if ${ac_cv_path_XARGS+:} false; then :
11126   $as_echo_n "(cached) " >&6
11127 else
11128   case $XARGS in
11129   [\\/]* | ?:[\\/]*)
11130   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11131   ;;
11132   *)
11133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   test -z "$as_dir" && as_dir=.
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147 
11148   ;;
11149 esac
11150 fi
11151 XARGS=$ac_cv_path_XARGS
11152 if test -n "$XARGS"; then
11153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11154 $as_echo "$XARGS" >&6; }
11155 else
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158 fi
11159 
11160 
11161   test -n "$XARGS" && break
11162 done
11163 
11164   else
11165     # The variable is set, but is it from the command line or the environment?
11166 
11167     # Try to remove the string !XARGS! from our list.
11168     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11169     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11170       # If it failed, the variable was not from the command line. Ignore it,
11171       # but warn the user (except for BASH, which is always set by the calling BASH).
11172       if test "xXARGS" != xBASH; then
11173         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11174 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11175       fi
11176       # Try to locate tool using the code snippet
11177       for ac_prog in xargs
11178 do
11179   # Extract the first word of "$ac_prog", so it can be a program name with args.
11180 set dummy $ac_prog; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if ${ac_cv_path_XARGS+:} false; then :
11184   $as_echo_n "(cached) " >&6
11185 else
11186   case $XARGS in
11187   [\\/]* | ?:[\\/]*)
11188   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11189   ;;
11190   *)
11191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11193 do
11194   IFS=$as_save_IFS
11195   test -z "$as_dir" && as_dir=.
11196     for ac_exec_ext in '' $ac_executable_extensions; do
11197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11200     break 2
11201   fi
11202 done
11203   done
11204 IFS=$as_save_IFS
11205 
11206   ;;
11207 esac
11208 fi
11209 XARGS=$ac_cv_path_XARGS
11210 if test -n "$XARGS"; then
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11212 $as_echo "$XARGS" >&6; }
11213 else
11214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217 
11218 
11219   test -n "$XARGS" && break
11220 done
11221 
11222     else
11223       # If it succeeded, then it was overridden by the user. We will use it
11224       # for the tool.
11225 
11226       # First remove it from the list of overridden variables, so we can test
11227       # for unknown variables in the end.
11228       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11229 
11230       # Check if the provided tool contains a complete path.
11231       tool_specified="$XARGS"
11232       tool_basename="${tool_specified##*/}"
11233       if test "x$tool_basename" = "x$tool_specified"; then
11234         # A command without a complete path is provided, search $PATH.
11235         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11236 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11237         # Extract the first word of "$tool_basename", so it can be a program name with args.
11238 set dummy $tool_basename; ac_word=$2
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 $as_echo_n "checking for $ac_word... " >&6; }
11241 if ${ac_cv_path_XARGS+:} false; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   case $XARGS in
11245   [\\/]* | ?:[\\/]*)
11246   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11247   ;;
11248   *)
11249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $PATH
11251 do
11252   IFS=$as_save_IFS
11253   test -z "$as_dir" && as_dir=.
11254     for ac_exec_ext in '' $ac_executable_extensions; do
11255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11256     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258     break 2
11259   fi
11260 done
11261   done
11262 IFS=$as_save_IFS
11263 
11264   ;;
11265 esac
11266 fi
11267 XARGS=$ac_cv_path_XARGS
11268 if test -n "$XARGS"; then
11269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11270 $as_echo "$XARGS" >&6; }
11271 else
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11274 fi
11275 
11276 
11277         if test "x$XARGS" = x; then
11278           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11279         fi
11280       else
11281         # Otherwise we believe it is a complete path. Use it as it is.
11282         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11283 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11285 $as_echo_n "checking for XARGS... " >&6; }
11286         if test ! -x "$tool_specified"; then
11287           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11288 $as_echo "not found" >&6; }
11289           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11290         fi
11291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11292 $as_echo "$tool_specified" >&6; }
11293       fi
11294     fi
11295   fi
11296 
11297 
11298 
11299   if test "x$XARGS" = x; then
11300     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11301   fi
11302 
11303 
11304 
11305   # Then required tools that require some special treatment.
11306 
11307 
11308   # Publish this variable in the help.
11309 
11310 
11311   if test "x$AWK" = x; then
11312     # The variable is not set by user, try to locate tool using the code snippet
11313     for ac_prog in gawk mawk nawk awk
11314 do
11315   # Extract the first word of "$ac_prog", so it can be a program name with args.
11316 set dummy $ac_prog; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if ${ac_cv_prog_AWK+:} false; then :
11320   $as_echo_n "(cached) " >&6
11321 else
11322   if test -n "$AWK"; then
11323   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11324 else
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11327 do
11328   IFS=$as_save_IFS
11329   test -z "$as_dir" && as_dir=.
11330     for ac_exec_ext in '' $ac_executable_extensions; do
11331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11332     ac_cv_prog_AWK="$ac_prog"
11333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334     break 2
11335   fi
11336 done
11337   done
11338 IFS=$as_save_IFS
11339 
11340 fi
11341 fi
11342 AWK=$ac_cv_prog_AWK
11343 if test -n "$AWK"; then
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11345 $as_echo "$AWK" >&6; }
11346 else
11347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11349 fi
11350 
11351 
11352   test -n "$AWK" && break
11353 done
11354 
11355   else
11356     # The variable is set, but is it from the command line or the environment?
11357 
11358     # Try to remove the string !AWK! from our list.
11359     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11360     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11361       # If it failed, the variable was not from the command line. Ignore it,
11362       # but warn the user (except for BASH, which is always set by the calling BASH).
11363       if test "xAWK" != xBASH; then
11364         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11365 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11366       fi
11367       # Try to locate tool using the code snippet
11368       for ac_prog in gawk mawk nawk awk
11369 do
11370   # Extract the first word of "$ac_prog", so it can be a program name with args.
11371 set dummy $ac_prog; ac_word=$2
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if ${ac_cv_prog_AWK+:} false; then :
11375   $as_echo_n "(cached) " >&6
11376 else
11377   if test -n "$AWK"; then
11378   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11379 else
11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11382 do
11383   IFS=$as_save_IFS
11384   test -z "$as_dir" && as_dir=.
11385     for ac_exec_ext in '' $ac_executable_extensions; do
11386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387     ac_cv_prog_AWK="$ac_prog"
11388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389     break 2
11390   fi
11391 done
11392   done
11393 IFS=$as_save_IFS
11394 
11395 fi
11396 fi
11397 AWK=$ac_cv_prog_AWK
11398 if test -n "$AWK"; then
11399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11400 $as_echo "$AWK" >&6; }
11401 else
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403 $as_echo "no" >&6; }
11404 fi
11405 
11406 
11407   test -n "$AWK" && break
11408 done
11409 
11410     else
11411       # If it succeeded, then it was overridden by the user. We will use it
11412       # for the tool.
11413 
11414       # First remove it from the list of overridden variables, so we can test
11415       # for unknown variables in the end.
11416       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11417 
11418       # Check if the provided tool contains a complete path.
11419       tool_specified="$AWK"
11420       tool_basename="${tool_specified##*/}"
11421       if test "x$tool_basename" = "x$tool_specified"; then
11422         # A command without a complete path is provided, search $PATH.
11423         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11424 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11425         # Extract the first word of "$tool_basename", so it can be a program name with args.
11426 set dummy $tool_basename; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428 $as_echo_n "checking for $ac_word... " >&6; }
11429 if ${ac_cv_path_AWK+:} false; then :
11430   $as_echo_n "(cached) " >&6
11431 else
11432   case $AWK in
11433   [\\/]* | ?:[\\/]*)
11434   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11435   ;;
11436   *)
11437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11439 do
11440   IFS=$as_save_IFS
11441   test -z "$as_dir" && as_dir=.
11442     for ac_exec_ext in '' $ac_executable_extensions; do
11443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446     break 2
11447   fi
11448 done
11449   done
11450 IFS=$as_save_IFS
11451 
11452   ;;
11453 esac
11454 fi
11455 AWK=$ac_cv_path_AWK
11456 if test -n "$AWK"; then
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11458 $as_echo "$AWK" >&6; }
11459 else
11460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 fi
11463 
11464 
11465         if test "x$AWK" = x; then
11466           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11467         fi
11468       else
11469         # Otherwise we believe it is a complete path. Use it as it is.
11470         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11471 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11473 $as_echo_n "checking for AWK... " >&6; }
11474         if test ! -x "$tool_specified"; then
11475           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11476 $as_echo "not found" >&6; }
11477           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11478         fi
11479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11480 $as_echo "$tool_specified" >&6; }
11481       fi
11482     fi
11483   fi
11484 
11485 
11486   if test "x$AWK" = x; then
11487     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11488   fi
11489 
11490 
11491 
11492 
11493   # Publish this variable in the help.
11494 
11495 
11496   if test "x$GREP" = x; then
11497     # The variable is not set by user, try to locate tool using the code snippet
11498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11499 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11500 if ${ac_cv_path_GREP+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   if test -z "$GREP"; then
11504   ac_path_GREP_found=false
11505   # Loop through the user's path and test for each of PROGNAME-LIST
11506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11508 do
11509   IFS=$as_save_IFS
11510   test -z "$as_dir" && as_dir=.
11511     for ac_prog in grep ggrep; do
11512     for ac_exec_ext in '' $ac_executable_extensions; do
11513       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11514       as_fn_executable_p "$ac_path_GREP" || continue
11515 # Check for GNU ac_path_GREP and select it if it is found.
11516   # Check for GNU $ac_path_GREP
11517 case `"$ac_path_GREP" --version 2>&1` in
11518 *GNU*)
11519   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11520 *)
11521   ac_count=0
11522   $as_echo_n 0123456789 >"conftest.in"
11523   while :
11524   do
11525     cat "conftest.in" "conftest.in" >"conftest.tmp"
11526     mv "conftest.tmp" "conftest.in"
11527     cp "conftest.in" "conftest.nl"
11528     $as_echo 'GREP' >> "conftest.nl"
11529     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11531     as_fn_arith $ac_count + 1 && ac_count=$as_val
11532     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11533       # Best one so far, save it but keep looking for a better one
11534       ac_cv_path_GREP="$ac_path_GREP"
11535       ac_path_GREP_max=$ac_count
11536     fi
11537     # 10*(2^10) chars as input seems more than enough
11538     test $ac_count -gt 10 && break
11539   done
11540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11541 esac
11542 
11543       $ac_path_GREP_found && break 3
11544     done
11545   done
11546   done
11547 IFS=$as_save_IFS
11548   if test -z "$ac_cv_path_GREP"; then
11549     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11550   fi
11551 else
11552   ac_cv_path_GREP=$GREP
11553 fi
11554 
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11557 $as_echo "$ac_cv_path_GREP" >&6; }
11558  GREP="$ac_cv_path_GREP"
11559 
11560 
11561   else
11562     # The variable is set, but is it from the command line or the environment?
11563 
11564     # Try to remove the string !GREP! from our list.
11565     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11566     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11567       # If it failed, the variable was not from the command line. Ignore it,
11568       # but warn the user (except for BASH, which is always set by the calling BASH).
11569       if test "xGREP" != xBASH; then
11570         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11571 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11572       fi
11573       # Try to locate tool using the code snippet
11574       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11575 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11576 if ${ac_cv_path_GREP+:} false; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   if test -z "$GREP"; then
11580   ac_path_GREP_found=false
11581   # Loop through the user's path and test for each of PROGNAME-LIST
11582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11584 do
11585   IFS=$as_save_IFS
11586   test -z "$as_dir" && as_dir=.
11587     for ac_prog in grep ggrep; do
11588     for ac_exec_ext in '' $ac_executable_extensions; do
11589       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11590       as_fn_executable_p "$ac_path_GREP" || continue
11591 # Check for GNU ac_path_GREP and select it if it is found.
11592   # Check for GNU $ac_path_GREP
11593 case `"$ac_path_GREP" --version 2>&1` in
11594 *GNU*)
11595   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11596 *)
11597   ac_count=0
11598   $as_echo_n 0123456789 >"conftest.in"
11599   while :
11600   do
11601     cat "conftest.in" "conftest.in" >"conftest.tmp"
11602     mv "conftest.tmp" "conftest.in"
11603     cp "conftest.in" "conftest.nl"
11604     $as_echo 'GREP' >> "conftest.nl"
11605     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11606     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11607     as_fn_arith $ac_count + 1 && ac_count=$as_val
11608     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11609       # Best one so far, save it but keep looking for a better one
11610       ac_cv_path_GREP="$ac_path_GREP"
11611       ac_path_GREP_max=$ac_count
11612     fi
11613     # 10*(2^10) chars as input seems more than enough
11614     test $ac_count -gt 10 && break
11615   done
11616   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11617 esac
11618 
11619       $ac_path_GREP_found && break 3
11620     done
11621   done
11622   done
11623 IFS=$as_save_IFS
11624   if test -z "$ac_cv_path_GREP"; then
11625     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11626   fi
11627 else
11628   ac_cv_path_GREP=$GREP
11629 fi
11630 
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11633 $as_echo "$ac_cv_path_GREP" >&6; }
11634  GREP="$ac_cv_path_GREP"
11635 
11636 
11637     else
11638       # If it succeeded, then it was overridden by the user. We will use it
11639       # for the tool.
11640 
11641       # First remove it from the list of overridden variables, so we can test
11642       # for unknown variables in the end.
11643       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11644 
11645       # Check if the provided tool contains a complete path.
11646       tool_specified="$GREP"
11647       tool_basename="${tool_specified##*/}"
11648       if test "x$tool_basename" = "x$tool_specified"; then
11649         # A command without a complete path is provided, search $PATH.
11650         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11651 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11652         # Extract the first word of "$tool_basename", so it can be a program name with args.
11653 set dummy $tool_basename; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if ${ac_cv_path_GREP+:} false; then :
11657   $as_echo_n "(cached) " >&6
11658 else
11659   case $GREP in
11660   [\\/]* | ?:[\\/]*)
11661   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11662   ;;
11663   *)
11664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11666 do
11667   IFS=$as_save_IFS
11668   test -z "$as_dir" && as_dir=.
11669     for ac_exec_ext in '' $ac_executable_extensions; do
11670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673     break 2
11674   fi
11675 done
11676   done
11677 IFS=$as_save_IFS
11678 
11679   ;;
11680 esac
11681 fi
11682 GREP=$ac_cv_path_GREP
11683 if test -n "$GREP"; then
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11685 $as_echo "$GREP" >&6; }
11686 else
11687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11689 fi
11690 
11691 
11692         if test "x$GREP" = x; then
11693           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11694         fi
11695       else
11696         # Otherwise we believe it is a complete path. Use it as it is.
11697         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11698 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11700 $as_echo_n "checking for GREP... " >&6; }
11701         if test ! -x "$tool_specified"; then
11702           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11703 $as_echo "not found" >&6; }
11704           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11705         fi
11706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11707 $as_echo "$tool_specified" >&6; }
11708       fi
11709     fi
11710   fi
11711 
11712 
11713   if test "x$GREP" = x; then
11714     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11715   fi
11716 
11717 
11718 
11719 
11720   # Publish this variable in the help.
11721 
11722 
11723   if test "x$EGREP" = x; then
11724     # The variable is not set by user, try to locate tool using the code snippet
11725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11726 $as_echo_n "checking for egrep... " >&6; }
11727 if ${ac_cv_path_EGREP+:} false; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11731    then ac_cv_path_EGREP="$GREP -E"
11732    else
11733      if test -z "$EGREP"; then
11734   ac_path_EGREP_found=false
11735   # Loop through the user's path and test for each of PROGNAME-LIST
11736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11738 do
11739   IFS=$as_save_IFS
11740   test -z "$as_dir" && as_dir=.
11741     for ac_prog in egrep; do
11742     for ac_exec_ext in '' $ac_executable_extensions; do
11743       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11744       as_fn_executable_p "$ac_path_EGREP" || continue
11745 # Check for GNU ac_path_EGREP and select it if it is found.
11746   # Check for GNU $ac_path_EGREP
11747 case `"$ac_path_EGREP" --version 2>&1` in
11748 *GNU*)
11749   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11750 *)
11751   ac_count=0
11752   $as_echo_n 0123456789 >"conftest.in"
11753   while :
11754   do
11755     cat "conftest.in" "conftest.in" >"conftest.tmp"
11756     mv "conftest.tmp" "conftest.in"
11757     cp "conftest.in" "conftest.nl"
11758     $as_echo 'EGREP' >> "conftest.nl"
11759     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11760     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11761     as_fn_arith $ac_count + 1 && ac_count=$as_val
11762     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11763       # Best one so far, save it but keep looking for a better one
11764       ac_cv_path_EGREP="$ac_path_EGREP"
11765       ac_path_EGREP_max=$ac_count
11766     fi
11767     # 10*(2^10) chars as input seems more than enough
11768     test $ac_count -gt 10 && break
11769   done
11770   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11771 esac
11772 
11773       $ac_path_EGREP_found && break 3
11774     done
11775   done
11776   done
11777 IFS=$as_save_IFS
11778   if test -z "$ac_cv_path_EGREP"; then
11779     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11780   fi
11781 else
11782   ac_cv_path_EGREP=$EGREP
11783 fi
11784 
11785    fi
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11788 $as_echo "$ac_cv_path_EGREP" >&6; }
11789  EGREP="$ac_cv_path_EGREP"
11790 
11791 
11792   else
11793     # The variable is set, but is it from the command line or the environment?
11794 
11795     # Try to remove the string !EGREP! from our list.
11796     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11797     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11798       # If it failed, the variable was not from the command line. Ignore it,
11799       # but warn the user (except for BASH, which is always set by the calling BASH).
11800       if test "xEGREP" != xBASH; then
11801         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11802 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11803       fi
11804       # Try to locate tool using the code snippet
11805       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11806 $as_echo_n "checking for egrep... " >&6; }
11807 if ${ac_cv_path_EGREP+:} false; then :
11808   $as_echo_n "(cached) " >&6
11809 else
11810   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11811    then ac_cv_path_EGREP="$GREP -E"
11812    else
11813      if test -z "$EGREP"; then
11814   ac_path_EGREP_found=false
11815   # Loop through the user's path and test for each of PROGNAME-LIST
11816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11818 do
11819   IFS=$as_save_IFS
11820   test -z "$as_dir" && as_dir=.
11821     for ac_prog in egrep; do
11822     for ac_exec_ext in '' $ac_executable_extensions; do
11823       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11824       as_fn_executable_p "$ac_path_EGREP" || continue
11825 # Check for GNU ac_path_EGREP and select it if it is found.
11826   # Check for GNU $ac_path_EGREP
11827 case `"$ac_path_EGREP" --version 2>&1` in
11828 *GNU*)
11829   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11830 *)
11831   ac_count=0
11832   $as_echo_n 0123456789 >"conftest.in"
11833   while :
11834   do
11835     cat "conftest.in" "conftest.in" >"conftest.tmp"
11836     mv "conftest.tmp" "conftest.in"
11837     cp "conftest.in" "conftest.nl"
11838     $as_echo 'EGREP' >> "conftest.nl"
11839     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11840     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11841     as_fn_arith $ac_count + 1 && ac_count=$as_val
11842     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11843       # Best one so far, save it but keep looking for a better one
11844       ac_cv_path_EGREP="$ac_path_EGREP"
11845       ac_path_EGREP_max=$ac_count
11846     fi
11847     # 10*(2^10) chars as input seems more than enough
11848     test $ac_count -gt 10 && break
11849   done
11850   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11851 esac
11852 
11853       $ac_path_EGREP_found && break 3
11854     done
11855   done
11856   done
11857 IFS=$as_save_IFS
11858   if test -z "$ac_cv_path_EGREP"; then
11859     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11860   fi
11861 else
11862   ac_cv_path_EGREP=$EGREP
11863 fi
11864 
11865    fi
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11868 $as_echo "$ac_cv_path_EGREP" >&6; }
11869  EGREP="$ac_cv_path_EGREP"
11870 
11871 
11872     else
11873       # If it succeeded, then it was overridden by the user. We will use it
11874       # for the tool.
11875 
11876       # First remove it from the list of overridden variables, so we can test
11877       # for unknown variables in the end.
11878       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11879 
11880       # Check if the provided tool contains a complete path.
11881       tool_specified="$EGREP"
11882       tool_basename="${tool_specified##*/}"
11883       if test "x$tool_basename" = "x$tool_specified"; then
11884         # A command without a complete path is provided, search $PATH.
11885         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11886 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11887         # Extract the first word of "$tool_basename", so it can be a program name with args.
11888 set dummy $tool_basename; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_path_EGREP+:} false; then :
11892   $as_echo_n "(cached) " >&6
11893 else
11894   case $EGREP in
11895   [\\/]* | ?:[\\/]*)
11896   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11897   ;;
11898   *)
11899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH
11901 do
11902   IFS=$as_save_IFS
11903   test -z "$as_dir" && as_dir=.
11904     for ac_exec_ext in '' $ac_executable_extensions; do
11905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11906     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11908     break 2
11909   fi
11910 done
11911   done
11912 IFS=$as_save_IFS
11913 
11914   ;;
11915 esac
11916 fi
11917 EGREP=$ac_cv_path_EGREP
11918 if test -n "$EGREP"; then
11919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11920 $as_echo "$EGREP" >&6; }
11921 else
11922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11924 fi
11925 
11926 
11927         if test "x$EGREP" = x; then
11928           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11929         fi
11930       else
11931         # Otherwise we believe it is a complete path. Use it as it is.
11932         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11933 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11935 $as_echo_n "checking for EGREP... " >&6; }
11936         if test ! -x "$tool_specified"; then
11937           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11938 $as_echo "not found" >&6; }
11939           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11940         fi
11941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11942 $as_echo "$tool_specified" >&6; }
11943       fi
11944     fi
11945   fi
11946 
11947 
11948   if test "x$EGREP" = x; then
11949     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11950   fi
11951 
11952 
11953 
11954 
11955   # Publish this variable in the help.
11956 
11957 
11958   if test "x$FGREP" = x; then
11959     # The variable is not set by user, try to locate tool using the code snippet
11960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11961 $as_echo_n "checking for fgrep... " >&6; }
11962 if ${ac_cv_path_FGREP+:} false; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11966    then ac_cv_path_FGREP="$GREP -F"
11967    else
11968      if test -z "$FGREP"; then
11969   ac_path_FGREP_found=false
11970   # Loop through the user's path and test for each of PROGNAME-LIST
11971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11973 do
11974   IFS=$as_save_IFS
11975   test -z "$as_dir" && as_dir=.
11976     for ac_prog in fgrep; do
11977     for ac_exec_ext in '' $ac_executable_extensions; do
11978       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11979       as_fn_executable_p "$ac_path_FGREP" || continue
11980 # Check for GNU ac_path_FGREP and select it if it is found.
11981   # Check for GNU $ac_path_FGREP
11982 case `"$ac_path_FGREP" --version 2>&1` in
11983 *GNU*)
11984   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11985 *)
11986   ac_count=0
11987   $as_echo_n 0123456789 >"conftest.in"
11988   while :
11989   do
11990     cat "conftest.in" "conftest.in" >"conftest.tmp"
11991     mv "conftest.tmp" "conftest.in"
11992     cp "conftest.in" "conftest.nl"
11993     $as_echo 'FGREP' >> "conftest.nl"
11994     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11995     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11996     as_fn_arith $ac_count + 1 && ac_count=$as_val
11997     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11998       # Best one so far, save it but keep looking for a better one
11999       ac_cv_path_FGREP="$ac_path_FGREP"
12000       ac_path_FGREP_max=$ac_count
12001     fi
12002     # 10*(2^10) chars as input seems more than enough
12003     test $ac_count -gt 10 && break
12004   done
12005   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12006 esac
12007 
12008       $ac_path_FGREP_found && break 3
12009     done
12010   done
12011   done
12012 IFS=$as_save_IFS
12013   if test -z "$ac_cv_path_FGREP"; then
12014     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12015   fi
12016 else
12017   ac_cv_path_FGREP=$FGREP
12018 fi
12019 
12020    fi
12021 fi
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12023 $as_echo "$ac_cv_path_FGREP" >&6; }
12024  FGREP="$ac_cv_path_FGREP"
12025 
12026 
12027   else
12028     # The variable is set, but is it from the command line or the environment?
12029 
12030     # Try to remove the string !FGREP! from our list.
12031     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12032     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12033       # If it failed, the variable was not from the command line. Ignore it,
12034       # but warn the user (except for BASH, which is always set by the calling BASH).
12035       if test "xFGREP" != xBASH; then
12036         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12037 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12038       fi
12039       # Try to locate tool using the code snippet
12040       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12041 $as_echo_n "checking for fgrep... " >&6; }
12042 if ${ac_cv_path_FGREP+:} false; then :
12043   $as_echo_n "(cached) " >&6
12044 else
12045   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12046    then ac_cv_path_FGREP="$GREP -F"
12047    else
12048      if test -z "$FGREP"; then
12049   ac_path_FGREP_found=false
12050   # Loop through the user's path and test for each of PROGNAME-LIST
12051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12053 do
12054   IFS=$as_save_IFS
12055   test -z "$as_dir" && as_dir=.
12056     for ac_prog in fgrep; do
12057     for ac_exec_ext in '' $ac_executable_extensions; do
12058       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12059       as_fn_executable_p "$ac_path_FGREP" || continue
12060 # Check for GNU ac_path_FGREP and select it if it is found.
12061   # Check for GNU $ac_path_FGREP
12062 case `"$ac_path_FGREP" --version 2>&1` in
12063 *GNU*)
12064   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12065 *)
12066   ac_count=0
12067   $as_echo_n 0123456789 >"conftest.in"
12068   while :
12069   do
12070     cat "conftest.in" "conftest.in" >"conftest.tmp"
12071     mv "conftest.tmp" "conftest.in"
12072     cp "conftest.in" "conftest.nl"
12073     $as_echo 'FGREP' >> "conftest.nl"
12074     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12075     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12076     as_fn_arith $ac_count + 1 && ac_count=$as_val
12077     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12078       # Best one so far, save it but keep looking for a better one
12079       ac_cv_path_FGREP="$ac_path_FGREP"
12080       ac_path_FGREP_max=$ac_count
12081     fi
12082     # 10*(2^10) chars as input seems more than enough
12083     test $ac_count -gt 10 && break
12084   done
12085   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12086 esac
12087 
12088       $ac_path_FGREP_found && break 3
12089     done
12090   done
12091   done
12092 IFS=$as_save_IFS
12093   if test -z "$ac_cv_path_FGREP"; then
12094     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12095   fi
12096 else
12097   ac_cv_path_FGREP=$FGREP
12098 fi
12099 
12100    fi
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12103 $as_echo "$ac_cv_path_FGREP" >&6; }
12104  FGREP="$ac_cv_path_FGREP"
12105 
12106 
12107     else
12108       # If it succeeded, then it was overridden by the user. We will use it
12109       # for the tool.
12110 
12111       # First remove it from the list of overridden variables, so we can test
12112       # for unknown variables in the end.
12113       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12114 
12115       # Check if the provided tool contains a complete path.
12116       tool_specified="$FGREP"
12117       tool_basename="${tool_specified##*/}"
12118       if test "x$tool_basename" = "x$tool_specified"; then
12119         # A command without a complete path is provided, search $PATH.
12120         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12121 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12122         # Extract the first word of "$tool_basename", so it can be a program name with args.
12123 set dummy $tool_basename; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_path_FGREP+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   case $FGREP in
12130   [\\/]* | ?:[\\/]*)
12131   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12132   ;;
12133   *)
12134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12136 do
12137   IFS=$as_save_IFS
12138   test -z "$as_dir" && as_dir=.
12139     for ac_exec_ext in '' $ac_executable_extensions; do
12140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143     break 2
12144   fi
12145 done
12146   done
12147 IFS=$as_save_IFS
12148 
12149   ;;
12150 esac
12151 fi
12152 FGREP=$ac_cv_path_FGREP
12153 if test -n "$FGREP"; then
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12155 $as_echo "$FGREP" >&6; }
12156 else
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12159 fi
12160 
12161 
12162         if test "x$FGREP" = x; then
12163           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12164         fi
12165       else
12166         # Otherwise we believe it is a complete path. Use it as it is.
12167         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12168 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12169         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12170 $as_echo_n "checking for FGREP... " >&6; }
12171         if test ! -x "$tool_specified"; then
12172           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12173 $as_echo "not found" >&6; }
12174           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12175         fi
12176         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12177 $as_echo "$tool_specified" >&6; }
12178       fi
12179     fi
12180   fi
12181 
12182 
12183   if test "x$FGREP" = x; then
12184     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12185   fi
12186 
12187 
12188 
12189 
12190   # Publish this variable in the help.
12191 
12192 
12193   if test "x$SED" = x; then
12194     # The variable is not set by user, try to locate tool using the code snippet
12195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12196 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12197 if ${ac_cv_path_SED+:} false; then :
12198   $as_echo_n "(cached) " >&6
12199 else
12200             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12201      for ac_i in 1 2 3 4 5 6 7; do
12202        ac_script="$ac_script$as_nl$ac_script"
12203      done
12204      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12205      { ac_script=; unset ac_script;}
12206      if test -z "$SED"; then
12207   ac_path_SED_found=false
12208   # Loop through the user's path and test for each of PROGNAME-LIST
12209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12211 do
12212   IFS=$as_save_IFS
12213   test -z "$as_dir" && as_dir=.
12214     for ac_prog in sed gsed; do
12215     for ac_exec_ext in '' $ac_executable_extensions; do
12216       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12217       as_fn_executable_p "$ac_path_SED" || continue
12218 # Check for GNU ac_path_SED and select it if it is found.
12219   # Check for GNU $ac_path_SED
12220 case `"$ac_path_SED" --version 2>&1` in
12221 *GNU*)
12222   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12223 *)
12224   ac_count=0
12225   $as_echo_n 0123456789 >"conftest.in"
12226   while :
12227   do
12228     cat "conftest.in" "conftest.in" >"conftest.tmp"
12229     mv "conftest.tmp" "conftest.in"
12230     cp "conftest.in" "conftest.nl"
12231     $as_echo '' >> "conftest.nl"
12232     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12234     as_fn_arith $ac_count + 1 && ac_count=$as_val
12235     if test $ac_count -gt ${ac_path_SED_max-0}; then
12236       # Best one so far, save it but keep looking for a better one
12237       ac_cv_path_SED="$ac_path_SED"
12238       ac_path_SED_max=$ac_count
12239     fi
12240     # 10*(2^10) chars as input seems more than enough
12241     test $ac_count -gt 10 && break
12242   done
12243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12244 esac
12245 
12246       $ac_path_SED_found && break 3
12247     done
12248   done
12249   done
12250 IFS=$as_save_IFS
12251   if test -z "$ac_cv_path_SED"; then
12252     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12253   fi
12254 else
12255   ac_cv_path_SED=$SED
12256 fi
12257 
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12260 $as_echo "$ac_cv_path_SED" >&6; }
12261  SED="$ac_cv_path_SED"
12262   rm -f conftest.sed
12263 
12264   else
12265     # The variable is set, but is it from the command line or the environment?
12266 
12267     # Try to remove the string !SED! from our list.
12268     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12269     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12270       # If it failed, the variable was not from the command line. Ignore it,
12271       # but warn the user (except for BASH, which is always set by the calling BASH).
12272       if test "xSED" != xBASH; then
12273         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12274 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12275       fi
12276       # Try to locate tool using the code snippet
12277       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12278 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12279 if ${ac_cv_path_SED+:} false; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12283      for ac_i in 1 2 3 4 5 6 7; do
12284        ac_script="$ac_script$as_nl$ac_script"
12285      done
12286      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12287      { ac_script=; unset ac_script;}
12288      if test -z "$SED"; then
12289   ac_path_SED_found=false
12290   # Loop through the user's path and test for each of PROGNAME-LIST
12291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12293 do
12294   IFS=$as_save_IFS
12295   test -z "$as_dir" && as_dir=.
12296     for ac_prog in sed gsed; do
12297     for ac_exec_ext in '' $ac_executable_extensions; do
12298       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12299       as_fn_executable_p "$ac_path_SED" || continue
12300 # Check for GNU ac_path_SED and select it if it is found.
12301   # Check for GNU $ac_path_SED
12302 case `"$ac_path_SED" --version 2>&1` in
12303 *GNU*)
12304   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12305 *)
12306   ac_count=0
12307   $as_echo_n 0123456789 >"conftest.in"
12308   while :
12309   do
12310     cat "conftest.in" "conftest.in" >"conftest.tmp"
12311     mv "conftest.tmp" "conftest.in"
12312     cp "conftest.in" "conftest.nl"
12313     $as_echo '' >> "conftest.nl"
12314     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12315     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12316     as_fn_arith $ac_count + 1 && ac_count=$as_val
12317     if test $ac_count -gt ${ac_path_SED_max-0}; then
12318       # Best one so far, save it but keep looking for a better one
12319       ac_cv_path_SED="$ac_path_SED"
12320       ac_path_SED_max=$ac_count
12321     fi
12322     # 10*(2^10) chars as input seems more than enough
12323     test $ac_count -gt 10 && break
12324   done
12325   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12326 esac
12327 
12328       $ac_path_SED_found && break 3
12329     done
12330   done
12331   done
12332 IFS=$as_save_IFS
12333   if test -z "$ac_cv_path_SED"; then
12334     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12335   fi
12336 else
12337   ac_cv_path_SED=$SED
12338 fi
12339 
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12342 $as_echo "$ac_cv_path_SED" >&6; }
12343  SED="$ac_cv_path_SED"
12344   rm -f conftest.sed
12345 
12346     else
12347       # If it succeeded, then it was overridden by the user. We will use it
12348       # for the tool.
12349 
12350       # First remove it from the list of overridden variables, so we can test
12351       # for unknown variables in the end.
12352       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12353 
12354       # Check if the provided tool contains a complete path.
12355       tool_specified="$SED"
12356       tool_basename="${tool_specified##*/}"
12357       if test "x$tool_basename" = "x$tool_specified"; then
12358         # A command without a complete path is provided, search $PATH.
12359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12360 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12361         # Extract the first word of "$tool_basename", so it can be a program name with args.
12362 set dummy $tool_basename; ac_word=$2
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12364 $as_echo_n "checking for $ac_word... " >&6; }
12365 if ${ac_cv_path_SED+:} false; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368   case $SED in
12369   [\\/]* | ?:[\\/]*)
12370   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12371   ;;
12372   *)
12373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12375 do
12376   IFS=$as_save_IFS
12377   test -z "$as_dir" && as_dir=.
12378     for ac_exec_ext in '' $ac_executable_extensions; do
12379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12380     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382     break 2
12383   fi
12384 done
12385   done
12386 IFS=$as_save_IFS
12387 
12388   ;;
12389 esac
12390 fi
12391 SED=$ac_cv_path_SED
12392 if test -n "$SED"; then
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12394 $as_echo "$SED" >&6; }
12395 else
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 fi
12399 
12400 
12401         if test "x$SED" = x; then
12402           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12403         fi
12404       else
12405         # Otherwise we believe it is a complete path. Use it as it is.
12406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12407 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12409 $as_echo_n "checking for SED... " >&6; }
12410         if test ! -x "$tool_specified"; then
12411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12412 $as_echo "not found" >&6; }
12413           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12414         fi
12415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12416 $as_echo "$tool_specified" >&6; }
12417       fi
12418     fi
12419   fi
12420 
12421 
12422   if test "x$SED" = x; then
12423     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12424   fi
12425 
12426 
12427 
12428   # Always force rm.
12429   RM="$RM -f"
12430 
12431   # pwd behaves differently on various platforms and some don't support the -L flag.
12432   # Always use the bash builtin pwd to get uniform behavior.
12433   THEPWDCMD=pwd
12434 
12435   # These are not required on all platforms
12436 
12437 
12438   # Publish this variable in the help.
12439 
12440 
12441   if test "x$CYGPATH" = x; then
12442     # The variable is not set by user, try to locate tool using the code snippet
12443     for ac_prog in cygpath
12444 do
12445   # Extract the first word of "$ac_prog", so it can be a program name with args.
12446 set dummy $ac_prog; ac_word=$2
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448 $as_echo_n "checking for $ac_word... " >&6; }
12449 if ${ac_cv_path_CYGPATH+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   case $CYGPATH in
12453   [\\/]* | ?:[\\/]*)
12454   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12455   ;;
12456   *)
12457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12459 do
12460   IFS=$as_save_IFS
12461   test -z "$as_dir" && as_dir=.
12462     for ac_exec_ext in '' $ac_executable_extensions; do
12463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12464     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466     break 2
12467   fi
12468 done
12469   done
12470 IFS=$as_save_IFS
12471 
12472   ;;
12473 esac
12474 fi
12475 CYGPATH=$ac_cv_path_CYGPATH
12476 if test -n "$CYGPATH"; then
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12478 $as_echo "$CYGPATH" >&6; }
12479 else
12480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12482 fi
12483 
12484 
12485   test -n "$CYGPATH" && break
12486 done
12487 
12488   else
12489     # The variable is set, but is it from the command line or the environment?
12490 
12491     # Try to remove the string !CYGPATH! from our list.
12492     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12493     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12494       # If it failed, the variable was not from the command line. Ignore it,
12495       # but warn the user (except for BASH, which is always set by the calling BASH).
12496       if test "xCYGPATH" != xBASH; then
12497         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12498 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12499       fi
12500       # Try to locate tool using the code snippet
12501       for ac_prog in cygpath
12502 do
12503   # Extract the first word of "$ac_prog", so it can be a program name with args.
12504 set dummy $ac_prog; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if ${ac_cv_path_CYGPATH+:} false; then :
12508   $as_echo_n "(cached) " >&6
12509 else
12510   case $CYGPATH in
12511   [\\/]* | ?:[\\/]*)
12512   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12513   ;;
12514   *)
12515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12517 do
12518   IFS=$as_save_IFS
12519   test -z "$as_dir" && as_dir=.
12520     for ac_exec_ext in '' $ac_executable_extensions; do
12521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524     break 2
12525   fi
12526 done
12527   done
12528 IFS=$as_save_IFS
12529 
12530   ;;
12531 esac
12532 fi
12533 CYGPATH=$ac_cv_path_CYGPATH
12534 if test -n "$CYGPATH"; then
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12536 $as_echo "$CYGPATH" >&6; }
12537 else
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 fi
12541 
12542 
12543   test -n "$CYGPATH" && break
12544 done
12545 
12546     else
12547       # If it succeeded, then it was overridden by the user. We will use it
12548       # for the tool.
12549 
12550       # First remove it from the list of overridden variables, so we can test
12551       # for unknown variables in the end.
12552       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12553 
12554       # Check if the provided tool contains a complete path.
12555       tool_specified="$CYGPATH"
12556       tool_basename="${tool_specified##*/}"
12557       if test "x$tool_basename" = "x$tool_specified"; then
12558         # A command without a complete path is provided, search $PATH.
12559         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12560 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12561         # Extract the first word of "$tool_basename", so it can be a program name with args.
12562 set dummy $tool_basename; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if ${ac_cv_path_CYGPATH+:} false; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568   case $CYGPATH in
12569   [\\/]* | ?:[\\/]*)
12570   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12571   ;;
12572   *)
12573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12575 do
12576   IFS=$as_save_IFS
12577   test -z "$as_dir" && as_dir=.
12578     for ac_exec_ext in '' $ac_executable_extensions; do
12579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582     break 2
12583   fi
12584 done
12585   done
12586 IFS=$as_save_IFS
12587 
12588   ;;
12589 esac
12590 fi
12591 CYGPATH=$ac_cv_path_CYGPATH
12592 if test -n "$CYGPATH"; then
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12594 $as_echo "$CYGPATH" >&6; }
12595 else
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598 fi
12599 
12600 
12601         if test "x$CYGPATH" = x; then
12602           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12603         fi
12604       else
12605         # Otherwise we believe it is a complete path. Use it as it is.
12606         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12607 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12609 $as_echo_n "checking for CYGPATH... " >&6; }
12610         if test ! -x "$tool_specified"; then
12611           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12612 $as_echo "not found" >&6; }
12613           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12614         fi
12615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12616 $as_echo "$tool_specified" >&6; }
12617       fi
12618     fi
12619   fi
12620 
12621 
12622 
12623 
12624   # Publish this variable in the help.
12625 
12626 
12627   if test "x$READLINK" = x; then
12628     # The variable is not set by user, try to locate tool using the code snippet
12629     for ac_prog in greadlink readlink
12630 do
12631   # Extract the first word of "$ac_prog", so it can be a program name with args.
12632 set dummy $ac_prog; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_READLINK+:} false; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   case $READLINK in
12639   [\\/]* | ?:[\\/]*)
12640   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12641   ;;
12642   *)
12643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12645 do
12646   IFS=$as_save_IFS
12647   test -z "$as_dir" && as_dir=.
12648     for ac_exec_ext in '' $ac_executable_extensions; do
12649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12650     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652     break 2
12653   fi
12654 done
12655   done
12656 IFS=$as_save_IFS
12657 
12658   ;;
12659 esac
12660 fi
12661 READLINK=$ac_cv_path_READLINK
12662 if test -n "$READLINK"; then
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12664 $as_echo "$READLINK" >&6; }
12665 else
12666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668 fi
12669 
12670 
12671   test -n "$READLINK" && break
12672 done
12673 
12674   else
12675     # The variable is set, but is it from the command line or the environment?
12676 
12677     # Try to remove the string !READLINK! from our list.
12678     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12679     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12680       # If it failed, the variable was not from the command line. Ignore it,
12681       # but warn the user (except for BASH, which is always set by the calling BASH).
12682       if test "xREADLINK" != xBASH; then
12683         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12684 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12685       fi
12686       # Try to locate tool using the code snippet
12687       for ac_prog in greadlink readlink
12688 do
12689   # Extract the first word of "$ac_prog", so it can be a program name with args.
12690 set dummy $ac_prog; ac_word=$2
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692 $as_echo_n "checking for $ac_word... " >&6; }
12693 if ${ac_cv_path_READLINK+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   case $READLINK in
12697   [\\/]* | ?:[\\/]*)
12698   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12699   ;;
12700   *)
12701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12703 do
12704   IFS=$as_save_IFS
12705   test -z "$as_dir" && as_dir=.
12706     for ac_exec_ext in '' $ac_executable_extensions; do
12707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12710     break 2
12711   fi
12712 done
12713   done
12714 IFS=$as_save_IFS
12715 
12716   ;;
12717 esac
12718 fi
12719 READLINK=$ac_cv_path_READLINK
12720 if test -n "$READLINK"; then
12721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12722 $as_echo "$READLINK" >&6; }
12723 else
12724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 $as_echo "no" >&6; }
12726 fi
12727 
12728 
12729   test -n "$READLINK" && break
12730 done
12731 
12732     else
12733       # If it succeeded, then it was overridden by the user. We will use it
12734       # for the tool.
12735 
12736       # First remove it from the list of overridden variables, so we can test
12737       # for unknown variables in the end.
12738       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12739 
12740       # Check if the provided tool contains a complete path.
12741       tool_specified="$READLINK"
12742       tool_basename="${tool_specified##*/}"
12743       if test "x$tool_basename" = "x$tool_specified"; then
12744         # A command without a complete path is provided, search $PATH.
12745         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12746 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12747         # Extract the first word of "$tool_basename", so it can be a program name with args.
12748 set dummy $tool_basename; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if ${ac_cv_path_READLINK+:} false; then :
12752   $as_echo_n "(cached) " >&6
12753 else
12754   case $READLINK in
12755   [\\/]* | ?:[\\/]*)
12756   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12757   ;;
12758   *)
12759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12761 do
12762   IFS=$as_save_IFS
12763   test -z "$as_dir" && as_dir=.
12764     for ac_exec_ext in '' $ac_executable_extensions; do
12765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12766     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12768     break 2
12769   fi
12770 done
12771   done
12772 IFS=$as_save_IFS
12773 
12774   ;;
12775 esac
12776 fi
12777 READLINK=$ac_cv_path_READLINK
12778 if test -n "$READLINK"; then
12779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12780 $as_echo "$READLINK" >&6; }
12781 else
12782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12784 fi
12785 
12786 
12787         if test "x$READLINK" = x; then
12788           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12789         fi
12790       else
12791         # Otherwise we believe it is a complete path. Use it as it is.
12792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12793 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12795 $as_echo_n "checking for READLINK... " >&6; }
12796         if test ! -x "$tool_specified"; then
12797           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12798 $as_echo "not found" >&6; }
12799           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12800         fi
12801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12802 $as_echo "$tool_specified" >&6; }
12803       fi
12804     fi
12805   fi
12806 
12807 
12808 
12809 
12810   # Publish this variable in the help.
12811 
12812 
12813   if test "x$DF" = x; then
12814     # The variable is not set by user, try to locate tool using the code snippet
12815     for ac_prog in df
12816 do
12817   # Extract the first word of "$ac_prog", so it can be a program name with args.
12818 set dummy $ac_prog; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if ${ac_cv_path_DF+:} false; then :
12822   $as_echo_n "(cached) " >&6
12823 else
12824   case $DF in
12825   [\\/]* | ?:[\\/]*)
12826   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12827   ;;
12828   *)
12829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12831 do
12832   IFS=$as_save_IFS
12833   test -z "$as_dir" && as_dir=.
12834     for ac_exec_ext in '' $ac_executable_extensions; do
12835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12836     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838     break 2
12839   fi
12840 done
12841   done
12842 IFS=$as_save_IFS
12843 
12844   ;;
12845 esac
12846 fi
12847 DF=$ac_cv_path_DF
12848 if test -n "$DF"; then
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12850 $as_echo "$DF" >&6; }
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 fi
12855 
12856 
12857   test -n "$DF" && break
12858 done
12859 
12860   else
12861     # The variable is set, but is it from the command line or the environment?
12862 
12863     # Try to remove the string !DF! from our list.
12864     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12865     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12866       # If it failed, the variable was not from the command line. Ignore it,
12867       # but warn the user (except for BASH, which is always set by the calling BASH).
12868       if test "xDF" != xBASH; then
12869         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12870 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12871       fi
12872       # Try to locate tool using the code snippet
12873       for ac_prog in df
12874 do
12875   # Extract the first word of "$ac_prog", so it can be a program name with args.
12876 set dummy $ac_prog; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if ${ac_cv_path_DF+:} false; then :
12880   $as_echo_n "(cached) " >&6
12881 else
12882   case $DF in
12883   [\\/]* | ?:[\\/]*)
12884   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12885   ;;
12886   *)
12887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12889 do
12890   IFS=$as_save_IFS
12891   test -z "$as_dir" && as_dir=.
12892     for ac_exec_ext in '' $ac_executable_extensions; do
12893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12894     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896     break 2
12897   fi
12898 done
12899   done
12900 IFS=$as_save_IFS
12901 
12902   ;;
12903 esac
12904 fi
12905 DF=$ac_cv_path_DF
12906 if test -n "$DF"; then
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12908 $as_echo "$DF" >&6; }
12909 else
12910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 fi
12913 
12914 
12915   test -n "$DF" && break
12916 done
12917 
12918     else
12919       # If it succeeded, then it was overridden by the user. We will use it
12920       # for the tool.
12921 
12922       # First remove it from the list of overridden variables, so we can test
12923       # for unknown variables in the end.
12924       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12925 
12926       # Check if the provided tool contains a complete path.
12927       tool_specified="$DF"
12928       tool_basename="${tool_specified##*/}"
12929       if test "x$tool_basename" = "x$tool_specified"; then
12930         # A command without a complete path is provided, search $PATH.
12931         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12932 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12933         # Extract the first word of "$tool_basename", so it can be a program name with args.
12934 set dummy $tool_basename; ac_word=$2
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12936 $as_echo_n "checking for $ac_word... " >&6; }
12937 if ${ac_cv_path_DF+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   case $DF in
12941   [\\/]* | ?:[\\/]*)
12942   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12943   ;;
12944   *)
12945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948   IFS=$as_save_IFS
12949   test -z "$as_dir" && as_dir=.
12950     for ac_exec_ext in '' $ac_executable_extensions; do
12951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954     break 2
12955   fi
12956 done
12957   done
12958 IFS=$as_save_IFS
12959 
12960   ;;
12961 esac
12962 fi
12963 DF=$ac_cv_path_DF
12964 if test -n "$DF"; then
12965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12966 $as_echo "$DF" >&6; }
12967 else
12968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 $as_echo "no" >&6; }
12970 fi
12971 
12972 
12973         if test "x$DF" = x; then
12974           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12975         fi
12976       else
12977         # Otherwise we believe it is a complete path. Use it as it is.
12978         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12979 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12981 $as_echo_n "checking for DF... " >&6; }
12982         if test ! -x "$tool_specified"; then
12983           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12984 $as_echo "not found" >&6; }
12985           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12986         fi
12987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12988 $as_echo "$tool_specified" >&6; }
12989       fi
12990     fi
12991   fi
12992 
12993 
12994 
12995 
12996   # Publish this variable in the help.
12997 
12998 
12999   if test "x$SETFILE" = x; then
13000     # The variable is not set by user, try to locate tool using the code snippet
13001     for ac_prog in SetFile
13002 do
13003   # Extract the first word of "$ac_prog", so it can be a program name with args.
13004 set dummy $ac_prog; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if ${ac_cv_path_SETFILE+:} false; then :
13008   $as_echo_n "(cached) " >&6
13009 else
13010   case $SETFILE in
13011   [\\/]* | ?:[\\/]*)
13012   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13013   ;;
13014   *)
13015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018   IFS=$as_save_IFS
13019   test -z "$as_dir" && as_dir=.
13020     for ac_exec_ext in '' $ac_executable_extensions; do
13021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13022     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024     break 2
13025   fi
13026 done
13027   done
13028 IFS=$as_save_IFS
13029 
13030   ;;
13031 esac
13032 fi
13033 SETFILE=$ac_cv_path_SETFILE
13034 if test -n "$SETFILE"; then
13035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13036 $as_echo "$SETFILE" >&6; }
13037 else
13038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041 
13042 
13043   test -n "$SETFILE" && break
13044 done
13045 
13046   else
13047     # The variable is set, but is it from the command line or the environment?
13048 
13049     # Try to remove the string !SETFILE! from our list.
13050     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13051     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13052       # If it failed, the variable was not from the command line. Ignore it,
13053       # but warn the user (except for BASH, which is always set by the calling BASH).
13054       if test "xSETFILE" != xBASH; then
13055         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13056 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13057       fi
13058       # Try to locate tool using the code snippet
13059       for ac_prog in SetFile
13060 do
13061   # Extract the first word of "$ac_prog", so it can be a program name with args.
13062 set dummy $ac_prog; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if ${ac_cv_path_SETFILE+:} false; then :
13066   $as_echo_n "(cached) " >&6
13067 else
13068   case $SETFILE in
13069   [\\/]* | ?:[\\/]*)
13070   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13071   ;;
13072   *)
13073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13075 do
13076   IFS=$as_save_IFS
13077   test -z "$as_dir" && as_dir=.
13078     for ac_exec_ext in '' $ac_executable_extensions; do
13079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13080     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082     break 2
13083   fi
13084 done
13085   done
13086 IFS=$as_save_IFS
13087 
13088   ;;
13089 esac
13090 fi
13091 SETFILE=$ac_cv_path_SETFILE
13092 if test -n "$SETFILE"; then
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13094 $as_echo "$SETFILE" >&6; }
13095 else
13096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099 
13100 
13101   test -n "$SETFILE" && break
13102 done
13103 
13104     else
13105       # If it succeeded, then it was overridden by the user. We will use it
13106       # for the tool.
13107 
13108       # First remove it from the list of overridden variables, so we can test
13109       # for unknown variables in the end.
13110       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13111 
13112       # Check if the provided tool contains a complete path.
13113       tool_specified="$SETFILE"
13114       tool_basename="${tool_specified##*/}"
13115       if test "x$tool_basename" = "x$tool_specified"; then
13116         # A command without a complete path is provided, search $PATH.
13117         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13118 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13119         # Extract the first word of "$tool_basename", so it can be a program name with args.
13120 set dummy $tool_basename; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if ${ac_cv_path_SETFILE+:} false; then :
13124   $as_echo_n "(cached) " >&6
13125 else
13126   case $SETFILE in
13127   [\\/]* | ?:[\\/]*)
13128   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13129   ;;
13130   *)
13131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13133 do
13134   IFS=$as_save_IFS
13135   test -z "$as_dir" && as_dir=.
13136     for ac_exec_ext in '' $ac_executable_extensions; do
13137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13138     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140     break 2
13141   fi
13142 done
13143   done
13144 IFS=$as_save_IFS
13145 
13146   ;;
13147 esac
13148 fi
13149 SETFILE=$ac_cv_path_SETFILE
13150 if test -n "$SETFILE"; then
13151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13152 $as_echo "$SETFILE" >&6; }
13153 else
13154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13156 fi
13157 
13158 
13159         if test "x$SETFILE" = x; then
13160           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13161         fi
13162       else
13163         # Otherwise we believe it is a complete path. Use it as it is.
13164         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13165 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13167 $as_echo_n "checking for SETFILE... " >&6; }
13168         if test ! -x "$tool_specified"; then
13169           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13170 $as_echo "not found" >&6; }
13171           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13172         fi
13173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13174 $as_echo "$tool_specified" >&6; }
13175       fi
13176     fi
13177   fi
13178 
13179 
13180 
13181 
13182   # Publish this variable in the help.
13183 
13184 
13185   if test "x$CPIO" = x; then
13186     # The variable is not set by user, try to locate tool using the code snippet
13187     for ac_prog in cpio bsdcpio
13188 do
13189   # Extract the first word of "$ac_prog", so it can be a program name with args.
13190 set dummy $ac_prog; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if ${ac_cv_path_CPIO+:} false; then :
13194   $as_echo_n "(cached) " >&6
13195 else
13196   case $CPIO in
13197   [\\/]* | ?:[\\/]*)
13198   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13199   ;;
13200   *)
13201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13203 do
13204   IFS=$as_save_IFS
13205   test -z "$as_dir" && as_dir=.
13206     for ac_exec_ext in '' $ac_executable_extensions; do
13207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13208     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210     break 2
13211   fi
13212 done
13213   done
13214 IFS=$as_save_IFS
13215 
13216   ;;
13217 esac
13218 fi
13219 CPIO=$ac_cv_path_CPIO
13220 if test -n "$CPIO"; then
13221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13222 $as_echo "$CPIO" >&6; }
13223 else
13224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227 
13228 
13229   test -n "$CPIO" && break
13230 done
13231 
13232   else
13233     # The variable is set, but is it from the command line or the environment?
13234 
13235     # Try to remove the string !CPIO! from our list.
13236     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13237     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13238       # If it failed, the variable was not from the command line. Ignore it,
13239       # but warn the user (except for BASH, which is always set by the calling BASH).
13240       if test "xCPIO" != xBASH; then
13241         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13242 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13243       fi
13244       # Try to locate tool using the code snippet
13245       for ac_prog in cpio bsdcpio
13246 do
13247   # Extract the first word of "$ac_prog", so it can be a program name with args.
13248 set dummy $ac_prog; ac_word=$2
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13250 $as_echo_n "checking for $ac_word... " >&6; }
13251 if ${ac_cv_path_CPIO+:} false; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   case $CPIO in
13255   [\\/]* | ?:[\\/]*)
13256   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13257   ;;
13258   *)
13259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262   IFS=$as_save_IFS
13263   test -z "$as_dir" && as_dir=.
13264     for ac_exec_ext in '' $ac_executable_extensions; do
13265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13266     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268     break 2
13269   fi
13270 done
13271   done
13272 IFS=$as_save_IFS
13273 
13274   ;;
13275 esac
13276 fi
13277 CPIO=$ac_cv_path_CPIO
13278 if test -n "$CPIO"; then
13279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13280 $as_echo "$CPIO" >&6; }
13281 else
13282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13284 fi
13285 
13286 
13287   test -n "$CPIO" && break
13288 done
13289 
13290     else
13291       # If it succeeded, then it was overridden by the user. We will use it
13292       # for the tool.
13293 
13294       # First remove it from the list of overridden variables, so we can test
13295       # for unknown variables in the end.
13296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13297 
13298       # Check if the provided tool contains a complete path.
13299       tool_specified="$CPIO"
13300       tool_basename="${tool_specified##*/}"
13301       if test "x$tool_basename" = "x$tool_specified"; then
13302         # A command without a complete path is provided, search $PATH.
13303         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13304 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13305         # Extract the first word of "$tool_basename", so it can be a program name with args.
13306 set dummy $tool_basename; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if ${ac_cv_path_CPIO+:} false; then :
13310   $as_echo_n "(cached) " >&6
13311 else
13312   case $CPIO in
13313   [\\/]* | ?:[\\/]*)
13314   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13315   ;;
13316   *)
13317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13319 do
13320   IFS=$as_save_IFS
13321   test -z "$as_dir" && as_dir=.
13322     for ac_exec_ext in '' $ac_executable_extensions; do
13323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13324     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13326     break 2
13327   fi
13328 done
13329   done
13330 IFS=$as_save_IFS
13331 
13332   ;;
13333 esac
13334 fi
13335 CPIO=$ac_cv_path_CPIO
13336 if test -n "$CPIO"; then
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13338 $as_echo "$CPIO" >&6; }
13339 else
13340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342 fi
13343 
13344 
13345         if test "x$CPIO" = x; then
13346           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13347         fi
13348       else
13349         # Otherwise we believe it is a complete path. Use it as it is.
13350         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13351 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13352         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13353 $as_echo_n "checking for CPIO... " >&6; }
13354         if test ! -x "$tool_specified"; then
13355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13356 $as_echo "not found" >&6; }
13357           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13358         fi
13359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13360 $as_echo "$tool_specified" >&6; }
13361       fi
13362     fi
13363   fi
13364 
13365 
13366 
13367 
13368 # Now we can determine OpenJDK build and target platforms. This is required to
13369 # have early on.
13370 # Make sure we can run config.sub.
13371 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13372   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13373 
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13375 $as_echo_n "checking build system type... " >&6; }
13376 if ${ac_cv_build+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   ac_build_alias=$build_alias
13380 test "x$ac_build_alias" = x &&
13381   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13382 test "x$ac_build_alias" = x &&
13383   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13385   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13386 
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13389 $as_echo "$ac_cv_build" >&6; }
13390 case $ac_cv_build in
13391 *-*-*) ;;
13392 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13393 esac
13394 build=$ac_cv_build
13395 ac_save_IFS=$IFS; IFS='-'
13396 set x $ac_cv_build
13397 shift
13398 build_cpu=$1
13399 build_vendor=$2
13400 shift; shift
13401 # Remember, the first character of IFS is used to create $*,
13402 # except with old shells:
13403 build_os=$*
13404 IFS=$ac_save_IFS
13405 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13406 
13407 
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13409 $as_echo_n "checking host system type... " >&6; }
13410 if ${ac_cv_host+:} false; then :
13411   $as_echo_n "(cached) " >&6
13412 else
13413   if test "x$host_alias" = x; then
13414   ac_cv_host=$ac_cv_build
13415 else
13416   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13417     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13418 fi
13419 
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13422 $as_echo "$ac_cv_host" >&6; }
13423 case $ac_cv_host in
13424 *-*-*) ;;
13425 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13426 esac
13427 host=$ac_cv_host
13428 ac_save_IFS=$IFS; IFS='-'
13429 set x $ac_cv_host
13430 shift
13431 host_cpu=$1
13432 host_vendor=$2
13433 shift; shift
13434 # Remember, the first character of IFS is used to create $*,
13435 # except with old shells:
13436 host_os=$*
13437 IFS=$ac_save_IFS
13438 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13439 
13440 
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13442 $as_echo_n "checking target system type... " >&6; }
13443 if ${ac_cv_target+:} false; then :
13444   $as_echo_n "(cached) " >&6
13445 else
13446   if test "x$target_alias" = x; then
13447   ac_cv_target=$ac_cv_host
13448 else
13449   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13450     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13451 fi
13452 
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13455 $as_echo "$ac_cv_target" >&6; }
13456 case $ac_cv_target in
13457 *-*-*) ;;
13458 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13459 esac
13460 target=$ac_cv_target
13461 ac_save_IFS=$IFS; IFS='-'
13462 set x $ac_cv_target
13463 shift
13464 target_cpu=$1
13465 target_vendor=$2
13466 shift; shift
13467 # Remember, the first character of IFS is used to create $*,
13468 # except with old shells:
13469 target_os=$*
13470 IFS=$ac_save_IFS
13471 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13472 
13473 
13474 # The aliases save the names the user supplied, while $host etc.
13475 # will get canonicalized.
13476 test -n "$target_alias" &&
13477   test "$program_prefix$program_suffix$program_transform_name" = \
13478     NONENONEs,x,x, &&
13479   program_prefix=${target_alias}-
13480 
13481   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13482   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13483   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13484   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13485   # to use the configure naming style.
13486 
13487 
13488 
13489 
13490 
13491   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13492   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13493   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13494   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13495   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13496   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13497 
13498 
13499 
13500   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13501 
13502   case "$build_os" in
13503     *linux*)
13504       VAR_OS=linux
13505       VAR_OS_API=posix
13506       VAR_OS_ENV=linux
13507       ;;
13508     *solaris*)
13509       VAR_OS=solaris
13510       VAR_OS_API=posix
13511       VAR_OS_ENV=solaris
13512       ;;
13513     *darwin*)
13514       VAR_OS=macosx
13515       VAR_OS_API=posix
13516       VAR_OS_ENV=macosx
13517       ;;
13518     *bsd*)
13519       VAR_OS=bsd
13520       VAR_OS_API=posix
13521       VAR_OS_ENV=bsd
13522       ;;
13523     *cygwin*)
13524       VAR_OS=windows
13525       VAR_OS_API=winapi
13526       VAR_OS_ENV=windows.cygwin
13527       ;;
13528     *mingw*)
13529       VAR_OS=windows
13530       VAR_OS_API=winapi
13531       VAR_OS_ENV=windows.msys
13532       ;;
13533     *aix*)
13534       VAR_OS=aix
13535       VAR_OS_API=posix
13536       VAR_OS_ENV=aix
13537       ;;
13538     *)
13539       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13540       ;;
13541   esac
13542 
13543 
13544   # First argument is the cpu name from the trip/quad
13545   case "$build_cpu" in
13546     x86_64)
13547       VAR_CPU=x86_64
13548       VAR_CPU_ARCH=x86
13549       VAR_CPU_BITS=64
13550       VAR_CPU_ENDIAN=little
13551       ;;
13552     i?86)
13553       VAR_CPU=x86
13554       VAR_CPU_ARCH=x86
13555       VAR_CPU_BITS=32
13556       VAR_CPU_ENDIAN=little
13557       ;;
13558     arm*)
13559       VAR_CPU=arm
13560       VAR_CPU_ARCH=arm
13561       VAR_CPU_BITS=32
13562       VAR_CPU_ENDIAN=little
13563       ;;
13564     aarch64)
13565       VAR_CPU=aarch64
13566       VAR_CPU_ARCH=aarch64
13567       VAR_CPU_BITS=64
13568       VAR_CPU_ENDIAN=little
13569       ;;
13570     powerpc)
13571       VAR_CPU=ppc
13572       VAR_CPU_ARCH=ppc
13573       VAR_CPU_BITS=32
13574       VAR_CPU_ENDIAN=big
13575       ;;
13576     powerpc64)
13577       VAR_CPU=ppc64
13578       VAR_CPU_ARCH=ppc
13579       VAR_CPU_BITS=64
13580       VAR_CPU_ENDIAN=big
13581       ;;
13582     powerpc64le)
13583       VAR_CPU=ppc64
13584       VAR_CPU_ARCH=ppc
13585       VAR_CPU_BITS=64
13586       VAR_CPU_ENDIAN=little
13587       ;;
13588     s390)
13589       VAR_CPU=s390
13590       VAR_CPU_ARCH=s390
13591       VAR_CPU_BITS=32
13592       VAR_CPU_ENDIAN=big
13593       ;;
13594     s390x)
13595       VAR_CPU=s390x
13596       VAR_CPU_ARCH=s390
13597       VAR_CPU_BITS=64
13598       VAR_CPU_ENDIAN=big
13599       ;;
13600     sparc)
13601       VAR_CPU=sparc
13602       VAR_CPU_ARCH=sparc
13603       VAR_CPU_BITS=32
13604       VAR_CPU_ENDIAN=big
13605       ;;
13606     sparcv9|sparc64)
13607       VAR_CPU=sparcv9
13608       VAR_CPU_ARCH=sparc
13609       VAR_CPU_BITS=64
13610       VAR_CPU_ENDIAN=big
13611       ;;
13612     *)
13613       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13614       ;;
13615   esac
13616 
13617   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13618   OPENJDK_BUILD_OS="$VAR_OS"
13619   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13620   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13621   OPENJDK_BUILD_CPU="$VAR_CPU"
13622   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13623   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13624   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13625 
13626 
13627 
13628 
13629 
13630 
13631 
13632 
13633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13634 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13636 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13637 
13638   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13639 
13640   case "$host_os" in
13641     *linux*)
13642       VAR_OS=linux
13643       VAR_OS_API=posix
13644       VAR_OS_ENV=linux
13645       ;;
13646     *solaris*)
13647       VAR_OS=solaris
13648       VAR_OS_API=posix
13649       VAR_OS_ENV=solaris
13650       ;;
13651     *darwin*)
13652       VAR_OS=macosx
13653       VAR_OS_API=posix
13654       VAR_OS_ENV=macosx
13655       ;;
13656     *bsd*)
13657       VAR_OS=bsd
13658       VAR_OS_API=posix
13659       VAR_OS_ENV=bsd
13660       ;;
13661     *cygwin*)
13662       VAR_OS=windows
13663       VAR_OS_API=winapi
13664       VAR_OS_ENV=windows.cygwin
13665       ;;
13666     *mingw*)
13667       VAR_OS=windows
13668       VAR_OS_API=winapi
13669       VAR_OS_ENV=windows.msys
13670       ;;
13671     *aix*)
13672       VAR_OS=aix
13673       VAR_OS_API=posix
13674       VAR_OS_ENV=aix
13675       ;;
13676     *)
13677       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13678       ;;
13679   esac
13680 
13681 
13682   # First argument is the cpu name from the trip/quad
13683   case "$host_cpu" in
13684     x86_64)
13685       VAR_CPU=x86_64
13686       VAR_CPU_ARCH=x86
13687       VAR_CPU_BITS=64
13688       VAR_CPU_ENDIAN=little
13689       ;;
13690     i?86)
13691       VAR_CPU=x86
13692       VAR_CPU_ARCH=x86
13693       VAR_CPU_BITS=32
13694       VAR_CPU_ENDIAN=little
13695       ;;
13696     arm*)
13697       VAR_CPU=arm
13698       VAR_CPU_ARCH=arm
13699       VAR_CPU_BITS=32
13700       VAR_CPU_ENDIAN=little
13701       ;;
13702     aarch64)
13703       VAR_CPU=aarch64
13704       VAR_CPU_ARCH=aarch64
13705       VAR_CPU_BITS=64
13706       VAR_CPU_ENDIAN=little
13707       ;;
13708     powerpc)
13709       VAR_CPU=ppc
13710       VAR_CPU_ARCH=ppc
13711       VAR_CPU_BITS=32
13712       VAR_CPU_ENDIAN=big
13713       ;;
13714     powerpc64)
13715       VAR_CPU=ppc64
13716       VAR_CPU_ARCH=ppc
13717       VAR_CPU_BITS=64
13718       VAR_CPU_ENDIAN=big
13719       ;;
13720     powerpc64le)
13721       VAR_CPU=ppc64
13722       VAR_CPU_ARCH=ppc
13723       VAR_CPU_BITS=64
13724       VAR_CPU_ENDIAN=little
13725       ;;
13726     s390)
13727       VAR_CPU=s390
13728       VAR_CPU_ARCH=s390
13729       VAR_CPU_BITS=32
13730       VAR_CPU_ENDIAN=big
13731       ;;
13732     s390x)
13733       VAR_CPU=s390x
13734       VAR_CPU_ARCH=s390
13735       VAR_CPU_BITS=64
13736       VAR_CPU_ENDIAN=big
13737       ;;
13738     sparc)
13739       VAR_CPU=sparc
13740       VAR_CPU_ARCH=sparc
13741       VAR_CPU_BITS=32
13742       VAR_CPU_ENDIAN=big
13743       ;;
13744     sparcv9|sparc64)
13745       VAR_CPU=sparcv9
13746       VAR_CPU_ARCH=sparc
13747       VAR_CPU_BITS=64
13748       VAR_CPU_ENDIAN=big
13749       ;;
13750     *)
13751       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13752       ;;
13753   esac
13754 
13755   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13756   OPENJDK_TARGET_OS="$VAR_OS"
13757   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13758   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13759   OPENJDK_TARGET_CPU="$VAR_CPU"
13760   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13761   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13762   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13763 
13764 
13765 
13766 
13767 
13768 
13769 
13770 
13771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13772 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13774 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13775 
13776 
13777 
13778 # Check whether --with-target-bits was given.
13779 if test "${with_target_bits+set}" = set; then :
13780   withval=$with_target_bits;
13781 fi
13782 
13783 
13784   # We have three types of compiles:
13785   # native  == normal compilation, target system == build system
13786   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13787   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13788   #
13789   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13790     # We're doing a proper cross-compilation
13791     COMPILE_TYPE="cross"
13792   else
13793     COMPILE_TYPE="native"
13794   fi
13795 
13796   if test "x$with_target_bits" != x; then
13797     if test "x$COMPILE_TYPE" = "xcross"; then
13798       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13799     fi
13800 
13801     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13802       # A reduced build is requested
13803       COMPILE_TYPE="reduced"
13804       OPENJDK_TARGET_CPU_BITS=32
13805       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13806         OPENJDK_TARGET_CPU=x86
13807       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13808         OPENJDK_TARGET_CPU=sparc
13809       else
13810         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13811       fi
13812     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13813       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
13814     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13815       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13816 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13817     else
13818       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13819     fi
13820   fi
13821 
13822 
13823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13824 $as_echo_n "checking compilation type... " >&6; }
13825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13826 $as_echo "$COMPILE_TYPE" >&6; }
13827 
13828 
13829   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13830     REQUIRED_OS_NAME=SunOS
13831     REQUIRED_OS_VERSION=5.10
13832   fi
13833   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13834     REQUIRED_OS_NAME=Linux
13835     REQUIRED_OS_VERSION=2.6
13836   fi
13837   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13838     REQUIRED_OS_NAME=Windows
13839     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13840       REQUIRED_OS_VERSION=5.2
13841     else
13842       REQUIRED_OS_VERSION=5.1
13843     fi
13844   fi
13845   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13846     REQUIRED_OS_NAME=Darwin
13847     REQUIRED_OS_VERSION=11.2
13848   fi
13849 
13850 
13851 
13852 
13853 
13854   # Also store the legacy naming of the cpu.
13855   # Ie i586 and amd64 instead of x86 and x86_64
13856   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13857   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13858     OPENJDK_TARGET_CPU_LEGACY="i586"
13859   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13860     # On all platforms except MacOSX replace x86_64 with amd64.
13861     OPENJDK_TARGET_CPU_LEGACY="amd64"
13862   fi
13863 
13864 
13865   # And the second legacy naming of the cpu.
13866   # Ie i386 and amd64 instead of x86 and x86_64.
13867   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13868   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13869     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13870   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13871     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13872   fi
13873 
13874 
13875   # This is the name of the cpu (but using i386 and amd64 instead of
13876   # x86 and x86_64, respectively), preceeded by a /, to be used when
13877   # locating libraries. On macosx, it's empty, though.
13878   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13879   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13880     OPENJDK_TARGET_CPU_LIBDIR=""
13881   fi
13882 
13883 
13884   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13885   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13886   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13887   OPENJDK_TARGET_CPU_ISADIR=""
13888   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13889     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13890       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13891     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13892       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13893     fi
13894   fi
13895 
13896 
13897   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13898   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13899   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13900     # On linux only, we replace x86 with i386.
13901     OPENJDK_TARGET_CPU_OSARCH="i386"
13902   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13903     # On all platforms except macosx, we replace x86_64 with amd64.
13904     OPENJDK_TARGET_CPU_OSARCH="amd64"
13905   fi
13906 
13907 
13908   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13909   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13910     OPENJDK_TARGET_CPU_JLI="i386"
13911   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13912     # On all platforms except macosx, we replace x86_64 with amd64.
13913     OPENJDK_TARGET_CPU_JLI="amd64"
13914   fi
13915   # Now setup the -D flags for building libjli.
13916   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13917   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13918     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13919       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13920     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13921       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13922     fi
13923   fi
13924 
13925 
13926   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13927   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13928     OPENJDK_TARGET_OS_API_DIR="solaris"
13929   fi
13930   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13931     OPENJDK_TARGET_OS_API_DIR="windows"
13932   fi
13933 
13934 
13935   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13936       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13937   else
13938       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13939   fi
13940 
13941 
13942   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13943     A_LP64="LP64:="
13944     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13945     # unpack200.exe
13946     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13947       ADD_LP64="-D_LP64=1"
13948     fi
13949   fi
13950   LP64=$A_LP64
13951 
13952 
13953   if test "x$COMPILE_TYPE" = "xcross"; then
13954     # FIXME: ... or should this include reduced builds..?
13955     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13956   else
13957     DEFINE_CROSS_COMPILE_ARCH=""
13958   fi
13959 
13960 
13961   # ZERO_ARCHDEF is used to enable architecture-specific code
13962   case "${OPENJDK_TARGET_CPU}" in
13963     ppc)     ZERO_ARCHDEF=PPC32 ;;
13964     ppc64)   ZERO_ARCHDEF=PPC64 ;;
13965     s390*)   ZERO_ARCHDEF=S390  ;;
13966     sparc*)  ZERO_ARCHDEF=SPARC ;;
13967     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13968     x86)     ZERO_ARCHDEF=IA32  ;;
13969     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13970   esac
13971 
13972 
13973 
13974 
13975 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13976 
13977   # Save the current directory this script was started from
13978   CURDIR="$PWD"
13979 
13980   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13981     PATH_SEP=";"
13982 
13983   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13984   if test $SRC_ROOT_LENGTH -gt 100; then
13985     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13986   fi
13987 
13988   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13990 $as_echo_n "checking cygwin release... " >&6; }
13991     CYGWIN_VERSION=`$UNAME -r`
13992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13993 $as_echo "$CYGWIN_VERSION" >&6; }
13994     WINDOWS_ENV_VENDOR='cygwin'
13995     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13996 
13997     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
13998     if test "x$CYGWIN_VERSION_OLD" != x; then
13999       { $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
14000 $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;}
14001       as_fn_error $? "Cannot continue" "$LINENO" 5
14002     fi
14003     if test "x$CYGPATH" = x; then
14004       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14005     fi
14006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14007 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14008     # The cmd output ends with Windows line endings (CR/LF)
14009     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14010     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14011     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14013 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14014     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14015     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14016     if test "x$test_cygdrive_prefix" = x; then
14017       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14018     fi
14019   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14021 $as_echo_n "checking msys release... " >&6; }
14022     MSYS_VERSION=`$UNAME -r`
14023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14024 $as_echo "$MSYS_VERSION" >&6; }
14025 
14026     WINDOWS_ENV_VENDOR='msys'
14027     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14028 
14029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14030 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14031     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14032     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14033 
14034   windows_path="$MSYS_ROOT_PATH"
14035   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14036     unix_path=`$CYGPATH -u "$windows_path"`
14037     MSYS_ROOT_PATH="$unix_path"
14038   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14039     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14040     MSYS_ROOT_PATH="$unix_path"
14041   fi
14042 
14043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14044 $as_echo "$MSYS_ROOT_PATH" >&6; }
14045     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14046   else
14047     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14048   fi
14049 
14050   # Test if windows or unix (cygwin/msys) find is first in path.
14051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14052 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14053   FIND_BINARY_OUTPUT=`find --version 2>&1`
14054   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14056 $as_echo "unix style" >&6; }
14057   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14059 $as_echo "Windows" >&6; }
14060     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14061 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14062     { $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
14063 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14064     as_fn_error $? "Cannot continue" "$LINENO" 5
14065   else
14066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14067 $as_echo "unknown" >&6; }
14068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14069 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14070   fi
14071 
14072   else
14073     PATH_SEP=":"
14074   fi
14075 
14076 
14077   # We get the top-level directory from the supporting wrappers.
14078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14079 $as_echo_n "checking for top-level directory... " >&6; }
14080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14081 $as_echo "$TOPDIR" >&6; }
14082 
14083 
14084   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14085 
14086   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14087 
14088   # Input might be given as Windows format, start by converting to
14089   # unix format.
14090   path="$CURDIR"
14091   new_path=`$CYGPATH -u "$path"`
14092 
14093   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14094   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14095   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14096   # "foo.exe" is OK but "foo" is an error.
14097   #
14098   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14099   # It is also a way to make sure we got the proper file name for the real test later on.
14100   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14101   if test "x$test_shortpath" = x; then
14102     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14103 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14104     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14105   fi
14106 
14107   # Call helper function which possibly converts this using DOS-style short mode.
14108   # If so, the updated path is stored in $new_path.
14109 
14110   input_path="$new_path"
14111   # Check if we need to convert this using DOS-style short mode. If the path
14112   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14113   # take no chances and rewrite it.
14114   # Note: m4 eats our [], so we need to use [ and ] instead.
14115   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14116   if test "x$has_forbidden_chars" != x; then
14117     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14118     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14119     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14120     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14121       # Going to short mode and back again did indeed matter. Since short mode is
14122       # case insensitive, let's make it lowercase to improve readability.
14123       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14124       # Now convert it back to Unix-style (cygpath)
14125       input_path=`$CYGPATH -u "$shortmode_path"`
14126       new_path="$input_path"
14127     fi
14128   fi
14129 
14130   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14131   if test "x$test_cygdrive_prefix" = x; then
14132     # As a simple fix, exclude /usr/bin since it's not a real path.
14133     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14134       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14135       # a path prefixed by /cygdrive for fixpath to work.
14136       new_path="$CYGWIN_ROOT_PATH$input_path"
14137     fi
14138   fi
14139 
14140 
14141   if test "x$path" != "x$new_path"; then
14142     CURDIR="$new_path"
14143     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14144 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14145   fi
14146 
14147   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14148 
14149   path="$CURDIR"
14150   has_colon=`$ECHO $path | $GREP ^.:`
14151   new_path="$path"
14152   if test "x$has_colon" = x; then
14153     # Not in mixed or Windows style, start by that.
14154     new_path=`cmd //c echo $path`
14155   fi
14156 
14157 
14158   input_path="$new_path"
14159   # Check if we need to convert this using DOS-style short mode. If the path
14160   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14161   # take no chances and rewrite it.
14162   # Note: m4 eats our [], so we need to use [ and ] instead.
14163   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14164   if test "x$has_forbidden_chars" != x; then
14165     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14166     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14167   fi
14168 
14169 
14170   windows_path="$new_path"
14171   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14172     unix_path=`$CYGPATH -u "$windows_path"`
14173     new_path="$unix_path"
14174   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14175     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14176     new_path="$unix_path"
14177   fi
14178 
14179   if test "x$path" != "x$new_path"; then
14180     CURDIR="$new_path"
14181     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14182 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14183   fi
14184 
14185   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14186   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14187 
14188   else
14189     # We're on a posix platform. Hooray! :)
14190     path="$CURDIR"
14191     has_space=`$ECHO "$path" | $GREP " "`
14192     if test "x$has_space" != x; then
14193       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14194 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14195       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14196     fi
14197 
14198     # Use eval to expand a potential ~
14199     eval path="$path"
14200     if test ! -f "$path" && test ! -d "$path"; then
14201       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14202     fi
14203 
14204     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14205   fi
14206 
14207 
14208   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14209 
14210   # Input might be given as Windows format, start by converting to
14211   # unix format.
14212   path="$TOPDIR"
14213   new_path=`$CYGPATH -u "$path"`
14214 
14215   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14216   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14217   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14218   # "foo.exe" is OK but "foo" is an error.
14219   #
14220   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14221   # It is also a way to make sure we got the proper file name for the real test later on.
14222   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14223   if test "x$test_shortpath" = x; then
14224     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14225 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14226     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14227   fi
14228 
14229   # Call helper function which possibly converts this using DOS-style short mode.
14230   # If so, the updated path is stored in $new_path.
14231 
14232   input_path="$new_path"
14233   # Check if we need to convert this using DOS-style short mode. If the path
14234   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14235   # take no chances and rewrite it.
14236   # Note: m4 eats our [], so we need to use [ and ] instead.
14237   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14238   if test "x$has_forbidden_chars" != x; then
14239     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14240     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14241     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14242     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14243       # Going to short mode and back again did indeed matter. Since short mode is
14244       # case insensitive, let's make it lowercase to improve readability.
14245       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14246       # Now convert it back to Unix-style (cygpath)
14247       input_path=`$CYGPATH -u "$shortmode_path"`
14248       new_path="$input_path"
14249     fi
14250   fi
14251 
14252   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14253   if test "x$test_cygdrive_prefix" = x; then
14254     # As a simple fix, exclude /usr/bin since it's not a real path.
14255     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14256       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14257       # a path prefixed by /cygdrive for fixpath to work.
14258       new_path="$CYGWIN_ROOT_PATH$input_path"
14259     fi
14260   fi
14261 
14262 
14263   if test "x$path" != "x$new_path"; then
14264     TOPDIR="$new_path"
14265     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14266 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14267   fi
14268 
14269   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14270 
14271   path="$TOPDIR"
14272   has_colon=`$ECHO $path | $GREP ^.:`
14273   new_path="$path"
14274   if test "x$has_colon" = x; then
14275     # Not in mixed or Windows style, start by that.
14276     new_path=`cmd //c echo $path`
14277   fi
14278 
14279 
14280   input_path="$new_path"
14281   # Check if we need to convert this using DOS-style short mode. If the path
14282   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14283   # take no chances and rewrite it.
14284   # Note: m4 eats our [], so we need to use [ and ] instead.
14285   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14286   if test "x$has_forbidden_chars" != x; then
14287     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14288     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14289   fi
14290 
14291 
14292   windows_path="$new_path"
14293   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14294     unix_path=`$CYGPATH -u "$windows_path"`
14295     new_path="$unix_path"
14296   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14297     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14298     new_path="$unix_path"
14299   fi
14300 
14301   if test "x$path" != "x$new_path"; then
14302     TOPDIR="$new_path"
14303     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14304 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14305   fi
14306 
14307   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14308   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14309 
14310   else
14311     # We're on a posix platform. Hooray! :)
14312     path="$TOPDIR"
14313     has_space=`$ECHO "$path" | $GREP " "`
14314     if test "x$has_space" != x; then
14315       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14316 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14317       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14318     fi
14319 
14320     # Use eval to expand a potential ~
14321     eval path="$path"
14322     if test ! -f "$path" && test ! -d "$path"; then
14323       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14324     fi
14325 
14326     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14327   fi
14328 
14329   # SRC_ROOT is a traditional alias for TOPDIR.
14330   SRC_ROOT=$TOPDIR
14331 
14332   # Locate the directory of this script.
14333   AUTOCONF_DIR=$TOPDIR/common/autoconf
14334 
14335 
14336   # Setup default logging of stdout and stderr to build.log in the output root.
14337   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14338   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14339   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14340 
14341 
14342 
14343 
14344 
14345 # Check if it's a pure open build or if custom sources are to be used.
14346 
14347   # Check whether --enable-openjdk-only was given.
14348 if test "${enable_openjdk_only+set}" = set; then :
14349   enableval=$enable_openjdk_only;
14350 else
14351   enable_openjdk_only="no"
14352 fi
14353 
14354 
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14356 $as_echo_n "checking for presence of closed sources... " >&6; }
14357   if test -d "$SRC_ROOT/jdk/src/closed"; then
14358     CLOSED_SOURCE_PRESENT=yes
14359   else
14360     CLOSED_SOURCE_PRESENT=no
14361   fi
14362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14363 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14364 
14365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14366 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14367   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14369 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14370 
14371   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14372     OPENJDK=true
14373     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14374       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14375 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14376     fi
14377   else
14378     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14379       OPENJDK=true
14380     else
14381       OPENJDK=false
14382     fi
14383   fi
14384 
14385   if test "x$OPENJDK" = "xtrue"; then
14386     SET_OPENJDK="OPENJDK=true"
14387   fi
14388 
14389 
14390 
14391 
14392 # These are needed to be able to create a configuration name (and thus the output directory)
14393 
14394   ###############################################################################
14395   #
14396   # Check which variant of the JDK that we want to build.
14397   # Currently we have:
14398   #    normal:   standard edition
14399   # but the custom make system may add other variants
14400   #
14401   # Effectively the JDK variant gives a name to a specific set of
14402   # modules to compile into the JDK. In the future, these modules
14403   # might even be Jigsaw modules.
14404   #
14405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14406 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14407 
14408 # Check whether --with-jdk-variant was given.
14409 if test "${with_jdk_variant+set}" = set; then :
14410   withval=$with_jdk_variant;
14411 fi
14412 
14413 
14414   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14415     JDK_VARIANT="normal"
14416   else
14417     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14418   fi
14419 
14420 
14421 
14422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14423 $as_echo "$JDK_VARIANT" >&6; }
14424 
14425 
14426 ###############################################################################
14427 #
14428 # Check which interpreter of the JVM we want to build.
14429 # Currently we have:
14430 #    template: Template interpreter (the default)
14431 #    cpp     : C++ interpreter
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14433 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14434 
14435 # Check whether --with-jvm-interpreter was given.
14436 if test "${with_jvm_interpreter+set}" = set; then :
14437   withval=$with_jvm_interpreter;
14438 fi
14439 
14440 
14441 if test "x$with_jvm_interpreter" = x; then
14442      with_jvm_interpreter="template"
14443 fi
14444 
14445 JVM_INTERPRETER="$with_jvm_interpreter"
14446 
14447 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14448    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14449 fi
14450 
14451 
14452 
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14454 $as_echo "$with_jvm_interpreter" >&6; }
14455 
14456 
14457 
14458   ###############################################################################
14459   #
14460   # Check which variants of the JVM that we want to build.
14461   # Currently we have:
14462   #    server: normal interpreter and a tiered C1/C2 compiler
14463   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14464   #    minimal1: reduced form of client with optional VM services and features stripped out
14465   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14466   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14467   #    zero: no machine code interpreter, no compiler
14468   #    zeroshark: zero interpreter and shark/llvm compiler backend
14469 #    core: interpreter only, no compiler (only works on some platforms)
14470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14471 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14472 
14473 # Check whether --with-jvm-variants was given.
14474 if test "${with_jvm_variants+set}" = set; then :
14475   withval=$with_jvm_variants;
14476 fi
14477 
14478 
14479   if test "x$with_jvm_variants" = x; then
14480     with_jvm_variants="server"
14481   fi
14482 
14483   JVM_VARIANTS=",$with_jvm_variants,"
14484   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,//'`
14485 
14486   if test "x$TEST_VARIANTS" != "x,"; then
14487      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14488   fi
14489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14490 $as_echo "$with_jvm_variants" >&6; }
14491 
14492   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14493   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14494   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14495   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14496   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14497   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14498   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14499 
14500   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14501     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14502       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14503     fi
14504   fi
14505   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14506     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14507       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14508     fi
14509   fi
14510   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14511     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14512       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14513     fi
14514   fi
14515 
14516   # Replace the commas with AND for use in the build directory name.
14517   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14518   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/'`
14519   if test "x$COUNT_VARIANTS" != "x,1"; then
14520     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14521   else
14522     BUILDING_MULTIPLE_JVM_VARIANTS=no
14523   fi
14524 
14525 
14526 
14527 
14528 
14529 
14530 
14531 
14532 
14533 
14534   INCLUDE_SA=true
14535   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14536     INCLUDE_SA=false
14537   fi
14538   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14539     INCLUDE_SA=false
14540   fi
14541   if test "x$VAR_CPU" = xppc64 ; then
14542     INCLUDE_SA=false
14543   fi
14544   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14545     INCLUDE_SA=false
14546   fi
14547 
14548 
14549   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14550     MACOSX_UNIVERSAL="false"
14551   fi
14552 
14553 
14554 
14555 
14556   ###############################################################################
14557   #
14558   # Set the debug level
14559   #    release: no debug information, all optimizations, no asserts.
14560   #    fastdebug: debug information (-g), all optimizations, all asserts
14561   #    slowdebug: debug information (-g), no optimizations, all asserts
14562   #
14563   DEBUG_LEVEL="release"
14564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14565 $as_echo_n "checking which debug level to use... " >&6; }
14566   # Check whether --enable-debug was given.
14567 if test "${enable_debug+set}" = set; then :
14568   enableval=$enable_debug;
14569         ENABLE_DEBUG="${enableval}"
14570         DEBUG_LEVEL="fastdebug"
14571 
14572 else
14573   ENABLE_DEBUG="no"
14574 fi
14575 
14576 
14577 
14578 # Check whether --with-debug-level was given.
14579 if test "${with_debug_level+set}" = set; then :
14580   withval=$with_debug_level;
14581         DEBUG_LEVEL="${withval}"
14582         if test "x$ENABLE_DEBUG" = xyes; then
14583           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14584         fi
14585 
14586 fi
14587 
14588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14589 $as_echo "$DEBUG_LEVEL" >&6; }
14590 
14591   if test "x$DEBUG_LEVEL" != xrelease && \
14592       test "x$DEBUG_LEVEL" != xfastdebug && \
14593       test "x$DEBUG_LEVEL" != xslowdebug; then
14594     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14595   fi
14596 
14597 
14598   ###############################################################################
14599   #
14600   # Setup legacy vars/targets and new vars to deal with different debug levels.
14601   #
14602 
14603   case $DEBUG_LEVEL in
14604     release )
14605       VARIANT="OPT"
14606       FASTDEBUG="false"
14607       DEBUG_CLASSFILES="false"
14608       BUILD_VARIANT_RELEASE=""
14609       HOTSPOT_DEBUG_LEVEL="product"
14610       HOTSPOT_EXPORT="product"
14611       ;;
14612     fastdebug )
14613       VARIANT="DBG"
14614       FASTDEBUG="true"
14615       DEBUG_CLASSFILES="true"
14616       BUILD_VARIANT_RELEASE="-fastdebug"
14617       HOTSPOT_DEBUG_LEVEL="fastdebug"
14618       HOTSPOT_EXPORT="fastdebug"
14619       ;;
14620     slowdebug )
14621       VARIANT="DBG"
14622       FASTDEBUG="false"
14623       DEBUG_CLASSFILES="true"
14624       BUILD_VARIANT_RELEASE="-debug"
14625       HOTSPOT_DEBUG_LEVEL="jvmg"
14626       HOTSPOT_EXPORT="debug"
14627       ;;
14628   esac
14629 
14630   #####
14631   # Generate the legacy makefile targets for hotspot.
14632   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14633   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14634   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14635   # But until then ...
14636   HOTSPOT_TARGET=""
14637 
14638   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14639     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14640   fi
14641 
14642   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14643     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14644   fi
14645 
14646   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14647     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14648   fi
14649 
14650   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14651     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14652   fi
14653 
14654   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14655     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14656   fi
14657 
14658   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14659     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14660   fi
14661 
14662   if test "x$JVM_VARIANT_CORE" = xtrue; then
14663     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14664   fi
14665 
14666   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14667 
14668   # On Macosx universal binaries are produced, but they only contain
14669   # 64 bit intel. This invalidates control of which jvms are built
14670   # from configure, but only server is valid anyway. Fix this
14671   # when hotspot makefiles are rewritten.
14672   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14673     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14674   fi
14675 
14676   #####
14677 
14678 
14679 
14680 
14681 
14682 
14683 
14684 
14685 # With basic setup done, call the custom early hook.
14686 
14687 
14688 # Check if we have devkits, extra paths or sysroot set.
14689 
14690 
14691 # Check whether --with-devkit was given.
14692 if test "${with_devkit+set}" = set; then :
14693   withval=$with_devkit;
14694 
14695   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14696 
14697   # Input might be given as Windows format, start by converting to
14698   # unix format.
14699   path="$with_devkit"
14700   new_path=`$CYGPATH -u "$path"`
14701 
14702   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14703   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14704   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14705   # "foo.exe" is OK but "foo" is an error.
14706   #
14707   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14708   # It is also a way to make sure we got the proper file name for the real test later on.
14709   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14710   if test "x$test_shortpath" = x; then
14711     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14712 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14713     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14714   fi
14715 
14716   # Call helper function which possibly converts this using DOS-style short mode.
14717   # If so, the updated path is stored in $new_path.
14718 
14719   input_path="$new_path"
14720   # Check if we need to convert this using DOS-style short mode. If the path
14721   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14722   # take no chances and rewrite it.
14723   # Note: m4 eats our [], so we need to use [ and ] instead.
14724   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14725   if test "x$has_forbidden_chars" != x; then
14726     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14727     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14728     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14729     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14730       # Going to short mode and back again did indeed matter. Since short mode is
14731       # case insensitive, let's make it lowercase to improve readability.
14732       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14733       # Now convert it back to Unix-style (cygpath)
14734       input_path=`$CYGPATH -u "$shortmode_path"`
14735       new_path="$input_path"
14736     fi
14737   fi
14738 
14739   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14740   if test "x$test_cygdrive_prefix" = x; then
14741     # As a simple fix, exclude /usr/bin since it's not a real path.
14742     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14743       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14744       # a path prefixed by /cygdrive for fixpath to work.
14745       new_path="$CYGWIN_ROOT_PATH$input_path"
14746     fi
14747   fi
14748 
14749 
14750   if test "x$path" != "x$new_path"; then
14751     with_devkit="$new_path"
14752     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14753 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14754   fi
14755 
14756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14757 
14758   path="$with_devkit"
14759   has_colon=`$ECHO $path | $GREP ^.:`
14760   new_path="$path"
14761   if test "x$has_colon" = x; then
14762     # Not in mixed or Windows style, start by that.
14763     new_path=`cmd //c echo $path`
14764   fi
14765 
14766 
14767   input_path="$new_path"
14768   # Check if we need to convert this using DOS-style short mode. If the path
14769   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14770   # take no chances and rewrite it.
14771   # Note: m4 eats our [], so we need to use [ and ] instead.
14772   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14773   if test "x$has_forbidden_chars" != x; then
14774     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14775     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14776   fi
14777 
14778 
14779   windows_path="$new_path"
14780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14781     unix_path=`$CYGPATH -u "$windows_path"`
14782     new_path="$unix_path"
14783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14785     new_path="$unix_path"
14786   fi
14787 
14788   if test "x$path" != "x$new_path"; then
14789     with_devkit="$new_path"
14790     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14791 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14792   fi
14793 
14794   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14795   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14796 
14797   else
14798     # We're on a posix platform. Hooray! :)
14799     path="$with_devkit"
14800     has_space=`$ECHO "$path" | $GREP " "`
14801     if test "x$has_space" != x; then
14802       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14803 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14804       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14805     fi
14806 
14807     # Use eval to expand a potential ~
14808     eval path="$path"
14809     if test ! -f "$path" && test ! -d "$path"; then
14810       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14811     fi
14812 
14813     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14814   fi
14815 
14816         DEVKIT_ROOT="$with_devkit"
14817         # Check for a meta data info file in the root of the devkit
14818         if test -f "$DEVKIT_ROOT/devkit.info"; then
14819           . $DEVKIT_ROOT/devkit.info
14820           # This potentially sets the following:
14821           # A descriptive name of the devkit
14822 
14823   if test "x$DEVKIT_NAME" = x; then
14824     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14825   fi
14826 
14827           # Corresponds to --with-extra-path
14828 
14829   if test "x$DEVKIT_EXTRA_PATH" = x; then
14830     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14831   fi
14832 
14833           # Corresponds to --with-toolchain-path
14834 
14835   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14836     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14837   fi
14838 
14839           # Corresponds to --with-sysroot
14840 
14841   if test "x$DEVKIT_SYSROOT" = x; then
14842     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14843   fi
14844 
14845 
14846           # Identifies the Visual Studio version in the devkit
14847 
14848   if test "x$DEVKIT_VS_VERSION" = x; then
14849     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14850   fi
14851 
14852           # The Visual Studio include environment variable
14853 
14854   if test "x$DEVKIT_VS_INCLUDE" = x; then
14855     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14856   fi
14857 
14858           # The Visual Studio lib environment variable
14859 
14860   if test "x$DEVKIT_VS_LIB" = x; then
14861     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14862   fi
14863 
14864           # Corresponds to --with-msvcr-dll
14865 
14866   if test "x$DEVKIT_MSVCR_DLL" = x; then
14867     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14868   fi
14869 
14870           # Corresponds to --with-msvcp-dll
14871 
14872   if test "x$DEVKIT_MSVCP_DLL" = x; then
14873     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14874   fi
14875 
14876         fi
14877 
14878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14879 $as_echo_n "checking for devkit... " >&6; }
14880         if test "x$DEVKIT_NAME" != x; then
14881           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14882 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14883         else
14884           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14885 $as_echo "$DEVKIT_ROOT" >&6; }
14886         fi
14887 
14888 
14889   if test "x$DEVKIT_EXTRA_PATH" != x; then
14890     if test "x$EXTRA_PATH" = x; then
14891       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14892     else
14893       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14894     fi
14895   fi
14896 
14897 
14898         # Fallback default of just /bin if DEVKIT_PATH is not defined
14899         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14900           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14901         fi
14902 
14903   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14904     if test "x$TOOLCHAIN_PATH" = x; then
14905       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14906     else
14907       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14908     fi
14909   fi
14910 
14911 
14912         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14913         # places for backwards compatiblity.
14914         if test "x$DEVKIT_SYSROOT" != x; then
14915           SYSROOT="$DEVKIT_SYSROOT"
14916         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14917           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
14918         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
14919           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
14920         fi
14921 
14922 
14923 fi
14924 
14925 
14926   # You can force the sysroot if the sysroot encoded into the compiler tools
14927   # is not correct.
14928 
14929 # Check whether --with-sys-root was given.
14930 if test "${with_sys_root+set}" = set; then :
14931   withval=$with_sys_root; SYSROOT=$with_sys_root
14932 
14933 fi
14934 
14935 
14936 
14937 # Check whether --with-sysroot was given.
14938 if test "${with_sysroot+set}" = set; then :
14939   withval=$with_sysroot; SYSROOT=$with_sysroot
14940 
14941 fi
14942 
14943 
14944 
14945 # Check whether --with-tools-dir was given.
14946 if test "${with_tools_dir+set}" = set; then :
14947   withval=$with_tools_dir;
14948   if test "x$with_tools_dir" != x; then
14949     if test "x$TOOLCHAIN_PATH" = x; then
14950       TOOLCHAIN_PATH="$with_tools_dir"
14951     else
14952       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
14953     fi
14954   fi
14955 
14956 
14957 fi
14958 
14959 
14960 
14961 # Check whether --with-toolchain-path was given.
14962 if test "${with_toolchain_path+set}" = set; then :
14963   withval=$with_toolchain_path;
14964   if test "x$with_toolchain_path" != x; then
14965     if test "x$TOOLCHAIN_PATH" = x; then
14966       TOOLCHAIN_PATH="$with_toolchain_path"
14967     else
14968       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
14969     fi
14970   fi
14971 
14972 
14973 fi
14974 
14975 
14976 
14977 # Check whether --with-extra-path was given.
14978 if test "${with_extra_path+set}" = set; then :
14979   withval=$with_extra_path;
14980   if test "x$with_extra_path" != x; then
14981     if test "x$EXTRA_PATH" = x; then
14982       EXTRA_PATH="$with_extra_path"
14983     else
14984       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
14985     fi
14986   fi
14987 
14988 
14989 fi
14990 
14991 
14992   # Prepend the extra path to the global path
14993 
14994   if test "x$EXTRA_PATH" != x; then
14995     if test "x$PATH" = x; then
14996       PATH="$EXTRA_PATH"
14997     else
14998       PATH="$EXTRA_PATH:$PATH"
14999     fi
15000   fi
15001 
15002 
15003   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15004     # Add extra search paths on solaris for utilities like ar and as etc...
15005     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15006   fi
15007 
15008   # Xcode version will be validated later
15009 
15010 # Check whether --with-xcode-path was given.
15011 if test "${with_xcode_path+set}" = set; then :
15012   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15013 
15014 fi
15015 
15016 
15017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15018 $as_echo_n "checking for sysroot... " >&6; }
15019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15020 $as_echo "$SYSROOT" >&6; }
15021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15022 $as_echo_n "checking for toolchain path... " >&6; }
15023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15024 $as_echo "$TOOLCHAIN_PATH" >&6; }
15025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15026 $as_echo_n "checking for extra path... " >&6; }
15027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15028 $as_echo "$EXTRA_PATH" >&6; }
15029 
15030 
15031 # To properly create a configuration name, we need to have the OpenJDK target
15032 # and options (variants and debug level) parsed.
15033 
15034 
15035 
15036 # Check whether --with-conf-name was given.
15037 if test "${with_conf_name+set}" = set; then :
15038   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15039 fi
15040 
15041 
15042   # Test from where we are running configure, in or outside of src root.
15043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15044 $as_echo_n "checking where to store configuration... " >&6; }
15045   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15046       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15047       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15048     # We are running configure from the src root.
15049     # Create a default ./build/target-variant-debuglevel output root.
15050     if test "x${CONF_NAME}" = x; then
15051       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15052 $as_echo "in default location" >&6; }
15053       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15054     else
15055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15056 $as_echo "in build directory with custom name" >&6; }
15057     fi
15058     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15059     $MKDIR -p "$OUTPUT_ROOT"
15060     if test ! -d "$OUTPUT_ROOT"; then
15061       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15062     fi
15063   else
15064     # We are running configure from outside of the src dir.
15065     # Then use the current directory as output dir!
15066     # If configuration is situated in normal build directory, just use the build
15067     # directory name as configuration name, otherwise use the complete path.
15068     if test "x${CONF_NAME}" = x; then
15069       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15070     fi
15071     OUTPUT_ROOT="$CURDIR"
15072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15073 $as_echo "in current directory" >&6; }
15074 
15075     # WARNING: This might be a bad thing to do. You need to be sure you want to
15076     # have a configuration in this directory. Do some sanity checks!
15077 
15078     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15079       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15080       # other files
15081       files_present=`$LS $OUTPUT_ROOT`
15082       # Configure has already touched config.log and confdefs.h in the current dir when this check
15083       # is performed.
15084       filtered_files=`$ECHO "$files_present" \
15085           | $SED -e 's/config.log//g' \
15086               -e 's/confdefs.h//g' \
15087               -e 's/fixpath.exe//g' \
15088               -e 's/ //g' \
15089           | $TR -d '\n'`
15090       if test "x$filtered_files" != x; then
15091         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15092 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15093         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15094 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15095         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15096 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15097         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15098 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15099         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15100 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15101         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15102 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15103         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15104 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15105         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15106       fi
15107     fi
15108   fi
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15110 $as_echo_n "checking what configuration name to use... " >&6; }
15111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15112 $as_echo "$CONF_NAME" >&6; }
15113 
15114 
15115   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15116 
15117   # Input might be given as Windows format, start by converting to
15118   # unix format.
15119   path="$OUTPUT_ROOT"
15120   new_path=`$CYGPATH -u "$path"`
15121 
15122   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15123   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15124   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15125   # "foo.exe" is OK but "foo" is an error.
15126   #
15127   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15128   # It is also a way to make sure we got the proper file name for the real test later on.
15129   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15130   if test "x$test_shortpath" = x; then
15131     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15132 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15133     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15134   fi
15135 
15136   # Call helper function which possibly converts this using DOS-style short mode.
15137   # If so, the updated path is stored in $new_path.
15138 
15139   input_path="$new_path"
15140   # Check if we need to convert this using DOS-style short mode. If the path
15141   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15142   # take no chances and rewrite it.
15143   # Note: m4 eats our [], so we need to use [ and ] instead.
15144   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15145   if test "x$has_forbidden_chars" != x; then
15146     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15147     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15148     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15149     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15150       # Going to short mode and back again did indeed matter. Since short mode is
15151       # case insensitive, let's make it lowercase to improve readability.
15152       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15153       # Now convert it back to Unix-style (cygpath)
15154       input_path=`$CYGPATH -u "$shortmode_path"`
15155       new_path="$input_path"
15156     fi
15157   fi
15158 
15159   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15160   if test "x$test_cygdrive_prefix" = x; then
15161     # As a simple fix, exclude /usr/bin since it's not a real path.
15162     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15163       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15164       # a path prefixed by /cygdrive for fixpath to work.
15165       new_path="$CYGWIN_ROOT_PATH$input_path"
15166     fi
15167   fi
15168 
15169 
15170   if test "x$path" != "x$new_path"; then
15171     OUTPUT_ROOT="$new_path"
15172     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15173 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15174   fi
15175 
15176   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15177 
15178   path="$OUTPUT_ROOT"
15179   has_colon=`$ECHO $path | $GREP ^.:`
15180   new_path="$path"
15181   if test "x$has_colon" = x; then
15182     # Not in mixed or Windows style, start by that.
15183     new_path=`cmd //c echo $path`
15184   fi
15185 
15186 
15187   input_path="$new_path"
15188   # Check if we need to convert this using DOS-style short mode. If the path
15189   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15190   # take no chances and rewrite it.
15191   # Note: m4 eats our [], so we need to use [ and ] instead.
15192   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15193   if test "x$has_forbidden_chars" != x; then
15194     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15195     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15196   fi
15197 
15198 
15199   windows_path="$new_path"
15200   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15201     unix_path=`$CYGPATH -u "$windows_path"`
15202     new_path="$unix_path"
15203   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15204     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15205     new_path="$unix_path"
15206   fi
15207 
15208   if test "x$path" != "x$new_path"; then
15209     OUTPUT_ROOT="$new_path"
15210     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15211 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15212   fi
15213 
15214   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15215   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15216 
15217   else
15218     # We're on a posix platform. Hooray! :)
15219     path="$OUTPUT_ROOT"
15220     has_space=`$ECHO "$path" | $GREP " "`
15221     if test "x$has_space" != x; then
15222       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15223 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15224       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15225     fi
15226 
15227     # Use eval to expand a potential ~
15228     eval path="$path"
15229     if test ! -f "$path" && test ! -d "$path"; then
15230       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15231     fi
15232 
15233     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15234   fi
15235 
15236 
15237   SPEC=$OUTPUT_ROOT/spec.gmk
15238 
15239   CONF_NAME=$CONF_NAME
15240 
15241   OUTPUT_ROOT=$OUTPUT_ROOT
15242 
15243 
15244   # Most of the probed defines are put into config.h
15245   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15246 
15247   # The spec.gmk file contains all variables for the make system.
15248   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15249 
15250   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15251   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15252 
15253   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15254   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15255 
15256   # The compare.sh is used to compare the build output to other builds.
15257   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15258 
15259   # Spec.sh is currently used by compare-objects.sh
15260   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15261 
15262   # The generated Makefile knows where the spec.gmk is and where the source is.
15263   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15264   # which will look for generated configurations
15265   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15266 
15267 
15268 
15269 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15270 
15271   for ac_prog in apt-get yum port pkgutil pkgadd
15272 do
15273   # Extract the first word of "$ac_prog", so it can be a program name with args.
15274 set dummy $ac_prog; ac_word=$2
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15276 $as_echo_n "checking for $ac_word... " >&6; }
15277 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15278   $as_echo_n "(cached) " >&6
15279 else
15280   if test -n "$PKGHANDLER"; then
15281   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15282 else
15283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284 for as_dir in $PATH
15285 do
15286   IFS=$as_save_IFS
15287   test -z "$as_dir" && as_dir=.
15288     for ac_exec_ext in '' $ac_executable_extensions; do
15289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15290     ac_cv_prog_PKGHANDLER="$ac_prog"
15291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15292     break 2
15293   fi
15294 done
15295   done
15296 IFS=$as_save_IFS
15297 
15298 fi
15299 fi
15300 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15301 if test -n "$PKGHANDLER"; then
15302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15303 $as_echo "$PKGHANDLER" >&6; }
15304 else
15305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15306 $as_echo "no" >&6; }
15307 fi
15308 
15309 
15310   test -n "$PKGHANDLER" && break
15311 done
15312 
15313 
15314 
15315 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15316 
15317 
15318   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15319   if test "x$MAKE" != x; then
15320     # User has supplied a make, test it.
15321     if test ! -f "$MAKE"; then
15322       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15323     fi
15324 
15325   MAKE_CANDIDATE=""$MAKE""
15326   DESCRIPTION="user supplied MAKE=$MAKE"
15327   if test "x$MAKE_CANDIDATE" != x; then
15328     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15329 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15330     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15331     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15332     if test "x$IS_GNU_MAKE" = x; then
15333       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15334 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15335     else
15336       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15337       if test "x$IS_MODERN_MAKE" = x; then
15338         { $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
15339 $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;}
15340       else
15341         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15342           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15343             MAKE_EXPECTED_ENV='cygwin'
15344           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15345             MAKE_EXPECTED_ENV='msys'
15346           else
15347             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15348           fi
15349           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15350           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15351         else
15352           # Not relevant for non-Windows
15353           IS_MAKE_CORRECT_ENV=true
15354         fi
15355         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15356           { $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
15357 $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;}
15358         else
15359           FOUND_MAKE=$MAKE_CANDIDATE
15360 
15361   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15362 
15363   # First separate the path from the arguments. This will split at the first
15364   # space.
15365   complete="$FOUND_MAKE"
15366   path="${complete%% *}"
15367   tmp="$complete EOL"
15368   arguments="${tmp#* }"
15369 
15370   # Input might be given as Windows format, start by converting to
15371   # unix format.
15372   new_path=`$CYGPATH -u "$path"`
15373 
15374   # Now try to locate executable using which
15375   new_path=`$WHICH "$new_path" 2> /dev/null`
15376   # bat and cmd files are not always considered executable in cygwin causing which
15377   # to not find them
15378   if test "x$new_path" = x \
15379       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15380       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15381     new_path=`$CYGPATH -u "$path"`
15382   fi
15383   if test "x$new_path" = x; then
15384     # Oops. Which didn't find the executable.
15385     # The splitting of arguments from the executable at a space might have been incorrect,
15386     # since paths with space are more likely in Windows. Give it another try with the whole
15387     # argument.
15388     path="$complete"
15389     arguments="EOL"
15390     new_path=`$CYGPATH -u "$path"`
15391     new_path=`$WHICH "$new_path" 2> /dev/null`
15392     # bat and cmd files are not always considered executable in cygwin causing which
15393     # to not find them
15394     if test "x$new_path" = x \
15395         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15396         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15397       new_path=`$CYGPATH -u "$path"`
15398     fi
15399     if test "x$new_path" = x; then
15400       # It's still not found. Now this is an unrecoverable error.
15401       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15402 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15403       has_space=`$ECHO "$complete" | $GREP " "`
15404       if test "x$has_space" != x; then
15405         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15406 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15407       fi
15408       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15409     fi
15410   fi
15411 
15412   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15413   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15414   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15415   # "foo.exe" is OK but "foo" is an error.
15416   #
15417   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15418   # It is also a way to make sure we got the proper file name for the real test later on.
15419   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15420   if test "x$test_shortpath" = x; then
15421     # Short path failed, file does not exist as specified.
15422     # Try adding .exe or .cmd
15423     if test -f "${new_path}.exe"; then
15424       input_to_shortpath="${new_path}.exe"
15425     elif test -f "${new_path}.cmd"; then
15426       input_to_shortpath="${new_path}.cmd"
15427     else
15428       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15429 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15430       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15431 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15432       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15433     fi
15434   else
15435     input_to_shortpath="$new_path"
15436   fi
15437 
15438   # Call helper function which possibly converts this using DOS-style short mode.
15439   # If so, the updated path is stored in $new_path.
15440   new_path="$input_to_shortpath"
15441 
15442   input_path="$input_to_shortpath"
15443   # Check if we need to convert this using DOS-style short mode. If the path
15444   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15445   # take no chances and rewrite it.
15446   # Note: m4 eats our [], so we need to use [ and ] instead.
15447   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15448   if test "x$has_forbidden_chars" != x; then
15449     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15450     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15451     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15452     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15453       # Going to short mode and back again did indeed matter. Since short mode is
15454       # case insensitive, let's make it lowercase to improve readability.
15455       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15456       # Now convert it back to Unix-style (cygpath)
15457       input_path=`$CYGPATH -u "$shortmode_path"`
15458       new_path="$input_path"
15459     fi
15460   fi
15461 
15462   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15463   if test "x$test_cygdrive_prefix" = x; then
15464     # As a simple fix, exclude /usr/bin since it's not a real path.
15465     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15466       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15467       # a path prefixed by /cygdrive for fixpath to work.
15468       new_path="$CYGWIN_ROOT_PATH$input_path"
15469     fi
15470   fi
15471 
15472   # remove trailing .exe if any
15473   new_path="${new_path/%.exe/}"
15474 
15475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15476 
15477   # First separate the path from the arguments. This will split at the first
15478   # space.
15479   complete="$FOUND_MAKE"
15480   path="${complete%% *}"
15481   tmp="$complete EOL"
15482   arguments="${tmp#* }"
15483 
15484   # Input might be given as Windows format, start by converting to
15485   # unix format.
15486   new_path="$path"
15487 
15488   windows_path="$new_path"
15489   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15490     unix_path=`$CYGPATH -u "$windows_path"`
15491     new_path="$unix_path"
15492   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15493     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15494     new_path="$unix_path"
15495   fi
15496 
15497 
15498   # Now try to locate executable using which
15499   new_path=`$WHICH "$new_path" 2> /dev/null`
15500 
15501   if test "x$new_path" = x; then
15502     # Oops. Which didn't find the executable.
15503     # The splitting of arguments from the executable at a space might have been incorrect,
15504     # since paths with space are more likely in Windows. Give it another try with the whole
15505     # argument.
15506     path="$complete"
15507     arguments="EOL"
15508     new_path="$path"
15509 
15510   windows_path="$new_path"
15511   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15512     unix_path=`$CYGPATH -u "$windows_path"`
15513     new_path="$unix_path"
15514   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15515     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15516     new_path="$unix_path"
15517   fi
15518 
15519 
15520     new_path=`$WHICH "$new_path" 2> /dev/null`
15521     # bat and cmd files are not always considered executable in MSYS causing which
15522     # to not find them
15523     if test "x$new_path" = x \
15524         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15525         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15526       new_path="$path"
15527 
15528   windows_path="$new_path"
15529   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15530     unix_path=`$CYGPATH -u "$windows_path"`
15531     new_path="$unix_path"
15532   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15533     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15534     new_path="$unix_path"
15535   fi
15536 
15537     fi
15538 
15539     if test "x$new_path" = x; then
15540       # It's still not found. Now this is an unrecoverable error.
15541       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15542 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15543       has_space=`$ECHO "$complete" | $GREP " "`
15544       if test "x$has_space" != x; then
15545         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15546 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15547       fi
15548       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15549     fi
15550   fi
15551 
15552   # Now new_path has a complete unix path to the binary
15553   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15554     # Keep paths in /bin as-is, but remove trailing .exe if any
15555     new_path="${new_path/%.exe/}"
15556     # Do not save /bin paths to all_fixpath_prefixes!
15557   else
15558     # Not in mixed or Windows style, start by that.
15559     new_path=`cmd //c echo $new_path`
15560 
15561   input_path="$new_path"
15562   # Check if we need to convert this using DOS-style short mode. If the path
15563   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15564   # take no chances and rewrite it.
15565   # Note: m4 eats our [], so we need to use [ and ] instead.
15566   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15567   if test "x$has_forbidden_chars" != x; then
15568     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15569     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15570   fi
15571 
15572     # Output is in $new_path
15573 
15574   windows_path="$new_path"
15575   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15576     unix_path=`$CYGPATH -u "$windows_path"`
15577     new_path="$unix_path"
15578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15579     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15580     new_path="$unix_path"
15581   fi
15582 
15583     # remove trailing .exe if any
15584     new_path="${new_path/%.exe/}"
15585 
15586     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15587     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15588   fi
15589 
15590   else
15591     # We're on a posix platform. Hooray! :)
15592     # First separate the path from the arguments. This will split at the first
15593     # space.
15594     complete="$FOUND_MAKE"
15595     path="${complete%% *}"
15596     tmp="$complete EOL"
15597     arguments="${tmp#* }"
15598 
15599     # Cannot rely on the command "which" here since it doesn't always work.
15600     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15601     if test -z "$is_absolute_path"; then
15602       # Path to executable is not absolute. Find it.
15603       IFS_save="$IFS"
15604       IFS=:
15605       for p in $PATH; do
15606         if test -f "$p/$path" && test -x "$p/$path"; then
15607           new_path="$p/$path"
15608           break
15609         fi
15610       done
15611       IFS="$IFS_save"
15612     else
15613       # This is an absolute path, we can use it without further modifications.
15614       new_path="$path"
15615     fi
15616 
15617     if test "x$new_path" = x; then
15618       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15619 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15620       has_space=`$ECHO "$complete" | $GREP " "`
15621       if test "x$has_space" != x; then
15622         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15623 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15624       fi
15625       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15626     fi
15627   fi
15628 
15629   # Now join together the path and the arguments once again
15630   if test "x$arguments" != xEOL; then
15631     new_complete="$new_path ${arguments% *}"
15632   else
15633     new_complete="$new_path"
15634   fi
15635 
15636   if test "x$complete" != "x$new_complete"; then
15637     FOUND_MAKE="$new_complete"
15638     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15639 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15640   fi
15641 
15642         fi
15643       fi
15644     fi
15645   fi
15646 
15647     if test "x$FOUND_MAKE" = x; then
15648       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15649     fi
15650   else
15651     # Try our hardest to locate a correct version of GNU make
15652     for ac_prog in gmake
15653 do
15654   # Extract the first word of "$ac_prog", so it can be a program name with args.
15655 set dummy $ac_prog; ac_word=$2
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15657 $as_echo_n "checking for $ac_word... " >&6; }
15658 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15659   $as_echo_n "(cached) " >&6
15660 else
15661   case $CHECK_GMAKE in
15662   [\\/]* | ?:[\\/]*)
15663   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15664   ;;
15665   *)
15666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667 for as_dir in $PATH
15668 do
15669   IFS=$as_save_IFS
15670   test -z "$as_dir" && as_dir=.
15671     for ac_exec_ext in '' $ac_executable_extensions; do
15672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15673     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15675     break 2
15676   fi
15677 done
15678   done
15679 IFS=$as_save_IFS
15680 
15681   ;;
15682 esac
15683 fi
15684 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15685 if test -n "$CHECK_GMAKE"; then
15686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15687 $as_echo "$CHECK_GMAKE" >&6; }
15688 else
15689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15690 $as_echo "no" >&6; }
15691 fi
15692 
15693 
15694   test -n "$CHECK_GMAKE" && break
15695 done
15696 
15697 
15698   MAKE_CANDIDATE=""$CHECK_GMAKE""
15699   DESCRIPTION="gmake in PATH"
15700   if test "x$MAKE_CANDIDATE" != x; then
15701     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15702 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15703     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15704     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15705     if test "x$IS_GNU_MAKE" = x; then
15706       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15707 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15708     else
15709       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15710       if test "x$IS_MODERN_MAKE" = x; then
15711         { $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
15712 $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;}
15713       else
15714         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15715           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15716             MAKE_EXPECTED_ENV='cygwin'
15717           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15718             MAKE_EXPECTED_ENV='msys'
15719           else
15720             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15721           fi
15722           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15723           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15724         else
15725           # Not relevant for non-Windows
15726           IS_MAKE_CORRECT_ENV=true
15727         fi
15728         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15729           { $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
15730 $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;}
15731         else
15732           FOUND_MAKE=$MAKE_CANDIDATE
15733 
15734   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15735 
15736   # First separate the path from the arguments. This will split at the first
15737   # space.
15738   complete="$FOUND_MAKE"
15739   path="${complete%% *}"
15740   tmp="$complete EOL"
15741   arguments="${tmp#* }"
15742 
15743   # Input might be given as Windows format, start by converting to
15744   # unix format.
15745   new_path=`$CYGPATH -u "$path"`
15746 
15747   # Now try to locate executable using which
15748   new_path=`$WHICH "$new_path" 2> /dev/null`
15749   # bat and cmd files are not always considered executable in cygwin causing which
15750   # to not find them
15751   if test "x$new_path" = x \
15752       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15753       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15754     new_path=`$CYGPATH -u "$path"`
15755   fi
15756   if test "x$new_path" = x; then
15757     # Oops. Which didn't find the executable.
15758     # The splitting of arguments from the executable at a space might have been incorrect,
15759     # since paths with space are more likely in Windows. Give it another try with the whole
15760     # argument.
15761     path="$complete"
15762     arguments="EOL"
15763     new_path=`$CYGPATH -u "$path"`
15764     new_path=`$WHICH "$new_path" 2> /dev/null`
15765     # bat and cmd files are not always considered executable in cygwin causing which
15766     # to not find them
15767     if test "x$new_path" = x \
15768         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15769         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15770       new_path=`$CYGPATH -u "$path"`
15771     fi
15772     if test "x$new_path" = x; then
15773       # It's still not found. Now this is an unrecoverable error.
15774       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15775 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15776       has_space=`$ECHO "$complete" | $GREP " "`
15777       if test "x$has_space" != x; then
15778         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15779 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15780       fi
15781       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15782     fi
15783   fi
15784 
15785   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15786   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15787   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15788   # "foo.exe" is OK but "foo" is an error.
15789   #
15790   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15791   # It is also a way to make sure we got the proper file name for the real test later on.
15792   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15793   if test "x$test_shortpath" = x; then
15794     # Short path failed, file does not exist as specified.
15795     # Try adding .exe or .cmd
15796     if test -f "${new_path}.exe"; then
15797       input_to_shortpath="${new_path}.exe"
15798     elif test -f "${new_path}.cmd"; then
15799       input_to_shortpath="${new_path}.cmd"
15800     else
15801       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15802 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15803       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15804 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15805       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15806     fi
15807   else
15808     input_to_shortpath="$new_path"
15809   fi
15810 
15811   # Call helper function which possibly converts this using DOS-style short mode.
15812   # If so, the updated path is stored in $new_path.
15813   new_path="$input_to_shortpath"
15814 
15815   input_path="$input_to_shortpath"
15816   # Check if we need to convert this using DOS-style short mode. If the path
15817   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15818   # take no chances and rewrite it.
15819   # Note: m4 eats our [], so we need to use [ and ] instead.
15820   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15821   if test "x$has_forbidden_chars" != x; then
15822     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15823     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15824     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15825     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15826       # Going to short mode and back again did indeed matter. Since short mode is
15827       # case insensitive, let's make it lowercase to improve readability.
15828       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15829       # Now convert it back to Unix-style (cygpath)
15830       input_path=`$CYGPATH -u "$shortmode_path"`
15831       new_path="$input_path"
15832     fi
15833   fi
15834 
15835   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15836   if test "x$test_cygdrive_prefix" = x; then
15837     # As a simple fix, exclude /usr/bin since it's not a real path.
15838     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15839       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15840       # a path prefixed by /cygdrive for fixpath to work.
15841       new_path="$CYGWIN_ROOT_PATH$input_path"
15842     fi
15843   fi
15844 
15845   # remove trailing .exe if any
15846   new_path="${new_path/%.exe/}"
15847 
15848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15849 
15850   # First separate the path from the arguments. This will split at the first
15851   # space.
15852   complete="$FOUND_MAKE"
15853   path="${complete%% *}"
15854   tmp="$complete EOL"
15855   arguments="${tmp#* }"
15856 
15857   # Input might be given as Windows format, start by converting to
15858   # unix format.
15859   new_path="$path"
15860 
15861   windows_path="$new_path"
15862   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15863     unix_path=`$CYGPATH -u "$windows_path"`
15864     new_path="$unix_path"
15865   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15866     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15867     new_path="$unix_path"
15868   fi
15869 
15870 
15871   # Now try to locate executable using which
15872   new_path=`$WHICH "$new_path" 2> /dev/null`
15873 
15874   if test "x$new_path" = x; then
15875     # Oops. Which didn't find the executable.
15876     # The splitting of arguments from the executable at a space might have been incorrect,
15877     # since paths with space are more likely in Windows. Give it another try with the whole
15878     # argument.
15879     path="$complete"
15880     arguments="EOL"
15881     new_path="$path"
15882 
15883   windows_path="$new_path"
15884   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15885     unix_path=`$CYGPATH -u "$windows_path"`
15886     new_path="$unix_path"
15887   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15888     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15889     new_path="$unix_path"
15890   fi
15891 
15892 
15893     new_path=`$WHICH "$new_path" 2> /dev/null`
15894     # bat and cmd files are not always considered executable in MSYS causing which
15895     # to not find them
15896     if test "x$new_path" = x \
15897         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15898         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15899       new_path="$path"
15900 
15901   windows_path="$new_path"
15902   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15903     unix_path=`$CYGPATH -u "$windows_path"`
15904     new_path="$unix_path"
15905   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15906     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15907     new_path="$unix_path"
15908   fi
15909 
15910     fi
15911 
15912     if test "x$new_path" = x; then
15913       # It's still not found. Now this is an unrecoverable error.
15914       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15915 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15916       has_space=`$ECHO "$complete" | $GREP " "`
15917       if test "x$has_space" != x; then
15918         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15919 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15920       fi
15921       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15922     fi
15923   fi
15924 
15925   # Now new_path has a complete unix path to the binary
15926   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15927     # Keep paths in /bin as-is, but remove trailing .exe if any
15928     new_path="${new_path/%.exe/}"
15929     # Do not save /bin paths to all_fixpath_prefixes!
15930   else
15931     # Not in mixed or Windows style, start by that.
15932     new_path=`cmd //c echo $new_path`
15933 
15934   input_path="$new_path"
15935   # Check if we need to convert this using DOS-style short mode. If the path
15936   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15937   # take no chances and rewrite it.
15938   # Note: m4 eats our [], so we need to use [ and ] instead.
15939   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15940   if test "x$has_forbidden_chars" != x; then
15941     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15942     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15943   fi
15944 
15945     # Output is in $new_path
15946 
15947   windows_path="$new_path"
15948   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15949     unix_path=`$CYGPATH -u "$windows_path"`
15950     new_path="$unix_path"
15951   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15952     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15953     new_path="$unix_path"
15954   fi
15955 
15956     # remove trailing .exe if any
15957     new_path="${new_path/%.exe/}"
15958 
15959     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15960     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15961   fi
15962 
15963   else
15964     # We're on a posix platform. Hooray! :)
15965     # First separate the path from the arguments. This will split at the first
15966     # space.
15967     complete="$FOUND_MAKE"
15968     path="${complete%% *}"
15969     tmp="$complete EOL"
15970     arguments="${tmp#* }"
15971 
15972     # Cannot rely on the command "which" here since it doesn't always work.
15973     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15974     if test -z "$is_absolute_path"; then
15975       # Path to executable is not absolute. Find it.
15976       IFS_save="$IFS"
15977       IFS=:
15978       for p in $PATH; do
15979         if test -f "$p/$path" && test -x "$p/$path"; then
15980           new_path="$p/$path"
15981           break
15982         fi
15983       done
15984       IFS="$IFS_save"
15985     else
15986       # This is an absolute path, we can use it without further modifications.
15987       new_path="$path"
15988     fi
15989 
15990     if test "x$new_path" = x; then
15991       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15992 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15993       has_space=`$ECHO "$complete" | $GREP " "`
15994       if test "x$has_space" != x; then
15995         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15996 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15997       fi
15998       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15999     fi
16000   fi
16001 
16002   # Now join together the path and the arguments once again
16003   if test "x$arguments" != xEOL; then
16004     new_complete="$new_path ${arguments% *}"
16005   else
16006     new_complete="$new_path"
16007   fi
16008 
16009   if test "x$complete" != "x$new_complete"; then
16010     FOUND_MAKE="$new_complete"
16011     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16012 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16013   fi
16014 
16015         fi
16016       fi
16017     fi
16018   fi
16019 
16020 
16021     if test "x$FOUND_MAKE" = x; then
16022       for ac_prog in make
16023 do
16024   # Extract the first word of "$ac_prog", so it can be a program name with args.
16025 set dummy $ac_prog; ac_word=$2
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16027 $as_echo_n "checking for $ac_word... " >&6; }
16028 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16029   $as_echo_n "(cached) " >&6
16030 else
16031   case $CHECK_MAKE in
16032   [\\/]* | ?:[\\/]*)
16033   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16034   ;;
16035   *)
16036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16037 for as_dir in $PATH
16038 do
16039   IFS=$as_save_IFS
16040   test -z "$as_dir" && as_dir=.
16041     for ac_exec_ext in '' $ac_executable_extensions; do
16042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16043     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16045     break 2
16046   fi
16047 done
16048   done
16049 IFS=$as_save_IFS
16050 
16051   ;;
16052 esac
16053 fi
16054 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16055 if test -n "$CHECK_MAKE"; then
16056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16057 $as_echo "$CHECK_MAKE" >&6; }
16058 else
16059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060 $as_echo "no" >&6; }
16061 fi
16062 
16063 
16064   test -n "$CHECK_MAKE" && break
16065 done
16066 
16067 
16068   MAKE_CANDIDATE=""$CHECK_MAKE""
16069   DESCRIPTION="make in PATH"
16070   if test "x$MAKE_CANDIDATE" != x; then
16071     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16072 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16073     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16074     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16075     if test "x$IS_GNU_MAKE" = x; then
16076       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16077 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16078     else
16079       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16080       if test "x$IS_MODERN_MAKE" = x; then
16081         { $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
16082 $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;}
16083       else
16084         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16085           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16086             MAKE_EXPECTED_ENV='cygwin'
16087           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16088             MAKE_EXPECTED_ENV='msys'
16089           else
16090             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16091           fi
16092           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16093           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16094         else
16095           # Not relevant for non-Windows
16096           IS_MAKE_CORRECT_ENV=true
16097         fi
16098         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16099           { $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
16100 $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;}
16101         else
16102           FOUND_MAKE=$MAKE_CANDIDATE
16103 
16104   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16105 
16106   # First separate the path from the arguments. This will split at the first
16107   # space.
16108   complete="$FOUND_MAKE"
16109   path="${complete%% *}"
16110   tmp="$complete EOL"
16111   arguments="${tmp#* }"
16112 
16113   # Input might be given as Windows format, start by converting to
16114   # unix format.
16115   new_path=`$CYGPATH -u "$path"`
16116 
16117   # Now try to locate executable using which
16118   new_path=`$WHICH "$new_path" 2> /dev/null`
16119   # bat and cmd files are not always considered executable in cygwin causing which
16120   # to not find them
16121   if test "x$new_path" = x \
16122       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16123       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16124     new_path=`$CYGPATH -u "$path"`
16125   fi
16126   if test "x$new_path" = x; then
16127     # Oops. Which didn't find the executable.
16128     # The splitting of arguments from the executable at a space might have been incorrect,
16129     # since paths with space are more likely in Windows. Give it another try with the whole
16130     # argument.
16131     path="$complete"
16132     arguments="EOL"
16133     new_path=`$CYGPATH -u "$path"`
16134     new_path=`$WHICH "$new_path" 2> /dev/null`
16135     # bat and cmd files are not always considered executable in cygwin causing which
16136     # to not find them
16137     if test "x$new_path" = x \
16138         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16139         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16140       new_path=`$CYGPATH -u "$path"`
16141     fi
16142     if test "x$new_path" = x; then
16143       # It's still not found. Now this is an unrecoverable error.
16144       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16145 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16146       has_space=`$ECHO "$complete" | $GREP " "`
16147       if test "x$has_space" != x; then
16148         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16149 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16150       fi
16151       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16152     fi
16153   fi
16154 
16155   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16156   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16157   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16158   # "foo.exe" is OK but "foo" is an error.
16159   #
16160   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16161   # It is also a way to make sure we got the proper file name for the real test later on.
16162   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16163   if test "x$test_shortpath" = x; then
16164     # Short path failed, file does not exist as specified.
16165     # Try adding .exe or .cmd
16166     if test -f "${new_path}.exe"; then
16167       input_to_shortpath="${new_path}.exe"
16168     elif test -f "${new_path}.cmd"; then
16169       input_to_shortpath="${new_path}.cmd"
16170     else
16171       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16172 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16173       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16174 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16175       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16176     fi
16177   else
16178     input_to_shortpath="$new_path"
16179   fi
16180 
16181   # Call helper function which possibly converts this using DOS-style short mode.
16182   # If so, the updated path is stored in $new_path.
16183   new_path="$input_to_shortpath"
16184 
16185   input_path="$input_to_shortpath"
16186   # Check if we need to convert this using DOS-style short mode. If the path
16187   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16188   # take no chances and rewrite it.
16189   # Note: m4 eats our [], so we need to use [ and ] instead.
16190   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16191   if test "x$has_forbidden_chars" != x; then
16192     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16193     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16194     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16195     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16196       # Going to short mode and back again did indeed matter. Since short mode is
16197       # case insensitive, let's make it lowercase to improve readability.
16198       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16199       # Now convert it back to Unix-style (cygpath)
16200       input_path=`$CYGPATH -u "$shortmode_path"`
16201       new_path="$input_path"
16202     fi
16203   fi
16204 
16205   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16206   if test "x$test_cygdrive_prefix" = x; then
16207     # As a simple fix, exclude /usr/bin since it's not a real path.
16208     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16209       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16210       # a path prefixed by /cygdrive for fixpath to work.
16211       new_path="$CYGWIN_ROOT_PATH$input_path"
16212     fi
16213   fi
16214 
16215   # remove trailing .exe if any
16216   new_path="${new_path/%.exe/}"
16217 
16218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16219 
16220   # First separate the path from the arguments. This will split at the first
16221   # space.
16222   complete="$FOUND_MAKE"
16223   path="${complete%% *}"
16224   tmp="$complete EOL"
16225   arguments="${tmp#* }"
16226 
16227   # Input might be given as Windows format, start by converting to
16228   # unix format.
16229   new_path="$path"
16230 
16231   windows_path="$new_path"
16232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16233     unix_path=`$CYGPATH -u "$windows_path"`
16234     new_path="$unix_path"
16235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16237     new_path="$unix_path"
16238   fi
16239 
16240 
16241   # Now try to locate executable using which
16242   new_path=`$WHICH "$new_path" 2> /dev/null`
16243 
16244   if test "x$new_path" = x; then
16245     # Oops. Which didn't find the executable.
16246     # The splitting of arguments from the executable at a space might have been incorrect,
16247     # since paths with space are more likely in Windows. Give it another try with the whole
16248     # argument.
16249     path="$complete"
16250     arguments="EOL"
16251     new_path="$path"
16252 
16253   windows_path="$new_path"
16254   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16255     unix_path=`$CYGPATH -u "$windows_path"`
16256     new_path="$unix_path"
16257   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16258     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16259     new_path="$unix_path"
16260   fi
16261 
16262 
16263     new_path=`$WHICH "$new_path" 2> /dev/null`
16264     # bat and cmd files are not always considered executable in MSYS causing which
16265     # to not find them
16266     if test "x$new_path" = x \
16267         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16268         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16269       new_path="$path"
16270 
16271   windows_path="$new_path"
16272   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16273     unix_path=`$CYGPATH -u "$windows_path"`
16274     new_path="$unix_path"
16275   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16276     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16277     new_path="$unix_path"
16278   fi
16279 
16280     fi
16281 
16282     if test "x$new_path" = x; then
16283       # It's still not found. Now this is an unrecoverable error.
16284       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16285 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16286       has_space=`$ECHO "$complete" | $GREP " "`
16287       if test "x$has_space" != x; then
16288         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16289 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16290       fi
16291       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16292     fi
16293   fi
16294 
16295   # Now new_path has a complete unix path to the binary
16296   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16297     # Keep paths in /bin as-is, but remove trailing .exe if any
16298     new_path="${new_path/%.exe/}"
16299     # Do not save /bin paths to all_fixpath_prefixes!
16300   else
16301     # Not in mixed or Windows style, start by that.
16302     new_path=`cmd //c echo $new_path`
16303 
16304   input_path="$new_path"
16305   # Check if we need to convert this using DOS-style short mode. If the path
16306   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16307   # take no chances and rewrite it.
16308   # Note: m4 eats our [], so we need to use [ and ] instead.
16309   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16310   if test "x$has_forbidden_chars" != x; then
16311     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16312     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16313   fi
16314 
16315     # Output is in $new_path
16316 
16317   windows_path="$new_path"
16318   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16319     unix_path=`$CYGPATH -u "$windows_path"`
16320     new_path="$unix_path"
16321   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16322     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16323     new_path="$unix_path"
16324   fi
16325 
16326     # remove trailing .exe if any
16327     new_path="${new_path/%.exe/}"
16328 
16329     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16330     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16331   fi
16332 
16333   else
16334     # We're on a posix platform. Hooray! :)
16335     # First separate the path from the arguments. This will split at the first
16336     # space.
16337     complete="$FOUND_MAKE"
16338     path="${complete%% *}"
16339     tmp="$complete EOL"
16340     arguments="${tmp#* }"
16341 
16342     # Cannot rely on the command "which" here since it doesn't always work.
16343     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16344     if test -z "$is_absolute_path"; then
16345       # Path to executable is not absolute. Find it.
16346       IFS_save="$IFS"
16347       IFS=:
16348       for p in $PATH; do
16349         if test -f "$p/$path" && test -x "$p/$path"; then
16350           new_path="$p/$path"
16351           break
16352         fi
16353       done
16354       IFS="$IFS_save"
16355     else
16356       # This is an absolute path, we can use it without further modifications.
16357       new_path="$path"
16358     fi
16359 
16360     if test "x$new_path" = x; then
16361       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16362 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16363       has_space=`$ECHO "$complete" | $GREP " "`
16364       if test "x$has_space" != x; then
16365         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16366 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16367       fi
16368       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16369     fi
16370   fi
16371 
16372   # Now join together the path and the arguments once again
16373   if test "x$arguments" != xEOL; then
16374     new_complete="$new_path ${arguments% *}"
16375   else
16376     new_complete="$new_path"
16377   fi
16378 
16379   if test "x$complete" != "x$new_complete"; then
16380     FOUND_MAKE="$new_complete"
16381     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16382 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16383   fi
16384 
16385         fi
16386       fi
16387     fi
16388   fi
16389 
16390     fi
16391 
16392     if test "x$FOUND_MAKE" = x; then
16393       if test "x$TOOLCHAIN_PATH" != x; then
16394         # We have a toolchain path, check that as well before giving up.
16395         OLD_PATH=$PATH
16396         PATH=$TOOLCHAIN_PATH:$PATH
16397         for ac_prog in gmake
16398 do
16399   # Extract the first word of "$ac_prog", so it can be a program name with args.
16400 set dummy $ac_prog; ac_word=$2
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16402 $as_echo_n "checking for $ac_word... " >&6; }
16403 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16404   $as_echo_n "(cached) " >&6
16405 else
16406   case $CHECK_TOOLSDIR_GMAKE in
16407   [\\/]* | ?:[\\/]*)
16408   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16409   ;;
16410   *)
16411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16412 for as_dir in $PATH
16413 do
16414   IFS=$as_save_IFS
16415   test -z "$as_dir" && as_dir=.
16416     for ac_exec_ext in '' $ac_executable_extensions; do
16417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16418     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16420     break 2
16421   fi
16422 done
16423   done
16424 IFS=$as_save_IFS
16425 
16426   ;;
16427 esac
16428 fi
16429 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16430 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16432 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16433 else
16434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16435 $as_echo "no" >&6; }
16436 fi
16437 
16438 
16439   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16440 done
16441 
16442 
16443   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16444   DESCRIPTION="gmake in tools-dir"
16445   if test "x$MAKE_CANDIDATE" != x; then
16446     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16447 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16448     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16449     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16450     if test "x$IS_GNU_MAKE" = x; then
16451       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16452 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16453     else
16454       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16455       if test "x$IS_MODERN_MAKE" = x; then
16456         { $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
16457 $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;}
16458       else
16459         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16460           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16461             MAKE_EXPECTED_ENV='cygwin'
16462           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16463             MAKE_EXPECTED_ENV='msys'
16464           else
16465             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16466           fi
16467           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16468           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16469         else
16470           # Not relevant for non-Windows
16471           IS_MAKE_CORRECT_ENV=true
16472         fi
16473         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16474           { $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
16475 $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;}
16476         else
16477           FOUND_MAKE=$MAKE_CANDIDATE
16478 
16479   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16480 
16481   # First separate the path from the arguments. This will split at the first
16482   # space.
16483   complete="$FOUND_MAKE"
16484   path="${complete%% *}"
16485   tmp="$complete EOL"
16486   arguments="${tmp#* }"
16487 
16488   # Input might be given as Windows format, start by converting to
16489   # unix format.
16490   new_path=`$CYGPATH -u "$path"`
16491 
16492   # Now try to locate executable using which
16493   new_path=`$WHICH "$new_path" 2> /dev/null`
16494   # bat and cmd files are not always considered executable in cygwin causing which
16495   # to not find them
16496   if test "x$new_path" = x \
16497       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16498       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16499     new_path=`$CYGPATH -u "$path"`
16500   fi
16501   if test "x$new_path" = x; then
16502     # Oops. Which didn't find the executable.
16503     # The splitting of arguments from the executable at a space might have been incorrect,
16504     # since paths with space are more likely in Windows. Give it another try with the whole
16505     # argument.
16506     path="$complete"
16507     arguments="EOL"
16508     new_path=`$CYGPATH -u "$path"`
16509     new_path=`$WHICH "$new_path" 2> /dev/null`
16510     # bat and cmd files are not always considered executable in cygwin causing which
16511     # to not find them
16512     if test "x$new_path" = x \
16513         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16514         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16515       new_path=`$CYGPATH -u "$path"`
16516     fi
16517     if test "x$new_path" = x; then
16518       # It's still not found. Now this is an unrecoverable error.
16519       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16520 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16521       has_space=`$ECHO "$complete" | $GREP " "`
16522       if test "x$has_space" != x; then
16523         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16525       fi
16526       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16527     fi
16528   fi
16529 
16530   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16531   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16532   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16533   # "foo.exe" is OK but "foo" is an error.
16534   #
16535   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16536   # It is also a way to make sure we got the proper file name for the real test later on.
16537   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16538   if test "x$test_shortpath" = x; then
16539     # Short path failed, file does not exist as specified.
16540     # Try adding .exe or .cmd
16541     if test -f "${new_path}.exe"; then
16542       input_to_shortpath="${new_path}.exe"
16543     elif test -f "${new_path}.cmd"; then
16544       input_to_shortpath="${new_path}.cmd"
16545     else
16546       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16547 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16548       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16549 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16550       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16551     fi
16552   else
16553     input_to_shortpath="$new_path"
16554   fi
16555 
16556   # Call helper function which possibly converts this using DOS-style short mode.
16557   # If so, the updated path is stored in $new_path.
16558   new_path="$input_to_shortpath"
16559 
16560   input_path="$input_to_shortpath"
16561   # Check if we need to convert this using DOS-style short mode. If the path
16562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16563   # take no chances and rewrite it.
16564   # Note: m4 eats our [], so we need to use [ and ] instead.
16565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16566   if test "x$has_forbidden_chars" != x; then
16567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16568     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16569     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16570     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16571       # Going to short mode and back again did indeed matter. Since short mode is
16572       # case insensitive, let's make it lowercase to improve readability.
16573       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16574       # Now convert it back to Unix-style (cygpath)
16575       input_path=`$CYGPATH -u "$shortmode_path"`
16576       new_path="$input_path"
16577     fi
16578   fi
16579 
16580   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16581   if test "x$test_cygdrive_prefix" = x; then
16582     # As a simple fix, exclude /usr/bin since it's not a real path.
16583     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16584       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16585       # a path prefixed by /cygdrive for fixpath to work.
16586       new_path="$CYGWIN_ROOT_PATH$input_path"
16587     fi
16588   fi
16589 
16590   # remove trailing .exe if any
16591   new_path="${new_path/%.exe/}"
16592 
16593   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16594 
16595   # First separate the path from the arguments. This will split at the first
16596   # space.
16597   complete="$FOUND_MAKE"
16598   path="${complete%% *}"
16599   tmp="$complete EOL"
16600   arguments="${tmp#* }"
16601 
16602   # Input might be given as Windows format, start by converting to
16603   # unix format.
16604   new_path="$path"
16605 
16606   windows_path="$new_path"
16607   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16608     unix_path=`$CYGPATH -u "$windows_path"`
16609     new_path="$unix_path"
16610   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16611     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16612     new_path="$unix_path"
16613   fi
16614 
16615 
16616   # Now try to locate executable using which
16617   new_path=`$WHICH "$new_path" 2> /dev/null`
16618 
16619   if test "x$new_path" = x; then
16620     # Oops. Which didn't find the executable.
16621     # The splitting of arguments from the executable at a space might have been incorrect,
16622     # since paths with space are more likely in Windows. Give it another try with the whole
16623     # argument.
16624     path="$complete"
16625     arguments="EOL"
16626     new_path="$path"
16627 
16628   windows_path="$new_path"
16629   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16630     unix_path=`$CYGPATH -u "$windows_path"`
16631     new_path="$unix_path"
16632   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16633     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16634     new_path="$unix_path"
16635   fi
16636 
16637 
16638     new_path=`$WHICH "$new_path" 2> /dev/null`
16639     # bat and cmd files are not always considered executable in MSYS causing which
16640     # to not find them
16641     if test "x$new_path" = x \
16642         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16643         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16644       new_path="$path"
16645 
16646   windows_path="$new_path"
16647   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16648     unix_path=`$CYGPATH -u "$windows_path"`
16649     new_path="$unix_path"
16650   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16651     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16652     new_path="$unix_path"
16653   fi
16654 
16655     fi
16656 
16657     if test "x$new_path" = x; then
16658       # It's still not found. Now this is an unrecoverable error.
16659       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16660 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16661       has_space=`$ECHO "$complete" | $GREP " "`
16662       if test "x$has_space" != x; then
16663         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16664 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16665       fi
16666       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16667     fi
16668   fi
16669 
16670   # Now new_path has a complete unix path to the binary
16671   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16672     # Keep paths in /bin as-is, but remove trailing .exe if any
16673     new_path="${new_path/%.exe/}"
16674     # Do not save /bin paths to all_fixpath_prefixes!
16675   else
16676     # Not in mixed or Windows style, start by that.
16677     new_path=`cmd //c echo $new_path`
16678 
16679   input_path="$new_path"
16680   # Check if we need to convert this using DOS-style short mode. If the path
16681   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16682   # take no chances and rewrite it.
16683   # Note: m4 eats our [], so we need to use [ and ] instead.
16684   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16685   if test "x$has_forbidden_chars" != x; then
16686     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16687     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16688   fi
16689 
16690     # Output is in $new_path
16691 
16692   windows_path="$new_path"
16693   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16694     unix_path=`$CYGPATH -u "$windows_path"`
16695     new_path="$unix_path"
16696   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16697     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16698     new_path="$unix_path"
16699   fi
16700 
16701     # remove trailing .exe if any
16702     new_path="${new_path/%.exe/}"
16703 
16704     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16705     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16706   fi
16707 
16708   else
16709     # We're on a posix platform. Hooray! :)
16710     # First separate the path from the arguments. This will split at the first
16711     # space.
16712     complete="$FOUND_MAKE"
16713     path="${complete%% *}"
16714     tmp="$complete EOL"
16715     arguments="${tmp#* }"
16716 
16717     # Cannot rely on the command "which" here since it doesn't always work.
16718     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16719     if test -z "$is_absolute_path"; then
16720       # Path to executable is not absolute. Find it.
16721       IFS_save="$IFS"
16722       IFS=:
16723       for p in $PATH; do
16724         if test -f "$p/$path" && test -x "$p/$path"; then
16725           new_path="$p/$path"
16726           break
16727         fi
16728       done
16729       IFS="$IFS_save"
16730     else
16731       # This is an absolute path, we can use it without further modifications.
16732       new_path="$path"
16733     fi
16734 
16735     if test "x$new_path" = x; then
16736       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16737 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16738       has_space=`$ECHO "$complete" | $GREP " "`
16739       if test "x$has_space" != x; then
16740         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16741 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16742       fi
16743       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16744     fi
16745   fi
16746 
16747   # Now join together the path and the arguments once again
16748   if test "x$arguments" != xEOL; then
16749     new_complete="$new_path ${arguments% *}"
16750   else
16751     new_complete="$new_path"
16752   fi
16753 
16754   if test "x$complete" != "x$new_complete"; then
16755     FOUND_MAKE="$new_complete"
16756     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16757 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16758   fi
16759 
16760         fi
16761       fi
16762     fi
16763   fi
16764 
16765         if test "x$FOUND_MAKE" = x; then
16766           for ac_prog in make
16767 do
16768   # Extract the first word of "$ac_prog", so it can be a program name with args.
16769 set dummy $ac_prog; ac_word=$2
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16771 $as_echo_n "checking for $ac_word... " >&6; }
16772 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16773   $as_echo_n "(cached) " >&6
16774 else
16775   case $CHECK_TOOLSDIR_MAKE in
16776   [\\/]* | ?:[\\/]*)
16777   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16778   ;;
16779   *)
16780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16782 do
16783   IFS=$as_save_IFS
16784   test -z "$as_dir" && as_dir=.
16785     for ac_exec_ext in '' $ac_executable_extensions; do
16786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16787     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16789     break 2
16790   fi
16791 done
16792   done
16793 IFS=$as_save_IFS
16794 
16795   ;;
16796 esac
16797 fi
16798 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16799 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16801 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16802 else
16803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16804 $as_echo "no" >&6; }
16805 fi
16806 
16807 
16808   test -n "$CHECK_TOOLSDIR_MAKE" && break
16809 done
16810 
16811 
16812   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16813   DESCRIPTION="make in tools-dir"
16814   if test "x$MAKE_CANDIDATE" != x; then
16815     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16816 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16817     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16818     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16819     if test "x$IS_GNU_MAKE" = x; then
16820       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16821 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16822     else
16823       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16824       if test "x$IS_MODERN_MAKE" = x; then
16825         { $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
16826 $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;}
16827       else
16828         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16829           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16830             MAKE_EXPECTED_ENV='cygwin'
16831           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16832             MAKE_EXPECTED_ENV='msys'
16833           else
16834             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16835           fi
16836           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16837           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16838         else
16839           # Not relevant for non-Windows
16840           IS_MAKE_CORRECT_ENV=true
16841         fi
16842         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16843           { $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
16844 $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;}
16845         else
16846           FOUND_MAKE=$MAKE_CANDIDATE
16847 
16848   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16849 
16850   # First separate the path from the arguments. This will split at the first
16851   # space.
16852   complete="$FOUND_MAKE"
16853   path="${complete%% *}"
16854   tmp="$complete EOL"
16855   arguments="${tmp#* }"
16856 
16857   # Input might be given as Windows format, start by converting to
16858   # unix format.
16859   new_path=`$CYGPATH -u "$path"`
16860 
16861   # Now try to locate executable using which
16862   new_path=`$WHICH "$new_path" 2> /dev/null`
16863   # bat and cmd files are not always considered executable in cygwin causing which
16864   # to not find them
16865   if test "x$new_path" = x \
16866       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16867       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16868     new_path=`$CYGPATH -u "$path"`
16869   fi
16870   if test "x$new_path" = x; then
16871     # Oops. Which didn't find the executable.
16872     # The splitting of arguments from the executable at a space might have been incorrect,
16873     # since paths with space are more likely in Windows. Give it another try with the whole
16874     # argument.
16875     path="$complete"
16876     arguments="EOL"
16877     new_path=`$CYGPATH -u "$path"`
16878     new_path=`$WHICH "$new_path" 2> /dev/null`
16879     # bat and cmd files are not always considered executable in cygwin causing which
16880     # to not find them
16881     if test "x$new_path" = x \
16882         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16883         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16884       new_path=`$CYGPATH -u "$path"`
16885     fi
16886     if test "x$new_path" = x; then
16887       # It's still not found. Now this is an unrecoverable error.
16888       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16889 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16890       has_space=`$ECHO "$complete" | $GREP " "`
16891       if test "x$has_space" != x; then
16892         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16893 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16894       fi
16895       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16896     fi
16897   fi
16898 
16899   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16900   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16901   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16902   # "foo.exe" is OK but "foo" is an error.
16903   #
16904   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16905   # It is also a way to make sure we got the proper file name for the real test later on.
16906   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16907   if test "x$test_shortpath" = x; then
16908     # Short path failed, file does not exist as specified.
16909     # Try adding .exe or .cmd
16910     if test -f "${new_path}.exe"; then
16911       input_to_shortpath="${new_path}.exe"
16912     elif test -f "${new_path}.cmd"; then
16913       input_to_shortpath="${new_path}.cmd"
16914     else
16915       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16916 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16917       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16918 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16919       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16920     fi
16921   else
16922     input_to_shortpath="$new_path"
16923   fi
16924 
16925   # Call helper function which possibly converts this using DOS-style short mode.
16926   # If so, the updated path is stored in $new_path.
16927   new_path="$input_to_shortpath"
16928 
16929   input_path="$input_to_shortpath"
16930   # Check if we need to convert this using DOS-style short mode. If the path
16931   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16932   # take no chances and rewrite it.
16933   # Note: m4 eats our [], so we need to use [ and ] instead.
16934   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16935   if test "x$has_forbidden_chars" != x; then
16936     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16937     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16938     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16939     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16940       # Going to short mode and back again did indeed matter. Since short mode is
16941       # case insensitive, let's make it lowercase to improve readability.
16942       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16943       # Now convert it back to Unix-style (cygpath)
16944       input_path=`$CYGPATH -u "$shortmode_path"`
16945       new_path="$input_path"
16946     fi
16947   fi
16948 
16949   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16950   if test "x$test_cygdrive_prefix" = x; then
16951     # As a simple fix, exclude /usr/bin since it's not a real path.
16952     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16953       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16954       # a path prefixed by /cygdrive for fixpath to work.
16955       new_path="$CYGWIN_ROOT_PATH$input_path"
16956     fi
16957   fi
16958 
16959   # remove trailing .exe if any
16960   new_path="${new_path/%.exe/}"
16961 
16962   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16963 
16964   # First separate the path from the arguments. This will split at the first
16965   # space.
16966   complete="$FOUND_MAKE"
16967   path="${complete%% *}"
16968   tmp="$complete EOL"
16969   arguments="${tmp#* }"
16970 
16971   # Input might be given as Windows format, start by converting to
16972   # unix format.
16973   new_path="$path"
16974 
16975   windows_path="$new_path"
16976   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16977     unix_path=`$CYGPATH -u "$windows_path"`
16978     new_path="$unix_path"
16979   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16980     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16981     new_path="$unix_path"
16982   fi
16983 
16984 
16985   # Now try to locate executable using which
16986   new_path=`$WHICH "$new_path" 2> /dev/null`
16987 
16988   if test "x$new_path" = x; then
16989     # Oops. Which didn't find the executable.
16990     # The splitting of arguments from the executable at a space might have been incorrect,
16991     # since paths with space are more likely in Windows. Give it another try with the whole
16992     # argument.
16993     path="$complete"
16994     arguments="EOL"
16995     new_path="$path"
16996 
16997   windows_path="$new_path"
16998   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16999     unix_path=`$CYGPATH -u "$windows_path"`
17000     new_path="$unix_path"
17001   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17002     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17003     new_path="$unix_path"
17004   fi
17005 
17006 
17007     new_path=`$WHICH "$new_path" 2> /dev/null`
17008     # bat and cmd files are not always considered executable in MSYS causing which
17009     # to not find them
17010     if test "x$new_path" = x \
17011         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17012         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17013       new_path="$path"
17014 
17015   windows_path="$new_path"
17016   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17017     unix_path=`$CYGPATH -u "$windows_path"`
17018     new_path="$unix_path"
17019   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17020     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17021     new_path="$unix_path"
17022   fi
17023 
17024     fi
17025 
17026     if test "x$new_path" = x; then
17027       # It's still not found. Now this is an unrecoverable error.
17028       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17029 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17030       has_space=`$ECHO "$complete" | $GREP " "`
17031       if test "x$has_space" != x; then
17032         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17033 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17034       fi
17035       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17036     fi
17037   fi
17038 
17039   # Now new_path has a complete unix path to the binary
17040   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17041     # Keep paths in /bin as-is, but remove trailing .exe if any
17042     new_path="${new_path/%.exe/}"
17043     # Do not save /bin paths to all_fixpath_prefixes!
17044   else
17045     # Not in mixed or Windows style, start by that.
17046     new_path=`cmd //c echo $new_path`
17047 
17048   input_path="$new_path"
17049   # Check if we need to convert this using DOS-style short mode. If the path
17050   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17051   # take no chances and rewrite it.
17052   # Note: m4 eats our [], so we need to use [ and ] instead.
17053   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17054   if test "x$has_forbidden_chars" != x; then
17055     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17056     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17057   fi
17058 
17059     # Output is in $new_path
17060 
17061   windows_path="$new_path"
17062   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17063     unix_path=`$CYGPATH -u "$windows_path"`
17064     new_path="$unix_path"
17065   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17066     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17067     new_path="$unix_path"
17068   fi
17069 
17070     # remove trailing .exe if any
17071     new_path="${new_path/%.exe/}"
17072 
17073     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17074     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17075   fi
17076 
17077   else
17078     # We're on a posix platform. Hooray! :)
17079     # First separate the path from the arguments. This will split at the first
17080     # space.
17081     complete="$FOUND_MAKE"
17082     path="${complete%% *}"
17083     tmp="$complete EOL"
17084     arguments="${tmp#* }"
17085 
17086     # Cannot rely on the command "which" here since it doesn't always work.
17087     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17088     if test -z "$is_absolute_path"; then
17089       # Path to executable is not absolute. Find it.
17090       IFS_save="$IFS"
17091       IFS=:
17092       for p in $PATH; do
17093         if test -f "$p/$path" && test -x "$p/$path"; then
17094           new_path="$p/$path"
17095           break
17096         fi
17097       done
17098       IFS="$IFS_save"
17099     else
17100       # This is an absolute path, we can use it without further modifications.
17101       new_path="$path"
17102     fi
17103 
17104     if test "x$new_path" = x; then
17105       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17106 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17107       has_space=`$ECHO "$complete" | $GREP " "`
17108       if test "x$has_space" != x; then
17109         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17110 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17111       fi
17112       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17113     fi
17114   fi
17115 
17116   # Now join together the path and the arguments once again
17117   if test "x$arguments" != xEOL; then
17118     new_complete="$new_path ${arguments% *}"
17119   else
17120     new_complete="$new_path"
17121   fi
17122 
17123   if test "x$complete" != "x$new_complete"; then
17124     FOUND_MAKE="$new_complete"
17125     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17126 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17127   fi
17128 
17129         fi
17130       fi
17131     fi
17132   fi
17133 
17134         fi
17135         PATH=$OLD_PATH
17136       fi
17137     fi
17138 
17139     if test "x$FOUND_MAKE" = x; then
17140       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
17141     fi
17142   fi
17143 
17144   MAKE=$FOUND_MAKE
17145 
17146   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17147 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17148 
17149 
17150 
17151   # Test if find supports -delete
17152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17153 $as_echo_n "checking if find supports -delete... " >&6; }
17154   FIND_DELETE="-delete"
17155 
17156   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17157 
17158   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17159 
17160   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17161   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17162     # No, it does not.
17163     rm $DELETEDIR/TestIfFindSupportsDelete
17164     FIND_DELETE="-exec rm \{\} \+"
17165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166 $as_echo "no" >&6; }
17167   else
17168     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17169 $as_echo "yes" >&6; }
17170   fi
17171   rmdir $DELETEDIR
17172 
17173 
17174 
17175   # These tools might not be installed by default,
17176   # need hint on how to install them.
17177 
17178 
17179 
17180   # Publish this variable in the help.
17181 
17182 
17183   if test "x$UNZIP" = x; then
17184     # The variable is not set by user, try to locate tool using the code snippet
17185     for ac_prog in unzip
17186 do
17187   # Extract the first word of "$ac_prog", so it can be a program name with args.
17188 set dummy $ac_prog; ac_word=$2
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17190 $as_echo_n "checking for $ac_word... " >&6; }
17191 if ${ac_cv_path_UNZIP+:} false; then :
17192   $as_echo_n "(cached) " >&6
17193 else
17194   case $UNZIP in
17195   [\\/]* | ?:[\\/]*)
17196   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17197   ;;
17198   *)
17199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in $PATH
17201 do
17202   IFS=$as_save_IFS
17203   test -z "$as_dir" && as_dir=.
17204     for ac_exec_ext in '' $ac_executable_extensions; do
17205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17206     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17208     break 2
17209   fi
17210 done
17211   done
17212 IFS=$as_save_IFS
17213 
17214   ;;
17215 esac
17216 fi
17217 UNZIP=$ac_cv_path_UNZIP
17218 if test -n "$UNZIP"; then
17219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17220 $as_echo "$UNZIP" >&6; }
17221 else
17222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17223 $as_echo "no" >&6; }
17224 fi
17225 
17226 
17227   test -n "$UNZIP" && break
17228 done
17229 
17230   else
17231     # The variable is set, but is it from the command line or the environment?
17232 
17233     # Try to remove the string !UNZIP! from our list.
17234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17236       # If it failed, the variable was not from the command line. Ignore it,
17237       # but warn the user (except for BASH, which is always set by the calling BASH).
17238       if test "xUNZIP" != xBASH; then
17239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17240 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17241       fi
17242       # Try to locate tool using the code snippet
17243       for ac_prog in unzip
17244 do
17245   # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 $as_echo_n "checking for $ac_word... " >&6; }
17249 if ${ac_cv_path_UNZIP+:} false; then :
17250   $as_echo_n "(cached) " >&6
17251 else
17252   case $UNZIP in
17253   [\\/]* | ?:[\\/]*)
17254   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17255   ;;
17256   *)
17257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17258 for as_dir in $PATH
17259 do
17260   IFS=$as_save_IFS
17261   test -z "$as_dir" && as_dir=.
17262     for ac_exec_ext in '' $ac_executable_extensions; do
17263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17264     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17266     break 2
17267   fi
17268 done
17269   done
17270 IFS=$as_save_IFS
17271 
17272   ;;
17273 esac
17274 fi
17275 UNZIP=$ac_cv_path_UNZIP
17276 if test -n "$UNZIP"; then
17277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17278 $as_echo "$UNZIP" >&6; }
17279 else
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17281 $as_echo "no" >&6; }
17282 fi
17283 
17284 
17285   test -n "$UNZIP" && break
17286 done
17287 
17288     else
17289       # If it succeeded, then it was overridden by the user. We will use it
17290       # for the tool.
17291 
17292       # First remove it from the list of overridden variables, so we can test
17293       # for unknown variables in the end.
17294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17295 
17296       # Check if the provided tool contains a complete path.
17297       tool_specified="$UNZIP"
17298       tool_basename="${tool_specified##*/}"
17299       if test "x$tool_basename" = "x$tool_specified"; then
17300         # A command without a complete path is provided, search $PATH.
17301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17302 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17303         # Extract the first word of "$tool_basename", so it can be a program name with args.
17304 set dummy $tool_basename; ac_word=$2
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17306 $as_echo_n "checking for $ac_word... " >&6; }
17307 if ${ac_cv_path_UNZIP+:} false; then :
17308   $as_echo_n "(cached) " >&6
17309 else
17310   case $UNZIP in
17311   [\\/]* | ?:[\\/]*)
17312   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17313   ;;
17314   *)
17315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17316 for as_dir in $PATH
17317 do
17318   IFS=$as_save_IFS
17319   test -z "$as_dir" && as_dir=.
17320     for ac_exec_ext in '' $ac_executable_extensions; do
17321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17322     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17324     break 2
17325   fi
17326 done
17327   done
17328 IFS=$as_save_IFS
17329 
17330   ;;
17331 esac
17332 fi
17333 UNZIP=$ac_cv_path_UNZIP
17334 if test -n "$UNZIP"; then
17335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17336 $as_echo "$UNZIP" >&6; }
17337 else
17338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 fi
17341 
17342 
17343         if test "x$UNZIP" = x; then
17344           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17345         fi
17346       else
17347         # Otherwise we believe it is a complete path. Use it as it is.
17348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17349 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17351 $as_echo_n "checking for UNZIP... " >&6; }
17352         if test ! -x "$tool_specified"; then
17353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17354 $as_echo "not found" >&6; }
17355           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17356         fi
17357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17358 $as_echo "$tool_specified" >&6; }
17359       fi
17360     fi
17361   fi
17362 
17363 
17364 
17365   if test "x$UNZIP" = x; then
17366     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17367   fi
17368 
17369 
17370 
17371 
17372 
17373   # Publish this variable in the help.
17374 
17375 
17376   if test "x$ZIP" = x; then
17377     # The variable is not set by user, try to locate tool using the code snippet
17378     for ac_prog in zip
17379 do
17380   # Extract the first word of "$ac_prog", so it can be a program name with args.
17381 set dummy $ac_prog; ac_word=$2
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17383 $as_echo_n "checking for $ac_word... " >&6; }
17384 if ${ac_cv_path_ZIP+:} false; then :
17385   $as_echo_n "(cached) " >&6
17386 else
17387   case $ZIP in
17388   [\\/]* | ?:[\\/]*)
17389   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17390   ;;
17391   *)
17392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17393 for as_dir in $PATH
17394 do
17395   IFS=$as_save_IFS
17396   test -z "$as_dir" && as_dir=.
17397     for ac_exec_ext in '' $ac_executable_extensions; do
17398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17399     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17401     break 2
17402   fi
17403 done
17404   done
17405 IFS=$as_save_IFS
17406 
17407   ;;
17408 esac
17409 fi
17410 ZIP=$ac_cv_path_ZIP
17411 if test -n "$ZIP"; then
17412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17413 $as_echo "$ZIP" >&6; }
17414 else
17415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17416 $as_echo "no" >&6; }
17417 fi
17418 
17419 
17420   test -n "$ZIP" && break
17421 done
17422 
17423   else
17424     # The variable is set, but is it from the command line or the environment?
17425 
17426     # Try to remove the string !ZIP! from our list.
17427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17429       # If it failed, the variable was not from the command line. Ignore it,
17430       # but warn the user (except for BASH, which is always set by the calling BASH).
17431       if test "xZIP" != xBASH; then
17432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17433 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17434       fi
17435       # Try to locate tool using the code snippet
17436       for ac_prog in zip
17437 do
17438   # Extract the first word of "$ac_prog", so it can be a program name with args.
17439 set dummy $ac_prog; ac_word=$2
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17441 $as_echo_n "checking for $ac_word... " >&6; }
17442 if ${ac_cv_path_ZIP+:} false; then :
17443   $as_echo_n "(cached) " >&6
17444 else
17445   case $ZIP in
17446   [\\/]* | ?:[\\/]*)
17447   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17448   ;;
17449   *)
17450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17451 for as_dir in $PATH
17452 do
17453   IFS=$as_save_IFS
17454   test -z "$as_dir" && as_dir=.
17455     for ac_exec_ext in '' $ac_executable_extensions; do
17456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17457     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17459     break 2
17460   fi
17461 done
17462   done
17463 IFS=$as_save_IFS
17464 
17465   ;;
17466 esac
17467 fi
17468 ZIP=$ac_cv_path_ZIP
17469 if test -n "$ZIP"; then
17470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17471 $as_echo "$ZIP" >&6; }
17472 else
17473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 $as_echo "no" >&6; }
17475 fi
17476 
17477 
17478   test -n "$ZIP" && break
17479 done
17480 
17481     else
17482       # If it succeeded, then it was overridden by the user. We will use it
17483       # for the tool.
17484 
17485       # First remove it from the list of overridden variables, so we can test
17486       # for unknown variables in the end.
17487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17488 
17489       # Check if the provided tool contains a complete path.
17490       tool_specified="$ZIP"
17491       tool_basename="${tool_specified##*/}"
17492       if test "x$tool_basename" = "x$tool_specified"; then
17493         # A command without a complete path is provided, search $PATH.
17494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17495 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17496         # Extract the first word of "$tool_basename", so it can be a program name with args.
17497 set dummy $tool_basename; ac_word=$2
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17499 $as_echo_n "checking for $ac_word... " >&6; }
17500 if ${ac_cv_path_ZIP+:} false; then :
17501   $as_echo_n "(cached) " >&6
17502 else
17503   case $ZIP in
17504   [\\/]* | ?:[\\/]*)
17505   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17506   ;;
17507   *)
17508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509 for as_dir in $PATH
17510 do
17511   IFS=$as_save_IFS
17512   test -z "$as_dir" && as_dir=.
17513     for ac_exec_ext in '' $ac_executable_extensions; do
17514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17515     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17517     break 2
17518   fi
17519 done
17520   done
17521 IFS=$as_save_IFS
17522 
17523   ;;
17524 esac
17525 fi
17526 ZIP=$ac_cv_path_ZIP
17527 if test -n "$ZIP"; then
17528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17529 $as_echo "$ZIP" >&6; }
17530 else
17531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17533 fi
17534 
17535 
17536         if test "x$ZIP" = x; then
17537           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17538         fi
17539       else
17540         # Otherwise we believe it is a complete path. Use it as it is.
17541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17542 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17544 $as_echo_n "checking for ZIP... " >&6; }
17545         if test ! -x "$tool_specified"; then
17546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17547 $as_echo "not found" >&6; }
17548           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17549         fi
17550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17551 $as_echo "$tool_specified" >&6; }
17552       fi
17553     fi
17554   fi
17555 
17556 
17557 
17558   if test "x$ZIP" = x; then
17559     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17560   fi
17561 
17562 
17563 
17564   # Non-required basic tools
17565 
17566 
17567 
17568   # Publish this variable in the help.
17569 
17570 
17571   if test "x$LDD" = x; then
17572     # The variable is not set by user, try to locate tool using the code snippet
17573     for ac_prog in ldd
17574 do
17575   # Extract the first word of "$ac_prog", so it can be a program name with args.
17576 set dummy $ac_prog; ac_word=$2
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17578 $as_echo_n "checking for $ac_word... " >&6; }
17579 if ${ac_cv_path_LDD+:} false; then :
17580   $as_echo_n "(cached) " >&6
17581 else
17582   case $LDD in
17583   [\\/]* | ?:[\\/]*)
17584   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17585   ;;
17586   *)
17587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 for as_dir in $PATH
17589 do
17590   IFS=$as_save_IFS
17591   test -z "$as_dir" && as_dir=.
17592     for ac_exec_ext in '' $ac_executable_extensions; do
17593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17594     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17596     break 2
17597   fi
17598 done
17599   done
17600 IFS=$as_save_IFS
17601 
17602   ;;
17603 esac
17604 fi
17605 LDD=$ac_cv_path_LDD
17606 if test -n "$LDD"; then
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17608 $as_echo "$LDD" >&6; }
17609 else
17610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17611 $as_echo "no" >&6; }
17612 fi
17613 
17614 
17615   test -n "$LDD" && break
17616 done
17617 
17618   else
17619     # The variable is set, but is it from the command line or the environment?
17620 
17621     # Try to remove the string !LDD! from our list.
17622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17624       # If it failed, the variable was not from the command line. Ignore it,
17625       # but warn the user (except for BASH, which is always set by the calling BASH).
17626       if test "xLDD" != xBASH; then
17627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17628 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17629       fi
17630       # Try to locate tool using the code snippet
17631       for ac_prog in ldd
17632 do
17633   # Extract the first word of "$ac_prog", so it can be a program name with args.
17634 set dummy $ac_prog; ac_word=$2
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17636 $as_echo_n "checking for $ac_word... " >&6; }
17637 if ${ac_cv_path_LDD+:} false; then :
17638   $as_echo_n "(cached) " >&6
17639 else
17640   case $LDD in
17641   [\\/]* | ?:[\\/]*)
17642   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17643   ;;
17644   *)
17645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17646 for as_dir in $PATH
17647 do
17648   IFS=$as_save_IFS
17649   test -z "$as_dir" && as_dir=.
17650     for ac_exec_ext in '' $ac_executable_extensions; do
17651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17652     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17654     break 2
17655   fi
17656 done
17657   done
17658 IFS=$as_save_IFS
17659 
17660   ;;
17661 esac
17662 fi
17663 LDD=$ac_cv_path_LDD
17664 if test -n "$LDD"; then
17665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17666 $as_echo "$LDD" >&6; }
17667 else
17668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669 $as_echo "no" >&6; }
17670 fi
17671 
17672 
17673   test -n "$LDD" && break
17674 done
17675 
17676     else
17677       # If it succeeded, then it was overridden by the user. We will use it
17678       # for the tool.
17679 
17680       # First remove it from the list of overridden variables, so we can test
17681       # for unknown variables in the end.
17682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17683 
17684       # Check if the provided tool contains a complete path.
17685       tool_specified="$LDD"
17686       tool_basename="${tool_specified##*/}"
17687       if test "x$tool_basename" = "x$tool_specified"; then
17688         # A command without a complete path is provided, search $PATH.
17689         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17690 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17691         # Extract the first word of "$tool_basename", so it can be a program name with args.
17692 set dummy $tool_basename; ac_word=$2
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17694 $as_echo_n "checking for $ac_word... " >&6; }
17695 if ${ac_cv_path_LDD+:} false; then :
17696   $as_echo_n "(cached) " >&6
17697 else
17698   case $LDD in
17699   [\\/]* | ?:[\\/]*)
17700   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17701   ;;
17702   *)
17703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17704 for as_dir in $PATH
17705 do
17706   IFS=$as_save_IFS
17707   test -z "$as_dir" && as_dir=.
17708     for ac_exec_ext in '' $ac_executable_extensions; do
17709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17710     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17712     break 2
17713   fi
17714 done
17715   done
17716 IFS=$as_save_IFS
17717 
17718   ;;
17719 esac
17720 fi
17721 LDD=$ac_cv_path_LDD
17722 if test -n "$LDD"; then
17723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17724 $as_echo "$LDD" >&6; }
17725 else
17726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17727 $as_echo "no" >&6; }
17728 fi
17729 
17730 
17731         if test "x$LDD" = x; then
17732           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17733         fi
17734       else
17735         # Otherwise we believe it is a complete path. Use it as it is.
17736         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17737 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17739 $as_echo_n "checking for LDD... " >&6; }
17740         if test ! -x "$tool_specified"; then
17741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17742 $as_echo "not found" >&6; }
17743           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17744         fi
17745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17746 $as_echo "$tool_specified" >&6; }
17747       fi
17748     fi
17749   fi
17750 
17751 
17752   if test "x$LDD" = "x"; then
17753     # List shared lib dependencies is used for
17754     # debug output and checking for forbidden dependencies.
17755     # We can build without it.
17756     LDD="true"
17757   fi
17758 
17759 
17760   # Publish this variable in the help.
17761 
17762 
17763   if test "x$READELF" = x; then
17764     # The variable is not set by user, try to locate tool using the code snippet
17765     for ac_prog in readelf greadelf
17766 do
17767   # Extract the first word of "$ac_prog", so it can be a program name with args.
17768 set dummy $ac_prog; ac_word=$2
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17770 $as_echo_n "checking for $ac_word... " >&6; }
17771 if ${ac_cv_path_READELF+:} false; then :
17772   $as_echo_n "(cached) " >&6
17773 else
17774   case $READELF in
17775   [\\/]* | ?:[\\/]*)
17776   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17777   ;;
17778   *)
17779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17780 for as_dir in $PATH
17781 do
17782   IFS=$as_save_IFS
17783   test -z "$as_dir" && as_dir=.
17784     for ac_exec_ext in '' $ac_executable_extensions; do
17785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17786     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17788     break 2
17789   fi
17790 done
17791   done
17792 IFS=$as_save_IFS
17793 
17794   ;;
17795 esac
17796 fi
17797 READELF=$ac_cv_path_READELF
17798 if test -n "$READELF"; then
17799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17800 $as_echo "$READELF" >&6; }
17801 else
17802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17804 fi
17805 
17806 
17807   test -n "$READELF" && break
17808 done
17809 
17810   else
17811     # The variable is set, but is it from the command line or the environment?
17812 
17813     # Try to remove the string !READELF! from our list.
17814     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17815     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17816       # If it failed, the variable was not from the command line. Ignore it,
17817       # but warn the user (except for BASH, which is always set by the calling BASH).
17818       if test "xREADELF" != xBASH; then
17819         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17820 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17821       fi
17822       # Try to locate tool using the code snippet
17823       for ac_prog in readelf greadelf
17824 do
17825   # Extract the first word of "$ac_prog", so it can be a program name with args.
17826 set dummy $ac_prog; ac_word=$2
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17828 $as_echo_n "checking for $ac_word... " >&6; }
17829 if ${ac_cv_path_READELF+:} false; then :
17830   $as_echo_n "(cached) " >&6
17831 else
17832   case $READELF in
17833   [\\/]* | ?:[\\/]*)
17834   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17835   ;;
17836   *)
17837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17838 for as_dir in $PATH
17839 do
17840   IFS=$as_save_IFS
17841   test -z "$as_dir" && as_dir=.
17842     for ac_exec_ext in '' $ac_executable_extensions; do
17843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17844     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17846     break 2
17847   fi
17848 done
17849   done
17850 IFS=$as_save_IFS
17851 
17852   ;;
17853 esac
17854 fi
17855 READELF=$ac_cv_path_READELF
17856 if test -n "$READELF"; then
17857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17858 $as_echo "$READELF" >&6; }
17859 else
17860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17861 $as_echo "no" >&6; }
17862 fi
17863 
17864 
17865   test -n "$READELF" && break
17866 done
17867 
17868     else
17869       # If it succeeded, then it was overridden by the user. We will use it
17870       # for the tool.
17871 
17872       # First remove it from the list of overridden variables, so we can test
17873       # for unknown variables in the end.
17874       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17875 
17876       # Check if the provided tool contains a complete path.
17877       tool_specified="$READELF"
17878       tool_basename="${tool_specified##*/}"
17879       if test "x$tool_basename" = "x$tool_specified"; then
17880         # A command without a complete path is provided, search $PATH.
17881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17882 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17883         # Extract the first word of "$tool_basename", so it can be a program name with args.
17884 set dummy $tool_basename; ac_word=$2
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17886 $as_echo_n "checking for $ac_word... " >&6; }
17887 if ${ac_cv_path_READELF+:} false; then :
17888   $as_echo_n "(cached) " >&6
17889 else
17890   case $READELF in
17891   [\\/]* | ?:[\\/]*)
17892   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17893   ;;
17894   *)
17895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17896 for as_dir in $PATH
17897 do
17898   IFS=$as_save_IFS
17899   test -z "$as_dir" && as_dir=.
17900     for ac_exec_ext in '' $ac_executable_extensions; do
17901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17902     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17904     break 2
17905   fi
17906 done
17907   done
17908 IFS=$as_save_IFS
17909 
17910   ;;
17911 esac
17912 fi
17913 READELF=$ac_cv_path_READELF
17914 if test -n "$READELF"; then
17915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17916 $as_echo "$READELF" >&6; }
17917 else
17918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919 $as_echo "no" >&6; }
17920 fi
17921 
17922 
17923         if test "x$READELF" = x; then
17924           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17925         fi
17926       else
17927         # Otherwise we believe it is a complete path. Use it as it is.
17928         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17929 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17931 $as_echo_n "checking for READELF... " >&6; }
17932         if test ! -x "$tool_specified"; then
17933           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17934 $as_echo "not found" >&6; }
17935           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17936         fi
17937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17938 $as_echo "$tool_specified" >&6; }
17939       fi
17940     fi
17941   fi
17942 
17943 
17944 
17945 
17946   # Publish this variable in the help.
17947 
17948 
17949   if test "x$HG" = x; then
17950     # The variable is not set by user, try to locate tool using the code snippet
17951     for ac_prog in hg
17952 do
17953   # Extract the first word of "$ac_prog", so it can be a program name with args.
17954 set dummy $ac_prog; ac_word=$2
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17956 $as_echo_n "checking for $ac_word... " >&6; }
17957 if ${ac_cv_path_HG+:} false; then :
17958   $as_echo_n "(cached) " >&6
17959 else
17960   case $HG in
17961   [\\/]* | ?:[\\/]*)
17962   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17963   ;;
17964   *)
17965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17966 for as_dir in $PATH
17967 do
17968   IFS=$as_save_IFS
17969   test -z "$as_dir" && as_dir=.
17970     for ac_exec_ext in '' $ac_executable_extensions; do
17971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17972     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17974     break 2
17975   fi
17976 done
17977   done
17978 IFS=$as_save_IFS
17979 
17980   ;;
17981 esac
17982 fi
17983 HG=$ac_cv_path_HG
17984 if test -n "$HG"; then
17985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17986 $as_echo "$HG" >&6; }
17987 else
17988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17989 $as_echo "no" >&6; }
17990 fi
17991 
17992 
17993   test -n "$HG" && break
17994 done
17995 
17996   else
17997     # The variable is set, but is it from the command line or the environment?
17998 
17999     # Try to remove the string !HG! from our list.
18000     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18001     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18002       # If it failed, the variable was not from the command line. Ignore it,
18003       # but warn the user (except for BASH, which is always set by the calling BASH).
18004       if test "xHG" != xBASH; then
18005         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18006 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18007       fi
18008       # Try to locate tool using the code snippet
18009       for ac_prog in hg
18010 do
18011   # Extract the first word of "$ac_prog", so it can be a program name with args.
18012 set dummy $ac_prog; ac_word=$2
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18014 $as_echo_n "checking for $ac_word... " >&6; }
18015 if ${ac_cv_path_HG+:} false; then :
18016   $as_echo_n "(cached) " >&6
18017 else
18018   case $HG in
18019   [\\/]* | ?:[\\/]*)
18020   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18021   ;;
18022   *)
18023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18024 for as_dir in $PATH
18025 do
18026   IFS=$as_save_IFS
18027   test -z "$as_dir" && as_dir=.
18028     for ac_exec_ext in '' $ac_executable_extensions; do
18029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18030     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18032     break 2
18033   fi
18034 done
18035   done
18036 IFS=$as_save_IFS
18037 
18038   ;;
18039 esac
18040 fi
18041 HG=$ac_cv_path_HG
18042 if test -n "$HG"; then
18043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18044 $as_echo "$HG" >&6; }
18045 else
18046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18047 $as_echo "no" >&6; }
18048 fi
18049 
18050 
18051   test -n "$HG" && break
18052 done
18053 
18054     else
18055       # If it succeeded, then it was overridden by the user. We will use it
18056       # for the tool.
18057 
18058       # First remove it from the list of overridden variables, so we can test
18059       # for unknown variables in the end.
18060       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18061 
18062       # Check if the provided tool contains a complete path.
18063       tool_specified="$HG"
18064       tool_basename="${tool_specified##*/}"
18065       if test "x$tool_basename" = "x$tool_specified"; then
18066         # A command without a complete path is provided, search $PATH.
18067         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18068 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18069         # Extract the first word of "$tool_basename", so it can be a program name with args.
18070 set dummy $tool_basename; ac_word=$2
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18072 $as_echo_n "checking for $ac_word... " >&6; }
18073 if ${ac_cv_path_HG+:} false; then :
18074   $as_echo_n "(cached) " >&6
18075 else
18076   case $HG in
18077   [\\/]* | ?:[\\/]*)
18078   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18079   ;;
18080   *)
18081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18082 for as_dir in $PATH
18083 do
18084   IFS=$as_save_IFS
18085   test -z "$as_dir" && as_dir=.
18086     for ac_exec_ext in '' $ac_executable_extensions; do
18087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18088     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18090     break 2
18091   fi
18092 done
18093   done
18094 IFS=$as_save_IFS
18095 
18096   ;;
18097 esac
18098 fi
18099 HG=$ac_cv_path_HG
18100 if test -n "$HG"; then
18101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18102 $as_echo "$HG" >&6; }
18103 else
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105 $as_echo "no" >&6; }
18106 fi
18107 
18108 
18109         if test "x$HG" = x; then
18110           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18111         fi
18112       else
18113         # Otherwise we believe it is a complete path. Use it as it is.
18114         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18115 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18117 $as_echo_n "checking for HG... " >&6; }
18118         if test ! -x "$tool_specified"; then
18119           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18120 $as_echo "not found" >&6; }
18121           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18122         fi
18123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18124 $as_echo "$tool_specified" >&6; }
18125       fi
18126     fi
18127   fi
18128 
18129 
18130 
18131 
18132   # Publish this variable in the help.
18133 
18134 
18135   if test "x$STAT" = x; then
18136     # The variable is not set by user, try to locate tool using the code snippet
18137     for ac_prog in stat
18138 do
18139   # Extract the first word of "$ac_prog", so it can be a program name with args.
18140 set dummy $ac_prog; ac_word=$2
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18142 $as_echo_n "checking for $ac_word... " >&6; }
18143 if ${ac_cv_path_STAT+:} false; then :
18144   $as_echo_n "(cached) " >&6
18145 else
18146   case $STAT in
18147   [\\/]* | ?:[\\/]*)
18148   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18149   ;;
18150   *)
18151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18152 for as_dir in $PATH
18153 do
18154   IFS=$as_save_IFS
18155   test -z "$as_dir" && as_dir=.
18156     for ac_exec_ext in '' $ac_executable_extensions; do
18157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18158     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18160     break 2
18161   fi
18162 done
18163   done
18164 IFS=$as_save_IFS
18165 
18166   ;;
18167 esac
18168 fi
18169 STAT=$ac_cv_path_STAT
18170 if test -n "$STAT"; then
18171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18172 $as_echo "$STAT" >&6; }
18173 else
18174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18175 $as_echo "no" >&6; }
18176 fi
18177 
18178 
18179   test -n "$STAT" && break
18180 done
18181 
18182   else
18183     # The variable is set, but is it from the command line or the environment?
18184 
18185     # Try to remove the string !STAT! from our list.
18186     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18187     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18188       # If it failed, the variable was not from the command line. Ignore it,
18189       # but warn the user (except for BASH, which is always set by the calling BASH).
18190       if test "xSTAT" != xBASH; then
18191         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18192 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18193       fi
18194       # Try to locate tool using the code snippet
18195       for ac_prog in stat
18196 do
18197   # Extract the first word of "$ac_prog", so it can be a program name with args.
18198 set dummy $ac_prog; ac_word=$2
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18200 $as_echo_n "checking for $ac_word... " >&6; }
18201 if ${ac_cv_path_STAT+:} false; then :
18202   $as_echo_n "(cached) " >&6
18203 else
18204   case $STAT in
18205   [\\/]* | ?:[\\/]*)
18206   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18207   ;;
18208   *)
18209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18210 for as_dir in $PATH
18211 do
18212   IFS=$as_save_IFS
18213   test -z "$as_dir" && as_dir=.
18214     for ac_exec_ext in '' $ac_executable_extensions; do
18215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18216     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18218     break 2
18219   fi
18220 done
18221   done
18222 IFS=$as_save_IFS
18223 
18224   ;;
18225 esac
18226 fi
18227 STAT=$ac_cv_path_STAT
18228 if test -n "$STAT"; then
18229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18230 $as_echo "$STAT" >&6; }
18231 else
18232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18233 $as_echo "no" >&6; }
18234 fi
18235 
18236 
18237   test -n "$STAT" && break
18238 done
18239 
18240     else
18241       # If it succeeded, then it was overridden by the user. We will use it
18242       # for the tool.
18243 
18244       # First remove it from the list of overridden variables, so we can test
18245       # for unknown variables in the end.
18246       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18247 
18248       # Check if the provided tool contains a complete path.
18249       tool_specified="$STAT"
18250       tool_basename="${tool_specified##*/}"
18251       if test "x$tool_basename" = "x$tool_specified"; then
18252         # A command without a complete path is provided, search $PATH.
18253         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18254 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18255         # Extract the first word of "$tool_basename", so it can be a program name with args.
18256 set dummy $tool_basename; ac_word=$2
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18258 $as_echo_n "checking for $ac_word... " >&6; }
18259 if ${ac_cv_path_STAT+:} false; then :
18260   $as_echo_n "(cached) " >&6
18261 else
18262   case $STAT in
18263   [\\/]* | ?:[\\/]*)
18264   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18265   ;;
18266   *)
18267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18268 for as_dir in $PATH
18269 do
18270   IFS=$as_save_IFS
18271   test -z "$as_dir" && as_dir=.
18272     for ac_exec_ext in '' $ac_executable_extensions; do
18273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18274     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18276     break 2
18277   fi
18278 done
18279   done
18280 IFS=$as_save_IFS
18281 
18282   ;;
18283 esac
18284 fi
18285 STAT=$ac_cv_path_STAT
18286 if test -n "$STAT"; then
18287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18288 $as_echo "$STAT" >&6; }
18289 else
18290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 $as_echo "no" >&6; }
18292 fi
18293 
18294 
18295         if test "x$STAT" = x; then
18296           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18297         fi
18298       else
18299         # Otherwise we believe it is a complete path. Use it as it is.
18300         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18301 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18303 $as_echo_n "checking for STAT... " >&6; }
18304         if test ! -x "$tool_specified"; then
18305           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18306 $as_echo "not found" >&6; }
18307           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18308         fi
18309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18310 $as_echo "$tool_specified" >&6; }
18311       fi
18312     fi
18313   fi
18314 
18315 
18316 
18317 
18318   # Publish this variable in the help.
18319 
18320 
18321   if test "x$TIME" = x; then
18322     # The variable is not set by user, try to locate tool using the code snippet
18323     for ac_prog in time
18324 do
18325   # Extract the first word of "$ac_prog", so it can be a program name with args.
18326 set dummy $ac_prog; ac_word=$2
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18328 $as_echo_n "checking for $ac_word... " >&6; }
18329 if ${ac_cv_path_TIME+:} false; then :
18330   $as_echo_n "(cached) " >&6
18331 else
18332   case $TIME in
18333   [\\/]* | ?:[\\/]*)
18334   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18335   ;;
18336   *)
18337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18338 for as_dir in $PATH
18339 do
18340   IFS=$as_save_IFS
18341   test -z "$as_dir" && as_dir=.
18342     for ac_exec_ext in '' $ac_executable_extensions; do
18343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18344     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18346     break 2
18347   fi
18348 done
18349   done
18350 IFS=$as_save_IFS
18351 
18352   ;;
18353 esac
18354 fi
18355 TIME=$ac_cv_path_TIME
18356 if test -n "$TIME"; then
18357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18358 $as_echo "$TIME" >&6; }
18359 else
18360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361 $as_echo "no" >&6; }
18362 fi
18363 
18364 
18365   test -n "$TIME" && break
18366 done
18367 
18368   else
18369     # The variable is set, but is it from the command line or the environment?
18370 
18371     # Try to remove the string !TIME! from our list.
18372     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18373     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18374       # If it failed, the variable was not from the command line. Ignore it,
18375       # but warn the user (except for BASH, which is always set by the calling BASH).
18376       if test "xTIME" != xBASH; then
18377         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18378 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18379       fi
18380       # Try to locate tool using the code snippet
18381       for ac_prog in time
18382 do
18383   # Extract the first word of "$ac_prog", so it can be a program name with args.
18384 set dummy $ac_prog; ac_word=$2
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18386 $as_echo_n "checking for $ac_word... " >&6; }
18387 if ${ac_cv_path_TIME+:} false; then :
18388   $as_echo_n "(cached) " >&6
18389 else
18390   case $TIME in
18391   [\\/]* | ?:[\\/]*)
18392   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18393   ;;
18394   *)
18395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18397 do
18398   IFS=$as_save_IFS
18399   test -z "$as_dir" && as_dir=.
18400     for ac_exec_ext in '' $ac_executable_extensions; do
18401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18404     break 2
18405   fi
18406 done
18407   done
18408 IFS=$as_save_IFS
18409 
18410   ;;
18411 esac
18412 fi
18413 TIME=$ac_cv_path_TIME
18414 if test -n "$TIME"; then
18415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18416 $as_echo "$TIME" >&6; }
18417 else
18418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18420 fi
18421 
18422 
18423   test -n "$TIME" && break
18424 done
18425 
18426     else
18427       # If it succeeded, then it was overridden by the user. We will use it
18428       # for the tool.
18429 
18430       # First remove it from the list of overridden variables, so we can test
18431       # for unknown variables in the end.
18432       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18433 
18434       # Check if the provided tool contains a complete path.
18435       tool_specified="$TIME"
18436       tool_basename="${tool_specified##*/}"
18437       if test "x$tool_basename" = "x$tool_specified"; then
18438         # A command without a complete path is provided, search $PATH.
18439         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18440 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18441         # Extract the first word of "$tool_basename", so it can be a program name with args.
18442 set dummy $tool_basename; ac_word=$2
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18444 $as_echo_n "checking for $ac_word... " >&6; }
18445 if ${ac_cv_path_TIME+:} false; then :
18446   $as_echo_n "(cached) " >&6
18447 else
18448   case $TIME in
18449   [\\/]* | ?:[\\/]*)
18450   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18451   ;;
18452   *)
18453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18454 for as_dir in $PATH
18455 do
18456   IFS=$as_save_IFS
18457   test -z "$as_dir" && as_dir=.
18458     for ac_exec_ext in '' $ac_executable_extensions; do
18459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18460     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18462     break 2
18463   fi
18464 done
18465   done
18466 IFS=$as_save_IFS
18467 
18468   ;;
18469 esac
18470 fi
18471 TIME=$ac_cv_path_TIME
18472 if test -n "$TIME"; then
18473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18474 $as_echo "$TIME" >&6; }
18475 else
18476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477 $as_echo "no" >&6; }
18478 fi
18479 
18480 
18481         if test "x$TIME" = x; then
18482           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18483         fi
18484       else
18485         # Otherwise we believe it is a complete path. Use it as it is.
18486         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18487 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18488         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18489 $as_echo_n "checking for TIME... " >&6; }
18490         if test ! -x "$tool_specified"; then
18491           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18492 $as_echo "not found" >&6; }
18493           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18494         fi
18495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18496 $as_echo "$tool_specified" >&6; }
18497       fi
18498     fi
18499   fi
18500 
18501 
18502   # Check if it's GNU time
18503   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18504   if test "x$IS_GNU_TIME" != x; then
18505     IS_GNU_TIME=yes
18506   else
18507     IS_GNU_TIME=no
18508   fi
18509 
18510 
18511   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18512 
18513 
18514 
18515   # Publish this variable in the help.
18516 
18517 
18518   if test "x$COMM" = x; then
18519     # The variable is not set by user, try to locate tool using the code snippet
18520     for ac_prog in comm
18521 do
18522   # Extract the first word of "$ac_prog", so it can be a program name with args.
18523 set dummy $ac_prog; ac_word=$2
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18525 $as_echo_n "checking for $ac_word... " >&6; }
18526 if ${ac_cv_path_COMM+:} false; then :
18527   $as_echo_n "(cached) " >&6
18528 else
18529   case $COMM in
18530   [\\/]* | ?:[\\/]*)
18531   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18532   ;;
18533   *)
18534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18535 for as_dir in $PATH
18536 do
18537   IFS=$as_save_IFS
18538   test -z "$as_dir" && as_dir=.
18539     for ac_exec_ext in '' $ac_executable_extensions; do
18540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18541     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18543     break 2
18544   fi
18545 done
18546   done
18547 IFS=$as_save_IFS
18548 
18549   ;;
18550 esac
18551 fi
18552 COMM=$ac_cv_path_COMM
18553 if test -n "$COMM"; then
18554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18555 $as_echo "$COMM" >&6; }
18556 else
18557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18558 $as_echo "no" >&6; }
18559 fi
18560 
18561 
18562   test -n "$COMM" && break
18563 done
18564 
18565   else
18566     # The variable is set, but is it from the command line or the environment?
18567 
18568     # Try to remove the string !COMM! from our list.
18569     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18570     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18571       # If it failed, the variable was not from the command line. Ignore it,
18572       # but warn the user (except for BASH, which is always set by the calling BASH).
18573       if test "xCOMM" != xBASH; then
18574         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18575 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18576       fi
18577       # Try to locate tool using the code snippet
18578       for ac_prog in comm
18579 do
18580   # Extract the first word of "$ac_prog", so it can be a program name with args.
18581 set dummy $ac_prog; ac_word=$2
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18583 $as_echo_n "checking for $ac_word... " >&6; }
18584 if ${ac_cv_path_COMM+:} false; then :
18585   $as_echo_n "(cached) " >&6
18586 else
18587   case $COMM in
18588   [\\/]* | ?:[\\/]*)
18589   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18590   ;;
18591   *)
18592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18593 for as_dir in $PATH
18594 do
18595   IFS=$as_save_IFS
18596   test -z "$as_dir" && as_dir=.
18597     for ac_exec_ext in '' $ac_executable_extensions; do
18598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18599     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18601     break 2
18602   fi
18603 done
18604   done
18605 IFS=$as_save_IFS
18606 
18607   ;;
18608 esac
18609 fi
18610 COMM=$ac_cv_path_COMM
18611 if test -n "$COMM"; then
18612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18613 $as_echo "$COMM" >&6; }
18614 else
18615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616 $as_echo "no" >&6; }
18617 fi
18618 
18619 
18620   test -n "$COMM" && break
18621 done
18622 
18623     else
18624       # If it succeeded, then it was overridden by the user. We will use it
18625       # for the tool.
18626 
18627       # First remove it from the list of overridden variables, so we can test
18628       # for unknown variables in the end.
18629       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18630 
18631       # Check if the provided tool contains a complete path.
18632       tool_specified="$COMM"
18633       tool_basename="${tool_specified##*/}"
18634       if test "x$tool_basename" = "x$tool_specified"; then
18635         # A command without a complete path is provided, search $PATH.
18636         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18637 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18638         # Extract the first word of "$tool_basename", so it can be a program name with args.
18639 set dummy $tool_basename; ac_word=$2
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18641 $as_echo_n "checking for $ac_word... " >&6; }
18642 if ${ac_cv_path_COMM+:} false; then :
18643   $as_echo_n "(cached) " >&6
18644 else
18645   case $COMM in
18646   [\\/]* | ?:[\\/]*)
18647   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18648   ;;
18649   *)
18650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18651 for as_dir in $PATH
18652 do
18653   IFS=$as_save_IFS
18654   test -z "$as_dir" && as_dir=.
18655     for ac_exec_ext in '' $ac_executable_extensions; do
18656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18657     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18659     break 2
18660   fi
18661 done
18662   done
18663 IFS=$as_save_IFS
18664 
18665   ;;
18666 esac
18667 fi
18668 COMM=$ac_cv_path_COMM
18669 if test -n "$COMM"; then
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18671 $as_echo "$COMM" >&6; }
18672 else
18673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18674 $as_echo "no" >&6; }
18675 fi
18676 
18677 
18678         if test "x$COMM" = x; then
18679           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18680         fi
18681       else
18682         # Otherwise we believe it is a complete path. Use it as it is.
18683         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18684 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18686 $as_echo_n "checking for COMM... " >&6; }
18687         if test ! -x "$tool_specified"; then
18688           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18689 $as_echo "not found" >&6; }
18690           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18691         fi
18692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18693 $as_echo "$tool_specified" >&6; }
18694       fi
18695     fi
18696   fi
18697 
18698 
18699 
18700   if test "x$COMM" = x; then
18701     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18702   fi
18703 
18704 
18705   fi
18706 
18707   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18708 
18709 
18710 
18711   # Publish this variable in the help.
18712 
18713 
18714   if test "x$DSYMUTIL" = x; then
18715     # The variable is not set by user, try to locate tool using the code snippet
18716     for ac_prog in dsymutil
18717 do
18718   # Extract the first word of "$ac_prog", so it can be a program name with args.
18719 set dummy $ac_prog; ac_word=$2
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18721 $as_echo_n "checking for $ac_word... " >&6; }
18722 if ${ac_cv_path_DSYMUTIL+:} false; then :
18723   $as_echo_n "(cached) " >&6
18724 else
18725   case $DSYMUTIL in
18726   [\\/]* | ?:[\\/]*)
18727   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18728   ;;
18729   *)
18730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18731 for as_dir in $PATH
18732 do
18733   IFS=$as_save_IFS
18734   test -z "$as_dir" && as_dir=.
18735     for ac_exec_ext in '' $ac_executable_extensions; do
18736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18737     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18739     break 2
18740   fi
18741 done
18742   done
18743 IFS=$as_save_IFS
18744 
18745   ;;
18746 esac
18747 fi
18748 DSYMUTIL=$ac_cv_path_DSYMUTIL
18749 if test -n "$DSYMUTIL"; then
18750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18751 $as_echo "$DSYMUTIL" >&6; }
18752 else
18753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18754 $as_echo "no" >&6; }
18755 fi
18756 
18757 
18758   test -n "$DSYMUTIL" && break
18759 done
18760 
18761   else
18762     # The variable is set, but is it from the command line or the environment?
18763 
18764     # Try to remove the string !DSYMUTIL! from our list.
18765     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18766     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18767       # If it failed, the variable was not from the command line. Ignore it,
18768       # but warn the user (except for BASH, which is always set by the calling BASH).
18769       if test "xDSYMUTIL" != xBASH; then
18770         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18771 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18772       fi
18773       # Try to locate tool using the code snippet
18774       for ac_prog in dsymutil
18775 do
18776   # Extract the first word of "$ac_prog", so it can be a program name with args.
18777 set dummy $ac_prog; ac_word=$2
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18779 $as_echo_n "checking for $ac_word... " >&6; }
18780 if ${ac_cv_path_DSYMUTIL+:} false; then :
18781   $as_echo_n "(cached) " >&6
18782 else
18783   case $DSYMUTIL in
18784   [\\/]* | ?:[\\/]*)
18785   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18786   ;;
18787   *)
18788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18789 for as_dir in $PATH
18790 do
18791   IFS=$as_save_IFS
18792   test -z "$as_dir" && as_dir=.
18793     for ac_exec_ext in '' $ac_executable_extensions; do
18794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18795     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18797     break 2
18798   fi
18799 done
18800   done
18801 IFS=$as_save_IFS
18802 
18803   ;;
18804 esac
18805 fi
18806 DSYMUTIL=$ac_cv_path_DSYMUTIL
18807 if test -n "$DSYMUTIL"; then
18808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18809 $as_echo "$DSYMUTIL" >&6; }
18810 else
18811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18812 $as_echo "no" >&6; }
18813 fi
18814 
18815 
18816   test -n "$DSYMUTIL" && break
18817 done
18818 
18819     else
18820       # If it succeeded, then it was overridden by the user. We will use it
18821       # for the tool.
18822 
18823       # First remove it from the list of overridden variables, so we can test
18824       # for unknown variables in the end.
18825       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18826 
18827       # Check if the provided tool contains a complete path.
18828       tool_specified="$DSYMUTIL"
18829       tool_basename="${tool_specified##*/}"
18830       if test "x$tool_basename" = "x$tool_specified"; then
18831         # A command without a complete path is provided, search $PATH.
18832         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18833 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18834         # Extract the first word of "$tool_basename", so it can be a program name with args.
18835 set dummy $tool_basename; ac_word=$2
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18837 $as_echo_n "checking for $ac_word... " >&6; }
18838 if ${ac_cv_path_DSYMUTIL+:} false; then :
18839   $as_echo_n "(cached) " >&6
18840 else
18841   case $DSYMUTIL in
18842   [\\/]* | ?:[\\/]*)
18843   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18844   ;;
18845   *)
18846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18847 for as_dir in $PATH
18848 do
18849   IFS=$as_save_IFS
18850   test -z "$as_dir" && as_dir=.
18851     for ac_exec_ext in '' $ac_executable_extensions; do
18852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18853     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18855     break 2
18856   fi
18857 done
18858   done
18859 IFS=$as_save_IFS
18860 
18861   ;;
18862 esac
18863 fi
18864 DSYMUTIL=$ac_cv_path_DSYMUTIL
18865 if test -n "$DSYMUTIL"; then
18866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18867 $as_echo "$DSYMUTIL" >&6; }
18868 else
18869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18870 $as_echo "no" >&6; }
18871 fi
18872 
18873 
18874         if test "x$DSYMUTIL" = x; then
18875           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18876         fi
18877       else
18878         # Otherwise we believe it is a complete path. Use it as it is.
18879         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18880 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18882 $as_echo_n "checking for DSYMUTIL... " >&6; }
18883         if test ! -x "$tool_specified"; then
18884           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18885 $as_echo "not found" >&6; }
18886           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18887         fi
18888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18889 $as_echo "$tool_specified" >&6; }
18890       fi
18891     fi
18892   fi
18893 
18894 
18895 
18896   if test "x$DSYMUTIL" = x; then
18897     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18898   fi
18899 
18900 
18901 
18902 
18903 
18904   # Publish this variable in the help.
18905 
18906 
18907   if test "x$XATTR" = x; then
18908     # The variable is not set by user, try to locate tool using the code snippet
18909     for ac_prog in xattr
18910 do
18911   # Extract the first word of "$ac_prog", so it can be a program name with args.
18912 set dummy $ac_prog; ac_word=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if ${ac_cv_path_XATTR+:} false; then :
18916   $as_echo_n "(cached) " >&6
18917 else
18918   case $XATTR in
18919   [\\/]* | ?:[\\/]*)
18920   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18921   ;;
18922   *)
18923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18925 do
18926   IFS=$as_save_IFS
18927   test -z "$as_dir" && as_dir=.
18928     for ac_exec_ext in '' $ac_executable_extensions; do
18929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18930     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18932     break 2
18933   fi
18934 done
18935   done
18936 IFS=$as_save_IFS
18937 
18938   ;;
18939 esac
18940 fi
18941 XATTR=$ac_cv_path_XATTR
18942 if test -n "$XATTR"; then
18943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18944 $as_echo "$XATTR" >&6; }
18945 else
18946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18947 $as_echo "no" >&6; }
18948 fi
18949 
18950 
18951   test -n "$XATTR" && break
18952 done
18953 
18954   else
18955     # The variable is set, but is it from the command line or the environment?
18956 
18957     # Try to remove the string !XATTR! from our list.
18958     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18959     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18960       # If it failed, the variable was not from the command line. Ignore it,
18961       # but warn the user (except for BASH, which is always set by the calling BASH).
18962       if test "xXATTR" != xBASH; then
18963         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18964 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18965       fi
18966       # Try to locate tool using the code snippet
18967       for ac_prog in xattr
18968 do
18969   # Extract the first word of "$ac_prog", so it can be a program name with args.
18970 set dummy $ac_prog; ac_word=$2
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18972 $as_echo_n "checking for $ac_word... " >&6; }
18973 if ${ac_cv_path_XATTR+:} false; then :
18974   $as_echo_n "(cached) " >&6
18975 else
18976   case $XATTR in
18977   [\\/]* | ?:[\\/]*)
18978   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18979   ;;
18980   *)
18981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18982 for as_dir in $PATH
18983 do
18984   IFS=$as_save_IFS
18985   test -z "$as_dir" && as_dir=.
18986     for ac_exec_ext in '' $ac_executable_extensions; do
18987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18988     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18990     break 2
18991   fi
18992 done
18993   done
18994 IFS=$as_save_IFS
18995 
18996   ;;
18997 esac
18998 fi
18999 XATTR=$ac_cv_path_XATTR
19000 if test -n "$XATTR"; then
19001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19002 $as_echo "$XATTR" >&6; }
19003 else
19004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19005 $as_echo "no" >&6; }
19006 fi
19007 
19008 
19009   test -n "$XATTR" && break
19010 done
19011 
19012     else
19013       # If it succeeded, then it was overridden by the user. We will use it
19014       # for the tool.
19015 
19016       # First remove it from the list of overridden variables, so we can test
19017       # for unknown variables in the end.
19018       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19019 
19020       # Check if the provided tool contains a complete path.
19021       tool_specified="$XATTR"
19022       tool_basename="${tool_specified##*/}"
19023       if test "x$tool_basename" = "x$tool_specified"; then
19024         # A command without a complete path is provided, search $PATH.
19025         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19026 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19027         # Extract the first word of "$tool_basename", so it can be a program name with args.
19028 set dummy $tool_basename; ac_word=$2
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19030 $as_echo_n "checking for $ac_word... " >&6; }
19031 if ${ac_cv_path_XATTR+:} false; then :
19032   $as_echo_n "(cached) " >&6
19033 else
19034   case $XATTR in
19035   [\\/]* | ?:[\\/]*)
19036   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19037   ;;
19038   *)
19039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19040 for as_dir in $PATH
19041 do
19042   IFS=$as_save_IFS
19043   test -z "$as_dir" && as_dir=.
19044     for ac_exec_ext in '' $ac_executable_extensions; do
19045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19046     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19048     break 2
19049   fi
19050 done
19051   done
19052 IFS=$as_save_IFS
19053 
19054   ;;
19055 esac
19056 fi
19057 XATTR=$ac_cv_path_XATTR
19058 if test -n "$XATTR"; then
19059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19060 $as_echo "$XATTR" >&6; }
19061 else
19062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19063 $as_echo "no" >&6; }
19064 fi
19065 
19066 
19067         if test "x$XATTR" = x; then
19068           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19069         fi
19070       else
19071         # Otherwise we believe it is a complete path. Use it as it is.
19072         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19073 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19075 $as_echo_n "checking for XATTR... " >&6; }
19076         if test ! -x "$tool_specified"; then
19077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19078 $as_echo "not found" >&6; }
19079           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19080         fi
19081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19082 $as_echo "$tool_specified" >&6; }
19083       fi
19084     fi
19085   fi
19086 
19087 
19088 
19089   if test "x$XATTR" = x; then
19090     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19091   fi
19092 
19093 
19094 
19095 
19096   # Publish this variable in the help.
19097 
19098 
19099   if test "x$CODESIGN" = x; then
19100     # The variable is not set by user, try to locate tool using the code snippet
19101     for ac_prog in codesign
19102 do
19103   # Extract the first word of "$ac_prog", so it can be a program name with args.
19104 set dummy $ac_prog; ac_word=$2
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19106 $as_echo_n "checking for $ac_word... " >&6; }
19107 if ${ac_cv_path_CODESIGN+:} false; then :
19108   $as_echo_n "(cached) " >&6
19109 else
19110   case $CODESIGN in
19111   [\\/]* | ?:[\\/]*)
19112   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19113   ;;
19114   *)
19115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19116 for as_dir in $PATH
19117 do
19118   IFS=$as_save_IFS
19119   test -z "$as_dir" && as_dir=.
19120     for ac_exec_ext in '' $ac_executable_extensions; do
19121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19122     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19124     break 2
19125   fi
19126 done
19127   done
19128 IFS=$as_save_IFS
19129 
19130   ;;
19131 esac
19132 fi
19133 CODESIGN=$ac_cv_path_CODESIGN
19134 if test -n "$CODESIGN"; then
19135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19136 $as_echo "$CODESIGN" >&6; }
19137 else
19138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 $as_echo "no" >&6; }
19140 fi
19141 
19142 
19143   test -n "$CODESIGN" && break
19144 done
19145 
19146   else
19147     # The variable is set, but is it from the command line or the environment?
19148 
19149     # Try to remove the string !CODESIGN! from our list.
19150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19152       # If it failed, the variable was not from the command line. Ignore it,
19153       # but warn the user (except for BASH, which is always set by the calling BASH).
19154       if test "xCODESIGN" != xBASH; then
19155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19156 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19157       fi
19158       # Try to locate tool using the code snippet
19159       for ac_prog in codesign
19160 do
19161   # Extract the first word of "$ac_prog", so it can be a program name with args.
19162 set dummy $ac_prog; ac_word=$2
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19164 $as_echo_n "checking for $ac_word... " >&6; }
19165 if ${ac_cv_path_CODESIGN+:} false; then :
19166   $as_echo_n "(cached) " >&6
19167 else
19168   case $CODESIGN in
19169   [\\/]* | ?:[\\/]*)
19170   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19171   ;;
19172   *)
19173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19174 for as_dir in $PATH
19175 do
19176   IFS=$as_save_IFS
19177   test -z "$as_dir" && as_dir=.
19178     for ac_exec_ext in '' $ac_executable_extensions; do
19179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19180     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19182     break 2
19183   fi
19184 done
19185   done
19186 IFS=$as_save_IFS
19187 
19188   ;;
19189 esac
19190 fi
19191 CODESIGN=$ac_cv_path_CODESIGN
19192 if test -n "$CODESIGN"; then
19193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19194 $as_echo "$CODESIGN" >&6; }
19195 else
19196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19197 $as_echo "no" >&6; }
19198 fi
19199 
19200 
19201   test -n "$CODESIGN" && break
19202 done
19203 
19204     else
19205       # If it succeeded, then it was overridden by the user. We will use it
19206       # for the tool.
19207 
19208       # First remove it from the list of overridden variables, so we can test
19209       # for unknown variables in the end.
19210       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19211 
19212       # Check if the provided tool contains a complete path.
19213       tool_specified="$CODESIGN"
19214       tool_basename="${tool_specified##*/}"
19215       if test "x$tool_basename" = "x$tool_specified"; then
19216         # A command without a complete path is provided, search $PATH.
19217         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19218 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19219         # Extract the first word of "$tool_basename", so it can be a program name with args.
19220 set dummy $tool_basename; ac_word=$2
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19222 $as_echo_n "checking for $ac_word... " >&6; }
19223 if ${ac_cv_path_CODESIGN+:} false; then :
19224   $as_echo_n "(cached) " >&6
19225 else
19226   case $CODESIGN in
19227   [\\/]* | ?:[\\/]*)
19228   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19229   ;;
19230   *)
19231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19232 for as_dir in $PATH
19233 do
19234   IFS=$as_save_IFS
19235   test -z "$as_dir" && as_dir=.
19236     for ac_exec_ext in '' $ac_executable_extensions; do
19237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19238     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19240     break 2
19241   fi
19242 done
19243   done
19244 IFS=$as_save_IFS
19245 
19246   ;;
19247 esac
19248 fi
19249 CODESIGN=$ac_cv_path_CODESIGN
19250 if test -n "$CODESIGN"; then
19251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19252 $as_echo "$CODESIGN" >&6; }
19253 else
19254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19255 $as_echo "no" >&6; }
19256 fi
19257 
19258 
19259         if test "x$CODESIGN" = x; then
19260           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19261         fi
19262       else
19263         # Otherwise we believe it is a complete path. Use it as it is.
19264         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19265 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19267 $as_echo_n "checking for CODESIGN... " >&6; }
19268         if test ! -x "$tool_specified"; then
19269           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19270 $as_echo "not found" >&6; }
19271           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19272         fi
19273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19274 $as_echo "$tool_specified" >&6; }
19275       fi
19276     fi
19277   fi
19278 
19279 
19280     if test "x$CODESIGN" != "x"; then
19281       # Verify that the openjdk_codesign certificate is present
19282       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19283 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19284       rm -f codesign-testfile
19285       touch codesign-testfile
19286       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19287       rm -f codesign-testfile
19288       if test "x$CODESIGN" = x; then
19289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19290 $as_echo "no" >&6; }
19291       else
19292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19293 $as_echo "yes" >&6; }
19294       fi
19295     fi
19296   fi
19297 
19298 
19299 # Check if pkg-config is available.
19300 
19301 
19302 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19303         if test -n "$ac_tool_prefix"; then
19304   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19305 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19307 $as_echo_n "checking for $ac_word... " >&6; }
19308 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19309   $as_echo_n "(cached) " >&6
19310 else
19311   case $PKG_CONFIG in
19312   [\\/]* | ?:[\\/]*)
19313   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19314   ;;
19315   *)
19316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19318 do
19319   IFS=$as_save_IFS
19320   test -z "$as_dir" && as_dir=.
19321     for ac_exec_ext in '' $ac_executable_extensions; do
19322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19323     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19325     break 2
19326   fi
19327 done
19328   done
19329 IFS=$as_save_IFS
19330 
19331   ;;
19332 esac
19333 fi
19334 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19335 if test -n "$PKG_CONFIG"; then
19336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19337 $as_echo "$PKG_CONFIG" >&6; }
19338 else
19339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19340 $as_echo "no" >&6; }
19341 fi
19342 
19343 
19344 fi
19345 if test -z "$ac_cv_path_PKG_CONFIG"; then
19346   ac_pt_PKG_CONFIG=$PKG_CONFIG
19347   # Extract the first word of "pkg-config", so it can be a program name with args.
19348 set dummy pkg-config; ac_word=$2
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19350 $as_echo_n "checking for $ac_word... " >&6; }
19351 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19352   $as_echo_n "(cached) " >&6
19353 else
19354   case $ac_pt_PKG_CONFIG in
19355   [\\/]* | ?:[\\/]*)
19356   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19357   ;;
19358   *)
19359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19360 for as_dir in $PATH
19361 do
19362   IFS=$as_save_IFS
19363   test -z "$as_dir" && as_dir=.
19364     for ac_exec_ext in '' $ac_executable_extensions; do
19365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19366     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19368     break 2
19369   fi
19370 done
19371   done
19372 IFS=$as_save_IFS
19373 
19374   ;;
19375 esac
19376 fi
19377 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19378 if test -n "$ac_pt_PKG_CONFIG"; then
19379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19380 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19381 else
19382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19383 $as_echo "no" >&6; }
19384 fi
19385 
19386   if test "x$ac_pt_PKG_CONFIG" = x; then
19387     PKG_CONFIG=""
19388   else
19389     case $cross_compiling:$ac_tool_warned in
19390 yes:)
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19393 ac_tool_warned=yes ;;
19394 esac
19395     PKG_CONFIG=$ac_pt_PKG_CONFIG
19396   fi
19397 else
19398   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19399 fi
19400 
19401 fi
19402 if test -n "$PKG_CONFIG"; then
19403         _pkg_min_version=0.9.0
19404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19405 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19406         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19407                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408 $as_echo "yes" >&6; }
19409         else
19410                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19411 $as_echo "no" >&6; }
19412                 PKG_CONFIG=""
19413         fi
19414 
19415 fi
19416 
19417 # After basic tools have been setup, we can check build os specific details.
19418 
19419   ###############################################################################
19420 
19421   # Note that this is the build platform OS version!
19422 
19423   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19424   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19425   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19426   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19427 
19428 
19429 
19430 
19431 
19432 # Setup builddeps, for automatic downloading of tools we need.
19433 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19434 # boot-jdk setup, but we need to have basic tools setup first.
19435 
19436 
19437 # Check whether --with-builddeps-conf was given.
19438 if test "${with_builddeps_conf+set}" = set; then :
19439   withval=$with_builddeps_conf;
19440 fi
19441 
19442 
19443 
19444 # Check whether --with-builddeps-server was given.
19445 if test "${with_builddeps_server+set}" = set; then :
19446   withval=$with_builddeps_server;
19447 fi
19448 
19449 
19450 
19451 # Check whether --with-builddeps-dir was given.
19452 if test "${with_builddeps_dir+set}" = set; then :
19453   withval=$with_builddeps_dir;
19454 else
19455   with_builddeps_dir=/localhome/builddeps
19456 fi
19457 
19458 
19459 
19460 # Check whether --with-builddeps-group was given.
19461 if test "${with_builddeps_group+set}" = set; then :
19462   withval=$with_builddeps_group;
19463 fi
19464 
19465 
19466 
19467 
19468   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19469     if test "x$with_builddeps_conf" != x; then
19470       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19471 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19472       builddepsfile=$with_builddeps_conf
19473       if test -s $builddepsfile; then
19474         . $builddepsfile
19475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19476 $as_echo "loaded!" >&6; }
19477       else
19478         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19479       fi
19480     else
19481       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19482 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19483       builddepsfile=`mktemp`
19484       touch $builddepsfile
19485       # Put all found confs into a single file.
19486       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19487       # Source the file to acquire the variables
19488       if test -s $builddepsfile; then
19489         . $builddepsfile
19490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19491 $as_echo "found at least one!" >&6; }
19492       else
19493         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19494       fi
19495     fi
19496     # Create build and target names that use _ instead of "-" and ".".
19497     # This is necessary to use them in variable names.
19498     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19499     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19500     # Extract rewrite information for build and target
19501     eval rewritten_build=\${REWRITE_${build_var}}
19502     if test "x$rewritten_build" = x; then
19503       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19504       echo Build stays the same $rewritten_build
19505     else
19506       echo Rewriting build for builddeps into $rewritten_build
19507     fi
19508     eval rewritten_target=\${REWRITE_${target_var}}
19509     if test "x$rewritten_target" = x; then
19510       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19511       echo Target stays the same $rewritten_target
19512     else
19513       echo Rewriting target for builddeps into $rewritten_target
19514     fi
19515     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19516     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19517   fi
19518   for ac_prog in 7z unzip
19519 do
19520   # Extract the first word of "$ac_prog", so it can be a program name with args.
19521 set dummy $ac_prog; ac_word=$2
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19523 $as_echo_n "checking for $ac_word... " >&6; }
19524 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19525   $as_echo_n "(cached) " >&6
19526 else
19527   if test -n "$BDEPS_UNZIP"; then
19528   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19529 else
19530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19531 for as_dir in $PATH
19532 do
19533   IFS=$as_save_IFS
19534   test -z "$as_dir" && as_dir=.
19535     for ac_exec_ext in '' $ac_executable_extensions; do
19536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19537     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19539     break 2
19540   fi
19541 done
19542   done
19543 IFS=$as_save_IFS
19544 
19545 fi
19546 fi
19547 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19548 if test -n "$BDEPS_UNZIP"; then
19549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19550 $as_echo "$BDEPS_UNZIP" >&6; }
19551 else
19552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19553 $as_echo "no" >&6; }
19554 fi
19555 
19556 
19557   test -n "$BDEPS_UNZIP" && break
19558 done
19559 
19560   if test "x$BDEPS_UNZIP" = x7z; then
19561     BDEPS_UNZIP="7z x"
19562   fi
19563 
19564   for ac_prog in wget lftp ftp
19565 do
19566   # Extract the first word of "$ac_prog", so it can be a program name with args.
19567 set dummy $ac_prog; ac_word=$2
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19569 $as_echo_n "checking for $ac_word... " >&6; }
19570 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19571   $as_echo_n "(cached) " >&6
19572 else
19573   if test -n "$BDEPS_FTP"; then
19574   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19575 else
19576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19577 for as_dir in $PATH
19578 do
19579   IFS=$as_save_IFS
19580   test -z "$as_dir" && as_dir=.
19581     for ac_exec_ext in '' $ac_executable_extensions; do
19582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19583     ac_cv_prog_BDEPS_FTP="$ac_prog"
19584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19585     break 2
19586   fi
19587 done
19588   done
19589 IFS=$as_save_IFS
19590 
19591 fi
19592 fi
19593 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19594 if test -n "$BDEPS_FTP"; then
19595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19596 $as_echo "$BDEPS_FTP" >&6; }
19597 else
19598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19599 $as_echo "no" >&6; }
19600 fi
19601 
19602 
19603   test -n "$BDEPS_FTP" && break
19604 done
19605 
19606 
19607 
19608 ###############################################################################
19609 #
19610 # Determine OpenJDK variants, options and version numbers.
19611 #
19612 ###############################################################################
19613 
19614 # We need build & target for this.
19615 
19616 
19617   ###############################################################################
19618   #
19619   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19620   # We always build headless support.
19621   #
19622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19623 $as_echo_n "checking headful support... " >&6; }
19624   # Check whether --enable-headful was given.
19625 if test "${enable_headful+set}" = set; then :
19626   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19627 else
19628   SUPPORT_HEADFUL=yes
19629 fi
19630 
19631 
19632   SUPPORT_HEADLESS=yes
19633   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19634 
19635   if test "x$SUPPORT_HEADFUL" = xyes; then
19636     # We are building both headful and headless.
19637     headful_msg="include support for both headful and headless"
19638   fi
19639 
19640   if test "x$SUPPORT_HEADFUL" = xno; then
19641     # Thus we are building headless only.
19642     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19643     headful_msg="headless only"
19644   fi
19645 
19646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19647 $as_echo "$headful_msg" >&6; }
19648 
19649 
19650 
19651 
19652 
19653   # Control wether Hotspot runs Queens test after build.
19654   # Check whether --enable-hotspot-test-in-build was given.
19655 if test "${enable_hotspot_test_in_build+set}" = set; then :
19656   enableval=$enable_hotspot_test_in_build;
19657 else
19658   enable_hotspot_test_in_build=no
19659 fi
19660 
19661   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19662     TEST_IN_BUILD=true
19663   else
19664     TEST_IN_BUILD=false
19665   fi
19666 
19667 
19668   ###############################################################################
19669   #
19670   # Choose cacerts source file
19671   #
19672 
19673 # Check whether --with-cacerts-file was given.
19674 if test "${with_cacerts_file+set}" = set; then :
19675   withval=$with_cacerts_file;
19676 fi
19677 
19678   if test "x$with_cacerts_file" != x; then
19679     CACERTS_FILE=$with_cacerts_file
19680   else
19681     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19682   fi
19683 
19684 
19685   ###############################################################################
19686   #
19687   # Enable or disable unlimited crypto
19688   #
19689   # Check whether --enable-unlimited-crypto was given.
19690 if test "${enable_unlimited_crypto+set}" = set; then :
19691   enableval=$enable_unlimited_crypto;
19692 else
19693   enable_unlimited_crypto=no
19694 fi
19695 
19696   if test "x$enable_unlimited_crypto" = "xyes"; then
19697     UNLIMITED_CRYPTO=true
19698   else
19699     UNLIMITED_CRYPTO=false
19700   fi
19701 
19702 
19703   ###############################################################################
19704   #
19705   # Enable or disable the elliptic curve crypto implementation
19706   #
19707 
19708 
19709   ###############################################################################
19710   #
19711   # Compress jars
19712   #
19713   COMPRESS_JARS=false
19714 
19715 
19716 
19717 
19718   # Source the version numbers
19719   . $AUTOCONF_DIR/version-numbers
19720 
19721   # Get the settings from parameters
19722 
19723 # Check whether --with-milestone was given.
19724 if test "${with_milestone+set}" = set; then :
19725   withval=$with_milestone;
19726 fi
19727 
19728   if test "x$with_milestone" = xyes; then
19729     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19730   elif test "x$with_milestone" != x; then
19731     MILESTONE="$with_milestone"
19732   fi
19733   if test "x$MILESTONE" = x; then
19734     MILESTONE=internal
19735   fi
19736 
19737 
19738 # Check whether --with-update-version was given.
19739 if test "${with_update_version+set}" = set; then :
19740   withval=$with_update_version;
19741 fi
19742 
19743   if test "x$with_update_version" = xyes; then
19744     as_fn_error $? "Update version must have a value" "$LINENO" 5
19745   elif test "x$with_update_version" != x; then
19746     JDK_UPDATE_VERSION="$with_update_version"
19747     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19748     # to a bug in expr (which reduces it to just X). To work around this, we
19749     # always add a 0 to one digit update versions.
19750     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19751       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19752     fi
19753   fi
19754 
19755 
19756 # Check whether --with-user-release-suffix was given.
19757 if test "${with_user_release_suffix+set}" = set; then :
19758   withval=$with_user_release_suffix;
19759 fi
19760 
19761   if test "x$with_user_release_suffix" = xyes; then
19762     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19763   elif test "x$with_user_release_suffix" != x; then
19764     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19765   fi
19766 
19767 
19768 # Check whether --with-build-number was given.
19769 if test "${with_build_number+set}" = set; then :
19770   withval=$with_build_number;
19771 fi
19772 
19773   if test "x$with_build_number" = xyes; then
19774     as_fn_error $? "Build number must have a value" "$LINENO" 5
19775   elif test "x$with_build_number" != x; then
19776     JDK_BUILD_NUMBER="$with_build_number"
19777   fi
19778   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19779   if test "x$JDK_BUILD_NUMBER" = x; then
19780     JDK_BUILD_NUMBER=b00
19781     if test "x$USER_RELEASE_SUFFIX" = x; then
19782       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19783       # Avoid [:alnum:] since it depends on the locale.
19784       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19785       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19786     fi
19787   fi
19788 
19789   # Now set the JDK version, milestone, build number etc.
19790 
19791 
19792 
19793 
19794 
19795 
19796 
19797 
19798 
19799 
19800 
19801 
19802 
19803 
19804 
19805 
19806 # Check whether --with-copyright-year was given.
19807 if test "${with_copyright_year+set}" = set; then :
19808   withval=$with_copyright_year;
19809 fi
19810 
19811   if test "x$with_copyright_year" = xyes; then
19812     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
19813   elif test "x$with_copyright_year" != x; then
19814     COPYRIGHT_YEAR="$with_copyright_year"
19815   else
19816     COPYRIGHT_YEAR=`date +'%Y'`
19817   fi
19818 
19819 
19820   if test "x$JDK_UPDATE_VERSION" != x; then
19821     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19822   else
19823     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19824   fi
19825 
19826 
19827   # The cooked update version used to encode trailing letters in the update
19828   # version into a trailing number. That is no longer needed, but need to
19829   # keep the format in 8u for compatibility.
19830   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
19831 
19832 
19833   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19834 
19835 
19836 
19837 ###############################################################################
19838 #
19839 # Setup BootJDK, used to bootstrap the build.
19840 #
19841 ###############################################################################
19842 
19843 
19844   BOOT_JDK_FOUND=no
19845 
19846 # Check whether --with-boot-jdk was given.
19847 if test "${with_boot_jdk+set}" = set; then :
19848   withval=$with_boot_jdk;
19849 fi
19850 
19851 
19852   # We look for the Boot JDK through various means, going from more certain to
19853   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19854   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19855   # must check if this is indeed valid; otherwise we'll continue looking.
19856 
19857   # Test: Is bootjdk explicitely set by command line arguments?
19858 
19859   if test "x$BOOT_JDK_FOUND" = xno; then
19860     # Now execute the test
19861 
19862   if test "x$with_boot_jdk" != x; then
19863     BOOT_JDK=$with_boot_jdk
19864     BOOT_JDK_FOUND=maybe
19865     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19866 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19867   fi
19868 
19869 
19870     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19871     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19872       # Do we have a bin/java?
19873       if test ! -x "$BOOT_JDK/bin/java"; then
19874         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19876         BOOT_JDK_FOUND=no
19877       else
19878         # Do we have a bin/javac?
19879         if test ! -x "$BOOT_JDK/bin/javac"; then
19880           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19881 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19882           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19883 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19884           BOOT_JDK_FOUND=no
19885         else
19886           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19887           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19888             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19890             BOOT_JDK_FOUND=no
19891           else
19892             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19893             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19894 
19895             # Extra M4 quote needed to protect [] in grep expression.
19896             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
19897             if test "x$FOUND_VERSION_78" = x; then
19898               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19899 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19900               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
19901 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
19902               BOOT_JDK_FOUND=no
19903             else
19904               # We're done! :-)
19905               BOOT_JDK_FOUND=yes
19906 
19907   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19908 
19909   # Input might be given as Windows format, start by converting to
19910   # unix format.
19911   path="$BOOT_JDK"
19912   new_path=`$CYGPATH -u "$path"`
19913 
19914   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19915   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19916   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19917   # "foo.exe" is OK but "foo" is an error.
19918   #
19919   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19920   # It is also a way to make sure we got the proper file name for the real test later on.
19921   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19922   if test "x$test_shortpath" = x; then
19923     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19924 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19925     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19926   fi
19927 
19928   # Call helper function which possibly converts this using DOS-style short mode.
19929   # If so, the updated path is stored in $new_path.
19930 
19931   input_path="$new_path"
19932   # Check if we need to convert this using DOS-style short mode. If the path
19933   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19934   # take no chances and rewrite it.
19935   # Note: m4 eats our [], so we need to use [ and ] instead.
19936   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19937   if test "x$has_forbidden_chars" != x; then
19938     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19939     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19940     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19941     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19942       # Going to short mode and back again did indeed matter. Since short mode is
19943       # case insensitive, let's make it lowercase to improve readability.
19944       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19945       # Now convert it back to Unix-style (cygpath)
19946       input_path=`$CYGPATH -u "$shortmode_path"`
19947       new_path="$input_path"
19948     fi
19949   fi
19950 
19951   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19952   if test "x$test_cygdrive_prefix" = x; then
19953     # As a simple fix, exclude /usr/bin since it's not a real path.
19954     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19955       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19956       # a path prefixed by /cygdrive for fixpath to work.
19957       new_path="$CYGWIN_ROOT_PATH$input_path"
19958     fi
19959   fi
19960 
19961 
19962   if test "x$path" != "x$new_path"; then
19963     BOOT_JDK="$new_path"
19964     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19965 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19966   fi
19967 
19968   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19969 
19970   path="$BOOT_JDK"
19971   has_colon=`$ECHO $path | $GREP ^.:`
19972   new_path="$path"
19973   if test "x$has_colon" = x; then
19974     # Not in mixed or Windows style, start by that.
19975     new_path=`cmd //c echo $path`
19976   fi
19977 
19978 
19979   input_path="$new_path"
19980   # Check if we need to convert this using DOS-style short mode. If the path
19981   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19982   # take no chances and rewrite it.
19983   # Note: m4 eats our [], so we need to use [ and ] instead.
19984   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19985   if test "x$has_forbidden_chars" != x; then
19986     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19987     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19988   fi
19989 
19990 
19991   windows_path="$new_path"
19992   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19993     unix_path=`$CYGPATH -u "$windows_path"`
19994     new_path="$unix_path"
19995   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19996     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19997     new_path="$unix_path"
19998   fi
19999 
20000   if test "x$path" != "x$new_path"; then
20001     BOOT_JDK="$new_path"
20002     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20003 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20004   fi
20005 
20006   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20007   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20008 
20009   else
20010     # We're on a posix platform. Hooray! :)
20011     path="$BOOT_JDK"
20012     has_space=`$ECHO "$path" | $GREP " "`
20013     if test "x$has_space" != x; then
20014       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20015 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20016       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20017     fi
20018 
20019     # Use eval to expand a potential ~
20020     eval path="$path"
20021     if test ! -f "$path" && test ! -d "$path"; then
20022       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20023     fi
20024 
20025     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20026   fi
20027 
20028               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20029 $as_echo_n "checking for Boot JDK... " >&6; }
20030               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20031 $as_echo "$BOOT_JDK" >&6; }
20032               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20033 $as_echo_n "checking Boot JDK version... " >&6; }
20034               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20035               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20036 $as_echo "$BOOT_JDK_VERSION" >&6; }
20037             fi # end check jdk version
20038           fi # end check rt.jar
20039         fi # end check javac
20040       fi # end check java
20041     fi # end check boot jdk found
20042   fi
20043 
20044   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20045     # Having specified an argument which is incorrect will produce an instant failure;
20046     # we should not go on looking
20047     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20048   fi
20049 
20050   # Test: Is bootjdk available from builddeps?
20051 
20052   if test "x$BOOT_JDK_FOUND" = xno; then
20053     # Now execute the test
20054 
20055 
20056 
20057   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20058     # Source the builddeps file again, to make sure it uses the latest variables!
20059     . $builddepsfile
20060     # Look for a target and build machine specific resource!
20061     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20062     if test "x$resource" = x; then
20063       # Ok, lets instead look for a target specific resource
20064       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20065     fi
20066     if test "x$resource" = x; then
20067       # Ok, lets instead look for a build specific resource
20068       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20069     fi
20070     if test "x$resource" = x; then
20071       # Ok, lets instead look for a generic resource
20072       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20073       resource=${builddep_bootjdk}
20074     fi
20075     if test "x$resource" != x; then
20076       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20077 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20078       # If the resource in the builddeps.conf file is an existing directory,
20079       # for example /java/linux/cups
20080       if test -d ${resource}; then
20081         depdir=${resource}
20082       else
20083 
20084   # bootjdk is for example mymodule
20085   # $resource is for example libs/general/libmymod_1_2_3.zip
20086   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20087   # $with_builddeps_dir is for example /localhome/builddeps
20088   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20089   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20090   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20091   filename=`basename $resource`
20092   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20093   filebase=${filename%%.*}
20094   extension=${filename#*.}
20095   installdir=$with_builddeps_dir/$filebase
20096   if test ! -f $installdir/$filename.unpacked; then
20097     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20098 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20099     if test ! -d $installdir; then
20100       mkdir -p $installdir
20101     fi
20102     if test ! -d $installdir; then
20103       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20104     fi
20105     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20106     touch $tmpfile
20107     if test ! -f $tmpfile; then
20108       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20109     fi
20110 
20111   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20112   # $tmpfile is the local file name for the downloaded file.
20113   VALID_TOOL=no
20114   if test "x$BDEPS_FTP" = xwget; then
20115     VALID_TOOL=yes
20116     wget -O $tmpfile $with_builddeps_server/$resource
20117   fi
20118   if test "x$BDEPS_FTP" = xlftp; then
20119     VALID_TOOL=yes
20120     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20121   fi
20122   if test "x$BDEPS_FTP" = xftp; then
20123     VALID_TOOL=yes
20124     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20125     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20126     FTPUSERPWD=${FTPSERVER%%@*}
20127     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20128       FTPUSER=${userpwd%%:*}
20129       FTPPWD=${userpwd#*@}
20130       FTPSERVER=${FTPSERVER#*@}
20131     else
20132       FTPUSER=ftp
20133       FTPPWD=ftp
20134     fi
20135     # the "pass" command does not work on some
20136     # ftp clients (read ftp.exe) but if it works,
20137     # passive mode is better!
20138     ( \
20139         echo "user $FTPUSER $FTPPWD"        ; \
20140         echo "pass"                         ; \
20141         echo "bin"                          ; \
20142         echo "get $FTPPATH $tmpfile"              ; \
20143     ) | ftp -in $FTPSERVER
20144   fi
20145   if test "x$VALID_TOOL" != xyes; then
20146     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20147   fi
20148 
20149     mv $tmpfile $installdir/$filename
20150     if test ! -s $installdir/$filename; then
20151       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20152     fi
20153     case "$extension" in
20154       zip)  echo "Unzipping $installdir/$filename..."
20155         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20156         ;;
20157       tar.gz) echo "Untaring $installdir/$filename..."
20158         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20159         ;;
20160       tgz) echo "Untaring $installdir/$filename..."
20161         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20162         ;;
20163       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20164         ;;
20165     esac
20166   fi
20167   if test -f $installdir/$filename.unpacked; then
20168     depdir=$installdir
20169   fi
20170 
20171       fi
20172       # Source the builddeps file again, because in the previous command, the depdir
20173       # was updated to point at the current build dependency install directory.
20174       . $builddepsfile
20175       # Now extract variables from the builddeps.conf files.
20176       theroot=${builddep_bootjdk_ROOT}
20177       thecflags=${builddep_bootjdk_CFLAGS}
20178       thelibs=${builddep_bootjdk_LIBS}
20179       if test "x$depdir" = x; then
20180         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20181       fi
20182       BOOT_JDK=$depdir
20183       if test "x$theroot" != x; then
20184         BOOT_JDK="$theroot"
20185       fi
20186       if test "x$thecflags" != x; then
20187         BOOT_JDK_CFLAGS="$thecflags"
20188       fi
20189       if test "x$thelibs" != x; then
20190         BOOT_JDK_LIBS="$thelibs"
20191       fi
20192       BOOT_JDK_FOUND=maybe
20193       else BOOT_JDK_FOUND=no
20194 
20195     fi
20196     else BOOT_JDK_FOUND=no
20197 
20198   fi
20199 
20200 
20201 
20202     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20203     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20204       # Do we have a bin/java?
20205       if test ! -x "$BOOT_JDK/bin/java"; then
20206         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20208         BOOT_JDK_FOUND=no
20209       else
20210         # Do we have a bin/javac?
20211         if test ! -x "$BOOT_JDK/bin/javac"; then
20212           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20213 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20214           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20215 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20216           BOOT_JDK_FOUND=no
20217         else
20218           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20219           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20220             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20221 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20222             BOOT_JDK_FOUND=no
20223           else
20224             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20225             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20226 
20227             # Extra M4 quote needed to protect [] in grep expression.
20228             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20229             if test "x$FOUND_VERSION_78" = x; then
20230               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20232               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20233 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20234               BOOT_JDK_FOUND=no
20235             else
20236               # We're done! :-)
20237               BOOT_JDK_FOUND=yes
20238 
20239   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20240 
20241   # Input might be given as Windows format, start by converting to
20242   # unix format.
20243   path="$BOOT_JDK"
20244   new_path=`$CYGPATH -u "$path"`
20245 
20246   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20247   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20248   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20249   # "foo.exe" is OK but "foo" is an error.
20250   #
20251   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20252   # It is also a way to make sure we got the proper file name for the real test later on.
20253   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20254   if test "x$test_shortpath" = x; then
20255     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20256 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20257     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20258   fi
20259 
20260   # Call helper function which possibly converts this using DOS-style short mode.
20261   # If so, the updated path is stored in $new_path.
20262 
20263   input_path="$new_path"
20264   # Check if we need to convert this using DOS-style short mode. If the path
20265   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20266   # take no chances and rewrite it.
20267   # Note: m4 eats our [], so we need to use [ and ] instead.
20268   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20269   if test "x$has_forbidden_chars" != x; then
20270     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20271     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20272     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20273     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20274       # Going to short mode and back again did indeed matter. Since short mode is
20275       # case insensitive, let's make it lowercase to improve readability.
20276       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20277       # Now convert it back to Unix-style (cygpath)
20278       input_path=`$CYGPATH -u "$shortmode_path"`
20279       new_path="$input_path"
20280     fi
20281   fi
20282 
20283   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20284   if test "x$test_cygdrive_prefix" = x; then
20285     # As a simple fix, exclude /usr/bin since it's not a real path.
20286     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20287       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20288       # a path prefixed by /cygdrive for fixpath to work.
20289       new_path="$CYGWIN_ROOT_PATH$input_path"
20290     fi
20291   fi
20292 
20293 
20294   if test "x$path" != "x$new_path"; then
20295     BOOT_JDK="$new_path"
20296     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20297 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20298   fi
20299 
20300   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20301 
20302   path="$BOOT_JDK"
20303   has_colon=`$ECHO $path | $GREP ^.:`
20304   new_path="$path"
20305   if test "x$has_colon" = x; then
20306     # Not in mixed or Windows style, start by that.
20307     new_path=`cmd //c echo $path`
20308   fi
20309 
20310 
20311   input_path="$new_path"
20312   # Check if we need to convert this using DOS-style short mode. If the path
20313   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20314   # take no chances and rewrite it.
20315   # Note: m4 eats our [], so we need to use [ and ] instead.
20316   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20317   if test "x$has_forbidden_chars" != x; then
20318     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20319     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20320   fi
20321 
20322 
20323   windows_path="$new_path"
20324   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20325     unix_path=`$CYGPATH -u "$windows_path"`
20326     new_path="$unix_path"
20327   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20328     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20329     new_path="$unix_path"
20330   fi
20331 
20332   if test "x$path" != "x$new_path"; then
20333     BOOT_JDK="$new_path"
20334     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20335 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20336   fi
20337 
20338   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20339   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20340 
20341   else
20342     # We're on a posix platform. Hooray! :)
20343     path="$BOOT_JDK"
20344     has_space=`$ECHO "$path" | $GREP " "`
20345     if test "x$has_space" != x; then
20346       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20347 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20348       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20349     fi
20350 
20351     # Use eval to expand a potential ~
20352     eval path="$path"
20353     if test ! -f "$path" && test ! -d "$path"; then
20354       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20355     fi
20356 
20357     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20358   fi
20359 
20360               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20361 $as_echo_n "checking for Boot JDK... " >&6; }
20362               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20363 $as_echo "$BOOT_JDK" >&6; }
20364               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20365 $as_echo_n "checking Boot JDK version... " >&6; }
20366               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20367               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20368 $as_echo "$BOOT_JDK_VERSION" >&6; }
20369             fi # end check jdk version
20370           fi # end check rt.jar
20371         fi # end check javac
20372       fi # end check java
20373     fi # end check boot jdk found
20374   fi
20375 
20376 
20377   # Test: Is $JAVA_HOME set?
20378 
20379   if test "x$BOOT_JDK_FOUND" = xno; then
20380     # Now execute the test
20381 
20382   if test "x$JAVA_HOME" != x; then
20383     JAVA_HOME_PROCESSED="$JAVA_HOME"
20384 
20385   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20386 
20387   # Input might be given as Windows format, start by converting to
20388   # unix format.
20389   path="$JAVA_HOME_PROCESSED"
20390   new_path=`$CYGPATH -u "$path"`
20391 
20392   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20393   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20394   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20395   # "foo.exe" is OK but "foo" is an error.
20396   #
20397   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20398   # It is also a way to make sure we got the proper file name for the real test later on.
20399   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20400   if test "x$test_shortpath" = x; then
20401     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20402 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20403     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20404   fi
20405 
20406   # Call helper function which possibly converts this using DOS-style short mode.
20407   # If so, the updated path is stored in $new_path.
20408 
20409   input_path="$new_path"
20410   # Check if we need to convert this using DOS-style short mode. If the path
20411   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20412   # take no chances and rewrite it.
20413   # Note: m4 eats our [], so we need to use [ and ] instead.
20414   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20415   if test "x$has_forbidden_chars" != x; then
20416     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20417     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20418     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20419     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20420       # Going to short mode and back again did indeed matter. Since short mode is
20421       # case insensitive, let's make it lowercase to improve readability.
20422       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20423       # Now convert it back to Unix-style (cygpath)
20424       input_path=`$CYGPATH -u "$shortmode_path"`
20425       new_path="$input_path"
20426     fi
20427   fi
20428 
20429   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20430   if test "x$test_cygdrive_prefix" = x; then
20431     # As a simple fix, exclude /usr/bin since it's not a real path.
20432     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20433       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20434       # a path prefixed by /cygdrive for fixpath to work.
20435       new_path="$CYGWIN_ROOT_PATH$input_path"
20436     fi
20437   fi
20438 
20439 
20440   if test "x$path" != "x$new_path"; then
20441     JAVA_HOME_PROCESSED="$new_path"
20442     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20443 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20444   fi
20445 
20446   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20447 
20448   path="$JAVA_HOME_PROCESSED"
20449   has_colon=`$ECHO $path | $GREP ^.:`
20450   new_path="$path"
20451   if test "x$has_colon" = x; then
20452     # Not in mixed or Windows style, start by that.
20453     new_path=`cmd //c echo $path`
20454   fi
20455 
20456 
20457   input_path="$new_path"
20458   # Check if we need to convert this using DOS-style short mode. If the path
20459   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20460   # take no chances and rewrite it.
20461   # Note: m4 eats our [], so we need to use [ and ] instead.
20462   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20463   if test "x$has_forbidden_chars" != x; then
20464     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20465     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20466   fi
20467 
20468 
20469   windows_path="$new_path"
20470   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20471     unix_path=`$CYGPATH -u "$windows_path"`
20472     new_path="$unix_path"
20473   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20474     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20475     new_path="$unix_path"
20476   fi
20477 
20478   if test "x$path" != "x$new_path"; then
20479     JAVA_HOME_PROCESSED="$new_path"
20480     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20481 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20482   fi
20483 
20484   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20485   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20486 
20487   else
20488     # We're on a posix platform. Hooray! :)
20489     path="$JAVA_HOME_PROCESSED"
20490     has_space=`$ECHO "$path" | $GREP " "`
20491     if test "x$has_space" != x; then
20492       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20493 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20494       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20495     fi
20496 
20497     # Use eval to expand a potential ~
20498     eval path="$path"
20499     if test ! -f "$path" && test ! -d "$path"; then
20500       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20501     fi
20502 
20503     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20504   fi
20505 
20506     if test ! -d "$JAVA_HOME_PROCESSED"; then
20507       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20508 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20509     else
20510       # Aha, the user has set a JAVA_HOME
20511       # let us use that as the Boot JDK.
20512       BOOT_JDK="$JAVA_HOME_PROCESSED"
20513       BOOT_JDK_FOUND=maybe
20514       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20515 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20516     fi
20517   fi
20518 
20519 
20520     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20521     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20522       # Do we have a bin/java?
20523       if test ! -x "$BOOT_JDK/bin/java"; then
20524         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20525 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20526         BOOT_JDK_FOUND=no
20527       else
20528         # Do we have a bin/javac?
20529         if test ! -x "$BOOT_JDK/bin/javac"; then
20530           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20531 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20532           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20533 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20534           BOOT_JDK_FOUND=no
20535         else
20536           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20537           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20538             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20539 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20540             BOOT_JDK_FOUND=no
20541           else
20542             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20543             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20544 
20545             # Extra M4 quote needed to protect [] in grep expression.
20546             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20547             if test "x$FOUND_VERSION_78" = x; then
20548               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20549 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20550               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20551 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20552               BOOT_JDK_FOUND=no
20553             else
20554               # We're done! :-)
20555               BOOT_JDK_FOUND=yes
20556 
20557   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20558 
20559   # Input might be given as Windows format, start by converting to
20560   # unix format.
20561   path="$BOOT_JDK"
20562   new_path=`$CYGPATH -u "$path"`
20563 
20564   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20565   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20566   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20567   # "foo.exe" is OK but "foo" is an error.
20568   #
20569   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20570   # It is also a way to make sure we got the proper file name for the real test later on.
20571   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20572   if test "x$test_shortpath" = x; then
20573     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20574 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20575     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20576   fi
20577 
20578   # Call helper function which possibly converts this using DOS-style short mode.
20579   # If so, the updated path is stored in $new_path.
20580 
20581   input_path="$new_path"
20582   # Check if we need to convert this using DOS-style short mode. If the path
20583   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20584   # take no chances and rewrite it.
20585   # Note: m4 eats our [], so we need to use [ and ] instead.
20586   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20587   if test "x$has_forbidden_chars" != x; then
20588     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20589     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20590     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20591     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20592       # Going to short mode and back again did indeed matter. Since short mode is
20593       # case insensitive, let's make it lowercase to improve readability.
20594       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20595       # Now convert it back to Unix-style (cygpath)
20596       input_path=`$CYGPATH -u "$shortmode_path"`
20597       new_path="$input_path"
20598     fi
20599   fi
20600 
20601   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20602   if test "x$test_cygdrive_prefix" = x; then
20603     # As a simple fix, exclude /usr/bin since it's not a real path.
20604     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20605       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20606       # a path prefixed by /cygdrive for fixpath to work.
20607       new_path="$CYGWIN_ROOT_PATH$input_path"
20608     fi
20609   fi
20610 
20611 
20612   if test "x$path" != "x$new_path"; then
20613     BOOT_JDK="$new_path"
20614     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20615 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20616   fi
20617 
20618   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20619 
20620   path="$BOOT_JDK"
20621   has_colon=`$ECHO $path | $GREP ^.:`
20622   new_path="$path"
20623   if test "x$has_colon" = x; then
20624     # Not in mixed or Windows style, start by that.
20625     new_path=`cmd //c echo $path`
20626   fi
20627 
20628 
20629   input_path="$new_path"
20630   # Check if we need to convert this using DOS-style short mode. If the path
20631   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20632   # take no chances and rewrite it.
20633   # Note: m4 eats our [], so we need to use [ and ] instead.
20634   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20635   if test "x$has_forbidden_chars" != x; then
20636     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20637     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20638   fi
20639 
20640 
20641   windows_path="$new_path"
20642   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20643     unix_path=`$CYGPATH -u "$windows_path"`
20644     new_path="$unix_path"
20645   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20646     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20647     new_path="$unix_path"
20648   fi
20649 
20650   if test "x$path" != "x$new_path"; then
20651     BOOT_JDK="$new_path"
20652     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20653 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20654   fi
20655 
20656   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20657   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20658 
20659   else
20660     # We're on a posix platform. Hooray! :)
20661     path="$BOOT_JDK"
20662     has_space=`$ECHO "$path" | $GREP " "`
20663     if test "x$has_space" != x; then
20664       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20665 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20666       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20667     fi
20668 
20669     # Use eval to expand a potential ~
20670     eval path="$path"
20671     if test ! -f "$path" && test ! -d "$path"; then
20672       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20673     fi
20674 
20675     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20676   fi
20677 
20678               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20679 $as_echo_n "checking for Boot JDK... " >&6; }
20680               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20681 $as_echo "$BOOT_JDK" >&6; }
20682               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20683 $as_echo_n "checking Boot JDK version... " >&6; }
20684               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20685               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20686 $as_echo "$BOOT_JDK_VERSION" >&6; }
20687             fi # end check jdk version
20688           fi # end check rt.jar
20689         fi # end check javac
20690       fi # end check java
20691     fi # end check boot jdk found
20692   fi
20693 
20694 
20695   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20696 
20697   if test "x$BOOT_JDK_FOUND" = xno; then
20698     # Now execute the test
20699 
20700   if test -x /usr/libexec/java_home; then
20701     BOOT_JDK=`/usr/libexec/java_home`
20702     BOOT_JDK_FOUND=maybe
20703     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20704 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20705   fi
20706 
20707 
20708     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20709     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20710       # Do we have a bin/java?
20711       if test ! -x "$BOOT_JDK/bin/java"; then
20712         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20713 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20714         BOOT_JDK_FOUND=no
20715       else
20716         # Do we have a bin/javac?
20717         if test ! -x "$BOOT_JDK/bin/javac"; then
20718           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20719 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20720           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20721 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20722           BOOT_JDK_FOUND=no
20723         else
20724           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20725           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20726             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20728             BOOT_JDK_FOUND=no
20729           else
20730             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20731             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20732 
20733             # Extra M4 quote needed to protect [] in grep expression.
20734             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20735             if test "x$FOUND_VERSION_78" = x; then
20736               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20738               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20739 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20740               BOOT_JDK_FOUND=no
20741             else
20742               # We're done! :-)
20743               BOOT_JDK_FOUND=yes
20744 
20745   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20746 
20747   # Input might be given as Windows format, start by converting to
20748   # unix format.
20749   path="$BOOT_JDK"
20750   new_path=`$CYGPATH -u "$path"`
20751 
20752   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20753   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20754   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20755   # "foo.exe" is OK but "foo" is an error.
20756   #
20757   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20758   # It is also a way to make sure we got the proper file name for the real test later on.
20759   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20760   if test "x$test_shortpath" = x; then
20761     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20762 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20763     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20764   fi
20765 
20766   # Call helper function which possibly converts this using DOS-style short mode.
20767   # If so, the updated path is stored in $new_path.
20768 
20769   input_path="$new_path"
20770   # Check if we need to convert this using DOS-style short mode. If the path
20771   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20772   # take no chances and rewrite it.
20773   # Note: m4 eats our [], so we need to use [ and ] instead.
20774   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20775   if test "x$has_forbidden_chars" != x; then
20776     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20777     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20778     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20779     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20780       # Going to short mode and back again did indeed matter. Since short mode is
20781       # case insensitive, let's make it lowercase to improve readability.
20782       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20783       # Now convert it back to Unix-style (cygpath)
20784       input_path=`$CYGPATH -u "$shortmode_path"`
20785       new_path="$input_path"
20786     fi
20787   fi
20788 
20789   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20790   if test "x$test_cygdrive_prefix" = x; then
20791     # As a simple fix, exclude /usr/bin since it's not a real path.
20792     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20793       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20794       # a path prefixed by /cygdrive for fixpath to work.
20795       new_path="$CYGWIN_ROOT_PATH$input_path"
20796     fi
20797   fi
20798 
20799 
20800   if test "x$path" != "x$new_path"; then
20801     BOOT_JDK="$new_path"
20802     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20803 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20804   fi
20805 
20806   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20807 
20808   path="$BOOT_JDK"
20809   has_colon=`$ECHO $path | $GREP ^.:`
20810   new_path="$path"
20811   if test "x$has_colon" = x; then
20812     # Not in mixed or Windows style, start by that.
20813     new_path=`cmd //c echo $path`
20814   fi
20815 
20816 
20817   input_path="$new_path"
20818   # Check if we need to convert this using DOS-style short mode. If the path
20819   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20820   # take no chances and rewrite it.
20821   # Note: m4 eats our [], so we need to use [ and ] instead.
20822   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20823   if test "x$has_forbidden_chars" != x; then
20824     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20825     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20826   fi
20827 
20828 
20829   windows_path="$new_path"
20830   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20831     unix_path=`$CYGPATH -u "$windows_path"`
20832     new_path="$unix_path"
20833   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20834     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20835     new_path="$unix_path"
20836   fi
20837 
20838   if test "x$path" != "x$new_path"; then
20839     BOOT_JDK="$new_path"
20840     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20841 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20842   fi
20843 
20844   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20845   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20846 
20847   else
20848     # We're on a posix platform. Hooray! :)
20849     path="$BOOT_JDK"
20850     has_space=`$ECHO "$path" | $GREP " "`
20851     if test "x$has_space" != x; then
20852       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20853 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20854       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20855     fi
20856 
20857     # Use eval to expand a potential ~
20858     eval path="$path"
20859     if test ! -f "$path" && test ! -d "$path"; then
20860       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20861     fi
20862 
20863     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20864   fi
20865 
20866               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20867 $as_echo_n "checking for Boot JDK... " >&6; }
20868               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20869 $as_echo "$BOOT_JDK" >&6; }
20870               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20871 $as_echo_n "checking Boot JDK version... " >&6; }
20872               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20873               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20874 $as_echo "$BOOT_JDK_VERSION" >&6; }
20875             fi # end check jdk version
20876           fi # end check rt.jar
20877         fi # end check javac
20878       fi # end check java
20879     fi # end check boot jdk found
20880   fi
20881 
20882 
20883   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
20884 
20885   if test "x$BOOT_JDK_FOUND" = xno; then
20886     # Now execute the test
20887 
20888   # Extract the first word of "javac", so it can be a program name with args.
20889 set dummy javac; ac_word=$2
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20891 $as_echo_n "checking for $ac_word... " >&6; }
20892 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
20893   $as_echo_n "(cached) " >&6
20894 else
20895   case $JAVAC_CHECK in
20896   [\\/]* | ?:[\\/]*)
20897   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
20898   ;;
20899   *)
20900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20901 for as_dir in $PATH
20902 do
20903   IFS=$as_save_IFS
20904   test -z "$as_dir" && as_dir=.
20905     for ac_exec_ext in '' $ac_executable_extensions; do
20906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20907     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20909     break 2
20910   fi
20911 done
20912   done
20913 IFS=$as_save_IFS
20914 
20915   ;;
20916 esac
20917 fi
20918 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
20919 if test -n "$JAVAC_CHECK"; then
20920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
20921 $as_echo "$JAVAC_CHECK" >&6; }
20922 else
20923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20924 $as_echo "no" >&6; }
20925 fi
20926 
20927 
20928   # Extract the first word of "java", so it can be a program name with args.
20929 set dummy java; ac_word=$2
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20931 $as_echo_n "checking for $ac_word... " >&6; }
20932 if ${ac_cv_path_JAVA_CHECK+:} false; then :
20933   $as_echo_n "(cached) " >&6
20934 else
20935   case $JAVA_CHECK in
20936   [\\/]* | ?:[\\/]*)
20937   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
20938   ;;
20939   *)
20940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20941 for as_dir in $PATH
20942 do
20943   IFS=$as_save_IFS
20944   test -z "$as_dir" && as_dir=.
20945     for ac_exec_ext in '' $ac_executable_extensions; do
20946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20947     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
20948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20949     break 2
20950   fi
20951 done
20952   done
20953 IFS=$as_save_IFS
20954 
20955   ;;
20956 esac
20957 fi
20958 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
20959 if test -n "$JAVA_CHECK"; then
20960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
20961 $as_echo "$JAVA_CHECK" >&6; }
20962 else
20963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964 $as_echo "no" >&6; }
20965 fi
20966 
20967 
20968   BINARY="$JAVAC_CHECK"
20969   if test "x$JAVAC_CHECK" = x; then
20970     BINARY="$JAVA_CHECK"
20971   fi
20972   if test "x$BINARY" != x; then
20973     # So there is a java(c) binary, it might be part of a JDK.
20974     # Lets find the JDK/JRE directory by following symbolic links.
20975     # Linux/GNU systems often have links from /usr/bin/java to
20976     # /etc/alternatives/java to the real JDK binary.
20977 
20978   if test "x$OPENJDK_BUILD_OS" != xwindows; then
20979     # Follow a chain of symbolic links. Use readlink
20980     # where it exists, else fall back to horribly
20981     # complicated shell code.
20982     if test "x$READLINK_TESTED" != yes; then
20983       # On MacOSX there is a readlink tool with a different
20984       # purpose than the GNU readlink tool. Check the found readlink.
20985       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
20986       if test "x$ISGNU" = x; then
20987         # A readlink that we do not know how to use.
20988         # Are there other non-GNU readlinks out there?
20989         READLINK_TESTED=yes
20990         READLINK=
20991       fi
20992     fi
20993 
20994     if test "x$READLINK" != x; then
20995       BINARY=`$READLINK -f $BINARY`
20996     else
20997       # Save the current directory for restoring afterwards
20998       STARTDIR=$PWD
20999       COUNTER=0
21000       sym_link_dir=`$DIRNAME $BINARY`
21001       sym_link_file=`$BASENAME $BINARY`
21002       cd $sym_link_dir
21003       # Use -P flag to resolve symlinks in directories.
21004       cd `$THEPWDCMD -P`
21005       sym_link_dir=`$THEPWDCMD -P`
21006       # Resolve file symlinks
21007       while test $COUNTER -lt 20; do
21008         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21009         if test "x$ISLINK" == x; then
21010           # This is not a symbolic link! We are done!
21011           break
21012         fi
21013         # Again resolve directory symlinks since the target of the just found
21014         # link could be in a different directory
21015         cd `$DIRNAME $ISLINK`
21016         sym_link_dir=`$THEPWDCMD -P`
21017         sym_link_file=`$BASENAME $ISLINK`
21018         let COUNTER=COUNTER+1
21019       done
21020       cd $STARTDIR
21021       BINARY=$sym_link_dir/$sym_link_file
21022     fi
21023   fi
21024 
21025     BOOT_JDK=`dirname "$BINARY"`
21026     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21027     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21028       # Looks like we found ourselves an JDK
21029       BOOT_JDK_FOUND=maybe
21030       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21031 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21032     fi
21033   fi
21034 
21035 
21036     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21037     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21038       # Do we have a bin/java?
21039       if test ! -x "$BOOT_JDK/bin/java"; then
21040         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21041 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21042         BOOT_JDK_FOUND=no
21043       else
21044         # Do we have a bin/javac?
21045         if test ! -x "$BOOT_JDK/bin/javac"; then
21046           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21048           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21049 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21050           BOOT_JDK_FOUND=no
21051         else
21052           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21053           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21054             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21055 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21056             BOOT_JDK_FOUND=no
21057           else
21058             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21059             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21060 
21061             # Extra M4 quote needed to protect [] in grep expression.
21062             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21063             if test "x$FOUND_VERSION_78" = x; then
21064               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21065 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21066               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21067 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21068               BOOT_JDK_FOUND=no
21069             else
21070               # We're done! :-)
21071               BOOT_JDK_FOUND=yes
21072 
21073   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21074 
21075   # Input might be given as Windows format, start by converting to
21076   # unix format.
21077   path="$BOOT_JDK"
21078   new_path=`$CYGPATH -u "$path"`
21079 
21080   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21081   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21082   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21083   # "foo.exe" is OK but "foo" is an error.
21084   #
21085   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21086   # It is also a way to make sure we got the proper file name for the real test later on.
21087   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21088   if test "x$test_shortpath" = x; then
21089     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21090 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21091     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21092   fi
21093 
21094   # Call helper function which possibly converts this using DOS-style short mode.
21095   # If so, the updated path is stored in $new_path.
21096 
21097   input_path="$new_path"
21098   # Check if we need to convert this using DOS-style short mode. If the path
21099   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21100   # take no chances and rewrite it.
21101   # Note: m4 eats our [], so we need to use [ and ] instead.
21102   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21103   if test "x$has_forbidden_chars" != x; then
21104     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21105     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21106     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21107     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21108       # Going to short mode and back again did indeed matter. Since short mode is
21109       # case insensitive, let's make it lowercase to improve readability.
21110       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21111       # Now convert it back to Unix-style (cygpath)
21112       input_path=`$CYGPATH -u "$shortmode_path"`
21113       new_path="$input_path"
21114     fi
21115   fi
21116 
21117   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21118   if test "x$test_cygdrive_prefix" = x; then
21119     # As a simple fix, exclude /usr/bin since it's not a real path.
21120     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21121       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21122       # a path prefixed by /cygdrive for fixpath to work.
21123       new_path="$CYGWIN_ROOT_PATH$input_path"
21124     fi
21125   fi
21126 
21127 
21128   if test "x$path" != "x$new_path"; then
21129     BOOT_JDK="$new_path"
21130     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21131 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21132   fi
21133 
21134   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21135 
21136   path="$BOOT_JDK"
21137   has_colon=`$ECHO $path | $GREP ^.:`
21138   new_path="$path"
21139   if test "x$has_colon" = x; then
21140     # Not in mixed or Windows style, start by that.
21141     new_path=`cmd //c echo $path`
21142   fi
21143 
21144 
21145   input_path="$new_path"
21146   # Check if we need to convert this using DOS-style short mode. If the path
21147   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21148   # take no chances and rewrite it.
21149   # Note: m4 eats our [], so we need to use [ and ] instead.
21150   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21151   if test "x$has_forbidden_chars" != x; then
21152     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21153     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21154   fi
21155 
21156 
21157   windows_path="$new_path"
21158   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21159     unix_path=`$CYGPATH -u "$windows_path"`
21160     new_path="$unix_path"
21161   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21162     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21163     new_path="$unix_path"
21164   fi
21165 
21166   if test "x$path" != "x$new_path"; then
21167     BOOT_JDK="$new_path"
21168     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21169 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21170   fi
21171 
21172   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21173   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21174 
21175   else
21176     # We're on a posix platform. Hooray! :)
21177     path="$BOOT_JDK"
21178     has_space=`$ECHO "$path" | $GREP " "`
21179     if test "x$has_space" != x; then
21180       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21181 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21182       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21183     fi
21184 
21185     # Use eval to expand a potential ~
21186     eval path="$path"
21187     if test ! -f "$path" && test ! -d "$path"; then
21188       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21189     fi
21190 
21191     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21192   fi
21193 
21194               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21195 $as_echo_n "checking for Boot JDK... " >&6; }
21196               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21197 $as_echo "$BOOT_JDK" >&6; }
21198               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21199 $as_echo_n "checking Boot JDK version... " >&6; }
21200               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21201               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21202 $as_echo "$BOOT_JDK_VERSION" >&6; }
21203             fi # end check jdk version
21204           fi # end check rt.jar
21205         fi # end check javac
21206       fi # end check java
21207     fi # end check boot jdk found
21208   fi
21209 
21210 
21211   # Test: Is there a JDK installed in default, well-known locations?
21212 
21213   if test "x$BOOT_JDK_FOUND" = xno; then
21214     # Now execute the test
21215 
21216   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21217 
21218   if test "x$BOOT_JDK_FOUND" = xno; then
21219     # Now execute the test
21220 
21221   if test "x$ProgramW6432" != x; then
21222     VIRTUAL_DIR="$ProgramW6432/Java"
21223 
21224   windows_path="$VIRTUAL_DIR"
21225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21226     unix_path=`$CYGPATH -u "$windows_path"`
21227     VIRTUAL_DIR="$unix_path"
21228   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21229     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21230     VIRTUAL_DIR="$unix_path"
21231   fi
21232 
21233 
21234   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21235   BOOT_JDK_SUFFIX=""
21236   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21237   if test "x$ALL_JDKS_FOUND" != x; then
21238     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21239 
21240   if test "x$BOOT_JDK_FOUND" = xno; then
21241     # Now execute the test
21242 
21243         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21244         if test -d "$BOOT_JDK"; then
21245           BOOT_JDK_FOUND=maybe
21246           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21247 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21248         fi
21249 
21250 
21251     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21252     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21253       # Do we have a bin/java?
21254       if test ! -x "$BOOT_JDK/bin/java"; then
21255         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21257         BOOT_JDK_FOUND=no
21258       else
21259         # Do we have a bin/javac?
21260         if test ! -x "$BOOT_JDK/bin/javac"; then
21261           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21262 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21263           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21264 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21265           BOOT_JDK_FOUND=no
21266         else
21267           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21268           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21269             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21271             BOOT_JDK_FOUND=no
21272           else
21273             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21274             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21275 
21276             # Extra M4 quote needed to protect [] in grep expression.
21277             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21278             if test "x$FOUND_VERSION_78" = x; then
21279               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21281               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21282 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21283               BOOT_JDK_FOUND=no
21284             else
21285               # We're done! :-)
21286               BOOT_JDK_FOUND=yes
21287 
21288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21289 
21290   # Input might be given as Windows format, start by converting to
21291   # unix format.
21292   path="$BOOT_JDK"
21293   new_path=`$CYGPATH -u "$path"`
21294 
21295   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21296   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21297   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21298   # "foo.exe" is OK but "foo" is an error.
21299   #
21300   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21301   # It is also a way to make sure we got the proper file name for the real test later on.
21302   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21303   if test "x$test_shortpath" = x; then
21304     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21305 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21306     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21307   fi
21308 
21309   # Call helper function which possibly converts this using DOS-style short mode.
21310   # If so, the updated path is stored in $new_path.
21311 
21312   input_path="$new_path"
21313   # Check if we need to convert this using DOS-style short mode. If the path
21314   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21315   # take no chances and rewrite it.
21316   # Note: m4 eats our [], so we need to use [ and ] instead.
21317   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21318   if test "x$has_forbidden_chars" != x; then
21319     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21320     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21321     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21322     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21323       # Going to short mode and back again did indeed matter. Since short mode is
21324       # case insensitive, let's make it lowercase to improve readability.
21325       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21326       # Now convert it back to Unix-style (cygpath)
21327       input_path=`$CYGPATH -u "$shortmode_path"`
21328       new_path="$input_path"
21329     fi
21330   fi
21331 
21332   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21333   if test "x$test_cygdrive_prefix" = x; then
21334     # As a simple fix, exclude /usr/bin since it's not a real path.
21335     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21336       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21337       # a path prefixed by /cygdrive for fixpath to work.
21338       new_path="$CYGWIN_ROOT_PATH$input_path"
21339     fi
21340   fi
21341 
21342 
21343   if test "x$path" != "x$new_path"; then
21344     BOOT_JDK="$new_path"
21345     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21347   fi
21348 
21349   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21350 
21351   path="$BOOT_JDK"
21352   has_colon=`$ECHO $path | $GREP ^.:`
21353   new_path="$path"
21354   if test "x$has_colon" = x; then
21355     # Not in mixed or Windows style, start by that.
21356     new_path=`cmd //c echo $path`
21357   fi
21358 
21359 
21360   input_path="$new_path"
21361   # Check if we need to convert this using DOS-style short mode. If the path
21362   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21363   # take no chances and rewrite it.
21364   # Note: m4 eats our [], so we need to use [ and ] instead.
21365   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21366   if test "x$has_forbidden_chars" != x; then
21367     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21368     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21369   fi
21370 
21371 
21372   windows_path="$new_path"
21373   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21374     unix_path=`$CYGPATH -u "$windows_path"`
21375     new_path="$unix_path"
21376   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21377     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21378     new_path="$unix_path"
21379   fi
21380 
21381   if test "x$path" != "x$new_path"; then
21382     BOOT_JDK="$new_path"
21383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21385   fi
21386 
21387   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21388   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21389 
21390   else
21391     # We're on a posix platform. Hooray! :)
21392     path="$BOOT_JDK"
21393     has_space=`$ECHO "$path" | $GREP " "`
21394     if test "x$has_space" != x; then
21395       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21396 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21397       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21398     fi
21399 
21400     # Use eval to expand a potential ~
21401     eval path="$path"
21402     if test ! -f "$path" && test ! -d "$path"; then
21403       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21404     fi
21405 
21406     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21407   fi
21408 
21409               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21410 $as_echo_n "checking for Boot JDK... " >&6; }
21411               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21412 $as_echo "$BOOT_JDK" >&6; }
21413               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21414 $as_echo_n "checking Boot JDK version... " >&6; }
21415               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21416               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21417 $as_echo "$BOOT_JDK_VERSION" >&6; }
21418             fi # end check jdk version
21419           fi # end check rt.jar
21420         fi # end check javac
21421       fi # end check java
21422     fi # end check boot jdk found
21423   fi
21424 
21425     done
21426   fi
21427 
21428   fi
21429 
21430 
21431     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21432     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21433       # Do we have a bin/java?
21434       if test ! -x "$BOOT_JDK/bin/java"; then
21435         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21437         BOOT_JDK_FOUND=no
21438       else
21439         # Do we have a bin/javac?
21440         if test ! -x "$BOOT_JDK/bin/javac"; then
21441           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21443           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21444 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21445           BOOT_JDK_FOUND=no
21446         else
21447           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21448           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21449             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21450 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21451             BOOT_JDK_FOUND=no
21452           else
21453             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21454             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21455 
21456             # Extra M4 quote needed to protect [] in grep expression.
21457             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21458             if test "x$FOUND_VERSION_78" = x; then
21459               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21461               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21462 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21463               BOOT_JDK_FOUND=no
21464             else
21465               # We're done! :-)
21466               BOOT_JDK_FOUND=yes
21467 
21468   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21469 
21470   # Input might be given as Windows format, start by converting to
21471   # unix format.
21472   path="$BOOT_JDK"
21473   new_path=`$CYGPATH -u "$path"`
21474 
21475   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21476   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21477   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21478   # "foo.exe" is OK but "foo" is an error.
21479   #
21480   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21481   # It is also a way to make sure we got the proper file name for the real test later on.
21482   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21483   if test "x$test_shortpath" = x; then
21484     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21485 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21486     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21487   fi
21488 
21489   # Call helper function which possibly converts this using DOS-style short mode.
21490   # If so, the updated path is stored in $new_path.
21491 
21492   input_path="$new_path"
21493   # Check if we need to convert this using DOS-style short mode. If the path
21494   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21495   # take no chances and rewrite it.
21496   # Note: m4 eats our [], so we need to use [ and ] instead.
21497   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21498   if test "x$has_forbidden_chars" != x; then
21499     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21500     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21501     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21502     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21503       # Going to short mode and back again did indeed matter. Since short mode is
21504       # case insensitive, let's make it lowercase to improve readability.
21505       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21506       # Now convert it back to Unix-style (cygpath)
21507       input_path=`$CYGPATH -u "$shortmode_path"`
21508       new_path="$input_path"
21509     fi
21510   fi
21511 
21512   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21513   if test "x$test_cygdrive_prefix" = x; then
21514     # As a simple fix, exclude /usr/bin since it's not a real path.
21515     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21516       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21517       # a path prefixed by /cygdrive for fixpath to work.
21518       new_path="$CYGWIN_ROOT_PATH$input_path"
21519     fi
21520   fi
21521 
21522 
21523   if test "x$path" != "x$new_path"; then
21524     BOOT_JDK="$new_path"
21525     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21526 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21527   fi
21528 
21529   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21530 
21531   path="$BOOT_JDK"
21532   has_colon=`$ECHO $path | $GREP ^.:`
21533   new_path="$path"
21534   if test "x$has_colon" = x; then
21535     # Not in mixed or Windows style, start by that.
21536     new_path=`cmd //c echo $path`
21537   fi
21538 
21539 
21540   input_path="$new_path"
21541   # Check if we need to convert this using DOS-style short mode. If the path
21542   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21543   # take no chances and rewrite it.
21544   # Note: m4 eats our [], so we need to use [ and ] instead.
21545   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21546   if test "x$has_forbidden_chars" != x; then
21547     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21548     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21549   fi
21550 
21551 
21552   windows_path="$new_path"
21553   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21554     unix_path=`$CYGPATH -u "$windows_path"`
21555     new_path="$unix_path"
21556   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21557     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21558     new_path="$unix_path"
21559   fi
21560 
21561   if test "x$path" != "x$new_path"; then
21562     BOOT_JDK="$new_path"
21563     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21564 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21565   fi
21566 
21567   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21568   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21569 
21570   else
21571     # We're on a posix platform. Hooray! :)
21572     path="$BOOT_JDK"
21573     has_space=`$ECHO "$path" | $GREP " "`
21574     if test "x$has_space" != x; then
21575       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21576 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21577       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21578     fi
21579 
21580     # Use eval to expand a potential ~
21581     eval path="$path"
21582     if test ! -f "$path" && test ! -d "$path"; then
21583       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21584     fi
21585 
21586     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21587   fi
21588 
21589               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21590 $as_echo_n "checking for Boot JDK... " >&6; }
21591               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21592 $as_echo "$BOOT_JDK" >&6; }
21593               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21594 $as_echo_n "checking Boot JDK version... " >&6; }
21595               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21596               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21597 $as_echo "$BOOT_JDK_VERSION" >&6; }
21598             fi # end check jdk version
21599           fi # end check rt.jar
21600         fi # end check javac
21601       fi # end check java
21602     fi # end check boot jdk found
21603   fi
21604 
21605 
21606   if test "x$BOOT_JDK_FOUND" = xno; then
21607     # Now execute the test
21608 
21609   if test "x$PROGRAMW6432" != x; then
21610     VIRTUAL_DIR="$PROGRAMW6432/Java"
21611 
21612   windows_path="$VIRTUAL_DIR"
21613   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21614     unix_path=`$CYGPATH -u "$windows_path"`
21615     VIRTUAL_DIR="$unix_path"
21616   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21617     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21618     VIRTUAL_DIR="$unix_path"
21619   fi
21620 
21621 
21622   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21623   BOOT_JDK_SUFFIX=""
21624   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21625   if test "x$ALL_JDKS_FOUND" != x; then
21626     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21627 
21628   if test "x$BOOT_JDK_FOUND" = xno; then
21629     # Now execute the test
21630 
21631         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21632         if test -d "$BOOT_JDK"; then
21633           BOOT_JDK_FOUND=maybe
21634           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21635 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21636         fi
21637 
21638 
21639     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21640     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21641       # Do we have a bin/java?
21642       if test ! -x "$BOOT_JDK/bin/java"; then
21643         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21645         BOOT_JDK_FOUND=no
21646       else
21647         # Do we have a bin/javac?
21648         if test ! -x "$BOOT_JDK/bin/javac"; then
21649           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21651           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21652 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21653           BOOT_JDK_FOUND=no
21654         else
21655           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21656           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21657             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21659             BOOT_JDK_FOUND=no
21660           else
21661             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21662             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21663 
21664             # Extra M4 quote needed to protect [] in grep expression.
21665             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21666             if test "x$FOUND_VERSION_78" = x; then
21667               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21669               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21670 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21671               BOOT_JDK_FOUND=no
21672             else
21673               # We're done! :-)
21674               BOOT_JDK_FOUND=yes
21675 
21676   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21677 
21678   # Input might be given as Windows format, start by converting to
21679   # unix format.
21680   path="$BOOT_JDK"
21681   new_path=`$CYGPATH -u "$path"`
21682 
21683   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21684   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21685   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21686   # "foo.exe" is OK but "foo" is an error.
21687   #
21688   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21689   # It is also a way to make sure we got the proper file name for the real test later on.
21690   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21691   if test "x$test_shortpath" = x; then
21692     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21693 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21694     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21695   fi
21696 
21697   # Call helper function which possibly converts this using DOS-style short mode.
21698   # If so, the updated path is stored in $new_path.
21699 
21700   input_path="$new_path"
21701   # Check if we need to convert this using DOS-style short mode. If the path
21702   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21703   # take no chances and rewrite it.
21704   # Note: m4 eats our [], so we need to use [ and ] instead.
21705   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21706   if test "x$has_forbidden_chars" != x; then
21707     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21708     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21709     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21710     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21711       # Going to short mode and back again did indeed matter. Since short mode is
21712       # case insensitive, let's make it lowercase to improve readability.
21713       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21714       # Now convert it back to Unix-style (cygpath)
21715       input_path=`$CYGPATH -u "$shortmode_path"`
21716       new_path="$input_path"
21717     fi
21718   fi
21719 
21720   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21721   if test "x$test_cygdrive_prefix" = x; then
21722     # As a simple fix, exclude /usr/bin since it's not a real path.
21723     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21724       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21725       # a path prefixed by /cygdrive for fixpath to work.
21726       new_path="$CYGWIN_ROOT_PATH$input_path"
21727     fi
21728   fi
21729 
21730 
21731   if test "x$path" != "x$new_path"; then
21732     BOOT_JDK="$new_path"
21733     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21734 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21735   fi
21736 
21737   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21738 
21739   path="$BOOT_JDK"
21740   has_colon=`$ECHO $path | $GREP ^.:`
21741   new_path="$path"
21742   if test "x$has_colon" = x; then
21743     # Not in mixed or Windows style, start by that.
21744     new_path=`cmd //c echo $path`
21745   fi
21746 
21747 
21748   input_path="$new_path"
21749   # Check if we need to convert this using DOS-style short mode. If the path
21750   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21751   # take no chances and rewrite it.
21752   # Note: m4 eats our [], so we need to use [ and ] instead.
21753   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21754   if test "x$has_forbidden_chars" != x; then
21755     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21756     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21757   fi
21758 
21759 
21760   windows_path="$new_path"
21761   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21762     unix_path=`$CYGPATH -u "$windows_path"`
21763     new_path="$unix_path"
21764   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21765     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21766     new_path="$unix_path"
21767   fi
21768 
21769   if test "x$path" != "x$new_path"; then
21770     BOOT_JDK="$new_path"
21771     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21772 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21773   fi
21774 
21775   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21776   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21777 
21778   else
21779     # We're on a posix platform. Hooray! :)
21780     path="$BOOT_JDK"
21781     has_space=`$ECHO "$path" | $GREP " "`
21782     if test "x$has_space" != x; then
21783       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21784 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21785       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21786     fi
21787 
21788     # Use eval to expand a potential ~
21789     eval path="$path"
21790     if test ! -f "$path" && test ! -d "$path"; then
21791       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21792     fi
21793 
21794     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21795   fi
21796 
21797               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21798 $as_echo_n "checking for Boot JDK... " >&6; }
21799               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21800 $as_echo "$BOOT_JDK" >&6; }
21801               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21802 $as_echo_n "checking Boot JDK version... " >&6; }
21803               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21804               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21805 $as_echo "$BOOT_JDK_VERSION" >&6; }
21806             fi # end check jdk version
21807           fi # end check rt.jar
21808         fi # end check javac
21809       fi # end check java
21810     fi # end check boot jdk found
21811   fi
21812 
21813     done
21814   fi
21815 
21816   fi
21817 
21818 
21819     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21820     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21821       # Do we have a bin/java?
21822       if test ! -x "$BOOT_JDK/bin/java"; then
21823         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21825         BOOT_JDK_FOUND=no
21826       else
21827         # Do we have a bin/javac?
21828         if test ! -x "$BOOT_JDK/bin/javac"; then
21829           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21830 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21831           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21832 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21833           BOOT_JDK_FOUND=no
21834         else
21835           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21836           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21837             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21838 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21839             BOOT_JDK_FOUND=no
21840           else
21841             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21842             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21843 
21844             # Extra M4 quote needed to protect [] in grep expression.
21845             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21846             if test "x$FOUND_VERSION_78" = x; then
21847               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21848 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21849               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21850 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21851               BOOT_JDK_FOUND=no
21852             else
21853               # We're done! :-)
21854               BOOT_JDK_FOUND=yes
21855 
21856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21857 
21858   # Input might be given as Windows format, start by converting to
21859   # unix format.
21860   path="$BOOT_JDK"
21861   new_path=`$CYGPATH -u "$path"`
21862 
21863   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21864   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21865   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21866   # "foo.exe" is OK but "foo" is an error.
21867   #
21868   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21869   # It is also a way to make sure we got the proper file name for the real test later on.
21870   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21871   if test "x$test_shortpath" = x; then
21872     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21873 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21874     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21875   fi
21876 
21877   # Call helper function which possibly converts this using DOS-style short mode.
21878   # If so, the updated path is stored in $new_path.
21879 
21880   input_path="$new_path"
21881   # Check if we need to convert this using DOS-style short mode. If the path
21882   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21883   # take no chances and rewrite it.
21884   # Note: m4 eats our [], so we need to use [ and ] instead.
21885   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21886   if test "x$has_forbidden_chars" != x; then
21887     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21888     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21889     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21890     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21891       # Going to short mode and back again did indeed matter. Since short mode is
21892       # case insensitive, let's make it lowercase to improve readability.
21893       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21894       # Now convert it back to Unix-style (cygpath)
21895       input_path=`$CYGPATH -u "$shortmode_path"`
21896       new_path="$input_path"
21897     fi
21898   fi
21899 
21900   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21901   if test "x$test_cygdrive_prefix" = x; then
21902     # As a simple fix, exclude /usr/bin since it's not a real path.
21903     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21904       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21905       # a path prefixed by /cygdrive for fixpath to work.
21906       new_path="$CYGWIN_ROOT_PATH$input_path"
21907     fi
21908   fi
21909 
21910 
21911   if test "x$path" != "x$new_path"; then
21912     BOOT_JDK="$new_path"
21913     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21914 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21915   fi
21916 
21917   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21918 
21919   path="$BOOT_JDK"
21920   has_colon=`$ECHO $path | $GREP ^.:`
21921   new_path="$path"
21922   if test "x$has_colon" = x; then
21923     # Not in mixed or Windows style, start by that.
21924     new_path=`cmd //c echo $path`
21925   fi
21926 
21927 
21928   input_path="$new_path"
21929   # Check if we need to convert this using DOS-style short mode. If the path
21930   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21931   # take no chances and rewrite it.
21932   # Note: m4 eats our [], so we need to use [ and ] instead.
21933   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21934   if test "x$has_forbidden_chars" != x; then
21935     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21936     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21937   fi
21938 
21939 
21940   windows_path="$new_path"
21941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21942     unix_path=`$CYGPATH -u "$windows_path"`
21943     new_path="$unix_path"
21944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21945     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21946     new_path="$unix_path"
21947   fi
21948 
21949   if test "x$path" != "x$new_path"; then
21950     BOOT_JDK="$new_path"
21951     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21952 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21953   fi
21954 
21955   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21956   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21957 
21958   else
21959     # We're on a posix platform. Hooray! :)
21960     path="$BOOT_JDK"
21961     has_space=`$ECHO "$path" | $GREP " "`
21962     if test "x$has_space" != x; then
21963       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21964 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21965       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21966     fi
21967 
21968     # Use eval to expand a potential ~
21969     eval path="$path"
21970     if test ! -f "$path" && test ! -d "$path"; then
21971       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21972     fi
21973 
21974     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21975   fi
21976 
21977               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21978 $as_echo_n "checking for Boot JDK... " >&6; }
21979               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21980 $as_echo "$BOOT_JDK" >&6; }
21981               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21982 $as_echo_n "checking Boot JDK version... " >&6; }
21983               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21984               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21985 $as_echo "$BOOT_JDK_VERSION" >&6; }
21986             fi # end check jdk version
21987           fi # end check rt.jar
21988         fi # end check javac
21989       fi # end check java
21990     fi # end check boot jdk found
21991   fi
21992 
21993 
21994   if test "x$BOOT_JDK_FOUND" = xno; then
21995     # Now execute the test
21996 
21997   if test "x$PROGRAMFILES" != x; then
21998     VIRTUAL_DIR="$PROGRAMFILES/Java"
21999 
22000   windows_path="$VIRTUAL_DIR"
22001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22002     unix_path=`$CYGPATH -u "$windows_path"`
22003     VIRTUAL_DIR="$unix_path"
22004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22006     VIRTUAL_DIR="$unix_path"
22007   fi
22008 
22009 
22010   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22011   BOOT_JDK_SUFFIX=""
22012   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22013   if test "x$ALL_JDKS_FOUND" != x; then
22014     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22015 
22016   if test "x$BOOT_JDK_FOUND" = xno; then
22017     # Now execute the test
22018 
22019         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22020         if test -d "$BOOT_JDK"; then
22021           BOOT_JDK_FOUND=maybe
22022           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22023 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22024         fi
22025 
22026 
22027     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22028     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22029       # Do we have a bin/java?
22030       if test ! -x "$BOOT_JDK/bin/java"; then
22031         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22032 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22033         BOOT_JDK_FOUND=no
22034       else
22035         # Do we have a bin/javac?
22036         if test ! -x "$BOOT_JDK/bin/javac"; then
22037           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22039           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22040 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22041           BOOT_JDK_FOUND=no
22042         else
22043           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22044           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22045             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22046 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22047             BOOT_JDK_FOUND=no
22048           else
22049             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22050             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22051 
22052             # Extra M4 quote needed to protect [] in grep expression.
22053             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22054             if test "x$FOUND_VERSION_78" = x; then
22055               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22056 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22057               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22058 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22059               BOOT_JDK_FOUND=no
22060             else
22061               # We're done! :-)
22062               BOOT_JDK_FOUND=yes
22063 
22064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22065 
22066   # Input might be given as Windows format, start by converting to
22067   # unix format.
22068   path="$BOOT_JDK"
22069   new_path=`$CYGPATH -u "$path"`
22070 
22071   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22072   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22073   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22074   # "foo.exe" is OK but "foo" is an error.
22075   #
22076   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22077   # It is also a way to make sure we got the proper file name for the real test later on.
22078   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22079   if test "x$test_shortpath" = x; then
22080     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22081 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22082     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22083   fi
22084 
22085   # Call helper function which possibly converts this using DOS-style short mode.
22086   # If so, the updated path is stored in $new_path.
22087 
22088   input_path="$new_path"
22089   # Check if we need to convert this using DOS-style short mode. If the path
22090   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22091   # take no chances and rewrite it.
22092   # Note: m4 eats our [], so we need to use [ and ] instead.
22093   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22094   if test "x$has_forbidden_chars" != x; then
22095     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22096     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22097     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22098     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22099       # Going to short mode and back again did indeed matter. Since short mode is
22100       # case insensitive, let's make it lowercase to improve readability.
22101       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22102       # Now convert it back to Unix-style (cygpath)
22103       input_path=`$CYGPATH -u "$shortmode_path"`
22104       new_path="$input_path"
22105     fi
22106   fi
22107 
22108   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22109   if test "x$test_cygdrive_prefix" = x; then
22110     # As a simple fix, exclude /usr/bin since it's not a real path.
22111     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22112       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22113       # a path prefixed by /cygdrive for fixpath to work.
22114       new_path="$CYGWIN_ROOT_PATH$input_path"
22115     fi
22116   fi
22117 
22118 
22119   if test "x$path" != "x$new_path"; then
22120     BOOT_JDK="$new_path"
22121     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22122 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22123   fi
22124 
22125   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22126 
22127   path="$BOOT_JDK"
22128   has_colon=`$ECHO $path | $GREP ^.:`
22129   new_path="$path"
22130   if test "x$has_colon" = x; then
22131     # Not in mixed or Windows style, start by that.
22132     new_path=`cmd //c echo $path`
22133   fi
22134 
22135 
22136   input_path="$new_path"
22137   # Check if we need to convert this using DOS-style short mode. If the path
22138   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22139   # take no chances and rewrite it.
22140   # Note: m4 eats our [], so we need to use [ and ] instead.
22141   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22142   if test "x$has_forbidden_chars" != x; then
22143     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22144     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22145   fi
22146 
22147 
22148   windows_path="$new_path"
22149   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22150     unix_path=`$CYGPATH -u "$windows_path"`
22151     new_path="$unix_path"
22152   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22153     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22154     new_path="$unix_path"
22155   fi
22156 
22157   if test "x$path" != "x$new_path"; then
22158     BOOT_JDK="$new_path"
22159     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22160 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22161   fi
22162 
22163   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22164   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22165 
22166   else
22167     # We're on a posix platform. Hooray! :)
22168     path="$BOOT_JDK"
22169     has_space=`$ECHO "$path" | $GREP " "`
22170     if test "x$has_space" != x; then
22171       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22172 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22173       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22174     fi
22175 
22176     # Use eval to expand a potential ~
22177     eval path="$path"
22178     if test ! -f "$path" && test ! -d "$path"; then
22179       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22180     fi
22181 
22182     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22183   fi
22184 
22185               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22186 $as_echo_n "checking for Boot JDK... " >&6; }
22187               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22188 $as_echo "$BOOT_JDK" >&6; }
22189               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22190 $as_echo_n "checking Boot JDK version... " >&6; }
22191               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22192               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22193 $as_echo "$BOOT_JDK_VERSION" >&6; }
22194             fi # end check jdk version
22195           fi # end check rt.jar
22196         fi # end check javac
22197       fi # end check java
22198     fi # end check boot jdk found
22199   fi
22200 
22201     done
22202   fi
22203 
22204   fi
22205 
22206 
22207     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22208     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22209       # Do we have a bin/java?
22210       if test ! -x "$BOOT_JDK/bin/java"; then
22211         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22212 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22213         BOOT_JDK_FOUND=no
22214       else
22215         # Do we have a bin/javac?
22216         if test ! -x "$BOOT_JDK/bin/javac"; then
22217           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22218 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22219           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22220 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22221           BOOT_JDK_FOUND=no
22222         else
22223           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22224           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22225             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22226 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22227             BOOT_JDK_FOUND=no
22228           else
22229             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22230             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22231 
22232             # Extra M4 quote needed to protect [] in grep expression.
22233             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22234             if test "x$FOUND_VERSION_78" = x; then
22235               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22236 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22237               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22238 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22239               BOOT_JDK_FOUND=no
22240             else
22241               # We're done! :-)
22242               BOOT_JDK_FOUND=yes
22243 
22244   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22245 
22246   # Input might be given as Windows format, start by converting to
22247   # unix format.
22248   path="$BOOT_JDK"
22249   new_path=`$CYGPATH -u "$path"`
22250 
22251   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22252   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22253   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22254   # "foo.exe" is OK but "foo" is an error.
22255   #
22256   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22257   # It is also a way to make sure we got the proper file name for the real test later on.
22258   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22259   if test "x$test_shortpath" = x; then
22260     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22261 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22262     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22263   fi
22264 
22265   # Call helper function which possibly converts this using DOS-style short mode.
22266   # If so, the updated path is stored in $new_path.
22267 
22268   input_path="$new_path"
22269   # Check if we need to convert this using DOS-style short mode. If the path
22270   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22271   # take no chances and rewrite it.
22272   # Note: m4 eats our [], so we need to use [ and ] instead.
22273   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22274   if test "x$has_forbidden_chars" != x; then
22275     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22276     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22277     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22278     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22279       # Going to short mode and back again did indeed matter. Since short mode is
22280       # case insensitive, let's make it lowercase to improve readability.
22281       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22282       # Now convert it back to Unix-style (cygpath)
22283       input_path=`$CYGPATH -u "$shortmode_path"`
22284       new_path="$input_path"
22285     fi
22286   fi
22287 
22288   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22289   if test "x$test_cygdrive_prefix" = x; then
22290     # As a simple fix, exclude /usr/bin since it's not a real path.
22291     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22292       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22293       # a path prefixed by /cygdrive for fixpath to work.
22294       new_path="$CYGWIN_ROOT_PATH$input_path"
22295     fi
22296   fi
22297 
22298 
22299   if test "x$path" != "x$new_path"; then
22300     BOOT_JDK="$new_path"
22301     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22302 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22303   fi
22304 
22305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22306 
22307   path="$BOOT_JDK"
22308   has_colon=`$ECHO $path | $GREP ^.:`
22309   new_path="$path"
22310   if test "x$has_colon" = x; then
22311     # Not in mixed or Windows style, start by that.
22312     new_path=`cmd //c echo $path`
22313   fi
22314 
22315 
22316   input_path="$new_path"
22317   # Check if we need to convert this using DOS-style short mode. If the path
22318   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22319   # take no chances and rewrite it.
22320   # Note: m4 eats our [], so we need to use [ and ] instead.
22321   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22322   if test "x$has_forbidden_chars" != x; then
22323     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22324     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22325   fi
22326 
22327 
22328   windows_path="$new_path"
22329   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22330     unix_path=`$CYGPATH -u "$windows_path"`
22331     new_path="$unix_path"
22332   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22333     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22334     new_path="$unix_path"
22335   fi
22336 
22337   if test "x$path" != "x$new_path"; then
22338     BOOT_JDK="$new_path"
22339     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22340 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22341   fi
22342 
22343   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22344   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22345 
22346   else
22347     # We're on a posix platform. Hooray! :)
22348     path="$BOOT_JDK"
22349     has_space=`$ECHO "$path" | $GREP " "`
22350     if test "x$has_space" != x; then
22351       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22352 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22353       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22354     fi
22355 
22356     # Use eval to expand a potential ~
22357     eval path="$path"
22358     if test ! -f "$path" && test ! -d "$path"; then
22359       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22360     fi
22361 
22362     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22363   fi
22364 
22365               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22366 $as_echo_n "checking for Boot JDK... " >&6; }
22367               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22368 $as_echo "$BOOT_JDK" >&6; }
22369               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22370 $as_echo_n "checking Boot JDK version... " >&6; }
22371               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22372               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22373 $as_echo "$BOOT_JDK_VERSION" >&6; }
22374             fi # end check jdk version
22375           fi # end check rt.jar
22376         fi # end check javac
22377       fi # end check java
22378     fi # end check boot jdk found
22379   fi
22380 
22381 
22382   if test "x$BOOT_JDK_FOUND" = xno; then
22383     # Now execute the test
22384 
22385   if test "x$ProgramFiles" != x; then
22386     VIRTUAL_DIR="$ProgramFiles/Java"
22387 
22388   windows_path="$VIRTUAL_DIR"
22389   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22390     unix_path=`$CYGPATH -u "$windows_path"`
22391     VIRTUAL_DIR="$unix_path"
22392   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22393     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22394     VIRTUAL_DIR="$unix_path"
22395   fi
22396 
22397 
22398   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22399   BOOT_JDK_SUFFIX=""
22400   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22401   if test "x$ALL_JDKS_FOUND" != x; then
22402     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22403 
22404   if test "x$BOOT_JDK_FOUND" = xno; then
22405     # Now execute the test
22406 
22407         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22408         if test -d "$BOOT_JDK"; then
22409           BOOT_JDK_FOUND=maybe
22410           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22411 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22412         fi
22413 
22414 
22415     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22416     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22417       # Do we have a bin/java?
22418       if test ! -x "$BOOT_JDK/bin/java"; then
22419         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22421         BOOT_JDK_FOUND=no
22422       else
22423         # Do we have a bin/javac?
22424         if test ! -x "$BOOT_JDK/bin/javac"; then
22425           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22427           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22428 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22429           BOOT_JDK_FOUND=no
22430         else
22431           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22432           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22433             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22435             BOOT_JDK_FOUND=no
22436           else
22437             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22438             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22439 
22440             # Extra M4 quote needed to protect [] in grep expression.
22441             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22442             if test "x$FOUND_VERSION_78" = x; then
22443               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22444 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22445               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22446 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22447               BOOT_JDK_FOUND=no
22448             else
22449               # We're done! :-)
22450               BOOT_JDK_FOUND=yes
22451 
22452   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22453 
22454   # Input might be given as Windows format, start by converting to
22455   # unix format.
22456   path="$BOOT_JDK"
22457   new_path=`$CYGPATH -u "$path"`
22458 
22459   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22460   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22461   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22462   # "foo.exe" is OK but "foo" is an error.
22463   #
22464   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22465   # It is also a way to make sure we got the proper file name for the real test later on.
22466   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22467   if test "x$test_shortpath" = x; then
22468     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22469 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22470     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22471   fi
22472 
22473   # Call helper function which possibly converts this using DOS-style short mode.
22474   # If so, the updated path is stored in $new_path.
22475 
22476   input_path="$new_path"
22477   # Check if we need to convert this using DOS-style short mode. If the path
22478   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22479   # take no chances and rewrite it.
22480   # Note: m4 eats our [], so we need to use [ and ] instead.
22481   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22482   if test "x$has_forbidden_chars" != x; then
22483     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22484     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22485     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22486     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22487       # Going to short mode and back again did indeed matter. Since short mode is
22488       # case insensitive, let's make it lowercase to improve readability.
22489       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22490       # Now convert it back to Unix-style (cygpath)
22491       input_path=`$CYGPATH -u "$shortmode_path"`
22492       new_path="$input_path"
22493     fi
22494   fi
22495 
22496   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22497   if test "x$test_cygdrive_prefix" = x; then
22498     # As a simple fix, exclude /usr/bin since it's not a real path.
22499     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22500       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22501       # a path prefixed by /cygdrive for fixpath to work.
22502       new_path="$CYGWIN_ROOT_PATH$input_path"
22503     fi
22504   fi
22505 
22506 
22507   if test "x$path" != "x$new_path"; then
22508     BOOT_JDK="$new_path"
22509     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22510 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22511   fi
22512 
22513   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22514 
22515   path="$BOOT_JDK"
22516   has_colon=`$ECHO $path | $GREP ^.:`
22517   new_path="$path"
22518   if test "x$has_colon" = x; then
22519     # Not in mixed or Windows style, start by that.
22520     new_path=`cmd //c echo $path`
22521   fi
22522 
22523 
22524   input_path="$new_path"
22525   # Check if we need to convert this using DOS-style short mode. If the path
22526   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22527   # take no chances and rewrite it.
22528   # Note: m4 eats our [], so we need to use [ and ] instead.
22529   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22530   if test "x$has_forbidden_chars" != x; then
22531     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22532     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22533   fi
22534 
22535 
22536   windows_path="$new_path"
22537   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22538     unix_path=`$CYGPATH -u "$windows_path"`
22539     new_path="$unix_path"
22540   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22541     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22542     new_path="$unix_path"
22543   fi
22544 
22545   if test "x$path" != "x$new_path"; then
22546     BOOT_JDK="$new_path"
22547     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22548 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22549   fi
22550 
22551   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22552   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22553 
22554   else
22555     # We're on a posix platform. Hooray! :)
22556     path="$BOOT_JDK"
22557     has_space=`$ECHO "$path" | $GREP " "`
22558     if test "x$has_space" != x; then
22559       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22560 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22561       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22562     fi
22563 
22564     # Use eval to expand a potential ~
22565     eval path="$path"
22566     if test ! -f "$path" && test ! -d "$path"; then
22567       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22568     fi
22569 
22570     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22571   fi
22572 
22573               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22574 $as_echo_n "checking for Boot JDK... " >&6; }
22575               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22576 $as_echo "$BOOT_JDK" >&6; }
22577               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22578 $as_echo_n "checking Boot JDK version... " >&6; }
22579               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22580               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22581 $as_echo "$BOOT_JDK_VERSION" >&6; }
22582             fi # end check jdk version
22583           fi # end check rt.jar
22584         fi # end check javac
22585       fi # end check java
22586     fi # end check boot jdk found
22587   fi
22588 
22589     done
22590   fi
22591 
22592   fi
22593 
22594 
22595     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22596     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22597       # Do we have a bin/java?
22598       if test ! -x "$BOOT_JDK/bin/java"; then
22599         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22600 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22601         BOOT_JDK_FOUND=no
22602       else
22603         # Do we have a bin/javac?
22604         if test ! -x "$BOOT_JDK/bin/javac"; then
22605           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22607           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22608 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22609           BOOT_JDK_FOUND=no
22610         else
22611           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22612           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22613             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22614 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22615             BOOT_JDK_FOUND=no
22616           else
22617             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22618             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22619 
22620             # Extra M4 quote needed to protect [] in grep expression.
22621             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22622             if test "x$FOUND_VERSION_78" = x; then
22623               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22624 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22625               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22626 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22627               BOOT_JDK_FOUND=no
22628             else
22629               # We're done! :-)
22630               BOOT_JDK_FOUND=yes
22631 
22632   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22633 
22634   # Input might be given as Windows format, start by converting to
22635   # unix format.
22636   path="$BOOT_JDK"
22637   new_path=`$CYGPATH -u "$path"`
22638 
22639   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22640   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22641   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22642   # "foo.exe" is OK but "foo" is an error.
22643   #
22644   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22645   # It is also a way to make sure we got the proper file name for the real test later on.
22646   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22647   if test "x$test_shortpath" = x; then
22648     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22649 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22650     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22651   fi
22652 
22653   # Call helper function which possibly converts this using DOS-style short mode.
22654   # If so, the updated path is stored in $new_path.
22655 
22656   input_path="$new_path"
22657   # Check if we need to convert this using DOS-style short mode. If the path
22658   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22659   # take no chances and rewrite it.
22660   # Note: m4 eats our [], so we need to use [ and ] instead.
22661   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22662   if test "x$has_forbidden_chars" != x; then
22663     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22664     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22665     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22666     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22667       # Going to short mode and back again did indeed matter. Since short mode is
22668       # case insensitive, let's make it lowercase to improve readability.
22669       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22670       # Now convert it back to Unix-style (cygpath)
22671       input_path=`$CYGPATH -u "$shortmode_path"`
22672       new_path="$input_path"
22673     fi
22674   fi
22675 
22676   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22677   if test "x$test_cygdrive_prefix" = x; then
22678     # As a simple fix, exclude /usr/bin since it's not a real path.
22679     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22680       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22681       # a path prefixed by /cygdrive for fixpath to work.
22682       new_path="$CYGWIN_ROOT_PATH$input_path"
22683     fi
22684   fi
22685 
22686 
22687   if test "x$path" != "x$new_path"; then
22688     BOOT_JDK="$new_path"
22689     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22690 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22691   fi
22692 
22693   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22694 
22695   path="$BOOT_JDK"
22696   has_colon=`$ECHO $path | $GREP ^.:`
22697   new_path="$path"
22698   if test "x$has_colon" = x; then
22699     # Not in mixed or Windows style, start by that.
22700     new_path=`cmd //c echo $path`
22701   fi
22702 
22703 
22704   input_path="$new_path"
22705   # Check if we need to convert this using DOS-style short mode. If the path
22706   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22707   # take no chances and rewrite it.
22708   # Note: m4 eats our [], so we need to use [ and ] instead.
22709   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22710   if test "x$has_forbidden_chars" != x; then
22711     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22712     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22713   fi
22714 
22715 
22716   windows_path="$new_path"
22717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22718     unix_path=`$CYGPATH -u "$windows_path"`
22719     new_path="$unix_path"
22720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22722     new_path="$unix_path"
22723   fi
22724 
22725   if test "x$path" != "x$new_path"; then
22726     BOOT_JDK="$new_path"
22727     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22728 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22729   fi
22730 
22731   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22732   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22733 
22734   else
22735     # We're on a posix platform. Hooray! :)
22736     path="$BOOT_JDK"
22737     has_space=`$ECHO "$path" | $GREP " "`
22738     if test "x$has_space" != x; then
22739       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22740 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22741       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22742     fi
22743 
22744     # Use eval to expand a potential ~
22745     eval path="$path"
22746     if test ! -f "$path" && test ! -d "$path"; then
22747       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22748     fi
22749 
22750     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22751   fi
22752 
22753               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22754 $as_echo_n "checking for Boot JDK... " >&6; }
22755               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22756 $as_echo "$BOOT_JDK" >&6; }
22757               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22758 $as_echo_n "checking Boot JDK version... " >&6; }
22759               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22760               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22761 $as_echo "$BOOT_JDK_VERSION" >&6; }
22762             fi # end check jdk version
22763           fi # end check rt.jar
22764         fi # end check javac
22765       fi # end check java
22766     fi # end check boot jdk found
22767   fi
22768 
22769 
22770   if test "x$BOOT_JDK_FOUND" = xno; then
22771     # Now execute the test
22772 
22773   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22774   BOOT_JDK_SUFFIX=""
22775   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22776   if test "x$ALL_JDKS_FOUND" != x; then
22777     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22778 
22779   if test "x$BOOT_JDK_FOUND" = xno; then
22780     # Now execute the test
22781 
22782         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22783         if test -d "$BOOT_JDK"; then
22784           BOOT_JDK_FOUND=maybe
22785           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22786 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22787         fi
22788 
22789 
22790     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22791     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22792       # Do we have a bin/java?
22793       if test ! -x "$BOOT_JDK/bin/java"; then
22794         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22795 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22796         BOOT_JDK_FOUND=no
22797       else
22798         # Do we have a bin/javac?
22799         if test ! -x "$BOOT_JDK/bin/javac"; then
22800           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22801 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22802           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22803 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22804           BOOT_JDK_FOUND=no
22805         else
22806           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22807           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22808             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22809 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22810             BOOT_JDK_FOUND=no
22811           else
22812             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22813             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22814 
22815             # Extra M4 quote needed to protect [] in grep expression.
22816             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22817             if test "x$FOUND_VERSION_78" = x; then
22818               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22819 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22820               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22821 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22822               BOOT_JDK_FOUND=no
22823             else
22824               # We're done! :-)
22825               BOOT_JDK_FOUND=yes
22826 
22827   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22828 
22829   # Input might be given as Windows format, start by converting to
22830   # unix format.
22831   path="$BOOT_JDK"
22832   new_path=`$CYGPATH -u "$path"`
22833 
22834   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22835   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22836   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22837   # "foo.exe" is OK but "foo" is an error.
22838   #
22839   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22840   # It is also a way to make sure we got the proper file name for the real test later on.
22841   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22842   if test "x$test_shortpath" = x; then
22843     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22844 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22845     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22846   fi
22847 
22848   # Call helper function which possibly converts this using DOS-style short mode.
22849   # If so, the updated path is stored in $new_path.
22850 
22851   input_path="$new_path"
22852   # Check if we need to convert this using DOS-style short mode. If the path
22853   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22854   # take no chances and rewrite it.
22855   # Note: m4 eats our [], so we need to use [ and ] instead.
22856   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22857   if test "x$has_forbidden_chars" != x; then
22858     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22859     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22860     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22861     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22862       # Going to short mode and back again did indeed matter. Since short mode is
22863       # case insensitive, let's make it lowercase to improve readability.
22864       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22865       # Now convert it back to Unix-style (cygpath)
22866       input_path=`$CYGPATH -u "$shortmode_path"`
22867       new_path="$input_path"
22868     fi
22869   fi
22870 
22871   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22872   if test "x$test_cygdrive_prefix" = x; then
22873     # As a simple fix, exclude /usr/bin since it's not a real path.
22874     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22875       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22876       # a path prefixed by /cygdrive for fixpath to work.
22877       new_path="$CYGWIN_ROOT_PATH$input_path"
22878     fi
22879   fi
22880 
22881 
22882   if test "x$path" != "x$new_path"; then
22883     BOOT_JDK="$new_path"
22884     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22885 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22886   fi
22887 
22888   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22889 
22890   path="$BOOT_JDK"
22891   has_colon=`$ECHO $path | $GREP ^.:`
22892   new_path="$path"
22893   if test "x$has_colon" = x; then
22894     # Not in mixed or Windows style, start by that.
22895     new_path=`cmd //c echo $path`
22896   fi
22897 
22898 
22899   input_path="$new_path"
22900   # Check if we need to convert this using DOS-style short mode. If the path
22901   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22902   # take no chances and rewrite it.
22903   # Note: m4 eats our [], so we need to use [ and ] instead.
22904   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22905   if test "x$has_forbidden_chars" != x; then
22906     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22907     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22908   fi
22909 
22910 
22911   windows_path="$new_path"
22912   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22913     unix_path=`$CYGPATH -u "$windows_path"`
22914     new_path="$unix_path"
22915   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22916     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22917     new_path="$unix_path"
22918   fi
22919 
22920   if test "x$path" != "x$new_path"; then
22921     BOOT_JDK="$new_path"
22922     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22923 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22924   fi
22925 
22926   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22927   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22928 
22929   else
22930     # We're on a posix platform. Hooray! :)
22931     path="$BOOT_JDK"
22932     has_space=`$ECHO "$path" | $GREP " "`
22933     if test "x$has_space" != x; then
22934       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22935 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22936       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22937     fi
22938 
22939     # Use eval to expand a potential ~
22940     eval path="$path"
22941     if test ! -f "$path" && test ! -d "$path"; then
22942       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22943     fi
22944 
22945     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22946   fi
22947 
22948               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22949 $as_echo_n "checking for Boot JDK... " >&6; }
22950               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22951 $as_echo "$BOOT_JDK" >&6; }
22952               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22953 $as_echo_n "checking Boot JDK version... " >&6; }
22954               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22955               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22956 $as_echo "$BOOT_JDK_VERSION" >&6; }
22957             fi # end check jdk version
22958           fi # end check rt.jar
22959         fi # end check javac
22960       fi # end check java
22961     fi # end check boot jdk found
22962   fi
22963 
22964     done
22965   fi
22966 
22967 
22968     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22969     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22970       # Do we have a bin/java?
22971       if test ! -x "$BOOT_JDK/bin/java"; then
22972         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22973 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22974         BOOT_JDK_FOUND=no
22975       else
22976         # Do we have a bin/javac?
22977         if test ! -x "$BOOT_JDK/bin/javac"; then
22978           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22979 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22980           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22981 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22982           BOOT_JDK_FOUND=no
22983         else
22984           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22985           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22986             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22987 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22988             BOOT_JDK_FOUND=no
22989           else
22990             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22991             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22992 
22993             # Extra M4 quote needed to protect [] in grep expression.
22994             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22995             if test "x$FOUND_VERSION_78" = x; then
22996               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22998               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22999 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23000               BOOT_JDK_FOUND=no
23001             else
23002               # We're done! :-)
23003               BOOT_JDK_FOUND=yes
23004 
23005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23006 
23007   # Input might be given as Windows format, start by converting to
23008   # unix format.
23009   path="$BOOT_JDK"
23010   new_path=`$CYGPATH -u "$path"`
23011 
23012   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23013   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23014   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23015   # "foo.exe" is OK but "foo" is an error.
23016   #
23017   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23018   # It is also a way to make sure we got the proper file name for the real test later on.
23019   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23020   if test "x$test_shortpath" = x; then
23021     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23022 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23023     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23024   fi
23025 
23026   # Call helper function which possibly converts this using DOS-style short mode.
23027   # If so, the updated path is stored in $new_path.
23028 
23029   input_path="$new_path"
23030   # Check if we need to convert this using DOS-style short mode. If the path
23031   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23032   # take no chances and rewrite it.
23033   # Note: m4 eats our [], so we need to use [ and ] instead.
23034   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23035   if test "x$has_forbidden_chars" != x; then
23036     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23037     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23038     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23039     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23040       # Going to short mode and back again did indeed matter. Since short mode is
23041       # case insensitive, let's make it lowercase to improve readability.
23042       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23043       # Now convert it back to Unix-style (cygpath)
23044       input_path=`$CYGPATH -u "$shortmode_path"`
23045       new_path="$input_path"
23046     fi
23047   fi
23048 
23049   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23050   if test "x$test_cygdrive_prefix" = x; then
23051     # As a simple fix, exclude /usr/bin since it's not a real path.
23052     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23053       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23054       # a path prefixed by /cygdrive for fixpath to work.
23055       new_path="$CYGWIN_ROOT_PATH$input_path"
23056     fi
23057   fi
23058 
23059 
23060   if test "x$path" != "x$new_path"; then
23061     BOOT_JDK="$new_path"
23062     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23063 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23064   fi
23065 
23066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23067 
23068   path="$BOOT_JDK"
23069   has_colon=`$ECHO $path | $GREP ^.:`
23070   new_path="$path"
23071   if test "x$has_colon" = x; then
23072     # Not in mixed or Windows style, start by that.
23073     new_path=`cmd //c echo $path`
23074   fi
23075 
23076 
23077   input_path="$new_path"
23078   # Check if we need to convert this using DOS-style short mode. If the path
23079   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23080   # take no chances and rewrite it.
23081   # Note: m4 eats our [], so we need to use [ and ] instead.
23082   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23083   if test "x$has_forbidden_chars" != x; then
23084     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23085     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23086   fi
23087 
23088 
23089   windows_path="$new_path"
23090   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23091     unix_path=`$CYGPATH -u "$windows_path"`
23092     new_path="$unix_path"
23093   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23094     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23095     new_path="$unix_path"
23096   fi
23097 
23098   if test "x$path" != "x$new_path"; then
23099     BOOT_JDK="$new_path"
23100     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23101 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23102   fi
23103 
23104   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23105   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23106 
23107   else
23108     # We're on a posix platform. Hooray! :)
23109     path="$BOOT_JDK"
23110     has_space=`$ECHO "$path" | $GREP " "`
23111     if test "x$has_space" != x; then
23112       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23113 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23114       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23115     fi
23116 
23117     # Use eval to expand a potential ~
23118     eval path="$path"
23119     if test ! -f "$path" && test ! -d "$path"; then
23120       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23121     fi
23122 
23123     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23124   fi
23125 
23126               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23127 $as_echo_n "checking for Boot JDK... " >&6; }
23128               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23129 $as_echo "$BOOT_JDK" >&6; }
23130               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23131 $as_echo_n "checking Boot JDK version... " >&6; }
23132               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23133               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23134 $as_echo "$BOOT_JDK_VERSION" >&6; }
23135             fi # end check jdk version
23136           fi # end check rt.jar
23137         fi # end check javac
23138       fi # end check java
23139     fi # end check boot jdk found
23140   fi
23141 
23142   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23143 
23144   if test "x$BOOT_JDK_FOUND" = xno; then
23145     # Now execute the test
23146 
23147   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23148   BOOT_JDK_SUFFIX="/Contents/Home"
23149   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23150   if test "x$ALL_JDKS_FOUND" != x; then
23151     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23152 
23153   if test "x$BOOT_JDK_FOUND" = xno; then
23154     # Now execute the test
23155 
23156         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23157         if test -d "$BOOT_JDK"; then
23158           BOOT_JDK_FOUND=maybe
23159           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23160 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23161         fi
23162 
23163 
23164     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23165     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23166       # Do we have a bin/java?
23167       if test ! -x "$BOOT_JDK/bin/java"; then
23168         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23170         BOOT_JDK_FOUND=no
23171       else
23172         # Do we have a bin/javac?
23173         if test ! -x "$BOOT_JDK/bin/javac"; then
23174           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23175 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23176           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23177 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23178           BOOT_JDK_FOUND=no
23179         else
23180           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23181           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23182             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23184             BOOT_JDK_FOUND=no
23185           else
23186             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23187             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23188 
23189             # Extra M4 quote needed to protect [] in grep expression.
23190             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23191             if test "x$FOUND_VERSION_78" = x; then
23192               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23194               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23195 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23196               BOOT_JDK_FOUND=no
23197             else
23198               # We're done! :-)
23199               BOOT_JDK_FOUND=yes
23200 
23201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23202 
23203   # Input might be given as Windows format, start by converting to
23204   # unix format.
23205   path="$BOOT_JDK"
23206   new_path=`$CYGPATH -u "$path"`
23207 
23208   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23209   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23210   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23211   # "foo.exe" is OK but "foo" is an error.
23212   #
23213   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23214   # It is also a way to make sure we got the proper file name for the real test later on.
23215   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23216   if test "x$test_shortpath" = x; then
23217     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23218 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23219     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23220   fi
23221 
23222   # Call helper function which possibly converts this using DOS-style short mode.
23223   # If so, the updated path is stored in $new_path.
23224 
23225   input_path="$new_path"
23226   # Check if we need to convert this using DOS-style short mode. If the path
23227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23228   # take no chances and rewrite it.
23229   # Note: m4 eats our [], so we need to use [ and ] instead.
23230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23231   if test "x$has_forbidden_chars" != x; then
23232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23233     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23234     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23235     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23236       # Going to short mode and back again did indeed matter. Since short mode is
23237       # case insensitive, let's make it lowercase to improve readability.
23238       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23239       # Now convert it back to Unix-style (cygpath)
23240       input_path=`$CYGPATH -u "$shortmode_path"`
23241       new_path="$input_path"
23242     fi
23243   fi
23244 
23245   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23246   if test "x$test_cygdrive_prefix" = x; then
23247     # As a simple fix, exclude /usr/bin since it's not a real path.
23248     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23249       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23250       # a path prefixed by /cygdrive for fixpath to work.
23251       new_path="$CYGWIN_ROOT_PATH$input_path"
23252     fi
23253   fi
23254 
23255 
23256   if test "x$path" != "x$new_path"; then
23257     BOOT_JDK="$new_path"
23258     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23259 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23260   fi
23261 
23262   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23263 
23264   path="$BOOT_JDK"
23265   has_colon=`$ECHO $path | $GREP ^.:`
23266   new_path="$path"
23267   if test "x$has_colon" = x; then
23268     # Not in mixed or Windows style, start by that.
23269     new_path=`cmd //c echo $path`
23270   fi
23271 
23272 
23273   input_path="$new_path"
23274   # Check if we need to convert this using DOS-style short mode. If the path
23275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23276   # take no chances and rewrite it.
23277   # Note: m4 eats our [], so we need to use [ and ] instead.
23278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23279   if test "x$has_forbidden_chars" != x; then
23280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23281     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23282   fi
23283 
23284 
23285   windows_path="$new_path"
23286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23287     unix_path=`$CYGPATH -u "$windows_path"`
23288     new_path="$unix_path"
23289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23290     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23291     new_path="$unix_path"
23292   fi
23293 
23294   if test "x$path" != "x$new_path"; then
23295     BOOT_JDK="$new_path"
23296     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23297 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23298   fi
23299 
23300   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23301   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23302 
23303   else
23304     # We're on a posix platform. Hooray! :)
23305     path="$BOOT_JDK"
23306     has_space=`$ECHO "$path" | $GREP " "`
23307     if test "x$has_space" != x; then
23308       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23309 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23310       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23311     fi
23312 
23313     # Use eval to expand a potential ~
23314     eval path="$path"
23315     if test ! -f "$path" && test ! -d "$path"; then
23316       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23317     fi
23318 
23319     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23320   fi
23321 
23322               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23323 $as_echo_n "checking for Boot JDK... " >&6; }
23324               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23325 $as_echo "$BOOT_JDK" >&6; }
23326               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23327 $as_echo_n "checking Boot JDK version... " >&6; }
23328               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23329               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23330 $as_echo "$BOOT_JDK_VERSION" >&6; }
23331             fi # end check jdk version
23332           fi # end check rt.jar
23333         fi # end check javac
23334       fi # end check java
23335     fi # end check boot jdk found
23336   fi
23337 
23338     done
23339   fi
23340 
23341 
23342     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23343     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23344       # Do we have a bin/java?
23345       if test ! -x "$BOOT_JDK/bin/java"; then
23346         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23347 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23348         BOOT_JDK_FOUND=no
23349       else
23350         # Do we have a bin/javac?
23351         if test ! -x "$BOOT_JDK/bin/javac"; then
23352           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23353 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23354           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23355 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23356           BOOT_JDK_FOUND=no
23357         else
23358           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23359           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23360             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23361 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23362             BOOT_JDK_FOUND=no
23363           else
23364             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23365             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23366 
23367             # Extra M4 quote needed to protect [] in grep expression.
23368             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23369             if test "x$FOUND_VERSION_78" = x; then
23370               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23371 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23372               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23373 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23374               BOOT_JDK_FOUND=no
23375             else
23376               # We're done! :-)
23377               BOOT_JDK_FOUND=yes
23378 
23379   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23380 
23381   # Input might be given as Windows format, start by converting to
23382   # unix format.
23383   path="$BOOT_JDK"
23384   new_path=`$CYGPATH -u "$path"`
23385 
23386   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23387   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23388   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23389   # "foo.exe" is OK but "foo" is an error.
23390   #
23391   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23392   # It is also a way to make sure we got the proper file name for the real test later on.
23393   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23394   if test "x$test_shortpath" = x; then
23395     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23396 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23397     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23398   fi
23399 
23400   # Call helper function which possibly converts this using DOS-style short mode.
23401   # If so, the updated path is stored in $new_path.
23402 
23403   input_path="$new_path"
23404   # Check if we need to convert this using DOS-style short mode. If the path
23405   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23406   # take no chances and rewrite it.
23407   # Note: m4 eats our [], so we need to use [ and ] instead.
23408   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23409   if test "x$has_forbidden_chars" != x; then
23410     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23411     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23412     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23413     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23414       # Going to short mode and back again did indeed matter. Since short mode is
23415       # case insensitive, let's make it lowercase to improve readability.
23416       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23417       # Now convert it back to Unix-style (cygpath)
23418       input_path=`$CYGPATH -u "$shortmode_path"`
23419       new_path="$input_path"
23420     fi
23421   fi
23422 
23423   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23424   if test "x$test_cygdrive_prefix" = x; then
23425     # As a simple fix, exclude /usr/bin since it's not a real path.
23426     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23427       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23428       # a path prefixed by /cygdrive for fixpath to work.
23429       new_path="$CYGWIN_ROOT_PATH$input_path"
23430     fi
23431   fi
23432 
23433 
23434   if test "x$path" != "x$new_path"; then
23435     BOOT_JDK="$new_path"
23436     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23437 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23438   fi
23439 
23440   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23441 
23442   path="$BOOT_JDK"
23443   has_colon=`$ECHO $path | $GREP ^.:`
23444   new_path="$path"
23445   if test "x$has_colon" = x; then
23446     # Not in mixed or Windows style, start by that.
23447     new_path=`cmd //c echo $path`
23448   fi
23449 
23450 
23451   input_path="$new_path"
23452   # Check if we need to convert this using DOS-style short mode. If the path
23453   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23454   # take no chances and rewrite it.
23455   # Note: m4 eats our [], so we need to use [ and ] instead.
23456   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23457   if test "x$has_forbidden_chars" != x; then
23458     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23459     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23460   fi
23461 
23462 
23463   windows_path="$new_path"
23464   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23465     unix_path=`$CYGPATH -u "$windows_path"`
23466     new_path="$unix_path"
23467   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23468     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23469     new_path="$unix_path"
23470   fi
23471 
23472   if test "x$path" != "x$new_path"; then
23473     BOOT_JDK="$new_path"
23474     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23475 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23476   fi
23477 
23478   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23479   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23480 
23481   else
23482     # We're on a posix platform. Hooray! :)
23483     path="$BOOT_JDK"
23484     has_space=`$ECHO "$path" | $GREP " "`
23485     if test "x$has_space" != x; then
23486       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23487 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23488       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23489     fi
23490 
23491     # Use eval to expand a potential ~
23492     eval path="$path"
23493     if test ! -f "$path" && test ! -d "$path"; then
23494       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23495     fi
23496 
23497     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23498   fi
23499 
23500               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23501 $as_echo_n "checking for Boot JDK... " >&6; }
23502               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23503 $as_echo "$BOOT_JDK" >&6; }
23504               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23505 $as_echo_n "checking Boot JDK version... " >&6; }
23506               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23507               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23508 $as_echo "$BOOT_JDK_VERSION" >&6; }
23509             fi # end check jdk version
23510           fi # end check rt.jar
23511         fi # end check javac
23512       fi # end check java
23513     fi # end check boot jdk found
23514   fi
23515 
23516 
23517   if test "x$BOOT_JDK_FOUND" = xno; then
23518     # Now execute the test
23519 
23520   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23521   BOOT_JDK_SUFFIX="/Contents/Home"
23522   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23523   if test "x$ALL_JDKS_FOUND" != x; then
23524     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23525 
23526   if test "x$BOOT_JDK_FOUND" = xno; then
23527     # Now execute the test
23528 
23529         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23530         if test -d "$BOOT_JDK"; then
23531           BOOT_JDK_FOUND=maybe
23532           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23533 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23534         fi
23535 
23536 
23537     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23538     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23539       # Do we have a bin/java?
23540       if test ! -x "$BOOT_JDK/bin/java"; then
23541         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23542 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23543         BOOT_JDK_FOUND=no
23544       else
23545         # Do we have a bin/javac?
23546         if test ! -x "$BOOT_JDK/bin/javac"; then
23547           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23548 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23549           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23550 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23551           BOOT_JDK_FOUND=no
23552         else
23553           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23554           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23555             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23557             BOOT_JDK_FOUND=no
23558           else
23559             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23560             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23561 
23562             # Extra M4 quote needed to protect [] in grep expression.
23563             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23564             if test "x$FOUND_VERSION_78" = x; then
23565               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23566 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23567               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23568 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23569               BOOT_JDK_FOUND=no
23570             else
23571               # We're done! :-)
23572               BOOT_JDK_FOUND=yes
23573 
23574   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23575 
23576   # Input might be given as Windows format, start by converting to
23577   # unix format.
23578   path="$BOOT_JDK"
23579   new_path=`$CYGPATH -u "$path"`
23580 
23581   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23582   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23583   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23584   # "foo.exe" is OK but "foo" is an error.
23585   #
23586   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23587   # It is also a way to make sure we got the proper file name for the real test later on.
23588   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23589   if test "x$test_shortpath" = x; then
23590     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23591 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23592     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23593   fi
23594 
23595   # Call helper function which possibly converts this using DOS-style short mode.
23596   # If so, the updated path is stored in $new_path.
23597 
23598   input_path="$new_path"
23599   # Check if we need to convert this using DOS-style short mode. If the path
23600   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23601   # take no chances and rewrite it.
23602   # Note: m4 eats our [], so we need to use [ and ] instead.
23603   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23604   if test "x$has_forbidden_chars" != x; then
23605     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23606     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23607     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23608     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23609       # Going to short mode and back again did indeed matter. Since short mode is
23610       # case insensitive, let's make it lowercase to improve readability.
23611       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23612       # Now convert it back to Unix-style (cygpath)
23613       input_path=`$CYGPATH -u "$shortmode_path"`
23614       new_path="$input_path"
23615     fi
23616   fi
23617 
23618   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23619   if test "x$test_cygdrive_prefix" = x; then
23620     # As a simple fix, exclude /usr/bin since it's not a real path.
23621     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23622       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23623       # a path prefixed by /cygdrive for fixpath to work.
23624       new_path="$CYGWIN_ROOT_PATH$input_path"
23625     fi
23626   fi
23627 
23628 
23629   if test "x$path" != "x$new_path"; then
23630     BOOT_JDK="$new_path"
23631     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23632 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23633   fi
23634 
23635   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23636 
23637   path="$BOOT_JDK"
23638   has_colon=`$ECHO $path | $GREP ^.:`
23639   new_path="$path"
23640   if test "x$has_colon" = x; then
23641     # Not in mixed or Windows style, start by that.
23642     new_path=`cmd //c echo $path`
23643   fi
23644 
23645 
23646   input_path="$new_path"
23647   # Check if we need to convert this using DOS-style short mode. If the path
23648   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23649   # take no chances and rewrite it.
23650   # Note: m4 eats our [], so we need to use [ and ] instead.
23651   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23652   if test "x$has_forbidden_chars" != x; then
23653     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23654     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23655   fi
23656 
23657 
23658   windows_path="$new_path"
23659   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23660     unix_path=`$CYGPATH -u "$windows_path"`
23661     new_path="$unix_path"
23662   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23663     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23664     new_path="$unix_path"
23665   fi
23666 
23667   if test "x$path" != "x$new_path"; then
23668     BOOT_JDK="$new_path"
23669     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23670 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23671   fi
23672 
23673   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23674   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23675 
23676   else
23677     # We're on a posix platform. Hooray! :)
23678     path="$BOOT_JDK"
23679     has_space=`$ECHO "$path" | $GREP " "`
23680     if test "x$has_space" != x; then
23681       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23682 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23683       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23684     fi
23685 
23686     # Use eval to expand a potential ~
23687     eval path="$path"
23688     if test ! -f "$path" && test ! -d "$path"; then
23689       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23690     fi
23691 
23692     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23693   fi
23694 
23695               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23696 $as_echo_n "checking for Boot JDK... " >&6; }
23697               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23698 $as_echo "$BOOT_JDK" >&6; }
23699               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23700 $as_echo_n "checking Boot JDK version... " >&6; }
23701               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23702               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23703 $as_echo "$BOOT_JDK_VERSION" >&6; }
23704             fi # end check jdk version
23705           fi # end check rt.jar
23706         fi # end check javac
23707       fi # end check java
23708     fi # end check boot jdk found
23709   fi
23710 
23711     done
23712   fi
23713 
23714 
23715     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23716     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23717       # Do we have a bin/java?
23718       if test ! -x "$BOOT_JDK/bin/java"; then
23719         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23721         BOOT_JDK_FOUND=no
23722       else
23723         # Do we have a bin/javac?
23724         if test ! -x "$BOOT_JDK/bin/javac"; then
23725           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23726 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23727           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23728 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23729           BOOT_JDK_FOUND=no
23730         else
23731           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23732           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23733             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23735             BOOT_JDK_FOUND=no
23736           else
23737             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23738             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23739 
23740             # Extra M4 quote needed to protect [] in grep expression.
23741             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23742             if test "x$FOUND_VERSION_78" = x; then
23743               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23745               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23746 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23747               BOOT_JDK_FOUND=no
23748             else
23749               # We're done! :-)
23750               BOOT_JDK_FOUND=yes
23751 
23752   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23753 
23754   # Input might be given as Windows format, start by converting to
23755   # unix format.
23756   path="$BOOT_JDK"
23757   new_path=`$CYGPATH -u "$path"`
23758 
23759   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23760   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23761   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23762   # "foo.exe" is OK but "foo" is an error.
23763   #
23764   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23765   # It is also a way to make sure we got the proper file name for the real test later on.
23766   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23767   if test "x$test_shortpath" = x; then
23768     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23770     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23771   fi
23772 
23773   # Call helper function which possibly converts this using DOS-style short mode.
23774   # If so, the updated path is stored in $new_path.
23775 
23776   input_path="$new_path"
23777   # Check if we need to convert this using DOS-style short mode. If the path
23778   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23779   # take no chances and rewrite it.
23780   # Note: m4 eats our [], so we need to use [ and ] instead.
23781   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23782   if test "x$has_forbidden_chars" != x; then
23783     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23784     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23785     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23786     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23787       # Going to short mode and back again did indeed matter. Since short mode is
23788       # case insensitive, let's make it lowercase to improve readability.
23789       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23790       # Now convert it back to Unix-style (cygpath)
23791       input_path=`$CYGPATH -u "$shortmode_path"`
23792       new_path="$input_path"
23793     fi
23794   fi
23795 
23796   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23797   if test "x$test_cygdrive_prefix" = x; then
23798     # As a simple fix, exclude /usr/bin since it's not a real path.
23799     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23800       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23801       # a path prefixed by /cygdrive for fixpath to work.
23802       new_path="$CYGWIN_ROOT_PATH$input_path"
23803     fi
23804   fi
23805 
23806 
23807   if test "x$path" != "x$new_path"; then
23808     BOOT_JDK="$new_path"
23809     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23811   fi
23812 
23813   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23814 
23815   path="$BOOT_JDK"
23816   has_colon=`$ECHO $path | $GREP ^.:`
23817   new_path="$path"
23818   if test "x$has_colon" = x; then
23819     # Not in mixed or Windows style, start by that.
23820     new_path=`cmd //c echo $path`
23821   fi
23822 
23823 
23824   input_path="$new_path"
23825   # Check if we need to convert this using DOS-style short mode. If the path
23826   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23827   # take no chances and rewrite it.
23828   # Note: m4 eats our [], so we need to use [ and ] instead.
23829   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23830   if test "x$has_forbidden_chars" != x; then
23831     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23832     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23833   fi
23834 
23835 
23836   windows_path="$new_path"
23837   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23838     unix_path=`$CYGPATH -u "$windows_path"`
23839     new_path="$unix_path"
23840   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23841     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23842     new_path="$unix_path"
23843   fi
23844 
23845   if test "x$path" != "x$new_path"; then
23846     BOOT_JDK="$new_path"
23847     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23848 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23849   fi
23850 
23851   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23852   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23853 
23854   else
23855     # We're on a posix platform. Hooray! :)
23856     path="$BOOT_JDK"
23857     has_space=`$ECHO "$path" | $GREP " "`
23858     if test "x$has_space" != x; then
23859       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23860 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23861       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23862     fi
23863 
23864     # Use eval to expand a potential ~
23865     eval path="$path"
23866     if test ! -f "$path" && test ! -d "$path"; then
23867       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23868     fi
23869 
23870     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23871   fi
23872 
23873               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23874 $as_echo_n "checking for Boot JDK... " >&6; }
23875               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23876 $as_echo "$BOOT_JDK" >&6; }
23877               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23878 $as_echo_n "checking Boot JDK version... " >&6; }
23879               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23880               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23881 $as_echo "$BOOT_JDK_VERSION" >&6; }
23882             fi # end check jdk version
23883           fi # end check rt.jar
23884         fi # end check javac
23885       fi # end check java
23886     fi # end check boot jdk found
23887   fi
23888 
23889   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
23890 
23891   if test "x$BOOT_JDK_FOUND" = xno; then
23892     # Now execute the test
23893 
23894   BOOT_JDK_PREFIX="/usr/lib/jvm"
23895   BOOT_JDK_SUFFIX=""
23896   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23897   if test "x$ALL_JDKS_FOUND" != x; then
23898     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23899 
23900   if test "x$BOOT_JDK_FOUND" = xno; then
23901     # Now execute the test
23902 
23903         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23904         if test -d "$BOOT_JDK"; then
23905           BOOT_JDK_FOUND=maybe
23906           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23907 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23908         fi
23909 
23910 
23911     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23912     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23913       # Do we have a bin/java?
23914       if test ! -x "$BOOT_JDK/bin/java"; then
23915         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23917         BOOT_JDK_FOUND=no
23918       else
23919         # Do we have a bin/javac?
23920         if test ! -x "$BOOT_JDK/bin/javac"; then
23921           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23923           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23924 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23925           BOOT_JDK_FOUND=no
23926         else
23927           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23928           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23929             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23931             BOOT_JDK_FOUND=no
23932           else
23933             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23934             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23935 
23936             # Extra M4 quote needed to protect [] in grep expression.
23937             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23938             if test "x$FOUND_VERSION_78" = x; then
23939               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23941               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23942 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23943               BOOT_JDK_FOUND=no
23944             else
23945               # We're done! :-)
23946               BOOT_JDK_FOUND=yes
23947 
23948   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23949 
23950   # Input might be given as Windows format, start by converting to
23951   # unix format.
23952   path="$BOOT_JDK"
23953   new_path=`$CYGPATH -u "$path"`
23954 
23955   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23956   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23957   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23958   # "foo.exe" is OK but "foo" is an error.
23959   #
23960   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23961   # It is also a way to make sure we got the proper file name for the real test later on.
23962   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23963   if test "x$test_shortpath" = x; then
23964     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23965 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23966     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23967   fi
23968 
23969   # Call helper function which possibly converts this using DOS-style short mode.
23970   # If so, the updated path is stored in $new_path.
23971 
23972   input_path="$new_path"
23973   # Check if we need to convert this using DOS-style short mode. If the path
23974   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23975   # take no chances and rewrite it.
23976   # Note: m4 eats our [], so we need to use [ and ] instead.
23977   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23978   if test "x$has_forbidden_chars" != x; then
23979     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23980     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23981     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23982     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23983       # Going to short mode and back again did indeed matter. Since short mode is
23984       # case insensitive, let's make it lowercase to improve readability.
23985       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23986       # Now convert it back to Unix-style (cygpath)
23987       input_path=`$CYGPATH -u "$shortmode_path"`
23988       new_path="$input_path"
23989     fi
23990   fi
23991 
23992   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23993   if test "x$test_cygdrive_prefix" = x; then
23994     # As a simple fix, exclude /usr/bin since it's not a real path.
23995     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23996       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23997       # a path prefixed by /cygdrive for fixpath to work.
23998       new_path="$CYGWIN_ROOT_PATH$input_path"
23999     fi
24000   fi
24001 
24002 
24003   if test "x$path" != "x$new_path"; then
24004     BOOT_JDK="$new_path"
24005     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24006 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24007   fi
24008 
24009   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24010 
24011   path="$BOOT_JDK"
24012   has_colon=`$ECHO $path | $GREP ^.:`
24013   new_path="$path"
24014   if test "x$has_colon" = x; then
24015     # Not in mixed or Windows style, start by that.
24016     new_path=`cmd //c echo $path`
24017   fi
24018 
24019 
24020   input_path="$new_path"
24021   # Check if we need to convert this using DOS-style short mode. If the path
24022   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24023   # take no chances and rewrite it.
24024   # Note: m4 eats our [], so we need to use [ and ] instead.
24025   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24026   if test "x$has_forbidden_chars" != x; then
24027     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24028     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24029   fi
24030 
24031 
24032   windows_path="$new_path"
24033   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24034     unix_path=`$CYGPATH -u "$windows_path"`
24035     new_path="$unix_path"
24036   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24037     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24038     new_path="$unix_path"
24039   fi
24040 
24041   if test "x$path" != "x$new_path"; then
24042     BOOT_JDK="$new_path"
24043     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24044 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24045   fi
24046 
24047   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24048   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24049 
24050   else
24051     # We're on a posix platform. Hooray! :)
24052     path="$BOOT_JDK"
24053     has_space=`$ECHO "$path" | $GREP " "`
24054     if test "x$has_space" != x; then
24055       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24057       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24058     fi
24059 
24060     # Use eval to expand a potential ~
24061     eval path="$path"
24062     if test ! -f "$path" && test ! -d "$path"; then
24063       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24064     fi
24065 
24066     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24067   fi
24068 
24069               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24070 $as_echo_n "checking for Boot JDK... " >&6; }
24071               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24072 $as_echo "$BOOT_JDK" >&6; }
24073               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24074 $as_echo_n "checking Boot JDK version... " >&6; }
24075               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24076               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24077 $as_echo "$BOOT_JDK_VERSION" >&6; }
24078             fi # end check jdk version
24079           fi # end check rt.jar
24080         fi # end check javac
24081       fi # end check java
24082     fi # end check boot jdk found
24083   fi
24084 
24085     done
24086   fi
24087 
24088 
24089     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24090     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24091       # Do we have a bin/java?
24092       if test ! -x "$BOOT_JDK/bin/java"; then
24093         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24095         BOOT_JDK_FOUND=no
24096       else
24097         # Do we have a bin/javac?
24098         if test ! -x "$BOOT_JDK/bin/javac"; then
24099           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24101           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24102 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24103           BOOT_JDK_FOUND=no
24104         else
24105           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24106           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24107             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24109             BOOT_JDK_FOUND=no
24110           else
24111             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24112             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24113 
24114             # Extra M4 quote needed to protect [] in grep expression.
24115             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24116             if test "x$FOUND_VERSION_78" = x; then
24117               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24119               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24120 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24121               BOOT_JDK_FOUND=no
24122             else
24123               # We're done! :-)
24124               BOOT_JDK_FOUND=yes
24125 
24126   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24127 
24128   # Input might be given as Windows format, start by converting to
24129   # unix format.
24130   path="$BOOT_JDK"
24131   new_path=`$CYGPATH -u "$path"`
24132 
24133   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24134   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24135   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24136   # "foo.exe" is OK but "foo" is an error.
24137   #
24138   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24139   # It is also a way to make sure we got the proper file name for the real test later on.
24140   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24141   if test "x$test_shortpath" = x; then
24142     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24143 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24144     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24145   fi
24146 
24147   # Call helper function which possibly converts this using DOS-style short mode.
24148   # If so, the updated path is stored in $new_path.
24149 
24150   input_path="$new_path"
24151   # Check if we need to convert this using DOS-style short mode. If the path
24152   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24153   # take no chances and rewrite it.
24154   # Note: m4 eats our [], so we need to use [ and ] instead.
24155   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24156   if test "x$has_forbidden_chars" != x; then
24157     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24158     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24159     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24160     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24161       # Going to short mode and back again did indeed matter. Since short mode is
24162       # case insensitive, let's make it lowercase to improve readability.
24163       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24164       # Now convert it back to Unix-style (cygpath)
24165       input_path=`$CYGPATH -u "$shortmode_path"`
24166       new_path="$input_path"
24167     fi
24168   fi
24169 
24170   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24171   if test "x$test_cygdrive_prefix" = x; then
24172     # As a simple fix, exclude /usr/bin since it's not a real path.
24173     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24174       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24175       # a path prefixed by /cygdrive for fixpath to work.
24176       new_path="$CYGWIN_ROOT_PATH$input_path"
24177     fi
24178   fi
24179 
24180 
24181   if test "x$path" != "x$new_path"; then
24182     BOOT_JDK="$new_path"
24183     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24184 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24185   fi
24186 
24187   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24188 
24189   path="$BOOT_JDK"
24190   has_colon=`$ECHO $path | $GREP ^.:`
24191   new_path="$path"
24192   if test "x$has_colon" = x; then
24193     # Not in mixed or Windows style, start by that.
24194     new_path=`cmd //c echo $path`
24195   fi
24196 
24197 
24198   input_path="$new_path"
24199   # Check if we need to convert this using DOS-style short mode. If the path
24200   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24201   # take no chances and rewrite it.
24202   # Note: m4 eats our [], so we need to use [ and ] instead.
24203   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24204   if test "x$has_forbidden_chars" != x; then
24205     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24206     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24207   fi
24208 
24209 
24210   windows_path="$new_path"
24211   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24212     unix_path=`$CYGPATH -u "$windows_path"`
24213     new_path="$unix_path"
24214   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24215     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24216     new_path="$unix_path"
24217   fi
24218 
24219   if test "x$path" != "x$new_path"; then
24220     BOOT_JDK="$new_path"
24221     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24222 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24223   fi
24224 
24225   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24226   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24227 
24228   else
24229     # We're on a posix platform. Hooray! :)
24230     path="$BOOT_JDK"
24231     has_space=`$ECHO "$path" | $GREP " "`
24232     if test "x$has_space" != x; then
24233       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24234 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24235       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24236     fi
24237 
24238     # Use eval to expand a potential ~
24239     eval path="$path"
24240     if test ! -f "$path" && test ! -d "$path"; then
24241       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24242     fi
24243 
24244     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24245   fi
24246 
24247               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24248 $as_echo_n "checking for Boot JDK... " >&6; }
24249               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24250 $as_echo "$BOOT_JDK" >&6; }
24251               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24252 $as_echo_n "checking Boot JDK version... " >&6; }
24253               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24254               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24255 $as_echo "$BOOT_JDK_VERSION" >&6; }
24256             fi # end check jdk version
24257           fi # end check rt.jar
24258         fi # end check javac
24259       fi # end check java
24260     fi # end check boot jdk found
24261   fi
24262 
24263   fi
24264 
24265 
24266     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24267     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24268       # Do we have a bin/java?
24269       if test ! -x "$BOOT_JDK/bin/java"; then
24270         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24271 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24272         BOOT_JDK_FOUND=no
24273       else
24274         # Do we have a bin/javac?
24275         if test ! -x "$BOOT_JDK/bin/javac"; then
24276           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24277 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24278           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24279 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24280           BOOT_JDK_FOUND=no
24281         else
24282           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24283           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24284             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24285 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24286             BOOT_JDK_FOUND=no
24287           else
24288             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24289             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24290 
24291             # Extra M4 quote needed to protect [] in grep expression.
24292             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24293             if test "x$FOUND_VERSION_78" = x; then
24294               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24295 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24296               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24297 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24298               BOOT_JDK_FOUND=no
24299             else
24300               # We're done! :-)
24301               BOOT_JDK_FOUND=yes
24302 
24303   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24304 
24305   # Input might be given as Windows format, start by converting to
24306   # unix format.
24307   path="$BOOT_JDK"
24308   new_path=`$CYGPATH -u "$path"`
24309 
24310   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24311   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24312   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24313   # "foo.exe" is OK but "foo" is an error.
24314   #
24315   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24316   # It is also a way to make sure we got the proper file name for the real test later on.
24317   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24318   if test "x$test_shortpath" = x; then
24319     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24320 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24321     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24322   fi
24323 
24324   # Call helper function which possibly converts this using DOS-style short mode.
24325   # If so, the updated path is stored in $new_path.
24326 
24327   input_path="$new_path"
24328   # Check if we need to convert this using DOS-style short mode. If the path
24329   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24330   # take no chances and rewrite it.
24331   # Note: m4 eats our [], so we need to use [ and ] instead.
24332   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24333   if test "x$has_forbidden_chars" != x; then
24334     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24335     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24336     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24337     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24338       # Going to short mode and back again did indeed matter. Since short mode is
24339       # case insensitive, let's make it lowercase to improve readability.
24340       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24341       # Now convert it back to Unix-style (cygpath)
24342       input_path=`$CYGPATH -u "$shortmode_path"`
24343       new_path="$input_path"
24344     fi
24345   fi
24346 
24347   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24348   if test "x$test_cygdrive_prefix" = x; then
24349     # As a simple fix, exclude /usr/bin since it's not a real path.
24350     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24351       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24352       # a path prefixed by /cygdrive for fixpath to work.
24353       new_path="$CYGWIN_ROOT_PATH$input_path"
24354     fi
24355   fi
24356 
24357 
24358   if test "x$path" != "x$new_path"; then
24359     BOOT_JDK="$new_path"
24360     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24361 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24362   fi
24363 
24364   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24365 
24366   path="$BOOT_JDK"
24367   has_colon=`$ECHO $path | $GREP ^.:`
24368   new_path="$path"
24369   if test "x$has_colon" = x; then
24370     # Not in mixed or Windows style, start by that.
24371     new_path=`cmd //c echo $path`
24372   fi
24373 
24374 
24375   input_path="$new_path"
24376   # Check if we need to convert this using DOS-style short mode. If the path
24377   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24378   # take no chances and rewrite it.
24379   # Note: m4 eats our [], so we need to use [ and ] instead.
24380   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24381   if test "x$has_forbidden_chars" != x; then
24382     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24383     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24384   fi
24385 
24386 
24387   windows_path="$new_path"
24388   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24389     unix_path=`$CYGPATH -u "$windows_path"`
24390     new_path="$unix_path"
24391   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24392     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24393     new_path="$unix_path"
24394   fi
24395 
24396   if test "x$path" != "x$new_path"; then
24397     BOOT_JDK="$new_path"
24398     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24399 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24400   fi
24401 
24402   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24403   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24404 
24405   else
24406     # We're on a posix platform. Hooray! :)
24407     path="$BOOT_JDK"
24408     has_space=`$ECHO "$path" | $GREP " "`
24409     if test "x$has_space" != x; then
24410       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24411 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24412       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24413     fi
24414 
24415     # Use eval to expand a potential ~
24416     eval path="$path"
24417     if test ! -f "$path" && test ! -d "$path"; then
24418       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24419     fi
24420 
24421     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24422   fi
24423 
24424               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24425 $as_echo_n "checking for Boot JDK... " >&6; }
24426               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24427 $as_echo "$BOOT_JDK" >&6; }
24428               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24429 $as_echo_n "checking Boot JDK version... " >&6; }
24430               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24431               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24432 $as_echo "$BOOT_JDK_VERSION" >&6; }
24433             fi # end check jdk version
24434           fi # end check rt.jar
24435         fi # end check javac
24436       fi # end check java
24437     fi # end check boot jdk found
24438   fi
24439 
24440 
24441   # If we haven't found anything yet, we've truly lost. Give up.
24442   if test "x$BOOT_JDK_FOUND" = xno; then
24443 
24444   # Print a helpful message on how to acquire the necessary build dependency.
24445   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24446   MISSING_DEPENDENCY=openjdk
24447 
24448   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24449     cygwin_help $MISSING_DEPENDENCY
24450   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24451     msys_help $MISSING_DEPENDENCY
24452   else
24453     PKGHANDLER_COMMAND=
24454 
24455     case $PKGHANDLER in
24456       apt-get)
24457         apt_help     $MISSING_DEPENDENCY ;;
24458       yum)
24459         yum_help     $MISSING_DEPENDENCY ;;
24460       port)
24461         port_help    $MISSING_DEPENDENCY ;;
24462       pkgutil)
24463         pkgutil_help $MISSING_DEPENDENCY ;;
24464       pkgadd)
24465         pkgadd_help  $MISSING_DEPENDENCY ;;
24466     esac
24467 
24468     if test "x$PKGHANDLER_COMMAND" != x; then
24469       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24470     fi
24471   fi
24472 
24473     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24474 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24475     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24476 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24477     as_fn_error $? "Cannot continue" "$LINENO" 5
24478   fi
24479 
24480   # Setup proper paths for what we found
24481   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24482   if test ! -f "$BOOT_RTJAR"; then
24483     # On MacOSX it is called classes.jar
24484     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24485     if test -f "$BOOT_RTJAR"; then
24486       # Remove the ..
24487       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24488     fi
24489   fi
24490   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24491   BOOT_JDK="$BOOT_JDK"
24492 
24493 
24494 
24495 
24496   # Setup tools from the Boot JDK.
24497 
24498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24499 $as_echo_n "checking for java in Boot JDK... " >&6; }
24500   JAVA=$BOOT_JDK/bin/java
24501   if test ! -x $JAVA; then
24502     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24503 $as_echo "not found" >&6; }
24504     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24505 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24506     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24507   fi
24508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24509 $as_echo "ok" >&6; }
24510 
24511 
24512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24513 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24514   JAVAC=$BOOT_JDK/bin/javac
24515   if test ! -x $JAVAC; then
24516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24517 $as_echo "not found" >&6; }
24518     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24519 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24520     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24521   fi
24522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24523 $as_echo "ok" >&6; }
24524 
24525 
24526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24527 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24528   JAVAH=$BOOT_JDK/bin/javah
24529   if test ! -x $JAVAH; then
24530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24531 $as_echo "not found" >&6; }
24532     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24533 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24534     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24535   fi
24536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24537 $as_echo "ok" >&6; }
24538 
24539 
24540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24541 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24542   JAVAP=$BOOT_JDK/bin/javap
24543   if test ! -x $JAVAP; then
24544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24545 $as_echo "not found" >&6; }
24546     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24547 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24548     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24549   fi
24550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24551 $as_echo "ok" >&6; }
24552 
24553 
24554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24555 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24556   JAR=$BOOT_JDK/bin/jar
24557   if test ! -x $JAR; then
24558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24559 $as_echo "not found" >&6; }
24560     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24561 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24562     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24563   fi
24564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24565 $as_echo "ok" >&6; }
24566 
24567 
24568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24569 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24570   RMIC=$BOOT_JDK/bin/rmic
24571   if test ! -x $RMIC; then
24572     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24573 $as_echo "not found" >&6; }
24574     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24575 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24576     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24577   fi
24578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24579 $as_echo "ok" >&6; }
24580 
24581 
24582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24583 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24584   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24585   if test ! -x $NATIVE2ASCII; then
24586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24587 $as_echo "not found" >&6; }
24588     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24589 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24590     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24591   fi
24592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24593 $as_echo "ok" >&6; }
24594 
24595 
24596   # Finally, set some other options...
24597 
24598   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24599   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24600 
24601 
24602 
24603   # Check if the boot jdk is 32 or 64 bit
24604   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24605     BOOT_JDK_BITS="64"
24606   else
24607     BOOT_JDK_BITS="32"
24608   fi
24609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24610 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24612 $as_echo "$BOOT_JDK_BITS" >&6; }
24613 
24614 
24615 
24616   ##############################################################################
24617   #
24618   # Specify options for anything that is run with the Boot JDK.
24619   #
24620 
24621 # Check whether --with-boot-jdk-jvmargs was given.
24622 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24623   withval=$with_boot_jdk_jvmargs;
24624 fi
24625 
24626 
24627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24628 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24629 
24630   # Disable special log output when a debug build is used as Boot JDK...
24631 
24632   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24633   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24634   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24635   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24636   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24637   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24638     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24639     JVM_ARG_OK=true
24640   else
24641     $ECHO "Arg failed:" >&5
24642     $ECHO "$OUTPUT" >&5
24643     JVM_ARG_OK=false
24644   fi
24645 
24646 
24647   # Apply user provided options.
24648 
24649   $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
24650   $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
24651   OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
24652   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24653   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24654   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24655     boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
24656     JVM_ARG_OK=true
24657   else
24658     $ECHO "Arg failed:" >&5
24659     $ECHO "$OUTPUT" >&5
24660     JVM_ARG_OK=false
24661   fi
24662 
24663 
24664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
24665 $as_echo "$boot_jdk_jvmargs" >&6; }
24666 
24667   # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
24668   JAVA_FLAGS=$boot_jdk_jvmargs
24669 
24670 
24671 
24672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
24673 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
24674 
24675   # Starting amount of heap memory.
24676 
24677   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
24678   $ECHO "Command: $JAVA -Xms64M -version" >&5
24679   OUTPUT=`$JAVA -Xms64M -version 2>&1`
24680   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24681   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24682   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24683     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
24684     JVM_ARG_OK=true
24685   else
24686     $ECHO "Arg failed:" >&5
24687     $ECHO "$OUTPUT" >&5
24688     JVM_ARG_OK=false
24689   fi
24690 
24691 
24692   # Maximum amount of heap memory.
24693   # Maximum stack size.
24694   if test "x$BOOT_JDK_BITS" = x32; then
24695     JVM_MAX_HEAP=768M
24696     STACK_SIZE=768
24697   else
24698     # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit
24699     # pointers are used. Apparently, we need to increase the heap and stack
24700     # space for the jvm. More specifically, when running javac to build huge
24701     # jdk batch
24702     JVM_MAX_HEAP=1600M
24703     STACK_SIZE=1536
24704   fi
24705 
24706   $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5
24707   $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5
24708   OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1`
24709   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24710   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24711   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24712     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP"
24713     JVM_ARG_OK=true
24714   else
24715     $ECHO "Arg failed:" >&5
24716     $ECHO "$OUTPUT" >&5
24717     JVM_ARG_OK=false
24718   fi
24719 
24720 
24721   $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5
24722   $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5
24723   OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1`
24724   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24725   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24726   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24727     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE"
24728     JVM_ARG_OK=true
24729   else
24730     $ECHO "Arg failed:" >&5
24731     $ECHO "$OUTPUT" >&5
24732     JVM_ARG_OK=false
24733   fi
24734 
24735 
24736   $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5
24737   $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5
24738   OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1`
24739   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24740   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24741   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24742     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m"
24743     JVM_ARG_OK=true
24744   else
24745     $ECHO "Arg failed:" >&5
24746     $ECHO "$OUTPUT" >&5
24747     JVM_ARG_OK=false
24748   fi
24749 
24750 
24751   $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5
24752   $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5
24753   OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1`
24754   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24755   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24756   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24757     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m"
24758     JVM_ARG_OK=true
24759   else
24760     $ECHO "Arg failed:" >&5
24761     $ECHO "$OUTPUT" >&5
24762     JVM_ARG_OK=false
24763   fi
24764 
24765 
24766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5
24767 $as_echo "$boot_jdk_jvmargs_big" >&6; }
24768 
24769   JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big
24770 
24771 
24772 
24773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5
24774 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; }
24775 
24776   # Use serial gc for small short lived tools if possible
24777 
24778   $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5
24779   $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5
24780   OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1`
24781   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24782   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24783   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24784     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC"
24785     JVM_ARG_OK=true
24786   else
24787     $ECHO "Arg failed:" >&5
24788     $ECHO "$OUTPUT" >&5
24789     JVM_ARG_OK=false
24790   fi
24791 
24792 
24793   $ECHO "Check if jvm arg is ok: -Xms32M" >&5
24794   $ECHO "Command: $JAVA -Xms32M -version" >&5
24795   OUTPUT=`$JAVA -Xms32M -version 2>&1`
24796   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24797   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24798   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24799     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M"
24800     JVM_ARG_OK=true
24801   else
24802     $ECHO "Arg failed:" >&5
24803     $ECHO "$OUTPUT" >&5
24804     JVM_ARG_OK=false
24805   fi
24806 
24807 
24808   $ECHO "Check if jvm arg is ok: -Xmx512M" >&5
24809   $ECHO "Command: $JAVA -Xmx512M -version" >&5
24810   OUTPUT=`$JAVA -Xmx512M -version 2>&1`
24811   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24812   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24813   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24814     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M"
24815     JVM_ARG_OK=true
24816   else
24817     $ECHO "Arg failed:" >&5
24818     $ECHO "$OUTPUT" >&5
24819     JVM_ARG_OK=false
24820   fi
24821 
24822 
24823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5
24824 $as_echo "$boot_jdk_jvmargs_small" >&6; }
24825 
24826   JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small
24827 
24828 
24829 
24830 ###############################################################################
24831 #
24832 # Configure the sources to use. We can add or override individual directories.
24833 #
24834 ###############################################################################
24835 
24836 
24837   # Where are the sources. Any of these can be overridden
24838   # using --with-override-corba and the likes.
24839   LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
24840   CORBA_TOPDIR="$SRC_ROOT/corba"
24841   JAXP_TOPDIR="$SRC_