1 #! /bin/sh
   2 # Guess values for system-dependent variables and create Makefiles.
   3 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
   4 #
   5 # Report bugs to <build-dev@openjdk.java.net>.
   6 #
   7 #
   8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
   9 #
  10 #
  11 # This configure script is free software; the Free Software Foundation
  12 # gives unlimited permission to copy, distribute and modify it.
  13 ## -------------------- ##
  14 ## M4sh Initialization. ##
  15 ## -------------------- ##
  16 
  17 # Be more Bourne compatible
  18 DUALCASE=1; export DUALCASE # for MKS sh
  19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20   emulate sh
  21   NULLCMD=:
  22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23   # is contrary to our usage.  Disable this feature.
  24   alias -g '${1+"$@"}'='"$@"'
  25   setopt NO_GLOB_SUBST
  26 else
  27   case `(set -o) 2>/dev/null` in #(
  28   *posix*) :
  29     set -o posix ;; #(
  30   *) :
  31      ;;
  32 esac
  33 fi
  34 
  35 
  36 as_nl='
  37 '
  38 export as_nl
  39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43 # Prefer a ksh shell builtin over an external printf program on Solaris,
  44 # but without wasting forks for bash or zsh.
  45 if test -z "$BASH_VERSION$ZSH_VERSION" \
  46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47   as_echo='print -r --'
  48   as_echo_n='print -rn --'
  49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50   as_echo='printf %s\n'
  51   as_echo_n='printf %s'
  52 else
  53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55     as_echo_n='/usr/ucb/echo -n'
  56   else
  57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58     as_echo_n_body='eval
  59       arg=$1;
  60       case $arg in #(
  61       *"$as_nl"*)
  62         expr "X$arg" : "X\\(.*\\)$as_nl";
  63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64       esac;
  65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66     '
  67     export as_echo_n_body
  68     as_echo_n='sh -c $as_echo_n_body as_echo'
  69   fi
  70   export as_echo_body
  71   as_echo='sh -c $as_echo_body as_echo'
  72 fi
  73 
  74 # The user is always right.
  75 if test "${PATH_SEPARATOR+set}" != set; then
  76   PATH_SEPARATOR=:
  77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79       PATH_SEPARATOR=';'
  80   }
  81 fi
  82 
  83 
  84 # IFS
  85 # We need space, tab and new line, in precisely that order.  Quoting is
  86 # there to prevent editors from complaining about space-tab.
  87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88 # splitting by setting IFS to empty value.)
  89 IFS=" ""        $as_nl"
  90 
  91 # Find who we are.  Look in the path if we contain no directory separator.
  92 as_myself=
  93 case $0 in #((
  94   *[\\/]* ) as_myself=$0 ;;
  95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96 for as_dir in $PATH
  97 do
  98   IFS=$as_save_IFS
  99   test -z "$as_dir" && as_dir=.
 100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 101   done
 102 IFS=$as_save_IFS
 103 
 104      ;;
 105 esac
 106 # We did not find ourselves, most probably we were run as `sh COMMAND'
 107 # in which case we are not to be found in the path.
 108 if test "x$as_myself" = x; then
 109   as_myself=$0
 110 fi
 111 if test ! -f "$as_myself"; then
 112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 113   exit 1
 114 fi
 115 
 116 # Unset variables that we do not need and which cause bugs (e.g. in
 117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 118 # suppresses any "Segmentation fault" message there.  '((' could
 119 # trigger a bug in pdksh 5.2.14.
 120 for as_var in BASH_ENV ENV MAIL MAILPATH
 121 do eval test x\${$as_var+set} = xset \
 122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 123 done
 124 PS1='$ '
 125 PS2='> '
 126 PS4='+ '
 127 
 128 # NLS nuisances.
 129 LC_ALL=C
 130 export LC_ALL
 131 LANGUAGE=C
 132 export LANGUAGE
 133 
 134 # CDPATH.
 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 136 
 137 # Use a proper internal environment variable to ensure we don't fall
 138   # into an infinite loop, continuously re-executing ourselves.
 139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 140     _as_can_reexec=no; export _as_can_reexec;
 141     # We cannot yet assume a decent shell, so we have to provide a
 142 # neutralization value for shells without unset; and this also
 143 # works around shells that cannot unset nonexistent variables.
 144 # Preserve -v and -x to the replacement shell.
 145 BASH_ENV=/dev/null
 146 ENV=/dev/null
 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 148 case $- in # ((((
 149   *v*x* | *x*v* ) as_opts=-vx ;;
 150   *v* ) as_opts=-v ;;
 151   *x* ) as_opts=-x ;;
 152   * ) as_opts= ;;
 153 esac
 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 155 # Admittedly, this is quite paranoid, since all the known shells bail
 156 # out after a failed `exec'.
 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 158 as_fn_exit 255
 159   fi
 160   # We don't want this to propagate to other subprocesses.
 161           { _as_can_reexec=; unset _as_can_reexec;}
 162 if test "x$CONFIG_SHELL" = x; then
 163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 164   emulate sh
 165   NULLCMD=:
 166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 167   # is contrary to our usage.  Disable this feature.
 168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 169   setopt NO_GLOB_SUBST
 170 else
 171   case \`(set -o) 2>/dev/null\` in #(
 172   *posix*) :
 173     set -o posix ;; #(
 174   *) :
 175      ;;
 176 esac
 177 fi
 178 "
 179   as_required="as_fn_return () { (exit \$1); }
 180 as_fn_success () { as_fn_return 0; }
 181 as_fn_failure () { as_fn_return 1; }
 182 as_fn_ret_success () { return 0; }
 183 as_fn_ret_failure () { return 1; }
 184 
 185 exitcode=0
 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 191 
 192 else
 193   exitcode=1; echo positional parameters were not saved.
 194 fi
 195 test x\$exitcode = x0 || exit 1
 196 test -x / || exit 1"
 197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 201 test \$(( 1 + 1 )) = 2 || exit 1"
 202   if (eval "$as_required") 2>/dev/null; then :
 203   as_have_required=yes
 204 else
 205   as_have_required=no
 206 fi
 207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 208 
 209 else
 210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 211 as_found=false
 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 213 do
 214   IFS=$as_save_IFS
 215   test -z "$as_dir" && as_dir=.
 216   as_found=:
 217   case $as_dir in #(
 218          /*)
 219            for as_base in sh bash ksh sh5; do
 220              # Try only shells that exist, to save several forks.
 221              as_shell=$as_dir/$as_base
 222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 224   CONFIG_SHELL=$as_shell as_have_required=yes
 225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 226   break 2
 227 fi
 228 fi
 229            done;;
 230        esac
 231   as_found=false
 232 done
 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 235   CONFIG_SHELL=$SHELL as_have_required=yes
 236 fi; }
 237 IFS=$as_save_IFS
 238 
 239 
 240       if test "x$CONFIG_SHELL" != x; then :
 241   export CONFIG_SHELL
 242              # We cannot yet assume a decent shell, so we have to provide a
 243 # neutralization value for shells without unset; and this also
 244 # works around shells that cannot unset nonexistent variables.
 245 # Preserve -v and -x to the replacement shell.
 246 BASH_ENV=/dev/null
 247 ENV=/dev/null
 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 249 case $- in # ((((
 250   *v*x* | *x*v* ) as_opts=-vx ;;
 251   *v* ) as_opts=-v ;;
 252   *x* ) as_opts=-x ;;
 253   * ) as_opts= ;;
 254 esac
 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 256 # Admittedly, this is quite paranoid, since all the known shells bail
 257 # out after a failed `exec'.
 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 259 exit 255
 260 fi
 261 
 262     if test x$as_have_required = xno; then :
 263   $as_echo "$0: This script requires a shell more modern than all"
 264   $as_echo "$0: the shells that I found on your system."
 265   if test x${ZSH_VERSION+set} = xset ; then
 266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 268   else
 269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 270 $0: build-dev@openjdk.java.net about your system, including
 271 $0: any error possibly output before this message. Then
 272 $0: install a modern shell, or manually run the script
 273 $0: under such a shell if you do have one."
 274   fi
 275   exit 1
 276 fi
 277 fi
 278 fi
 279 SHELL=${CONFIG_SHELL-/bin/sh}
 280 export SHELL
 281 # Unset more variables known to interfere with behavior of common tools.
 282 CLICOLOR_FORCE= GREP_OPTIONS=
 283 unset CLICOLOR_FORCE GREP_OPTIONS
 284 
 285 ## --------------------- ##
 286 ## M4sh Shell Functions. ##
 287 ## --------------------- ##
 288 # as_fn_unset VAR
 289 # ---------------
 290 # Portably unset VAR.
 291 as_fn_unset ()
 292 {
 293   { eval $1=; unset $1;}
 294 }
 295 as_unset=as_fn_unset
 296 
 297 # as_fn_set_status STATUS
 298 # -----------------------
 299 # Set $? to STATUS, without forking.
 300 as_fn_set_status ()
 301 {
 302   return $1
 303 } # as_fn_set_status
 304 
 305 # as_fn_exit STATUS
 306 # -----------------
 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 308 as_fn_exit ()
 309 {
 310   set +e
 311   as_fn_set_status $1
 312   exit $1
 313 } # as_fn_exit
 314 
 315 # as_fn_mkdir_p
 316 # -------------
 317 # Create "$as_dir" as a directory, including parents if necessary.
 318 as_fn_mkdir_p ()
 319 {
 320 
 321   case $as_dir in #(
 322   -*) as_dir=./$as_dir;;
 323   esac
 324   test -d "$as_dir" || eval $as_mkdir_p || {
 325     as_dirs=
 326     while :; do
 327       case $as_dir in #(
 328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 329       *) as_qdir=$as_dir;;
 330       esac
 331       as_dirs="'$as_qdir' $as_dirs"
 332       as_dir=`$as_dirname -- "$as_dir" ||
 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 334          X"$as_dir" : 'X\(//\)[^/]' \| \
 335          X"$as_dir" : 'X\(//\)$' \| \
 336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 337 $as_echo X"$as_dir" |
 338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 339             s//\1/
 340             q
 341           }
 342           /^X\(\/\/\)[^/].*/{
 343             s//\1/
 344             q
 345           }
 346           /^X\(\/\/\)$/{
 347             s//\1/
 348             q
 349           }
 350           /^X\(\/\).*/{
 351             s//\1/
 352             q
 353           }
 354           s/.*/./; q'`
 355       test -d "$as_dir" && break
 356     done
 357     test -z "$as_dirs" || eval "mkdir $as_dirs"
 358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 359 
 360 
 361 } # as_fn_mkdir_p
 362 
 363 # as_fn_executable_p FILE
 364 # -----------------------
 365 # Test if FILE is an executable regular file.
 366 as_fn_executable_p ()
 367 {
 368   test -f "$1" && test -x "$1"
 369 } # as_fn_executable_p
 370 # as_fn_append VAR VALUE
 371 # ----------------------
 372 # Append the text in VALUE to the end of the definition contained in VAR. Take
 373 # advantage of any shell optimizations that allow amortized linear growth over
 374 # repeated appends, instead of the typical quadratic growth present in naive
 375 # implementations.
 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 377   eval 'as_fn_append ()
 378   {
 379     eval $1+=\$2
 380   }'
 381 else
 382   as_fn_append ()
 383   {
 384     eval $1=\$$1\$2
 385   }
 386 fi # as_fn_append
 387 
 388 # as_fn_arith ARG...
 389 # ------------------
 390 # Perform arithmetic evaluation on the ARGs, and store the result in the
 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 392 # must be portable across $(()) and expr.
 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 394   eval 'as_fn_arith ()
 395   {
 396     as_val=$(( $* ))
 397   }'
 398 else
 399   as_fn_arith ()
 400   {
 401     as_val=`expr "$@" || test $? -eq 1`
 402   }
 403 fi # as_fn_arith
 404 
 405 
 406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 407 # ----------------------------------------
 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 410 # script with STATUS, using 1 if that was 0.
 411 as_fn_error ()
 412 {
 413   as_status=$1; test $as_status -eq 0 && as_status=1
 414   if test "$4"; then
 415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 417   fi
 418   $as_echo "$as_me: error: $2" >&2
 419   as_fn_exit $as_status
 420 } # as_fn_error
 421 
 422 if expr a : '\(a\)' >/dev/null 2>&1 &&
 423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 424   as_expr=expr
 425 else
 426   as_expr=false
 427 fi
 428 
 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 430   as_basename=basename
 431 else
 432   as_basename=false
 433 fi
 434 
 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 436   as_dirname=dirname
 437 else
 438   as_dirname=false
 439 fi
 440 
 441 as_me=`$as_basename -- "$0" ||
 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 443          X"$0" : 'X\(//\)$' \| \
 444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 445 $as_echo X/"$0" |
 446     sed '/^.*\/\([^/][^/]*\)\/*$/{
 447             s//\1/
 448             q
 449           }
 450           /^X\/\(\/\/\)$/{
 451             s//\1/
 452             q
 453           }
 454           /^X\/\(\/\).*/{
 455             s//\1/
 456             q
 457           }
 458           s/.*/./; q'`
 459 
 460 # Avoid depending upon Character Ranges.
 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 464 as_cr_digits='0123456789'
 465 as_cr_alnum=$as_cr_Letters$as_cr_digits
 466 
 467 
 468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 473   sed -n '
 474     p
 475     /[$]LINENO/=
 476   ' <$as_myself |
 477     sed '
 478       s/[$]LINENO.*/&-/
 479       t lineno
 480       b
 481       :lineno
 482       N
 483       :loop
 484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 485       t loop
 486       s/-\n.*//
 487     ' >$as_me.lineno &&
 488   chmod +x "$as_me.lineno" ||
 489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 490 
 491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 492   # already done that, so ensure we don't try to do so again and fall
 493   # in an infinite loop.  This has already happened in practice.
 494   _as_can_reexec=no; export _as_can_reexec
 495   # Don't try to exec as it changes $[0], causing all sort of problems
 496   # (the dirname of $[0] is not the place where we might find the
 497   # original and so on.  Autoconf is especially sensitive to this).
 498   . "./$as_me.lineno"
 499   # Exit status is that of the last command.
 500   exit
 501 }
 502 
 503 ECHO_C= ECHO_N= ECHO_T=
 504 case `echo -n x` in #(((((
 505 -n*)
 506   case `echo 'xy\c'` in
 507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 508   xy)  ECHO_C='\c';;
 509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 510        ECHO_T=' ';;
 511   esac;;
 512 *)
 513   ECHO_N='-n';;
 514 esac
 515 
 516 rm -f conf$$ conf$$.exe conf$$.file
 517 if test -d conf$$.dir; then
 518   rm -f conf$$.dir/conf$$.file
 519 else
 520   rm -f conf$$.dir
 521   mkdir conf$$.dir 2>/dev/null
 522 fi
 523 if (echo >conf$$.file) 2>/dev/null; then
 524   if ln -s conf$$.file conf$$ 2>/dev/null; then
 525     as_ln_s='ln -s'
 526     # ... but there are two gotchas:
 527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 529     # In both cases, we have to default to `cp -pR'.
 530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 531       as_ln_s='cp -pR'
 532   elif ln conf$$.file conf$$ 2>/dev/null; then
 533     as_ln_s=ln
 534   else
 535     as_ln_s='cp -pR'
 536   fi
 537 else
 538   as_ln_s='cp -pR'
 539 fi
 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 541 rmdir conf$$.dir 2>/dev/null
 542 
 543 if mkdir -p . 2>/dev/null; then
 544   as_mkdir_p='mkdir -p "$as_dir"'
 545 else
 546   test -d ./-p && rmdir ./-p
 547   as_mkdir_p=false
 548 fi
 549 
 550 as_test_x='test -x'
 551 as_executable_p=as_fn_executable_p
 552 
 553 # Sed expression to map a string onto a valid CPP name.
 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 555 
 556 # Sed expression to map a string onto a valid variable name.
 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 558 
 559 
 560 test -n "$DJDIR" || exec 7<&0 </dev/null
 561 exec 6>&1
 562 
 563 # Name of the host.
 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 565 # so uname gets run too.
 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 567 
 568 #
 569 # Initializations.
 570 #
 571 ac_default_prefix=/usr/local
 572 ac_clean_files=
 573 ac_config_libobj_dir=.
 574 LIBOBJS=
 575 cross_compiling=no
 576 subdirs=
 577 MFLAGS=
 578 MAKEFLAGS=
 579 
 580 # Identity of this package.
 581 PACKAGE_NAME='OpenJDK'
 582 PACKAGE_TARNAME='openjdk'
 583 PACKAGE_VERSION='jdk8'
 584 PACKAGE_STRING='OpenJDK jdk8'
 585 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 586 PACKAGE_URL='http://openjdk.java.net'
 587 
 588 # Factoring default headers for most tests.
 589 ac_includes_default="\
 590 #include <stdio.h>
 591 #ifdef HAVE_SYS_TYPES_H
 592 # include <sys/types.h>
 593 #endif
 594 #ifdef HAVE_SYS_STAT_H
 595 # include <sys/stat.h>
 596 #endif
 597 #ifdef STDC_HEADERS
 598 # include <stdlib.h>
 599 # include <stddef.h>
 600 #else
 601 # ifdef HAVE_STDLIB_H
 602 #  include <stdlib.h>
 603 # endif
 604 #endif
 605 #ifdef HAVE_STRING_H
 606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 607 #  include <memory.h>
 608 # endif
 609 # include <string.h>
 610 #endif
 611 #ifdef HAVE_STRINGS_H
 612 # include <strings.h>
 613 #endif
 614 #ifdef HAVE_INTTYPES_H
 615 # include <inttypes.h>
 616 #endif
 617 #ifdef HAVE_STDINT_H
 618 # include <stdint.h>
 619 #endif
 620 #ifdef HAVE_UNISTD_H
 621 # include <unistd.h>
 622 #endif"
 623 
 624 ac_subst_vars='LTLIBOBJS
 625 LIBOBJS
 626 CCACHE
 627 USE_PRECOMPILED_HEADER
 628 SJAVAC_SERVER_DIR
 629 ENABLE_SJAVAC
 630 SJAVAC_SERVER_JAVA
 631 JOBS
 632 MEMORY_SIZE
 633 NUM_CORES
 634 ENABLE_INTREE_EC
 635 SALIB_NAME
 636 HOTSPOT_MAKE_ARGS
 637 LIBCXX
 638 LLVM_LIBS
 639 LLVM_LDFLAGS
 640 LLVM_CFLAGS
 641 LLVM_CONFIG
 642 LIBFFI_LIBS
 643 LIBFFI_CFLAGS
 644 STATIC_CXX_SETTING
 645 LIBDL
 646 LIBM
 647 LIBZIP_CAN_USE_MMAP
 648 USE_EXTERNAL_LIBZ
 649 USE_EXTERNAL_LIBPNG
 650 USE_EXTERNAL_LIBGIF
 651 USE_EXTERNAL_LIBJPEG
 652 ALSA_LIBS
 653 ALSA_CFLAGS
 654 FREETYPE_BUNDLE_LIB_PATH
 655 FREETYPE_LIBS
 656 FREETYPE_CFLAGS
 657 CUPS_CFLAGS
 658 OPENWIN_HOME
 659 X_EXTRA_LIBS
 660 X_LIBS
 661 X_PRE_LIBS
 662 X_CFLAGS
 663 XMKMF
 664 FIXPATH
 665 CXXFLAGS_DEBUG_SYMBOLS
 666 CFLAGS_DEBUG_SYMBOLS
 667 ZIP_DEBUGINFO_FILES
 668 ENABLE_DEBUG_SYMBOLS
 669 USING_BROKEN_SUSE_LD
 670 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 671 ZERO_ARCHFLAG
 672 LDFLAGS_CXX_JDK
 673 LDFLAGS_JDKEXE_SUFFIX
 674 LDFLAGS_JDKLIB_SUFFIX
 675 LDFLAGS_JDKEXE
 676 LDFLAGS_JDKLIB
 677 CXXFLAGS_JDKEXE
 678 CXXFLAGS_JDKLIB
 679 CFLAGS_JDKEXE
 680 CFLAGS_JDKLIB
 681 MACOSX_VERSION_MIN
 682 PACKAGE_PATH
 683 LEGACY_EXTRA_LDFLAGS
 684 LEGACY_EXTRA_CXXFLAGS
 685 LEGACY_EXTRA_CFLAGS
 686 CXX_FLAG_DEPS
 687 C_FLAG_DEPS
 688 CXX_O_FLAG_NONE
 689 CXX_O_FLAG_NORM
 690 CXX_O_FLAG_HI
 691 CXX_O_FLAG_HIGHEST
 692 C_O_FLAG_NONE
 693 C_O_FLAG_NORM
 694 C_O_FLAG_HI
 695 C_O_FLAG_HIGHEST
 696 POST_MCS_CMD
 697 POST_STRIP_CMD
 698 SET_EXECUTABLE_ORIGIN
 699 SET_SHARED_LIBRARY_ORIGIN
 700 CXX_FLAG_REORDER
 701 C_FLAG_REORDER
 702 SET_SHARED_LIBRARY_MAPFILE
 703 SET_SHARED_LIBRARY_NAME
 704 SHARED_LIBRARY_FLAGS
 705 EXE_SUFFIX
 706 STATIC_LIBRARY_SUFFIX
 707 SHARED_LIBRARY_SUFFIX
 708 LIBRARY_PREFIX
 709 STATIC_LIBRARY
 710 SHARED_LIBRARY
 711 OBJ_SUFFIX
 712 COMPILER_NAME
 713 JT_HOME
 714 JTREGEXE
 715 LIPO
 716 ac_ct_OBJDUMP
 717 OBJDUMP
 718 ac_ct_OBJCOPY
 719 OBJCOPY
 720 ac_ct_STRIP
 721 ac_ct_NM
 722 MCS
 723 STRIP
 724 GNM
 725 NM
 726 AS
 727 CXXCPP
 728 CPP
 729 COMPILER_TYPE
 730 RC_FLAGS
 731 DUMPBIN
 732 WINAR
 733 HOTSPOT_RC
 734 HOTSPOT_MT
 735 RC
 736 MT
 737 WINLD
 738 HOTSPOT_LD
 739 HOTSPOT_CXX
 740 ARFLAGS
 741 ac_ct_AR
 742 AR
 743 LDEXECXX
 744 LDCXX
 745 LDEXE
 746 LD
 747 ac_ct_OBJC
 748 OBJCFLAGS
 749 OBJC
 750 ac_ct_CXX
 751 CXXFLAGS
 752 CXX
 753 ac_ct_PROPER_COMPILER_CXX
 754 PROPER_COMPILER_CXX
 755 TOOLS_DIR_CXX
 756 POTENTIAL_CXX
 757 COMPILER_TARGET_BITS_FLAG
 758 OBJEXT
 759 EXEEXT
 760 ac_ct_CC
 761 CPPFLAGS
 762 LDFLAGS
 763 CFLAGS
 764 CC
 765 ac_ct_PROPER_COMPILER_CC
 766 PROPER_COMPILER_CC
 767 TOOLS_DIR_CC
 768 POTENTIAL_CC
 769 BUILD_LD
 770 BUILD_CXX
 771 BUILD_CC
 772 MSVCR_DLL
 773 VS_PATH
 774 VS_LIB
 775 VS_INCLUDE
 776 CYGWIN_LINK
 777 AR_OUT_OPTION
 778 LD_OUT_OPTION
 779 EXE_OUT_OPTION
 780 CC_OUT_OPTION
 781 BUILD_HOTSPOT
 782 HOTSPOT_DIST
 783 BUILD_OUTPUT
 784 OVERRIDE_SRC_ROOT
 785 ADD_SRC_ROOT
 786 JDK_TOPDIR
 787 NASHORN_TOPDIR
 788 HOTSPOT_TOPDIR
 789 JAXWS_TOPDIR
 790 JAXP_TOPDIR
 791 CORBA_TOPDIR
 792 LANGTOOLS_TOPDIR
 793 BOOT_JDK_JVMARGS
 794 JAVAC_FLAGS
 795 BOOT_JDK_SOURCETARGET
 796 JARSIGNER
 797 NATIVE2ASCII
 798 JAR
 799 JAVAH
 800 JAVAC
 801 JAVA
 802 BOOT_JDK
 803 BOOT_TOOLSJAR
 804 BOOT_RTJAR
 805 JAVA_CHECK
 806 JAVAC_CHECK
 807 COOKED_BUILD_NUMBER
 808 JDK_VERSION
 809 COPYRIGHT_YEAR
 810 MACOSX_BUNDLE_ID_BASE
 811 MACOSX_BUNDLE_NAME_BASE
 812 COMPANY_NAME
 813 JDK_RC_PLATFORM_NAME
 814 PRODUCT_SUFFIX
 815 PRODUCT_NAME
 816 LAUNCHER_NAME
 817 MILESTONE
 818 JDK_BUILD_NUMBER
 819 JDK_UPDATE_VERSION
 820 JDK_MICRO_VERSION
 821 JDK_MINOR_VERSION
 822 JDK_MAJOR_VERSION
 823 USER_RELEASE_SUFFIX
 824 COMPRESS_JARS
 825 UNLIMITED_CRYPTO
 826 CACERTS_FILE
 827 TEST_IN_BUILD
 828 BUILD_HEADLESS
 829 SUPPORT_HEADFUL
 830 SUPPORT_HEADLESS
 831 BDEPS_FTP
 832 BDEPS_UNZIP
 833 OS_VERSION_MICRO
 834 OS_VERSION_MINOR
 835 OS_VERSION_MAJOR
 836 PKG_CONFIG
 837 CODESIGN
 838 XATTR
 839 DSYMUTIL
 840 IS_GNU_TIME
 841 TIME
 842 STAT
 843 HG
 844 READELF
 845 OTOOL
 846 LDD
 847 ZIP
 848 UNZIP
 849 FIND_DELETE
 850 MAKE
 851 CHECK_TOOLSDIR_MAKE
 852 CHECK_TOOLSDIR_GMAKE
 853 CHECK_MAKE
 854 CHECK_GMAKE
 855 PKGHANDLER
 856 OUTPUT_ROOT
 857 CONF_NAME
 858 SPEC
 859 BUILD_VARIANT_RELEASE
 860 DEBUG_CLASSFILES
 861 FASTDEBUG
 862 VARIANT
 863 DEBUG_LEVEL
 864 MACOSX_UNIVERSAL
 865 INCLUDE_SA
 866 JVM_VARIANT_CORE
 867 JVM_VARIANT_ZEROSHARK
 868 JVM_VARIANT_ZERO
 869 JVM_VARIANT_KERNEL
 870 JVM_VARIANT_MINIMAL1
 871 JVM_VARIANT_CLIENT
 872 JVM_VARIANT_SERVER
 873 JVM_VARIANTS
 874 JVM_INTERPRETER
 875 JDK_VARIANT
 876 SET_OPENJDK
 877 BUILD_LOG_WRAPPER
 878 BUILD_LOG_PREVIOUS
 879 BUILD_LOG
 880 SYS_ROOT
 881 PATH_SEP
 882 SRC_ROOT
 883 ZERO_ARCHDEF
 884 DEFINE_CROSS_COMPILE_ARCH
 885 LP64
 886 OPENJDK_TARGET_OS_EXPORT_DIR
 887 OPENJDK_TARGET_OS_API_DIR
 888 OPENJDK_TARGET_CPU_JLI_CFLAGS
 889 OPENJDK_TARGET_CPU_OSARCH
 890 OPENJDK_TARGET_CPU_ISADIR
 891 OPENJDK_TARGET_CPU_LIBDIR
 892 OPENJDK_TARGET_CPU_LEGACY_LIB
 893 OPENJDK_TARGET_CPU_LEGACY
 894 REQUIRED_OS_VERSION
 895 REQUIRED_OS_NAME
 896 COMPILE_TYPE
 897 OPENJDK_TARGET_CPU_ENDIAN
 898 OPENJDK_TARGET_CPU_BITS
 899 OPENJDK_TARGET_CPU_ARCH
 900 OPENJDK_TARGET_CPU
 901 OPENJDK_TARGET_OS_API
 902 OPENJDK_TARGET_OS
 903 OPENJDK_BUILD_CPU_ENDIAN
 904 OPENJDK_BUILD_CPU_BITS
 905 OPENJDK_BUILD_CPU_ARCH
 906 OPENJDK_BUILD_CPU
 907 OPENJDK_BUILD_OS_API
 908 OPENJDK_BUILD_OS
 909 OPENJDK_BUILD_AUTOCONF_NAME
 910 OPENJDK_TARGET_AUTOCONF_NAME
 911 target_os
 912 target_vendor
 913 target_cpu
 914 target
 915 host_os
 916 host_vendor
 917 host_cpu
 918 host
 919 build_os
 920 build_vendor
 921 build_cpu
 922 build
 923 SETFILE
 924 DF
 925 READLINK
 926 CYGPATH
 927 SED
 928 FGREP
 929 EGREP
 930 GREP
 931 AWK
 932 XARGS
 933 WHICH
 934 WC
 935 UNIQ
 936 UNAME
 937 TR
 938 TOUCH
 939 TEE
 940 TAR
 941 TAIL
 942 SORT
 943 SH
 944 RM
 945 PRINTF
 946 NAWK
 947 MV
 948 MKTEMP
 949 MKDIR
 950 LS
 951 LN
 952 HEAD
 953 FIND
 954 FILE
 955 EXPR
 956 ECHO
 957 DIRNAME
 958 DIFF
 959 DATE
 960 CUT
 961 CPIO
 962 CP
 963 COMM
 964 CMP
 965 CHMOD
 966 CAT
 967 BASH
 968 BASENAME
 969 DATE_WHEN_CONFIGURED
 970 CONFIGURE_COMMAND_LINE
 971 CUSTOM_MAKE_DIR
 972 target_alias
 973 host_alias
 974 build_alias
 975 LIBS
 976 ECHO_T
 977 ECHO_N
 978 ECHO_C
 979 DEFS
 980 mandir
 981 localedir
 982 libdir
 983 psdir
 984 pdfdir
 985 dvidir
 986 htmldir
 987 infodir
 988 docdir
 989 oldincludedir
 990 includedir
 991 localstatedir
 992 sharedstatedir
 993 sysconfdir
 994 datadir
 995 datarootdir
 996 libexecdir
 997 sbindir
 998 bindir
 999 program_transform_name
1000 prefix
1001 exec_prefix
1002 PACKAGE_URL
1003 PACKAGE_BUGREPORT
1004 PACKAGE_STRING
1005 PACKAGE_VERSION
1006 PACKAGE_TARNAME
1007 PACKAGE_NAME
1008 PATH_SEPARATOR
1009 SHELL'
1010 ac_subst_files=''
1011 ac_user_opts='
1012 enable_option_checking
1013 with_custom_make_dir
1014 with_target_bits
1015 with_sys_root
1016 with_tools_dir
1017 with_devkit
1018 enable_openjdk_only
1019 with_jdk_variant
1020 with_jvm_interpreter
1021 with_jvm_variants
1022 enable_debug
1023 with_debug_level
1024 with_conf_name
1025 with_builddeps_conf
1026 with_builddeps_server
1027 with_builddeps_dir
1028 with_builddeps_group
1029 enable_headful
1030 enable_hotspot_test_in_build
1031 with_cacerts_file
1032 enable_unlimited_crypto
1033 with_milestone
1034 with_update_version
1035 with_user_release_suffix
1036 with_build_number
1037 with_boot_jdk
1038 with_boot_jdk_jvmargs
1039 with_add_source_root
1040 with_override_source_root
1041 with_adds_and_overrides
1042 with_override_langtools
1043 with_override_corba
1044 with_override_jaxp
1045 with_override_jaxws
1046 with_override_hotspot
1047 with_override_nashorn
1048 with_override_jdk
1049 with_import_hotspot
1050 with_msvcr_dll
1051 with_dxsdk
1052 with_dxsdk_lib
1053 with_dxsdk_include
1054 with_jtreg
1055 with_extra_cflags
1056 with_extra_cxxflags
1057 with_extra_ldflags
1058 enable_debug_symbols
1059 enable_zip_debug_info
1060 enable_macosx_runtime_support
1061 with_x
1062 with_cups
1063 with_cups_include
1064 with_freetype
1065 with_freetype_include
1066 with_freetype_lib
1067 enable_freetype_bundling
1068 with_alsa
1069 with_alsa_include
1070 with_alsa_lib
1071 with_giflib
1072 with_libpng
1073 with_zlib
1074 with_stdc__lib
1075 with_num_cores
1076 with_memory_size
1077 with_jobs
1078 with_sjavac_server_java
1079 enable_sjavac
1080 enable_precompiled_headers
1081 enable_ccache
1082 with_ccache_dir
1083 '
1084       ac_precious_vars='build_alias
1085 host_alias
1086 target_alias
1087 BASENAME
1088 BASH
1089 CAT
1090 CHMOD
1091 CMP
1092 COMM
1093 CP
1094 CPIO
1095 CUT
1096 DATE
1097 DIFF
1098 DIRNAME
1099 ECHO
1100 EXPR
1101 FILE
1102 FIND
1103 HEAD
1104 LN
1105 LS
1106 MKDIR
1107 MKTEMP
1108 MV
1109 NAWK
1110 PRINTF
1111 RM
1112 SH
1113 SORT
1114 TAIL
1115 TAR
1116 TEE
1117 TOUCH
1118 TR
1119 UNAME
1120 UNIQ
1121 WC
1122 WHICH
1123 XARGS
1124 AWK
1125 GREP
1126 EGREP
1127 FGREP
1128 SED
1129 CYGPATH
1130 READLINK
1131 DF
1132 SETFILE
1133 UNZIP
1134 ZIP
1135 LDD
1136 OTOOL
1137 READELF
1138 HG
1139 STAT
1140 TIME
1141 DSYMUTIL
1142 XATTR
1143 CODESIGN
1144 PKG_CONFIG
1145 JAVA
1146 JAVAC
1147 JAVAH
1148 JAR
1149 NATIVE2ASCII
1150 JARSIGNER
1151 BUILD_CC
1152 BUILD_CXX
1153 BUILD_LD
1154 CC
1155 CFLAGS
1156 LDFLAGS
1157 LIBS
1158 CPPFLAGS
1159 CXX
1160 CXXFLAGS
1161 CCC
1162 OBJC
1163 OBJCFLAGS
1164 AR
1165 CPP
1166 CXXCPP
1167 AS
1168 NM
1169 GNM
1170 STRIP
1171 MCS
1172 OBJCOPY
1173 OBJDUMP
1174 LIPO
1175 JTREGEXE
1176 XMKMF
1177 FREETYPE_CFLAGS
1178 FREETYPE_LIBS
1179 ALSA_CFLAGS
1180 ALSA_LIBS
1181 LIBFFI_CFLAGS
1182 LIBFFI_LIBS
1183 CCACHE'
1184 
1185 
1186 # Initialize some variables set by options.
1187 ac_init_help=
1188 ac_init_version=false
1189 ac_unrecognized_opts=
1190 ac_unrecognized_sep=
1191 # The variables have the same names as the options, with
1192 # dashes changed to underlines.
1193 cache_file=/dev/null
1194 exec_prefix=NONE
1195 no_create=
1196 no_recursion=
1197 prefix=NONE
1198 program_prefix=NONE
1199 program_suffix=NONE
1200 program_transform_name=s,x,x,
1201 silent=
1202 site=
1203 srcdir=
1204 verbose=
1205 x_includes=NONE
1206 x_libraries=NONE
1207 
1208 # Installation directory options.
1209 # These are left unexpanded so users can "make install exec_prefix=/foo"
1210 # and all the variables that are supposed to be based on exec_prefix
1211 # by default will actually change.
1212 # Use braces instead of parens because sh, perl, etc. also accept them.
1213 # (The list follows the same order as the GNU Coding Standards.)
1214 bindir='${exec_prefix}/bin'
1215 sbindir='${exec_prefix}/sbin'
1216 libexecdir='${exec_prefix}/libexec'
1217 datarootdir='${prefix}/share'
1218 datadir='${datarootdir}'
1219 sysconfdir='${prefix}/etc'
1220 sharedstatedir='${prefix}/com'
1221 localstatedir='${prefix}/var'
1222 includedir='${prefix}/include'
1223 oldincludedir='/usr/include'
1224 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1225 infodir='${datarootdir}/info'
1226 htmldir='${docdir}'
1227 dvidir='${docdir}'
1228 pdfdir='${docdir}'
1229 psdir='${docdir}'
1230 libdir='${exec_prefix}/lib'
1231 localedir='${datarootdir}/locale'
1232 mandir='${datarootdir}/man'
1233 
1234 ac_prev=
1235 ac_dashdash=
1236 for ac_option
1237 do
1238   # If the previous option needs an argument, assign it.
1239   if test -n "$ac_prev"; then
1240     eval $ac_prev=\$ac_option
1241     ac_prev=
1242     continue
1243   fi
1244 
1245   case $ac_option in
1246   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1247   *=)   ac_optarg= ;;
1248   *)    ac_optarg=yes ;;
1249   esac
1250 
1251   # Accept the important Cygnus configure options, so we can diagnose typos.
1252 
1253   case $ac_dashdash$ac_option in
1254   --)
1255     ac_dashdash=yes ;;
1256 
1257   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1258     ac_prev=bindir ;;
1259   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1260     bindir=$ac_optarg ;;
1261 
1262   -build | --build | --buil | --bui | --bu)
1263     ac_prev=build_alias ;;
1264   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1265     build_alias=$ac_optarg ;;
1266 
1267   -cache-file | --cache-file | --cache-fil | --cache-fi \
1268   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1269     ac_prev=cache_file ;;
1270   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1271   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1272     cache_file=$ac_optarg ;;
1273 
1274   --config-cache | -C)
1275     cache_file=config.cache ;;
1276 
1277   -datadir | --datadir | --datadi | --datad)
1278     ac_prev=datadir ;;
1279   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1280     datadir=$ac_optarg ;;
1281 
1282   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1283   | --dataroo | --dataro | --datar)
1284     ac_prev=datarootdir ;;
1285   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1286   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1287     datarootdir=$ac_optarg ;;
1288 
1289   -disable-* | --disable-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error $? "invalid feature name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "enable_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval enable_$ac_useropt=no ;;
1304 
1305   -docdir | --docdir | --docdi | --doc | --do)
1306     ac_prev=docdir ;;
1307   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1308     docdir=$ac_optarg ;;
1309 
1310   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1311     ac_prev=dvidir ;;
1312   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1313     dvidir=$ac_optarg ;;
1314 
1315   -enable-* | --enable-*)
1316     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319       as_fn_error $? "invalid feature name: $ac_useropt"
1320     ac_useropt_orig=$ac_useropt
1321     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322     case $ac_user_opts in
1323       *"
1324 "enable_$ac_useropt"
1325 "*) ;;
1326       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1327          ac_unrecognized_sep=', ';;
1328     esac
1329     eval enable_$ac_useropt=\$ac_optarg ;;
1330 
1331   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1332   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1333   | --exec | --exe | --ex)
1334     ac_prev=exec_prefix ;;
1335   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1336   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1337   | --exec=* | --exe=* | --ex=*)
1338     exec_prefix=$ac_optarg ;;
1339 
1340   -gas | --gas | --ga | --g)
1341     # Obsolete; use --with-gas.
1342     with_gas=yes ;;
1343 
1344   -help | --help | --hel | --he | -h)
1345     ac_init_help=long ;;
1346   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1347     ac_init_help=recursive ;;
1348   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1349     ac_init_help=short ;;
1350 
1351   -host | --host | --hos | --ho)
1352     ac_prev=host_alias ;;
1353   -host=* | --host=* | --hos=* | --ho=*)
1354     host_alias=$ac_optarg ;;
1355 
1356   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1357     ac_prev=htmldir ;;
1358   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1359   | --ht=*)
1360     htmldir=$ac_optarg ;;
1361 
1362   -includedir | --includedir | --includedi | --included | --include \
1363   | --includ | --inclu | --incl | --inc)
1364     ac_prev=includedir ;;
1365   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1366   | --includ=* | --inclu=* | --incl=* | --inc=*)
1367     includedir=$ac_optarg ;;
1368 
1369   -infodir | --infodir | --infodi | --infod | --info | --inf)
1370     ac_prev=infodir ;;
1371   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1372     infodir=$ac_optarg ;;
1373 
1374   -libdir | --libdir | --libdi | --libd)
1375     ac_prev=libdir ;;
1376   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1377     libdir=$ac_optarg ;;
1378 
1379   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1380   | --libexe | --libex | --libe)
1381     ac_prev=libexecdir ;;
1382   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1383   | --libexe=* | --libex=* | --libe=*)
1384     libexecdir=$ac_optarg ;;
1385 
1386   -localedir | --localedir | --localedi | --localed | --locale)
1387     ac_prev=localedir ;;
1388   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1389     localedir=$ac_optarg ;;
1390 
1391   -localstatedir | --localstatedir | --localstatedi | --localstated \
1392   | --localstate | --localstat | --localsta | --localst | --locals)
1393     ac_prev=localstatedir ;;
1394   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1395   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1396     localstatedir=$ac_optarg ;;
1397 
1398   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1399     ac_prev=mandir ;;
1400   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1401     mandir=$ac_optarg ;;
1402 
1403   -nfp | --nfp | --nf)
1404     # Obsolete; use --without-fp.
1405     with_fp=no ;;
1406 
1407   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1408   | --no-cr | --no-c | -n)
1409     no_create=yes ;;
1410 
1411   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1412   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1413     no_recursion=yes ;;
1414 
1415   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1416   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1417   | --oldin | --oldi | --old | --ol | --o)
1418     ac_prev=oldincludedir ;;
1419   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1420   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1421   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1422     oldincludedir=$ac_optarg ;;
1423 
1424   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1425     ac_prev=prefix ;;
1426   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1427     prefix=$ac_optarg ;;
1428 
1429   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1430   | --program-pre | --program-pr | --program-p)
1431     ac_prev=program_prefix ;;
1432   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1433   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1434     program_prefix=$ac_optarg ;;
1435 
1436   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1437   | --program-suf | --program-su | --program-s)
1438     ac_prev=program_suffix ;;
1439   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1440   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1441     program_suffix=$ac_optarg ;;
1442 
1443   -program-transform-name | --program-transform-name \
1444   | --program-transform-nam | --program-transform-na \
1445   | --program-transform-n | --program-transform- \
1446   | --program-transform | --program-transfor \
1447   | --program-transfo | --program-transf \
1448   | --program-trans | --program-tran \
1449   | --progr-tra | --program-tr | --program-t)
1450     ac_prev=program_transform_name ;;
1451   -program-transform-name=* | --program-transform-name=* \
1452   | --program-transform-nam=* | --program-transform-na=* \
1453   | --program-transform-n=* | --program-transform-=* \
1454   | --program-transform=* | --program-transfor=* \
1455   | --program-transfo=* | --program-transf=* \
1456   | --program-trans=* | --program-tran=* \
1457   | --progr-tra=* | --program-tr=* | --program-t=*)
1458     program_transform_name=$ac_optarg ;;
1459 
1460   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1461     ac_prev=pdfdir ;;
1462   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1463     pdfdir=$ac_optarg ;;
1464 
1465   -psdir | --psdir | --psdi | --psd | --ps)
1466     ac_prev=psdir ;;
1467   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1468     psdir=$ac_optarg ;;
1469 
1470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1471   | -silent | --silent | --silen | --sile | --sil)
1472     silent=yes ;;
1473 
1474   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1475     ac_prev=sbindir ;;
1476   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1477   | --sbi=* | --sb=*)
1478     sbindir=$ac_optarg ;;
1479 
1480   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1481   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1482   | --sharedst | --shareds | --shared | --share | --shar \
1483   | --sha | --sh)
1484     ac_prev=sharedstatedir ;;
1485   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1486   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1487   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1488   | --sha=* | --sh=*)
1489     sharedstatedir=$ac_optarg ;;
1490 
1491   -site | --site | --sit)
1492     ac_prev=site ;;
1493   -site=* | --site=* | --sit=*)
1494     site=$ac_optarg ;;
1495 
1496   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1497     ac_prev=srcdir ;;
1498   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1499     srcdir=$ac_optarg ;;
1500 
1501   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1502   | --syscon | --sysco | --sysc | --sys | --sy)
1503     ac_prev=sysconfdir ;;
1504   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1505   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1506     sysconfdir=$ac_optarg ;;
1507 
1508   -target | --target | --targe | --targ | --tar | --ta | --t)
1509     ac_prev=target_alias ;;
1510   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1511     target_alias=$ac_optarg ;;
1512 
1513   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1514     verbose=yes ;;
1515 
1516   -version | --version | --versio | --versi | --vers | -V)
1517     ac_init_version=: ;;
1518 
1519   -with-* | --with-*)
1520     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1521     # Reject names that are not valid shell variable names.
1522     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523       as_fn_error $? "invalid package name: $ac_useropt"
1524     ac_useropt_orig=$ac_useropt
1525     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526     case $ac_user_opts in
1527       *"
1528 "with_$ac_useropt"
1529 "*) ;;
1530       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1531          ac_unrecognized_sep=', ';;
1532     esac
1533     eval with_$ac_useropt=\$ac_optarg ;;
1534 
1535   -without-* | --without-*)
1536     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1537     # Reject names that are not valid shell variable names.
1538     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1539       as_fn_error $? "invalid package name: $ac_useropt"
1540     ac_useropt_orig=$ac_useropt
1541     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1542     case $ac_user_opts in
1543       *"
1544 "with_$ac_useropt"
1545 "*) ;;
1546       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1547          ac_unrecognized_sep=', ';;
1548     esac
1549     eval with_$ac_useropt=no ;;
1550 
1551   --x)
1552     # Obsolete; use --with-x.
1553     with_x=yes ;;
1554 
1555   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1556   | --x-incl | --x-inc | --x-in | --x-i)
1557     ac_prev=x_includes ;;
1558   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1559   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1560     x_includes=$ac_optarg ;;
1561 
1562   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1563   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1564     ac_prev=x_libraries ;;
1565   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1566   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1567     x_libraries=$ac_optarg ;;
1568 
1569   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1570 Try \`$0 --help' for more information"
1571     ;;
1572 
1573   *=*)
1574     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1575     # Reject names that are not valid shell variable names.
1576     case $ac_envvar in #(
1577       '' | [0-9]* | *[!_$as_cr_alnum]* )
1578       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1579     esac
1580     eval $ac_envvar=\$ac_optarg
1581     export $ac_envvar ;;
1582 
1583   *)
1584     # FIXME: should be removed in autoconf 3.0.
1585     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1586     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1587       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1588     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1589     ;;
1590 
1591   esac
1592 done
1593 
1594 if test -n "$ac_prev"; then
1595   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1596   as_fn_error $? "missing argument to $ac_option"
1597 fi
1598 
1599 if test -n "$ac_unrecognized_opts"; then
1600   case $enable_option_checking in
1601     no) ;;
1602     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1603     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1604   esac
1605 fi
1606 
1607 # Check all directory arguments for consistency.
1608 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1609                 datadir sysconfdir sharedstatedir localstatedir includedir \
1610                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1611                 libdir localedir mandir
1612 do
1613   eval ac_val=\$$ac_var
1614   # Remove trailing slashes.
1615   case $ac_val in
1616     */ )
1617       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1618       eval $ac_var=\$ac_val;;
1619   esac
1620   # Be sure to have absolute directory names.
1621   case $ac_val in
1622     [\\/$]* | ?:[\\/]* )  continue;;
1623     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1624   esac
1625   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1626 done
1627 
1628 # There might be people who depend on the old broken behavior: `$host'
1629 # used to hold the argument of --host etc.
1630 # FIXME: To remove some day.
1631 build=$build_alias
1632 host=$host_alias
1633 target=$target_alias
1634 
1635 # FIXME: To remove some day.
1636 if test "x$host_alias" != x; then
1637   if test "x$build_alias" = x; then
1638     cross_compiling=maybe
1639   elif test "x$build_alias" != "x$host_alias"; then
1640     cross_compiling=yes
1641   fi
1642 fi
1643 
1644 ac_tool_prefix=
1645 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1646 
1647 test "$silent" = yes && exec 6>/dev/null
1648 
1649 
1650 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1651 ac_ls_di=`ls -di .` &&
1652 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1653   as_fn_error $? "working directory cannot be determined"
1654 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1655   as_fn_error $? "pwd does not report name of working directory"
1656 
1657 
1658 # Find the source files, if location was not specified.
1659 if test -z "$srcdir"; then
1660   ac_srcdir_defaulted=yes
1661   # Try the directory containing this script, then the parent directory.
1662   ac_confdir=`$as_dirname -- "$as_myself" ||
1663 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1664          X"$as_myself" : 'X\(//\)[^/]' \| \
1665          X"$as_myself" : 'X\(//\)$' \| \
1666          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1667 $as_echo X"$as_myself" |
1668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1669             s//\1/
1670             q
1671           }
1672           /^X\(\/\/\)[^/].*/{
1673             s//\1/
1674             q
1675           }
1676           /^X\(\/\/\)$/{
1677             s//\1/
1678             q
1679           }
1680           /^X\(\/\).*/{
1681             s//\1/
1682             q
1683           }
1684           s/.*/./; q'`
1685   srcdir=$ac_confdir
1686   if test ! -r "$srcdir/$ac_unique_file"; then
1687     srcdir=..
1688   fi
1689 else
1690   ac_srcdir_defaulted=no
1691 fi
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1693   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1694   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1695 fi
1696 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1697 ac_abs_confdir=`(
1698         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1699         pwd)`
1700 # When building in place, set srcdir=.
1701 if test "$ac_abs_confdir" = "$ac_pwd"; then
1702   srcdir=.
1703 fi
1704 # Remove unnecessary trailing slashes from srcdir.
1705 # Double slashes in file names in object file debugging info
1706 # mess up M-x gdb in Emacs.
1707 case $srcdir in
1708 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1709 esac
1710 for ac_var in $ac_precious_vars; do
1711   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1712   eval ac_env_${ac_var}_value=\$${ac_var}
1713   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1714   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1715 done
1716 
1717 #
1718 # Report the --help message.
1719 #
1720 if test "$ac_init_help" = "long"; then
1721   # Omit some internal or obsolete options to make the list less imposing.
1722   # This message is too long to be a string in the A/UX 3.1 sh.
1723   cat <<_ACEOF
1724 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1725 
1726 Usage: $0 [OPTION]... [VAR=VALUE]...
1727 
1728 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1729 VAR=VALUE.  See below for descriptions of some of the useful variables.
1730 
1731 Defaults for the options are specified in brackets.
1732 
1733 Configuration:
1734   -h, --help              display this help and exit
1735       --help=short        display options specific to this package
1736       --help=recursive    display the short help of all the included packages
1737   -V, --version           display version information and exit
1738   -q, --quiet, --silent   do not print \`checking ...' messages
1739       --cache-file=FILE   cache test results in FILE [disabled]
1740   -C, --config-cache      alias for \`--cache-file=config.cache'
1741   -n, --no-create         do not create output files
1742       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1743 
1744 Installation directories:
1745   --prefix=PREFIX         install architecture-independent files in PREFIX
1746                           [$ac_default_prefix]
1747   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1748                           [PREFIX]
1749 
1750 By default, \`make install' will install all the files in
1751 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1752 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1753 for instance \`--prefix=\$HOME'.
1754 
1755 For better control, use the options below.
1756 
1757 Fine tuning of the installation directories:
1758   --bindir=DIR            user executables [EPREFIX/bin]
1759   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1760   --libexecdir=DIR        program executables [EPREFIX/libexec]
1761   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1762   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1763   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1764   --libdir=DIR            object code libraries [EPREFIX/lib]
1765   --includedir=DIR        C header files [PREFIX/include]
1766   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1767   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1768   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1769   --infodir=DIR           info documentation [DATAROOTDIR/info]
1770   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1771   --mandir=DIR            man documentation [DATAROOTDIR/man]
1772   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1773   --htmldir=DIR           html documentation [DOCDIR]
1774   --dvidir=DIR            dvi documentation [DOCDIR]
1775   --pdfdir=DIR            pdf documentation [DOCDIR]
1776   --psdir=DIR             ps documentation [DOCDIR]
1777 _ACEOF
1778 
1779   cat <<\_ACEOF
1780 
1781 X features:
1782   --x-includes=DIR    X include files are in DIR
1783   --x-libraries=DIR   X library files are in DIR
1784 
1785 System types:
1786   --build=BUILD     configure for building on BUILD [guessed]
1787   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1788   --target=TARGET   configure for building compilers for TARGET [HOST]
1789 _ACEOF
1790 fi
1791 
1792 if test -n "$ac_init_help"; then
1793   case $ac_init_help in
1794      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1795    esac
1796   cat <<\_ACEOF
1797 
1798 Optional Features:
1799   --disable-option-checking  ignore unrecognized --enable/--with options
1800   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1801   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1802   --enable-openjdk-only   suppress building custom source even if present
1803                           [disabled]
1804   --enable-debug          set the debug level to fastdebug (shorthand for
1805                           --with-debug-level=fastdebug) [disabled]
1806   --disable-headful       disable building headful support (graphical UI
1807                           support) [enabled]
1808   --enable-hotspot-test-in-build
1809                           run the Queens test after Hotspot build [disabled]
1810   --enable-unlimited-crypto
1811                           Enable unlimited crypto policy [disabled]
1812   --disable-debug-symbols disable generation of debug symbols [enabled]
1813   --disable-zip-debug-info
1814                           disable zipping of debug-info files [enabled]
1815   --enable-macosx-runtime-support
1816                           Deprecated. Option is kept for backwards
1817                           compatibility and is ignored
1818   --disable-freetype-bundling
1819                           disable bundling of the freetype library with the
1820                           build result [enabled on Windows or when using
1821                           --with-freetype, disabled otherwise]
1822   --enable-sjavac         use sjavac to do fast incremental compiles
1823                           [disabled]
1824   --disable-precompiled-headers
1825                           disable using precompiled headers when compiling C++
1826                           [enabled]
1827   --enable-ccache         enable using ccache to speed up recompilations
1828                           [disabled]
1829 
1830 Optional Packages:
1831   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1832   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1833   --with-custom-make-dir  use this directory for custom build/make files
1834   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1835                           support it), e.g. --with-target-bits=32 [guessed]
1836   --with-sys-root         pass this sys-root to the compilers and tools (for
1837                           cross-compiling)
1838   --with-tools-dir        search this directory for compilers and tools (for
1839                           cross-compiling)
1840   --with-devkit           use this directory as base for tools-dir and
1841                           sys-root (for cross-compiling)
1842   --with-jdk-variant      JDK variant to build (normal) [normal]
1843   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1844   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1845                           client, minimal1, kernel, zero, zeroshark, core)
1846                           [server]
1847   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1848                           [release]
1849   --with-conf-name        use this as the name of the configuration [generated
1850                           from important configuration options]
1851   --with-builddeps-conf   use this configuration file for the builddeps
1852   --with-builddeps-server download and use build dependencies from this server
1853                           url
1854   --with-builddeps-dir    store downloaded build dependencies here
1855                           [/localhome/builddeps]
1856   --with-builddeps-group  chgrp the downloaded build dependencies to this
1857                           group
1858   --with-cacerts-file     specify alternative cacerts file
1859   --with-milestone        Set milestone value for build [internal]
1860   --with-update-version   Set update version value for build [b00]
1861   --with-user-release-suffix
1862                           Add a custom string to the version string if build
1863                           number isn't set.[username_builddateb00]
1864   --with-build-number     Set build number value for build [b00]
1865   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1866   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1867                           invocations of the Boot JDK, overriding the default
1868                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1869                           -enableassertions"
1870   --with-add-source-root  for each and every source directory, look in this
1871                           additional source root for the same directory; if it
1872                           exists and have files in it, include it in the build
1873   --with-override-source-root
1874                           for each and every source directory, look in this
1875                           override source root for the same directory; if it
1876                           exists, use that directory instead and ignore the
1877                           directory in the original source root
1878   --with-adds-and-overrides
1879                           use the subdirs 'adds' and 'overrides' in the
1880                           specified directory as add-source-root and
1881                           override-source-root
1882   --with-override-langtools
1883                           use this langtools dir for the build
1884   --with-override-corba   use this corba dir for the build
1885   --with-override-jaxp    use this jaxp dir for the build
1886   --with-override-jaxws   use this jaxws dir for the build
1887   --with-override-hotspot use this hotspot dir for the build
1888   --with-override-nashorn use this nashorn dir for the build
1889   --with-override-jdk     use this jdk dir for the build
1890   --with-import-hotspot   import hotspot binaries from this jdk image or
1891                           hotspot build dist dir instead of building from
1892                           source
1893   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1894                           only) [probed]
1895   --with-dxsdk            Deprecated. Option is kept for backwards
1896                           compatibility and is ignored
1897   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1898                           compatibility and is ignored
1899   --with-dxsdk-include    Deprecated. Option is kept for backwards
1900                           compatibility and is ignored
1901   --with-jtreg            Regression Test Harness [probed]
1902   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1903   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1904   --with-extra-ldflags    extra flags to be used when linking jdk
1905   --with-x                use the X Window System
1906   --with-cups             specify prefix directory for the cups package
1907                           (expecting the headers under PATH/include)
1908   --with-cups-include     specify directory for the cups include files
1909   --with-freetype         specify prefix directory for the freetype package
1910                           (expecting the libraries under PATH/lib and the
1911                           headers under PATH/include)
1912   --with-freetype-include specify directory for the freetype include files
1913   --with-freetype-lib     specify directory for the freetype library
1914   --with-alsa             specify prefix directory for the alsa package
1915                           (expecting the libraries under PATH/lib and the
1916                           headers under PATH/include)
1917   --with-alsa-include     specify directory for the alsa include files
1918   --with-alsa-lib         specify directory for the alsa library
1919   --with-giflib           use giflib from build system or OpenJDK source
1920                           (system, bundled) [bundled]
1921   --with-libpng           use libpng from build system or OpenJDK source
1922                           (system, bundled) [bundled]
1923   --with-zlib             use zlib from build system or OpenJDK source
1924                           (system, bundled) [bundled]
1925   --with-stdc++lib=<static>,<dynamic>,<default>
1926                           force linking of the C++ runtime on Linux to either
1927                           static or dynamic, default is static with dynamic as
1928                           fallback
1929   --with-num-cores        number of cores in the build system, e.g.
1930                           --with-num-cores=8 [probed]
1931   --with-memory-size      memory (in MB) available in the build system, e.g.
1932                           --with-memory-size=1024 [probed]
1933   --with-jobs             number of parallel jobs to let make run [calculated
1934                           based on cores and memory]
1935   --with-sjavac-server-java
1936                           use this java binary for running the sjavac
1937                           background server [Boot JDK java]
1938   --with-ccache-dir       where to store ccache files [~/.ccache]
1939 
1940 Some influential environment variables:
1941   BASENAME    Override default value for BASENAME
1942   BASH        Override default value for BASH
1943   CAT         Override default value for CAT
1944   CHMOD       Override default value for CHMOD
1945   CMP         Override default value for CMP
1946   COMM        Override default value for COMM
1947   CP          Override default value for CP
1948   CPIO        Override default value for CPIO
1949   CUT         Override default value for CUT
1950   DATE        Override default value for DATE
1951   DIFF        Override default value for DIFF
1952   DIRNAME     Override default value for DIRNAME
1953   ECHO        Override default value for ECHO
1954   EXPR        Override default value for EXPR
1955   FILE        Override default value for FILE
1956   FIND        Override default value for FIND
1957   HEAD        Override default value for HEAD
1958   LN          Override default value for LN
1959   LS          Override default value for LS
1960   MKDIR       Override default value for MKDIR
1961   MKTEMP      Override default value for MKTEMP
1962   MV          Override default value for MV
1963   NAWK        Override default value for NAWK
1964   PRINTF      Override default value for PRINTF
1965   RM          Override default value for RM
1966   SH          Override default value for SH
1967   SORT        Override default value for SORT
1968   TAIL        Override default value for TAIL
1969   TAR         Override default value for TAR
1970   TEE         Override default value for TEE
1971   TOUCH       Override default value for TOUCH
1972   TR          Override default value for TR
1973   UNAME       Override default value for UNAME
1974   UNIQ        Override default value for UNIQ
1975   WC          Override default value for WC
1976   WHICH       Override default value for WHICH
1977   XARGS       Override default value for XARGS
1978   AWK         Override default value for AWK
1979   GREP        Override default value for GREP
1980   EGREP       Override default value for EGREP
1981   FGREP       Override default value for FGREP
1982   SED         Override default value for SED
1983   CYGPATH     Override default value for CYGPATH
1984   READLINK    Override default value for READLINK
1985   DF          Override default value for DF
1986   SETFILE     Override default value for SETFILE
1987   UNZIP       Override default value for UNZIP
1988   ZIP         Override default value for ZIP
1989   LDD         Override default value for LDD
1990   OTOOL       Override default value for OTOOL
1991   READELF     Override default value for READELF
1992   HG          Override default value for HG
1993   STAT        Override default value for STAT
1994   TIME        Override default value for TIME
1995   DSYMUTIL    Override default value for DSYMUTIL
1996   XATTR       Override default value for XATTR
1997   CODESIGN    Override default value for CODESIGN
1998   PKG_CONFIG  path to pkg-config utility
1999   JAVA        Override default value for JAVA
2000   JAVAC       Override default value for JAVAC
2001   JAVAH       Override default value for JAVAH
2002   JAR         Override default value for JAR
2003   NATIVE2ASCII
2004               Override default value for NATIVE2ASCII
2005   JARSIGNER   Override default value for JARSIGNER
2006   BUILD_CC    Override default value for BUILD_CC
2007   BUILD_CXX   Override default value for BUILD_CXX
2008   BUILD_LD    Override default value for BUILD_LD
2009   CC          C compiler command
2010   CFLAGS      C compiler flags
2011   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2012               nonstandard directory <lib dir>
2013   LIBS        libraries to pass to the linker, e.g. -l<library>
2014   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2015               you have headers in a nonstandard directory <include dir>
2016   CXX         C++ compiler command
2017   CXXFLAGS    C++ compiler flags
2018   OBJC        Objective C compiler command
2019   OBJCFLAGS   Objective C compiler flags
2020   AR          Override default value for AR
2021   CPP         C preprocessor
2022   CXXCPP      C++ preprocessor
2023   AS          Override default value for AS
2024   NM          Override default value for NM
2025   GNM         Override default value for GNM
2026   STRIP       Override default value for STRIP
2027   MCS         Override default value for MCS
2028   OBJCOPY     Override default value for OBJCOPY
2029   OBJDUMP     Override default value for OBJDUMP
2030   LIPO        Override default value for LIPO
2031   JTREGEXE    Override default value for JTREGEXE
2032   XMKMF       Path to xmkmf, Makefile generator for X Window System
2033   FREETYPE_CFLAGS
2034               C compiler flags for FREETYPE, overriding pkg-config
2035   FREETYPE_LIBS
2036               linker flags for FREETYPE, overriding pkg-config
2037   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2038   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2039   LIBFFI_CFLAGS
2040               C compiler flags for LIBFFI, overriding pkg-config
2041   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2042   CCACHE      Override default value for CCACHE
2043 
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2046 
2047 Report bugs to <build-dev@openjdk.java.net>.
2048 OpenJDK home page: <http://openjdk.java.net>.
2049 _ACEOF
2050 ac_status=$?
2051 fi
2052 
2053 if test "$ac_init_help" = "recursive"; then
2054   # If there are subdirs, report their specific --help.
2055   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2056     test -d "$ac_dir" ||
2057       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2058       continue
2059     ac_builddir=.
2060 
2061 case "$ac_dir" in
2062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063 *)
2064   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2065   # A ".." for each directory in $ac_dir_suffix.
2066   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2067   case $ac_top_builddir_sub in
2068   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2069   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2070   esac ;;
2071 esac
2072 ac_abs_top_builddir=$ac_pwd
2073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2074 # for backward compatibility:
2075 ac_top_builddir=$ac_top_build_prefix
2076 
2077 case $srcdir in
2078   .)  # We are building in place.
2079     ac_srcdir=.
2080     ac_top_srcdir=$ac_top_builddir_sub
2081     ac_abs_top_srcdir=$ac_pwd ;;
2082   [\\/]* | ?:[\\/]* )  # Absolute name.
2083     ac_srcdir=$srcdir$ac_dir_suffix;
2084     ac_top_srcdir=$srcdir
2085     ac_abs_top_srcdir=$srcdir ;;
2086   *) # Relative name.
2087     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2088     ac_top_srcdir=$ac_top_build_prefix$srcdir
2089     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2090 esac
2091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2092 
2093     cd "$ac_dir" || { ac_status=$?; continue; }
2094     # Check for guested configure.
2095     if test -f "$ac_srcdir/configure.gnu"; then
2096       echo &&
2097       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2098     elif test -f "$ac_srcdir/configure"; then
2099       echo &&
2100       $SHELL "$ac_srcdir/configure" --help=recursive
2101     else
2102       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2103     fi || ac_status=$?
2104     cd "$ac_pwd" || { ac_status=$?; break; }
2105   done
2106 fi
2107 
2108 test -n "$ac_init_help" && exit $ac_status
2109 if $ac_init_version; then
2110   cat <<\_ACEOF
2111 OpenJDK configure jdk8
2112 generated by GNU Autoconf 2.69
2113 
2114 Copyright (C) 2012 Free Software Foundation, Inc.
2115 This configure script is free software; the Free Software Foundation
2116 gives unlimited permission to copy, distribute and modify it.
2117 _ACEOF
2118   exit
2119 fi
2120 
2121 ## ------------------------ ##
2122 ## Autoconf initialization. ##
2123 ## ------------------------ ##
2124 
2125 # ac_fn_c_try_compile LINENO
2126 # --------------------------
2127 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_c_try_compile ()
2129 {
2130   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131   rm -f conftest.$ac_objext
2132   if { { ac_try="$ac_compile"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139   (eval "$ac_compile") 2>conftest.err
2140   ac_status=$?
2141   if test -s conftest.err; then
2142     grep -v '^ *+' conftest.err >conftest.er1
2143     cat conftest.er1 >&5
2144     mv -f conftest.er1 conftest.err
2145   fi
2146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147   test $ac_status = 0; } && {
2148          test -z "$ac_c_werror_flag" ||
2149          test ! -s conftest.err
2150        } && test -s conftest.$ac_objext; then :
2151   ac_retval=0
2152 else
2153   $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2155 
2156         ac_retval=1
2157 fi
2158   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159   as_fn_set_status $ac_retval
2160 
2161 } # ac_fn_c_try_compile
2162 
2163 # ac_fn_cxx_try_compile LINENO
2164 # ----------------------------
2165 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2166 ac_fn_cxx_try_compile ()
2167 {
2168   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169   rm -f conftest.$ac_objext
2170   if { { ac_try="$ac_compile"
2171 case "(($ac_try" in
2172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173   *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177   (eval "$ac_compile") 2>conftest.err
2178   ac_status=$?
2179   if test -s conftest.err; then
2180     grep -v '^ *+' conftest.err >conftest.er1
2181     cat conftest.er1 >&5
2182     mv -f conftest.er1 conftest.err
2183   fi
2184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185   test $ac_status = 0; } && {
2186          test -z "$ac_cxx_werror_flag" ||
2187          test ! -s conftest.err
2188        } && test -s conftest.$ac_objext; then :
2189   ac_retval=0
2190 else
2191   $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193 
2194         ac_retval=1
2195 fi
2196   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197   as_fn_set_status $ac_retval
2198 
2199 } # ac_fn_cxx_try_compile
2200 
2201 # ac_fn_objc_try_compile LINENO
2202 # -----------------------------
2203 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2204 ac_fn_objc_try_compile ()
2205 {
2206   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207   rm -f conftest.$ac_objext
2208   if { { ac_try="$ac_compile"
2209 case "(($ac_try" in
2210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211   *) ac_try_echo=$ac_try;;
2212 esac
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215   (eval "$ac_compile") 2>conftest.err
2216   ac_status=$?
2217   if test -s conftest.err; then
2218     grep -v '^ *+' conftest.err >conftest.er1
2219     cat conftest.er1 >&5
2220     mv -f conftest.er1 conftest.err
2221   fi
2222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223   test $ac_status = 0; } && {
2224          test -z "$ac_objc_werror_flag" ||
2225          test ! -s conftest.err
2226        } && test -s conftest.$ac_objext; then :
2227   ac_retval=0
2228 else
2229   $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231 
2232         ac_retval=1
2233 fi
2234   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235   as_fn_set_status $ac_retval
2236 
2237 } # ac_fn_objc_try_compile
2238 
2239 # ac_fn_c_try_cpp LINENO
2240 # ----------------------
2241 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2242 ac_fn_c_try_cpp ()
2243 {
2244   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245   if { { ac_try="$ac_cpp conftest.$ac_ext"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 $as_echo "$ac_try_echo"; } >&5
2252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2253   ac_status=$?
2254   if test -s conftest.err; then
2255     grep -v '^ *+' conftest.err >conftest.er1
2256     cat conftest.er1 >&5
2257     mv -f conftest.er1 conftest.err
2258   fi
2259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260   test $ac_status = 0; } > conftest.i && {
2261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2262          test ! -s conftest.err
2263        }; then :
2264   ac_retval=0
2265 else
2266   $as_echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268 
2269     ac_retval=1
2270 fi
2271   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272   as_fn_set_status $ac_retval
2273 
2274 } # ac_fn_c_try_cpp
2275 
2276 # ac_fn_cxx_try_cpp LINENO
2277 # ------------------------
2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_cxx_try_cpp ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   if { { ac_try="$ac_cpp conftest.$ac_ext"
2283 case "(($ac_try" in
2284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285   *) ac_try_echo=$ac_try;;
2286 esac
2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2290   ac_status=$?
2291   if test -s conftest.err; then
2292     grep -v '^ *+' conftest.err >conftest.er1
2293     cat conftest.er1 >&5
2294     mv -f conftest.er1 conftest.err
2295   fi
2296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297   test $ac_status = 0; } > conftest.i && {
2298          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2299          test ! -s conftest.err
2300        }; then :
2301   ac_retval=0
2302 else
2303   $as_echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305 
2306     ac_retval=1
2307 fi
2308   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309   as_fn_set_status $ac_retval
2310 
2311 } # ac_fn_cxx_try_cpp
2312 
2313 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2314 # ---------------------------------------------------------
2315 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2316 # the include files in INCLUDES and setting the cache variable VAR
2317 # accordingly.
2318 ac_fn_cxx_check_header_mongrel ()
2319 {
2320   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321   if eval \${$3+:} false; then :
2322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323 $as_echo_n "checking for $2... " >&6; }
2324 if eval \${$3+:} false; then :
2325   $as_echo_n "(cached) " >&6
2326 fi
2327 eval ac_res=\$$3
2328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 else
2331   # Is the header compilable?
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2333 $as_echo_n "checking $2 usability... " >&6; }
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h.  */
2336 $4
2337 #include <$2>
2338 _ACEOF
2339 if ac_fn_cxx_try_compile "$LINENO"; then :
2340   ac_header_compiler=yes
2341 else
2342   ac_header_compiler=no
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2346 $as_echo "$ac_header_compiler" >&6; }
2347 
2348 # Is the header present?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2350 $as_echo_n "checking $2 presence... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 #include <$2>
2354 _ACEOF
2355 if ac_fn_cxx_try_cpp "$LINENO"; then :
2356   ac_header_preproc=yes
2357 else
2358   ac_header_preproc=no
2359 fi
2360 rm -f conftest.err conftest.i conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2362 $as_echo "$ac_header_preproc" >&6; }
2363 
2364 # So?  What about this header?
2365 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2366   yes:no: )
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2368 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2370 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2371     ;;
2372   no:yes:* )
2373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2374 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2376 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2378 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2379     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2380 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2382 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2383 ( $as_echo "## ----------------------------------------- ##
2384 ## Report this to build-dev@openjdk.java.net ##
2385 ## ----------------------------------------- ##"
2386      ) | sed "s/^/$as_me: WARNING:     /" >&2
2387     ;;
2388 esac
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2390 $as_echo_n "checking for $2... " >&6; }
2391 if eval \${$3+:} false; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   eval "$3=\$ac_header_compiler"
2395 fi
2396 eval ac_res=\$$3
2397                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2399 fi
2400   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401 
2402 } # ac_fn_cxx_check_header_mongrel
2403 
2404 # ac_fn_cxx_try_run LINENO
2405 # ------------------------
2406 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2407 # that executables *can* be run.
2408 ac_fn_cxx_try_run ()
2409 {
2410   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411   if { { ac_try="$ac_link"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418   (eval "$ac_link") 2>&5
2419   ac_status=$?
2420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2421   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2422   { { case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428   (eval "$ac_try") 2>&5
2429   ac_status=$?
2430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431   test $ac_status = 0; }; }; then :
2432   ac_retval=0
2433 else
2434   $as_echo "$as_me: program exited with status $ac_status" >&5
2435        $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437 
2438        ac_retval=$ac_status
2439 fi
2440   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442   as_fn_set_status $ac_retval
2443 
2444 } # ac_fn_cxx_try_run
2445 
2446 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2447 # ---------------------------------------------------------
2448 # Tests whether HEADER exists and can be compiled using the include files in
2449 # INCLUDES, setting the cache variable VAR accordingly.
2450 ac_fn_cxx_check_header_compile ()
2451 {
2452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if eval \${$3+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 $4
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_cxx_try_compile "$LINENO"; then :
2464   eval "$3=yes"
2465 else
2466   eval "$3=no"
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474 
2475 } # ac_fn_cxx_check_header_compile
2476 
2477 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2478 # ----------------------------------------------
2479 # Tries to find the compile-time value of EXPR in a program that includes
2480 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2481 # computed
2482 ac_fn_cxx_compute_int ()
2483 {
2484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485   if test "$cross_compiling" = yes; then
2486     # Depending upon the size, compute the lo and hi bounds.
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h.  */
2489 $4
2490 int
2491 main ()
2492 {
2493 static int test_array [1 - 2 * !(($2) >= 0)];
2494 test_array [0] = 0;
2495 return test_array [0];
2496 
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 if ac_fn_cxx_try_compile "$LINENO"; then :
2502   ac_lo=0 ac_mid=0
2503   while :; do
2504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h.  */
2506 $4
2507 int
2508 main ()
2509 {
2510 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2511 test_array [0] = 0;
2512 return test_array [0];
2513 
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 if ac_fn_cxx_try_compile "$LINENO"; then :
2519   ac_hi=$ac_mid; break
2520 else
2521   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2522                         if test $ac_lo -le $ac_mid; then
2523                           ac_lo= ac_hi=
2524                           break
2525                         fi
2526                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2527 fi
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529   done
2530 else
2531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 $4
2534 int
2535 main ()
2536 {
2537 static int test_array [1 - 2 * !(($2) < 0)];
2538 test_array [0] = 0;
2539 return test_array [0];
2540 
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_cxx_try_compile "$LINENO"; then :
2546   ac_hi=-1 ac_mid=-1
2547   while :; do
2548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h.  */
2550 $4
2551 int
2552 main ()
2553 {
2554 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2555 test_array [0] = 0;
2556 return test_array [0];
2557 
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 if ac_fn_cxx_try_compile "$LINENO"; then :
2563   ac_lo=$ac_mid; break
2564 else
2565   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2566                         if test $ac_mid -le $ac_hi; then
2567                           ac_lo= ac_hi=
2568                           break
2569                         fi
2570                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573   done
2574 else
2575   ac_lo= ac_hi=
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 # Binary search between lo and hi bounds.
2581 while test "x$ac_lo" != "x$ac_hi"; do
2582   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h.  */
2585 $4
2586 int
2587 main ()
2588 {
2589 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2590 test_array [0] = 0;
2591 return test_array [0];
2592 
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_cxx_try_compile "$LINENO"; then :
2598   ac_hi=$ac_mid
2599 else
2600   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 done
2604 case $ac_lo in #((
2605 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2606 '') ac_retval=1 ;;
2607 esac
2608   else
2609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h.  */
2611 $4
2612 static long int longval () { return $2; }
2613 static unsigned long int ulongval () { return $2; }
2614 #include <stdio.h>
2615 #include <stdlib.h>
2616 int
2617 main ()
2618 {
2619 
2620   FILE *f = fopen ("conftest.val", "w");
2621   if (! f)
2622     return 1;
2623   if (($2) < 0)
2624     {
2625       long int i = longval ();
2626       if (i != ($2))
2627         return 1;
2628       fprintf (f, "%ld", i);
2629     }
2630   else
2631     {
2632       unsigned long int i = ulongval ();
2633       if (i != ($2))
2634         return 1;
2635       fprintf (f, "%lu", i);
2636     }
2637   /* Do not output a trailing newline, as this causes \r\n confusion
2638      on some platforms.  */
2639   return ferror (f) || fclose (f) != 0;
2640 
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 if ac_fn_cxx_try_run "$LINENO"; then :
2646   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2647 else
2648   ac_retval=1
2649 fi
2650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2651   conftest.$ac_objext conftest.beam conftest.$ac_ext
2652 rm -f conftest.val
2653 
2654   fi
2655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656   as_fn_set_status $ac_retval
2657 
2658 } # ac_fn_cxx_compute_int
2659 
2660 # ac_fn_cxx_try_link LINENO
2661 # -------------------------
2662 # Try to link conftest.$ac_ext, and return whether this succeeded.
2663 ac_fn_cxx_try_link ()
2664 {
2665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666   rm -f conftest.$ac_objext conftest$ac_exeext
2667   if { { ac_try="$ac_link"
2668 case "(($ac_try" in
2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670   *) ac_try_echo=$ac_try;;
2671 esac
2672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674   (eval "$ac_link") 2>conftest.err
2675   ac_status=$?
2676   if test -s conftest.err; then
2677     grep -v '^ *+' conftest.err >conftest.er1
2678     cat conftest.er1 >&5
2679     mv -f conftest.er1 conftest.err
2680   fi
2681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682   test $ac_status = 0; } && {
2683          test -z "$ac_cxx_werror_flag" ||
2684          test ! -s conftest.err
2685        } && test -s conftest$ac_exeext && {
2686          test "$cross_compiling" = yes ||
2687          test -x conftest$ac_exeext
2688        }; then :
2689   ac_retval=0
2690 else
2691   $as_echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693 
2694         ac_retval=1
2695 fi
2696   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2697   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2698   # interfere with the next link command; also delete a directory that is
2699   # left behind by Apple's compiler.  We do this before executing the actions.
2700   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702   as_fn_set_status $ac_retval
2703 
2704 } # ac_fn_cxx_try_link
2705 
2706 # ac_fn_cxx_check_func LINENO FUNC VAR
2707 # ------------------------------------
2708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2709 ac_fn_cxx_check_func ()
2710 {
2711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2713 $as_echo_n "checking for $2... " >&6; }
2714 if eval \${$3+:} false; then :
2715   $as_echo_n "(cached) " >&6
2716 else
2717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h.  */
2719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2721 #define $2 innocuous_$2
2722 
2723 /* System header to define __stub macros and hopefully few prototypes,
2724     which can conflict with char $2 (); below.
2725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2726     <limits.h> exists even on freestanding compilers.  */
2727 
2728 #ifdef __STDC__
2729 # include <limits.h>
2730 #else
2731 # include <assert.h>
2732 #endif
2733 
2734 #undef $2
2735 
2736 /* Override any GCC internal prototype to avoid an error.
2737    Use char because int might match the return type of a GCC
2738    builtin and then its argument prototype would still apply.  */
2739 #ifdef __cplusplus
2740 extern "C"
2741 #endif
2742 char $2 ();
2743 /* The GNU C library defines this for functions which it implements
2744     to always fail with ENOSYS.  Some functions are actually named
2745     something starting with __ and the normal name is an alias.  */
2746 #if defined __stub_$2 || defined __stub___$2
2747 choke me
2748 #endif
2749 
2750 int
2751 main ()
2752 {
2753 return $2 ();
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 if ac_fn_cxx_try_link "$LINENO"; then :
2759   eval "$3=yes"
2760 else
2761   eval "$3=no"
2762 fi
2763 rm -f core conftest.err conftest.$ac_objext \
2764     conftest$ac_exeext conftest.$ac_ext
2765 fi
2766 eval ac_res=\$$3
2767                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2768 $as_echo "$ac_res" >&6; }
2769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2770 
2771 } # ac_fn_cxx_check_func
2772 
2773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2774 # -------------------------------------------------------
2775 # Tests whether HEADER exists and can be compiled using the include files in
2776 # INCLUDES, setting the cache variable VAR accordingly.
2777 ac_fn_c_check_header_compile ()
2778 {
2779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2781 $as_echo_n "checking for $2... " >&6; }
2782 if eval \${$3+:} false; then :
2783   $as_echo_n "(cached) " >&6
2784 else
2785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h.  */
2787 $4
2788 #include <$2>
2789 _ACEOF
2790 if ac_fn_c_try_compile "$LINENO"; then :
2791   eval "$3=yes"
2792 else
2793   eval "$3=no"
2794 fi
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 fi
2797 eval ac_res=\$$3
2798                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2799 $as_echo "$ac_res" >&6; }
2800   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2801 
2802 } # ac_fn_c_check_header_compile
2803 cat >config.log <<_ACEOF
2804 This file contains any messages produced by compilers while
2805 running configure, to aid debugging if configure makes a mistake.
2806 
2807 It was created by OpenJDK $as_me jdk8, which was
2808 generated by GNU Autoconf 2.69.  Invocation command line was
2809 
2810   $ $0 $@
2811 
2812 _ACEOF
2813 exec 5>>config.log
2814 {
2815 cat <<_ASUNAME
2816 ## --------- ##
2817 ## Platform. ##
2818 ## --------- ##
2819 
2820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2825 
2826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2827 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2828 
2829 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2830 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2832 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2833 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2834 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2835 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2836 
2837 _ASUNAME
2838 
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844     $as_echo "PATH: $as_dir"
2845   done
2846 IFS=$as_save_IFS
2847 
2848 } >&5
2849 
2850 cat >&5 <<_ACEOF
2851 
2852 
2853 ## ----------- ##
2854 ## Core tests. ##
2855 ## ----------- ##
2856 
2857 _ACEOF
2858 
2859 
2860 # Keep a trace of the command line.
2861 # Strip out --no-create and --no-recursion so they do not pile up.
2862 # Strip out --silent because we don't want to record it for future runs.
2863 # Also quote any args containing shell meta-characters.
2864 # Make two passes to allow for proper duplicate-argument suppression.
2865 ac_configure_args=
2866 ac_configure_args0=
2867 ac_configure_args1=
2868 ac_must_keep_next=false
2869 for ac_pass in 1 2
2870 do
2871   for ac_arg
2872   do
2873     case $ac_arg in
2874     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2875     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2876     | -silent | --silent | --silen | --sile | --sil)
2877       continue ;;
2878     *\'*)
2879       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2880     esac
2881     case $ac_pass in
2882     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2883     2)
2884       as_fn_append ac_configure_args1 " '$ac_arg'"
2885       if test $ac_must_keep_next = true; then
2886         ac_must_keep_next=false # Got value, back to normal.
2887       else
2888         case $ac_arg in
2889           *=* | --config-cache | -C | -disable-* | --disable-* \
2890           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2891           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2892           | -with-* | --with-* | -without-* | --without-* | --x)
2893             case "$ac_configure_args0 " in
2894               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2895             esac
2896             ;;
2897           -* ) ac_must_keep_next=true ;;
2898         esac
2899       fi
2900       as_fn_append ac_configure_args " '$ac_arg'"
2901       ;;
2902     esac
2903   done
2904 done
2905 { ac_configure_args0=; unset ac_configure_args0;}
2906 { ac_configure_args1=; unset ac_configure_args1;}
2907 
2908 # When interrupted or exit'd, cleanup temporary files, and complete
2909 # config.log.  We remove comments because anyway the quotes in there
2910 # would cause problems or look ugly.
2911 # WARNING: Use '\'' to represent an apostrophe within the trap.
2912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2913 trap 'exit_status=$?
2914   # Save into config.log some information that might help in debugging.
2915   {
2916     echo
2917 
2918     $as_echo "## ---------------- ##
2919 ## Cache variables. ##
2920 ## ---------------- ##"
2921     echo
2922     # The following way of writing the cache mishandles newlines in values,
2923 (
2924   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2925     eval ac_val=\$$ac_var
2926     case $ac_val in #(
2927     *${as_nl}*)
2928       case $ac_var in #(
2929       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2931       esac
2932       case $ac_var in #(
2933       _ | IFS | as_nl) ;; #(
2934       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2935       *) { eval $ac_var=; unset $ac_var;} ;;
2936       esac ;;
2937     esac
2938   done
2939   (set) 2>&1 |
2940     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2941     *${as_nl}ac_space=\ *)
2942       sed -n \
2943         "s/'\''/'\''\\\\'\'''\''/g;
2944           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2945       ;; #(
2946     *)
2947       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2948       ;;
2949     esac |
2950     sort
2951 )
2952     echo
2953 
2954     $as_echo "## ----------------- ##
2955 ## Output variables. ##
2956 ## ----------------- ##"
2957     echo
2958     for ac_var in $ac_subst_vars
2959     do
2960       eval ac_val=\$$ac_var
2961       case $ac_val in
2962       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2963       esac
2964       $as_echo "$ac_var='\''$ac_val'\''"
2965     done | sort
2966     echo
2967 
2968     if test -n "$ac_subst_files"; then
2969       $as_echo "## ------------------- ##
2970 ## File substitutions. ##
2971 ## ------------------- ##"
2972       echo
2973       for ac_var in $ac_subst_files
2974       do
2975         eval ac_val=\$$ac_var
2976         case $ac_val in
2977         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2978         esac
2979         $as_echo "$ac_var='\''$ac_val'\''"
2980       done | sort
2981       echo
2982     fi
2983 
2984     if test -s confdefs.h; then
2985       $as_echo "## ----------- ##
2986 ## confdefs.h. ##
2987 ## ----------- ##"
2988       echo
2989       cat confdefs.h
2990       echo
2991     fi
2992     test "$ac_signal" != 0 &&
2993       $as_echo "$as_me: caught signal $ac_signal"
2994     $as_echo "$as_me: exit $exit_status"
2995   } >&5
2996   rm -f core *.core core.conftest.* &&
2997     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2998     exit $exit_status
2999 ' 0
3000 for ac_signal in 1 2 13 15; do
3001   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3002 done
3003 ac_signal=0
3004 
3005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3006 rm -f -r conftest* confdefs.h
3007 
3008 $as_echo "/* confdefs.h */" > confdefs.h
3009 
3010 # Predefined preprocessor variables.
3011 
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_NAME "$PACKAGE_NAME"
3014 _ACEOF
3015 
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3018 _ACEOF
3019 
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3022 _ACEOF
3023 
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_STRING "$PACKAGE_STRING"
3026 _ACEOF
3027 
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3030 _ACEOF
3031 
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_URL "$PACKAGE_URL"
3034 _ACEOF
3035 
3036 
3037 # Let the site file select an alternate cache file if it wants to.
3038 # Prefer an explicitly selected file to automatically selected ones.
3039 ac_site_file1=NONE
3040 ac_site_file2=NONE
3041 if test -n "$CONFIG_SITE"; then
3042   # We do not want a PATH search for config.site.
3043   case $CONFIG_SITE in #((
3044     -*)  ac_site_file1=./$CONFIG_SITE;;
3045     */*) ac_site_file1=$CONFIG_SITE;;
3046     *)   ac_site_file1=./$CONFIG_SITE;;
3047   esac
3048 elif test "x$prefix" != xNONE; then
3049   ac_site_file1=$prefix/share/config.site
3050   ac_site_file2=$prefix/etc/config.site
3051 else
3052   ac_site_file1=$ac_default_prefix/share/config.site
3053   ac_site_file2=$ac_default_prefix/etc/config.site
3054 fi
3055 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3056 do
3057   test "x$ac_site_file" = xNONE && continue
3058   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3059     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3060 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3061     sed 's/^/| /' "$ac_site_file" >&5
3062     . "$ac_site_file" \
3063       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065 as_fn_error $? "failed to load site script $ac_site_file
3066 See \`config.log' for more details" "$LINENO" 5; }
3067   fi
3068 done
3069 
3070 if test -r "$cache_file"; then
3071   # Some versions of bash will fail to source /dev/null (special files
3072   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3073   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3074     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3075 $as_echo "$as_me: loading cache $cache_file" >&6;}
3076     case $cache_file in
3077       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3078       *)                      . "./$cache_file";;
3079     esac
3080   fi
3081 else
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3083 $as_echo "$as_me: creating cache $cache_file" >&6;}
3084   >$cache_file
3085 fi
3086 
3087 # Check that the precious variables saved in the cache have kept the same
3088 # value.
3089 ac_cache_corrupted=false
3090 for ac_var in $ac_precious_vars; do
3091   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3092   eval ac_new_set=\$ac_env_${ac_var}_set
3093   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3094   eval ac_new_val=\$ac_env_${ac_var}_value
3095   case $ac_old_set,$ac_new_set in
3096     set,)
3097       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3098 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3099       ac_cache_corrupted=: ;;
3100     ,set)
3101       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3102 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3103       ac_cache_corrupted=: ;;
3104     ,);;
3105     *)
3106       if test "x$ac_old_val" != "x$ac_new_val"; then
3107         # differences in whitespace do not lead to failure.
3108         ac_old_val_w=`echo x $ac_old_val`
3109         ac_new_val_w=`echo x $ac_new_val`
3110         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3111           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3112 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3113           ac_cache_corrupted=:
3114         else
3115           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3116 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3117           eval $ac_var=\$ac_old_val
3118         fi
3119         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3120 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3121         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3122 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3123       fi;;
3124   esac
3125   # Pass precious variables to config.status.
3126   if test "$ac_new_set" = set; then
3127     case $ac_new_val in
3128     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3129     *) ac_arg=$ac_var=$ac_new_val ;;
3130     esac
3131     case " $ac_configure_args " in
3132       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3133       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3134     esac
3135   fi
3136 done
3137 if $ac_cache_corrupted; then
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3141 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3142   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3143 fi
3144 ## -------------------- ##
3145 ## Main body of script. ##
3146 ## -------------------- ##
3147 
3148 ac_ext=c
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 
3154 
3155 
3156 ac_aux_dir=
3157 for ac_dir in build-aux "$srcdir"/build-aux; do
3158   if test -f "$ac_dir/install-sh"; then
3159     ac_aux_dir=$ac_dir
3160     ac_install_sh="$ac_aux_dir/install-sh -c"
3161     break
3162   elif test -f "$ac_dir/install.sh"; then
3163     ac_aux_dir=$ac_dir
3164     ac_install_sh="$ac_aux_dir/install.sh -c"
3165     break
3166   elif test -f "$ac_dir/shtool"; then
3167     ac_aux_dir=$ac_dir
3168     ac_install_sh="$ac_aux_dir/shtool install -c"
3169     break
3170   fi
3171 done
3172 if test -z "$ac_aux_dir"; then
3173   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3174 fi
3175 
3176 # These three variables are undocumented and unsupported,
3177 # and are intended to be withdrawn in a future Autoconf release.
3178 # They can cause serious problems if a builder's source tree is in a directory
3179 # whose full name contains unusual characters.
3180 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3181 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3182 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3183 
3184 
3185 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3186 
3187 #
3188 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3189 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3190 #
3191 # This code is free software; you can redistribute it and/or modify it
3192 # under the terms of the GNU General Public License version 2 only, as
3193 # published by the Free Software Foundation.  Oracle designates this
3194 # particular file as subject to the "Classpath" exception as provided
3195 # by Oracle in the LICENSE file that accompanied this code.
3196 #
3197 # This code is distributed in the hope that it will be useful, but WITHOUT
3198 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3199 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3200 # version 2 for more details (a copy is included in the LICENSE file that
3201 # accompanied this code).
3202 #
3203 # You should have received a copy of the GNU General Public License version
3204 # 2 along with this work; if not, write to the Free Software Foundation,
3205 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3206 #
3207 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3208 # or visit www.oracle.com if you need additional information or have any
3209 # questions.
3210 #
3211 
3212 #
3213 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3214 #
3215 # This program is free software; you can redistribute it and/or modify
3216 # it under the terms of the GNU General Public License as published by
3217 # the Free Software Foundation; either version 2 of the License, or
3218 # (at your option) any later version.
3219 #
3220 # This program is distributed in the hope that it will be useful, but
3221 # WITHOUT ANY WARRANTY; without even the implied warranty of
3222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3223 # General Public License for more details.
3224 #
3225 # You should have received a copy of the GNU General Public License
3226 # along with this program; if not, write to the Free Software
3227 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3228 #
3229 # As a special exception to the GNU General Public License, if you
3230 # distribute this file as part of a program that contains a
3231 # configuration script generated by Autoconf, you may include it under
3232 # the same distribution terms that you use for the rest of that program.
3233 
3234 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3235 # ----------------------------------
3236 # PKG_PROG_PKG_CONFIG
3237 
3238 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3239 #
3240 # Check to see whether a particular set of modules exists.  Similar
3241 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3242 #
3243 #
3244 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3245 # this or PKG_CHECK_MODULES is called, or make sure to call
3246 # PKG_CHECK_EXISTS manually
3247 # --------------------------------------------------------------
3248 
3249 
3250 
3251 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3252 # ---------------------------------------------
3253 # _PKG_CONFIG
3254 
3255 # _PKG_SHORT_ERRORS_SUPPORTED
3256 # -----------------------------
3257 # _PKG_SHORT_ERRORS_SUPPORTED
3258 
3259 
3260 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3261 # [ACTION-IF-NOT-FOUND])
3262 #
3263 #
3264 # Note that if there is a possibility the first call to
3265 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3266 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3267 #
3268 #
3269 # --------------------------------------------------------------
3270 # PKG_CHECK_MODULES
3271 
3272 
3273 # Include these first...
3274 #
3275 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3276 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3277 #
3278 # This code is free software; you can redistribute it and/or modify it
3279 # under the terms of the GNU General Public License version 2 only, as
3280 # published by the Free Software Foundation.  Oracle designates this
3281 # particular file as subject to the "Classpath" exception as provided
3282 # by Oracle in the LICENSE file that accompanied this code.
3283 #
3284 # This code is distributed in the hope that it will be useful, but WITHOUT
3285 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3286 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3287 # version 2 for more details (a copy is included in the LICENSE file that
3288 # accompanied this code).
3289 #
3290 # You should have received a copy of the GNU General Public License version
3291 # 2 along with this work; if not, write to the Free Software Foundation,
3292 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3293 #
3294 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3295 # or visit www.oracle.com if you need additional information or have any
3296 # questions.
3297 #
3298 
3299 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3300 # If so, then append $1 to $2 \
3301 # Also set JVM_ARG_OK to true/false depending on outcome.
3302 
3303 
3304 # Appends a string to a path variable, only adding the : when needed.
3305 
3306 
3307 # This will make sure the given variable points to a full and proper
3308 # path. This means:
3309 # 1) There will be no spaces in the path. On posix platforms,
3310 #    spaces in the path will result in an error. On Windows,
3311 #    the path will be rewritten using short-style to be space-free.
3312 # 2) The path will be absolute, and it will be in unix-style (on
3313 #     cygwin).
3314 # $1: The name of the variable to fix
3315 
3316 
3317 # This will make sure the given variable points to a executable
3318 # with a full and proper path. This means:
3319 # 1) There will be no spaces in the path. On posix platforms,
3320 #    spaces in the path will result in an error. On Windows,
3321 #    the path will be rewritten using short-style to be space-free.
3322 # 2) The path will be absolute, and it will be in unix-style (on
3323 #     cygwin).
3324 # Any arguments given to the executable is preserved.
3325 # If the input variable does not have a directory specification, then
3326 # it need to be in the PATH.
3327 # $1: The name of the variable to fix
3328 
3329 
3330 
3331 
3332 # Register a --with argument but mark it as deprecated
3333 # $1: The name of the with argument to deprecate, not including --with-
3334 
3335 
3336 # Register a --enable argument but mark it as deprecated
3337 # $1: The name of the with argument to deprecate, not including --enable-
3338 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3339 
3340 
3341 
3342 
3343 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3344 # $1: variable to check
3345 
3346 
3347 # Check that there are no unprocessed overridden variables left.
3348 # If so, they are an incorrect argument and we will exit with an error.
3349 
3350 
3351 # Setup a tool for the given variable. If correctly specified by the user,
3352 # use that value, otherwise search for the tool using the supplied code snippet.
3353 # $1: variable to set
3354 # $2: code snippet to call to look for the tool
3355 
3356 
3357 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3358 # $1: variable to set
3359 # $2: executable name (or list of names) to look for
3360 
3361 
3362 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3363 # $1: variable to set
3364 # $2: executable name (or list of names) to look for
3365 
3366 
3367 # Like BASIC_PATH_PROGS but fails if no tool was found.
3368 # $1: variable to set
3369 # $2: executable name (or list of names) to look for
3370 
3371 
3372 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3373 # $1: variable to set
3374 # $2: autoconf macro to call to look for the special tool
3375 
3376 
3377 # Setup the most fundamental tools that relies on not much else to set up,
3378 # but is used by much of the early bootstrap code.
3379 
3380 
3381 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3382 
3383 
3384 
3385 
3386 
3387 
3388 
3389 #%%% Simple tools %%%
3390 
3391 # Check if we have found a usable version of make
3392 # $1: the path to a potential make binary (or empty)
3393 # $2: the description on how we found this
3394 
3395 
3396 # Goes looking for a usable version of GNU make.
3397 
3398 
3399 
3400 
3401 
3402 
3403 # Check if build directory is on local disk. If not possible to determine,
3404 # we prefer to claim it's local.
3405 # Argument 1: directory to test
3406 # Argument 2: what to do if it is on local disk
3407 # Argument 3: what to do otherwise (remote disk or failure)
3408 
3409 
3410 # Check that source files have basic read permissions set. This might
3411 # not be the case in cygwin in certain conditions.
3412 
3413 
3414 
3415 
3416 #
3417 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3418 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3419 #
3420 # This code is free software; you can redistribute it and/or modify it
3421 # under the terms of the GNU General Public License version 2 only, as
3422 # published by the Free Software Foundation.  Oracle designates this
3423 # particular file as subject to the "Classpath" exception as provided
3424 # by Oracle in the LICENSE file that accompanied this code.
3425 #
3426 # This code is distributed in the hope that it will be useful, but WITHOUT
3427 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3428 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3429 # version 2 for more details (a copy is included in the LICENSE file that
3430 # accompanied this code).
3431 #
3432 # You should have received a copy of the GNU General Public License version
3433 # 2 along with this work; if not, write to the Free Software Foundation,
3434 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3435 #
3436 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3437 # or visit www.oracle.com if you need additional information or have any
3438 # questions.
3439 #
3440 
3441 
3442 
3443 
3444 
3445 # Helper function which possibly converts a path using DOS-style short mode.
3446 # If so, the updated path is stored in $new_path.
3447 # $1: The path to check
3448 
3449 
3450 # Helper function which possibly converts a path using DOS-style short mode.
3451 # If so, the updated path is stored in $new_path.
3452 # $1: The path to check
3453 
3454 
3455 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3456 # and could probably be heavily simplified. However, all changes in this
3457 # area tend to need lot of testing in different scenarios, and in lack of
3458 # proper unit testing, cleaning this up has not been deemed worth the effort
3459 # at the moment.
3460 
3461 
3462 
3463 
3464 
3465 
3466 
3467 
3468 
3469 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3470 
3471 
3472 
3473 
3474 #
3475 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3476 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3477 #
3478 # This code is free software; you can redistribute it and/or modify it
3479 # under the terms of the GNU General Public License version 2 only, as
3480 # published by the Free Software Foundation.  Oracle designates this
3481 # particular file as subject to the "Classpath" exception as provided
3482 # by Oracle in the LICENSE file that accompanied this code.
3483 #
3484 # This code is distributed in the hope that it will be useful, but WITHOUT
3485 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3486 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3487 # version 2 for more details (a copy is included in the LICENSE file that
3488 # accompanied this code).
3489 #
3490 # You should have received a copy of the GNU General Public License version
3491 # 2 along with this work; if not, write to the Free Software Foundation,
3492 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3493 #
3494 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3495 # or visit www.oracle.com if you need additional information or have any
3496 # questions.
3497 #
3498 
3499 
3500 
3501 
3502 
3503 
3504 
3505 
3506 
3507 
3508 
3509 # ... then the rest
3510 #
3511 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3512 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3513 #
3514 # This code is free software; you can redistribute it and/or modify it
3515 # under the terms of the GNU General Public License version 2 only, as
3516 # published by the Free Software Foundation.  Oracle designates this
3517 # particular file as subject to the "Classpath" exception as provided
3518 # by Oracle in the LICENSE file that accompanied this code.
3519 #
3520 # This code is distributed in the hope that it will be useful, but WITHOUT
3521 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3522 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3523 # version 2 for more details (a copy is included in the LICENSE file that
3524 # accompanied this code).
3525 #
3526 # You should have received a copy of the GNU General Public License version
3527 # 2 along with this work; if not, write to the Free Software Foundation,
3528 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3529 #
3530 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3531 # or visit www.oracle.com if you need additional information or have any
3532 # questions.
3533 #
3534 
3535 ########################################################################
3536 # This file handles detection of the Boot JDK. The Boot JDK detection
3537 # process has been developed as a response to solve a complex real-world
3538 # problem. Initially, it was simple, but it has grown as platform after
3539 # platform, idiosyncracy after idiosyncracy has been supported.
3540 #
3541 # The basic idea is this:
3542 # 1) You need an acceptable *) JDK to use as a Boot JDK
3543 # 2) There are several ways to locate a JDK, that are mostly platform
3544 #    dependent **)
3545 # 3) You can have multiple JDKs installed
3546 # 4) If possible, configure should try to dig out an acceptable JDK
3547 #    automatically, without having to resort to command-line options
3548 #
3549 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3550 #     javac) and not a JRE, etc.
3551 #
3552 # **) On Windows we typically use a well-known path.
3553 #     On MacOSX we typically use the tool java_home.
3554 #     On Linux we typically find javac in the $PATH, and then follow a
3555 #     chain of symlinks that often ends up in a real JDK.
3556 #
3557 # This leads to the code where we check in different ways to locate a
3558 # JDK, and if one is found, check if it is acceptable. If not, we print
3559 # our reasons for rejecting it (useful when debugging non-working
3560 # configure situations) and continue checking the next one.
3561 ########################################################################
3562 
3563 # Execute the check given as argument, and verify the result
3564 # If the Boot JDK was previously found, do nothing
3565 # $1 A command line (typically autoconf macro) to execute
3566 
3567 
3568 # Test: Is bootjdk explicitely set by command line arguments?
3569 
3570 
3571 # Test: Is bootjdk available from builddeps?
3572 
3573 
3574 # Test: Is $JAVA_HOME set?
3575 
3576 
3577 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3578 
3579 
3580 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3581 # $1: Argument to the java_home binary (optional)
3582 
3583 
3584 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3585 
3586 
3587 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3588 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3589 # $1 = Path to directory containing jdk installations.
3590 # $2 = String to append to the found JDK directory to get the proper JDK home
3591 
3592 
3593 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3594 # environmental variable as base for where to look.
3595 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3596 
3597 
3598 # Test: Is there a JDK installed in default, well-known locations?
3599 
3600 
3601 # Check that a command-line tool in the Boot JDK is correct
3602 # $1 = name of variable to assign
3603 # $2 = name of binary
3604 
3605 
3606 ###############################################################################
3607 #
3608 # We need a Boot JDK to bootstrap the build.
3609 #
3610 
3611 
3612 
3613 
3614 
3615 #
3616 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3617 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3618 #
3619 # This code is free software; you can redistribute it and/or modify it
3620 # under the terms of the GNU General Public License version 2 only, as
3621 # published by the Free Software Foundation.  Oracle designates this
3622 # particular file as subject to the "Classpath" exception as provided
3623 # by Oracle in the LICENSE file that accompanied this code.
3624 #
3625 # This code is distributed in the hope that it will be useful, but WITHOUT
3626 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3627 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3628 # version 2 for more details (a copy is included in the LICENSE file that
3629 # accompanied this code).
3630 #
3631 # You should have received a copy of the GNU General Public License version
3632 # 2 along with this work; if not, write to the Free Software Foundation,
3633 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3634 #
3635 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3636 # or visit www.oracle.com if you need additional information or have any
3637 # questions.
3638 #
3639 
3640 
3641 
3642 
3643 
3644 
3645 
3646 
3647 
3648 
3649 
3650 
3651 
3652 
3653 
3654 
3655 
3656 
3657 
3658 
3659 #
3660 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3661 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3662 #
3663 # This code is free software; you can redistribute it and/or modify it
3664 # under the terms of the GNU General Public License version 2 only, as
3665 # published by the Free Software Foundation.  Oracle designates this
3666 # particular file as subject to the "Classpath" exception as provided
3667 # by Oracle in the LICENSE file that accompanied this code.
3668 #
3669 # This code is distributed in the hope that it will be useful, but WITHOUT
3670 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3671 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3672 # version 2 for more details (a copy is included in the LICENSE file that
3673 # accompanied this code).
3674 #
3675 # You should have received a copy of the GNU General Public License version
3676 # 2 along with this work; if not, write to the Free Software Foundation,
3677 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3678 #
3679 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3680 # or visit www.oracle.com if you need additional information or have any
3681 # questions.
3682 #
3683 
3684 
3685 
3686 
3687 
3688 cygwin_help() {
3689   case $1 in
3690     unzip)
3691       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3692       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3693       ;;
3694     zip)
3695       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3696       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3697       ;;
3698     make)
3699       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3700       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3701       ;;
3702     freetype)
3703       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3704         HELP_MSG="To install freetype, run:
3705 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3706 chmod +x /tmp/freetype-setup.exe
3707 /tmp/freetype-setup.exe
3708 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3709 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3710       else
3711         HELP_MSG="You need to build a 64-bit version of freetype.
3712 This is not readily available.
3713 You can find source code and build instructions on
3714 http://www.freetype.org/
3715 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3716       fi
3717       ;;
3718   esac
3719 }
3720 
3721 msys_help() {
3722   PKGHANDLER_COMMAND=""
3723 }
3724 
3725 apt_help() {
3726   case $1 in
3727     devkit)
3728       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3729     openjdk)
3730       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3731     alsa)
3732       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3733     cups)
3734       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3735     freetype)
3736       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3737     pulse)
3738       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3739     x11)
3740       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3741     ccache)
3742       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3743   esac
3744 }
3745 
3746 yum_help() {
3747   case $1 in
3748     devkit)
3749       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3750     openjdk)
3751       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3752     alsa)
3753       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3754     cups)
3755       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3756     freetype)
3757       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3758     pulse)
3759       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3760     x11)
3761       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3762     ccache)
3763       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3764   esac
3765 }
3766 
3767 port_help() {
3768   PKGHANDLER_COMMAND=""
3769 }
3770 
3771 pkgutil_help() {
3772   PKGHANDLER_COMMAND=""
3773 }
3774 
3775 pkgadd_help() {
3776   PKGHANDLER_COMMAND=""
3777 }
3778 
3779 
3780 
3781 #
3782 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3783 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3784 #
3785 # This code is free software; you can redistribute it and/or modify it
3786 # under the terms of the GNU General Public License version 2 only, as
3787 # published by the Free Software Foundation.  Oracle designates this
3788 # particular file as subject to the "Classpath" exception as provided
3789 # by Oracle in the LICENSE file that accompanied this code.
3790 #
3791 # This code is distributed in the hope that it will be useful, but WITHOUT
3792 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3793 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3794 # version 2 for more details (a copy is included in the LICENSE file that
3795 # accompanied this code).
3796 #
3797 # You should have received a copy of the GNU General Public License version
3798 # 2 along with this work; if not, write to the Free Software Foundation,
3799 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3800 #
3801 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3802 # or visit www.oracle.com if you need additional information or have any
3803 # questions.
3804 #
3805 
3806 
3807 
3808 
3809 
3810 
3811 
3812 
3813 
3814 
3815 ###############################################################################
3816 #
3817 # Should we build only OpenJDK even if closed sources are present?
3818 #
3819 
3820 
3821 
3822 
3823 ###############################################################################
3824 #
3825 # Setup version numbers
3826 #
3827 
3828 
3829 
3830 
3831 
3832 
3833 # Support for customization of the build process. Some build files
3834 # will include counterparts from this location, if they exist. This allows
3835 # for a degree of customization of the build targets and the rules/recipes
3836 # to create them
3837 
3838 # Check whether --with-custom-make-dir was given.
3839 if test "${with_custom_make_dir+set}" = set; then :
3840   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3841 fi
3842 
3843 
3844 
3845 #
3846 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3847 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3848 #
3849 # This code is free software; you can redistribute it and/or modify it
3850 # under the terms of the GNU General Public License version 2 only, as
3851 # published by the Free Software Foundation.  Oracle designates this
3852 # particular file as subject to the "Classpath" exception as provided
3853 # by Oracle in the LICENSE file that accompanied this code.
3854 #
3855 # This code is distributed in the hope that it will be useful, but WITHOUT
3856 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3857 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3858 # version 2 for more details (a copy is included in the LICENSE file that
3859 # accompanied this code).
3860 #
3861 # You should have received a copy of the GNU General Public License version
3862 # 2 along with this work; if not, write to the Free Software Foundation,
3863 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3864 #
3865 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3866 # or visit www.oracle.com if you need additional information or have any
3867 # questions.
3868 #
3869 
3870 
3871 
3872 
3873 
3874 
3875 
3876 
3877 
3878 
3879 
3880 
3881 
3882 
3883 
3884 
3885 
3886 #
3887 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3888 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3889 #
3890 # This code is free software; you can redistribute it and/or modify it
3891 # under the terms of the GNU General Public License version 2 only, as
3892 # published by the Free Software Foundation.  Oracle designates this
3893 # particular file as subject to the "Classpath" exception as provided
3894 # by Oracle in the LICENSE file that accompanied this code.
3895 #
3896 # This code is distributed in the hope that it will be useful, but WITHOUT
3897 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3898 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3899 # version 2 for more details (a copy is included in the LICENSE file that
3900 # accompanied this code).
3901 #
3902 # You should have received a copy of the GNU General Public License version
3903 # 2 along with this work; if not, write to the Free Software Foundation,
3904 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3905 #
3906 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3907 # or visit www.oracle.com if you need additional information or have any
3908 # questions.
3909 #
3910 
3911 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3912 # Converts autoconf style CPU name to OpenJDK style, into
3913 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
3914 
3915 
3916 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
3917 # Converts autoconf style OS name to OpenJDK style, into
3918 # VAR_OS and VAR_OS_API.
3919 
3920 
3921 # Expects $host_os $host_cpu $build_os and $build_cpu
3922 # and $with_target_bits to have been setup!
3923 #
3924 # Translate the standard triplet(quadruplet) definition
3925 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
3926 # OPENJDK_BUILD_OS, etc.
3927 
3928 
3929 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
3930 # accordingly. Must be done after setting up build and target system, but before
3931 # doing anything else with these values.
3932 
3933 
3934 # Setup the legacy variables, for controlling the old makefiles.
3935 #
3936 
3937 
3938 
3939 
3940 #%%% Build and target systems %%%
3941 
3942 
3943 
3944 
3945 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
3946 # Add -mX to various FLAGS variables.
3947 
3948 
3949 
3950 
3951 
3952 
3953 #
3954 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3955 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3956 #
3957 # This code is free software; you can redistribute it and/or modify it
3958 # under the terms of the GNU General Public License version 2 only, as
3959 # published by the Free Software Foundation.  Oracle designates this
3960 # particular file as subject to the "Classpath" exception as provided
3961 # by Oracle in the LICENSE file that accompanied this code.
3962 #
3963 # This code is distributed in the hope that it will be useful, but WITHOUT
3964 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3965 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3966 # version 2 for more details (a copy is included in the LICENSE file that
3967 # accompanied this code).
3968 #
3969 # You should have received a copy of the GNU General Public License version
3970 # 2 along with this work; if not, write to the Free Software Foundation,
3971 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3972 #
3973 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3974 # or visit www.oracle.com if you need additional information or have any
3975 # questions.
3976 #
3977 
3978 
3979 
3980 
3981 
3982 
3983 
3984 
3985 #
3986 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3987 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3988 #
3989 # This code is free software; you can redistribute it and/or modify it
3990 # under the terms of the GNU General Public License version 2 only, as
3991 # published by the Free Software Foundation.  Oracle designates this
3992 # particular file as subject to the "Classpath" exception as provided
3993 # by Oracle in the LICENSE file that accompanied this code.
3994 #
3995 # This code is distributed in the hope that it will be useful, but WITHOUT
3996 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3997 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3998 # version 2 for more details (a copy is included in the LICENSE file that
3999 # accompanied this code).
4000 #
4001 # You should have received a copy of the GNU General Public License version
4002 # 2 along with this work; if not, write to the Free Software Foundation,
4003 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4004 #
4005 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4006 # or visit www.oracle.com if you need additional information or have any
4007 # questions.
4008 #
4009 
4010 # $1 = compiler to test (CC or CXX)
4011 # $2 = human readable name of compiler (C or C++)
4012 
4013 
4014 
4015 
4016 
4017 # $1 = compiler to test (CC or CXX)
4018 # $2 = human readable name of compiler (C or C++)
4019 # $3 = list of compiler names to search for
4020 
4021 
4022 
4023 
4024 
4025 
4026 
4027 
4028 
4029 
4030 
4031 
4032 
4033 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
4034 #                                   [RUN-IF-FALSE])
4035 # ------------------------------------------------------------
4036 # Check that the c and c++ compilers support an argument
4037 
4038 
4039 
4040 
4041 # Setup the JTREG paths
4042 
4043 
4044 #
4045 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4046 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4047 #
4048 # This code is free software; you can redistribute it and/or modify it
4049 # under the terms of the GNU General Public License version 2 only, as
4050 # published by the Free Software Foundation.  Oracle designates this
4051 # particular file as subject to the "Classpath" exception as provided
4052 # by Oracle in the LICENSE file that accompanied this code.
4053 #
4054 # This code is distributed in the hope that it will be useful, but WITHOUT
4055 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4056 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4057 # version 2 for more details (a copy is included in the LICENSE file that
4058 # accompanied this code).
4059 #
4060 # You should have received a copy of the GNU General Public License version
4061 # 2 along with this work; if not, write to the Free Software Foundation,
4062 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4063 #
4064 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4065 # or visit www.oracle.com if you need additional information or have any
4066 # questions.
4067 #
4068 
4069 
4070 
4071 
4072 
4073 
4074 
4075 # Check if the VS env variables were setup prior to running configure.
4076 # If not, then find vcvarsall.bat and run it automatically, and integrate
4077 # the set env variables into the spec file.
4078 
4079 
4080 
4081 
4082 
4083 
4084 
4085 
4086 
4087 
4088 # This line needs to be here, verbatim, after all includes and the dummy hook
4089 # definitions. It is replaced with custom functionality when building
4090 # custom sources.
4091 #CUSTOM_AUTOCONF_INCLUDE
4092 
4093 # Do not change or remove the following line, it is needed for consistency checks:
4094 DATE_WHEN_GENERATED=1391446004
4095 
4096 ###############################################################################
4097 #
4098 # Initialization / Boot-strapping
4099 #
4100 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4101 # thus it jumps back and forth, each time gaining something needed later on.
4102 #
4103 ###############################################################################
4104 
4105 # Basic initialization that must happen first of all
4106 
4107   # Save the original command line. This is passed to us by the wrapper configure script.
4108 
4109   DATE_WHEN_CONFIGURED=`LANG=C date`
4110 
4111   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4112 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4114 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4115 
4116 
4117   # Start with tools that do not need have cross compilation support
4118   # and can be expected to be found in the default PATH. These tools are
4119   # used by configure. Nor are these tools expected to be found in the
4120   # devkit from the builddeps server either, since they are
4121   # needed to download the devkit.
4122 
4123   # First are all the simple required tools.
4124 
4125 
4126 
4127   # Publish this variable in the help.
4128 
4129 
4130   if test "x$BASENAME" = x; then
4131     # The variable is not set by user, try to locate tool using the code snippet
4132     for ac_prog in basename
4133 do
4134   # Extract the first word of "$ac_prog", so it can be a program name with args.
4135 set dummy $ac_prog; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_path_BASENAME+:} false; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   case $BASENAME in
4142   [\\/]* | ?:[\\/]*)
4143   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4144   ;;
4145   *)
4146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151     for ac_exec_ext in '' $ac_executable_extensions; do
4152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158   done
4159 IFS=$as_save_IFS
4160 
4161   ;;
4162 esac
4163 fi
4164 BASENAME=$ac_cv_path_BASENAME
4165 if test -n "$BASENAME"; then
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4167 $as_echo "$BASENAME" >&6; }
4168 else
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172 
4173 
4174   test -n "$BASENAME" && break
4175 done
4176 
4177   else
4178     # The variable is set, but is it from the command line or the environment?
4179 
4180     # Try to remove the string !BASENAME! from our list.
4181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4183       # If it failed, the variable was not from the command line. Ignore it,
4184       # but warn the user (except for BASH, which is always set by the calling BASH).
4185       if test "xBASENAME" != xBASH; then
4186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4187 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4188       fi
4189       # Try to locate tool using the code snippet
4190       for ac_prog in basename
4191 do
4192   # Extract the first word of "$ac_prog", so it can be a program name with args.
4193 set dummy $ac_prog; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if ${ac_cv_path_BASENAME+:} false; then :
4197   $as_echo_n "(cached) " >&6
4198 else
4199   case $BASENAME in
4200   [\\/]* | ?:[\\/]*)
4201   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4202   ;;
4203   *)
4204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207   IFS=$as_save_IFS
4208   test -z "$as_dir" && as_dir=.
4209     for ac_exec_ext in '' $ac_executable_extensions; do
4210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213     break 2
4214   fi
4215 done
4216   done
4217 IFS=$as_save_IFS
4218 
4219   ;;
4220 esac
4221 fi
4222 BASENAME=$ac_cv_path_BASENAME
4223 if test -n "$BASENAME"; then
4224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4225 $as_echo "$BASENAME" >&6; }
4226 else
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4229 fi
4230 
4231 
4232   test -n "$BASENAME" && break
4233 done
4234 
4235     else
4236       # If it succeeded, then it was overridden by the user. We will use it
4237       # for the tool.
4238 
4239       # First remove it from the list of overridden variables, so we can test
4240       # for unknown variables in the end.
4241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4242 
4243       # Check if the provided tool contains a complete path.
4244       tool_specified="$BASENAME"
4245       tool_basename="${tool_specified##*/}"
4246       if test "x$tool_basename" = "x$tool_specified"; then
4247         # A command without a complete path is provided, search $PATH.
4248         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4249 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4250         # Extract the first word of "$tool_basename", so it can be a program name with args.
4251 set dummy $tool_basename; ac_word=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_path_BASENAME+:} false; then :
4255   $as_echo_n "(cached) " >&6
4256 else
4257   case $BASENAME in
4258   [\\/]* | ?:[\\/]*)
4259   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4260   ;;
4261   *)
4262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265   IFS=$as_save_IFS
4266   test -z "$as_dir" && as_dir=.
4267     for ac_exec_ext in '' $ac_executable_extensions; do
4268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271     break 2
4272   fi
4273 done
4274   done
4275 IFS=$as_save_IFS
4276 
4277   ;;
4278 esac
4279 fi
4280 BASENAME=$ac_cv_path_BASENAME
4281 if test -n "$BASENAME"; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4283 $as_echo "$BASENAME" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288 
4289 
4290         if test "x$BASENAME" = x; then
4291           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4292         fi
4293       else
4294         # Otherwise we believe it is a complete path. Use it as it is.
4295         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4296 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4298 $as_echo_n "checking for BASENAME... " >&6; }
4299         if test ! -x "$tool_specified"; then
4300           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4301 $as_echo "not found" >&6; }
4302           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4303         fi
4304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4305 $as_echo "$tool_specified" >&6; }
4306       fi
4307     fi
4308   fi
4309 
4310 
4311 
4312   if test "x$BASENAME" = x; then
4313     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4314   fi
4315 
4316 
4317 
4318 
4319 
4320   # Publish this variable in the help.
4321 
4322 
4323   if test "x$BASH" = x; then
4324     # The variable is not set by user, try to locate tool using the code snippet
4325     for ac_prog in bash
4326 do
4327   # Extract the first word of "$ac_prog", so it can be a program name with args.
4328 set dummy $ac_prog; ac_word=$2
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 $as_echo_n "checking for $ac_word... " >&6; }
4331 if ${ac_cv_path_BASH+:} false; then :
4332   $as_echo_n "(cached) " >&6
4333 else
4334   case $BASH in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344     for ac_exec_ext in '' $ac_executable_extensions; do
4345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351   done
4352 IFS=$as_save_IFS
4353 
4354   ;;
4355 esac
4356 fi
4357 BASH=$ac_cv_path_BASH
4358 if test -n "$BASH"; then
4359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4360 $as_echo "$BASH" >&6; }
4361 else
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 fi
4365 
4366 
4367   test -n "$BASH" && break
4368 done
4369 
4370   else
4371     # The variable is set, but is it from the command line or the environment?
4372 
4373     # Try to remove the string !BASH! from our list.
4374     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4375     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4376       # If it failed, the variable was not from the command line. Ignore it,
4377       # but warn the user (except for BASH, which is always set by the calling BASH).
4378       if test "xBASH" != xBASH; then
4379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4380 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4381       fi
4382       # Try to locate tool using the code snippet
4383       for ac_prog in bash
4384 do
4385   # Extract the first word of "$ac_prog", so it can be a program name with args.
4386 set dummy $ac_prog; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_path_BASH+:} false; then :
4390   $as_echo_n "(cached) " >&6
4391 else
4392   case $BASH in
4393   [\\/]* | ?:[\\/]*)
4394   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4395   ;;
4396   *)
4397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_exec_ext in '' $ac_executable_extensions; do
4403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409   done
4410 IFS=$as_save_IFS
4411 
4412   ;;
4413 esac
4414 fi
4415 BASH=$ac_cv_path_BASH
4416 if test -n "$BASH"; then
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4418 $as_echo "$BASH" >&6; }
4419 else
4420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423 
4424 
4425   test -n "$BASH" && break
4426 done
4427 
4428     else
4429       # If it succeeded, then it was overridden by the user. We will use it
4430       # for the tool.
4431 
4432       # First remove it from the list of overridden variables, so we can test
4433       # for unknown variables in the end.
4434       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4435 
4436       # Check if the provided tool contains a complete path.
4437       tool_specified="$BASH"
4438       tool_basename="${tool_specified##*/}"
4439       if test "x$tool_basename" = "x$tool_specified"; then
4440         # A command without a complete path is provided, search $PATH.
4441         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4442 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4443         # Extract the first word of "$tool_basename", so it can be a program name with args.
4444 set dummy $tool_basename; ac_word=$2
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4446 $as_echo_n "checking for $ac_word... " >&6; }
4447 if ${ac_cv_path_BASH+:} false; then :
4448   $as_echo_n "(cached) " >&6
4449 else
4450   case $BASH in
4451   [\\/]* | ?:[\\/]*)
4452   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4453   ;;
4454   *)
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460     for ac_exec_ext in '' $ac_executable_extensions; do
4461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4462     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467   done
4468 IFS=$as_save_IFS
4469 
4470   ;;
4471 esac
4472 fi
4473 BASH=$ac_cv_path_BASH
4474 if test -n "$BASH"; then
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4476 $as_echo "$BASH" >&6; }
4477 else
4478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480 fi
4481 
4482 
4483         if test "x$BASH" = x; then
4484           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4485         fi
4486       else
4487         # Otherwise we believe it is a complete path. Use it as it is.
4488         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4489 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4491 $as_echo_n "checking for BASH... " >&6; }
4492         if test ! -x "$tool_specified"; then
4493           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4494 $as_echo "not found" >&6; }
4495           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4496         fi
4497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4498 $as_echo "$tool_specified" >&6; }
4499       fi
4500     fi
4501   fi
4502 
4503 
4504 
4505   if test "x$BASH" = x; then
4506     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4507   fi
4508 
4509 
4510 
4511 
4512 
4513   # Publish this variable in the help.
4514 
4515 
4516   if test "x$CAT" = x; then
4517     # The variable is not set by user, try to locate tool using the code snippet
4518     for ac_prog in cat
4519 do
4520   # Extract the first word of "$ac_prog", so it can be a program name with args.
4521 set dummy $ac_prog; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if ${ac_cv_path_CAT+:} false; then :
4525   $as_echo_n "(cached) " >&6
4526 else
4527   case $CAT in
4528   [\\/]* | ?:[\\/]*)
4529   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4530   ;;
4531   *)
4532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541     break 2
4542   fi
4543 done
4544   done
4545 IFS=$as_save_IFS
4546 
4547   ;;
4548 esac
4549 fi
4550 CAT=$ac_cv_path_CAT
4551 if test -n "$CAT"; then
4552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4553 $as_echo "$CAT" >&6; }
4554 else
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 fi
4558 
4559 
4560   test -n "$CAT" && break
4561 done
4562 
4563   else
4564     # The variable is set, but is it from the command line or the environment?
4565 
4566     # Try to remove the string !CAT! from our list.
4567     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4568     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4569       # If it failed, the variable was not from the command line. Ignore it,
4570       # but warn the user (except for BASH, which is always set by the calling BASH).
4571       if test "xCAT" != xBASH; then
4572         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4573 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4574       fi
4575       # Try to locate tool using the code snippet
4576       for ac_prog in cat
4577 do
4578   # Extract the first word of "$ac_prog", so it can be a program name with args.
4579 set dummy $ac_prog; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_path_CAT+:} false; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   case $CAT in
4586   [\\/]* | ?:[\\/]*)
4587   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4588   ;;
4589   *)
4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595     for ac_exec_ext in '' $ac_executable_extensions; do
4596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602   done
4603 IFS=$as_save_IFS
4604 
4605   ;;
4606 esac
4607 fi
4608 CAT=$ac_cv_path_CAT
4609 if test -n "$CAT"; then
4610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4611 $as_echo "$CAT" >&6; }
4612 else
4613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 fi
4616 
4617 
4618   test -n "$CAT" && break
4619 done
4620 
4621     else
4622       # If it succeeded, then it was overridden by the user. We will use it
4623       # for the tool.
4624 
4625       # First remove it from the list of overridden variables, so we can test
4626       # for unknown variables in the end.
4627       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4628 
4629       # Check if the provided tool contains a complete path.
4630       tool_specified="$CAT"
4631       tool_basename="${tool_specified##*/}"
4632       if test "x$tool_basename" = "x$tool_specified"; then
4633         # A command without a complete path is provided, search $PATH.
4634         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4635 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4636         # Extract the first word of "$tool_basename", so it can be a program name with args.
4637 set dummy $tool_basename; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_path_CAT+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   case $CAT in
4644   [\\/]* | ?:[\\/]*)
4645   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4646   ;;
4647   *)
4648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651   IFS=$as_save_IFS
4652   test -z "$as_dir" && as_dir=.
4653     for ac_exec_ext in '' $ac_executable_extensions; do
4654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657     break 2
4658   fi
4659 done
4660   done
4661 IFS=$as_save_IFS
4662 
4663   ;;
4664 esac
4665 fi
4666 CAT=$ac_cv_path_CAT
4667 if test -n "$CAT"; then
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4669 $as_echo "$CAT" >&6; }
4670 else
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674 
4675 
4676         if test "x$CAT" = x; then
4677           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4678         fi
4679       else
4680         # Otherwise we believe it is a complete path. Use it as it is.
4681         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4682 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4684 $as_echo_n "checking for CAT... " >&6; }
4685         if test ! -x "$tool_specified"; then
4686           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4687 $as_echo "not found" >&6; }
4688           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4689         fi
4690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4691 $as_echo "$tool_specified" >&6; }
4692       fi
4693     fi
4694   fi
4695 
4696 
4697 
4698   if test "x$CAT" = x; then
4699     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4700   fi
4701 
4702 
4703 
4704 
4705 
4706   # Publish this variable in the help.
4707 
4708 
4709   if test "x$CHMOD" = x; then
4710     # The variable is not set by user, try to locate tool using the code snippet
4711     for ac_prog in chmod
4712 do
4713   # Extract the first word of "$ac_prog", so it can be a program name with args.
4714 set dummy $ac_prog; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_path_CHMOD+:} false; then :
4718   $as_echo_n "(cached) " >&6
4719 else
4720   case $CHMOD in
4721   [\\/]* | ?:[\\/]*)
4722   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4723   ;;
4724   *)
4725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730     for ac_exec_ext in '' $ac_executable_extensions; do
4731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734     break 2
4735   fi
4736 done
4737   done
4738 IFS=$as_save_IFS
4739 
4740   ;;
4741 esac
4742 fi
4743 CHMOD=$ac_cv_path_CHMOD
4744 if test -n "$CHMOD"; then
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4746 $as_echo "$CHMOD" >&6; }
4747 else
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751 
4752 
4753   test -n "$CHMOD" && break
4754 done
4755 
4756   else
4757     # The variable is set, but is it from the command line or the environment?
4758 
4759     # Try to remove the string !CHMOD! from our list.
4760     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4761     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4762       # If it failed, the variable was not from the command line. Ignore it,
4763       # but warn the user (except for BASH, which is always set by the calling BASH).
4764       if test "xCHMOD" != xBASH; then
4765         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4766 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4767       fi
4768       # Try to locate tool using the code snippet
4769       for ac_prog in chmod
4770 do
4771   # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_path_CHMOD+:} false; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   case $CHMOD in
4779   [\\/]* | ?:[\\/]*)
4780   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4781   ;;
4782   *)
4783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788     for ac_exec_ext in '' $ac_executable_extensions; do
4789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795   done
4796 IFS=$as_save_IFS
4797 
4798   ;;
4799 esac
4800 fi
4801 CHMOD=$ac_cv_path_CHMOD
4802 if test -n "$CHMOD"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4804 $as_echo "$CHMOD" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809 
4810 
4811   test -n "$CHMOD" && break
4812 done
4813 
4814     else
4815       # If it succeeded, then it was overridden by the user. We will use it
4816       # for the tool.
4817 
4818       # First remove it from the list of overridden variables, so we can test
4819       # for unknown variables in the end.
4820       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4821 
4822       # Check if the provided tool contains a complete path.
4823       tool_specified="$CHMOD"
4824       tool_basename="${tool_specified##*/}"
4825       if test "x$tool_basename" = "x$tool_specified"; then
4826         # A command without a complete path is provided, search $PATH.
4827         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4828 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4829         # Extract the first word of "$tool_basename", so it can be a program name with args.
4830 set dummy $tool_basename; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_path_CHMOD+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   case $CHMOD in
4837   [\\/]* | ?:[\\/]*)
4838   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4839   ;;
4840   *)
4841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4843 do
4844   IFS=$as_save_IFS
4845   test -z "$as_dir" && as_dir=.
4846     for ac_exec_ext in '' $ac_executable_extensions; do
4847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4848     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850     break 2
4851   fi
4852 done
4853   done
4854 IFS=$as_save_IFS
4855 
4856   ;;
4857 esac
4858 fi
4859 CHMOD=$ac_cv_path_CHMOD
4860 if test -n "$CHMOD"; then
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4862 $as_echo "$CHMOD" >&6; }
4863 else
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867 
4868 
4869         if test "x$CHMOD" = x; then
4870           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4871         fi
4872       else
4873         # Otherwise we believe it is a complete path. Use it as it is.
4874         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
4875 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
4876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
4877 $as_echo_n "checking for CHMOD... " >&6; }
4878         if test ! -x "$tool_specified"; then
4879           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4880 $as_echo "not found" >&6; }
4881           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
4882         fi
4883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4884 $as_echo "$tool_specified" >&6; }
4885       fi
4886     fi
4887   fi
4888 
4889 
4890 
4891   if test "x$CHMOD" = x; then
4892     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
4893   fi
4894 
4895 
4896 
4897 
4898 
4899   # Publish this variable in the help.
4900 
4901 
4902   if test "x$CMP" = x; then
4903     # The variable is not set by user, try to locate tool using the code snippet
4904     for ac_prog in cmp
4905 do
4906   # Extract the first word of "$ac_prog", so it can be a program name with args.
4907 set dummy $ac_prog; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_CMP+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   case $CMP in
4914   [\\/]* | ?:[\\/]*)
4915   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4916   ;;
4917   *)
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930   done
4931 IFS=$as_save_IFS
4932 
4933   ;;
4934 esac
4935 fi
4936 CMP=$ac_cv_path_CMP
4937 if test -n "$CMP"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4939 $as_echo "$CMP" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944 
4945 
4946   test -n "$CMP" && break
4947 done
4948 
4949   else
4950     # The variable is set, but is it from the command line or the environment?
4951 
4952     # Try to remove the string !CMP! from our list.
4953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
4954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4955       # If it failed, the variable was not from the command line. Ignore it,
4956       # but warn the user (except for BASH, which is always set by the calling BASH).
4957       if test "xCMP" != xBASH; then
4958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
4959 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
4960       fi
4961       # Try to locate tool using the code snippet
4962       for ac_prog in cmp
4963 do
4964   # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_path_CMP+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   case $CMP in
4972   [\\/]* | ?:[\\/]*)
4973   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4974   ;;
4975   *)
4976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979   IFS=$as_save_IFS
4980   test -z "$as_dir" && as_dir=.
4981     for ac_exec_ext in '' $ac_executable_extensions; do
4982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985     break 2
4986   fi
4987 done
4988   done
4989 IFS=$as_save_IFS
4990 
4991   ;;
4992 esac
4993 fi
4994 CMP=$ac_cv_path_CMP
4995 if test -n "$CMP"; then
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
4997 $as_echo "$CMP" >&6; }
4998 else
4999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 fi
5002 
5003 
5004   test -n "$CMP" && break
5005 done
5006 
5007     else
5008       # If it succeeded, then it was overridden by the user. We will use it
5009       # for the tool.
5010 
5011       # First remove it from the list of overridden variables, so we can test
5012       # for unknown variables in the end.
5013       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5014 
5015       # Check if the provided tool contains a complete path.
5016       tool_specified="$CMP"
5017       tool_basename="${tool_specified##*/}"
5018       if test "x$tool_basename" = "x$tool_specified"; then
5019         # A command without a complete path is provided, search $PATH.
5020         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5021 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5022         # Extract the first word of "$tool_basename", so it can be a program name with args.
5023 set dummy $tool_basename; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_path_CMP+:} false; then :
5027   $as_echo_n "(cached) " >&6
5028 else
5029   case $CMP in
5030   [\\/]* | ?:[\\/]*)
5031   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5032   ;;
5033   *)
5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039     for ac_exec_ext in '' $ac_executable_extensions; do
5040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046   done
5047 IFS=$as_save_IFS
5048 
5049   ;;
5050 esac
5051 fi
5052 CMP=$ac_cv_path_CMP
5053 if test -n "$CMP"; then
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5055 $as_echo "$CMP" >&6; }
5056 else
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060 
5061 
5062         if test "x$CMP" = x; then
5063           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5064         fi
5065       else
5066         # Otherwise we believe it is a complete path. Use it as it is.
5067         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5068 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5070 $as_echo_n "checking for CMP... " >&6; }
5071         if test ! -x "$tool_specified"; then
5072           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5073 $as_echo "not found" >&6; }
5074           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5075         fi
5076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5077 $as_echo "$tool_specified" >&6; }
5078       fi
5079     fi
5080   fi
5081 
5082 
5083 
5084   if test "x$CMP" = x; then
5085     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5086   fi
5087 
5088 
5089 
5090 
5091 
5092   # Publish this variable in the help.
5093 
5094 
5095   if test "x$COMM" = x; then
5096     # The variable is not set by user, try to locate tool using the code snippet
5097     for ac_prog in comm
5098 do
5099   # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_path_COMM+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   case $COMM in
5107   [\\/]* | ?:[\\/]*)
5108   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5109   ;;
5110   *)
5111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114   IFS=$as_save_IFS
5115   test -z "$as_dir" && as_dir=.
5116     for ac_exec_ext in '' $ac_executable_extensions; do
5117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120     break 2
5121   fi
5122 done
5123   done
5124 IFS=$as_save_IFS
5125 
5126   ;;
5127 esac
5128 fi
5129 COMM=$ac_cv_path_COMM
5130 if test -n "$COMM"; then
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5132 $as_echo "$COMM" >&6; }
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137 
5138 
5139   test -n "$COMM" && break
5140 done
5141 
5142   else
5143     # The variable is set, but is it from the command line or the environment?
5144 
5145     # Try to remove the string !COMM! from our list.
5146     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5147     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5148       # If it failed, the variable was not from the command line. Ignore it,
5149       # but warn the user (except for BASH, which is always set by the calling BASH).
5150       if test "xCOMM" != xBASH; then
5151         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5152 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5153       fi
5154       # Try to locate tool using the code snippet
5155       for ac_prog in comm
5156 do
5157   # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_path_COMM+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   case $COMM in
5165   [\\/]* | ?:[\\/]*)
5166   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5167   ;;
5168   *)
5169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178     break 2
5179   fi
5180 done
5181   done
5182 IFS=$as_save_IFS
5183 
5184   ;;
5185 esac
5186 fi
5187 COMM=$ac_cv_path_COMM
5188 if test -n "$COMM"; then
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5190 $as_echo "$COMM" >&6; }
5191 else
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195 
5196 
5197   test -n "$COMM" && break
5198 done
5199 
5200     else
5201       # If it succeeded, then it was overridden by the user. We will use it
5202       # for the tool.
5203 
5204       # First remove it from the list of overridden variables, so we can test
5205       # for unknown variables in the end.
5206       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5207 
5208       # Check if the provided tool contains a complete path.
5209       tool_specified="$COMM"
5210       tool_basename="${tool_specified##*/}"
5211       if test "x$tool_basename" = "x$tool_specified"; then
5212         # A command without a complete path is provided, search $PATH.
5213         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5214 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5215         # Extract the first word of "$tool_basename", so it can be a program name with args.
5216 set dummy $tool_basename; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_path_COMM+:} false; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   case $COMM in
5223   [\\/]* | ?:[\\/]*)
5224   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5225   ;;
5226   *)
5227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239   done
5240 IFS=$as_save_IFS
5241 
5242   ;;
5243 esac
5244 fi
5245 COMM=$ac_cv_path_COMM
5246 if test -n "$COMM"; then
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5248 $as_echo "$COMM" >&6; }
5249 else
5250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5252 fi
5253 
5254 
5255         if test "x$COMM" = x; then
5256           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5257         fi
5258       else
5259         # Otherwise we believe it is a complete path. Use it as it is.
5260         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5261 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5263 $as_echo_n "checking for COMM... " >&6; }
5264         if test ! -x "$tool_specified"; then
5265           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5266 $as_echo "not found" >&6; }
5267           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5268         fi
5269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5270 $as_echo "$tool_specified" >&6; }
5271       fi
5272     fi
5273   fi
5274 
5275 
5276 
5277   if test "x$COMM" = x; then
5278     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5279   fi
5280 
5281 
5282 
5283 
5284 
5285   # Publish this variable in the help.
5286 
5287 
5288   if test "x$CP" = x; then
5289     # The variable is not set by user, try to locate tool using the code snippet
5290     for ac_prog in cp
5291 do
5292   # Extract the first word of "$ac_prog", so it can be a program name with args.
5293 set dummy $ac_prog; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_path_CP+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   case $CP in
5300   [\\/]* | ?:[\\/]*)
5301   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5302   ;;
5303   *)
5304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309     for ac_exec_ext in '' $ac_executable_extensions; do
5310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316   done
5317 IFS=$as_save_IFS
5318 
5319   ;;
5320 esac
5321 fi
5322 CP=$ac_cv_path_CP
5323 if test -n "$CP"; then
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5325 $as_echo "$CP" >&6; }
5326 else
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 fi
5330 
5331 
5332   test -n "$CP" && break
5333 done
5334 
5335   else
5336     # The variable is set, but is it from the command line or the environment?
5337 
5338     # Try to remove the string !CP! from our list.
5339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5341       # If it failed, the variable was not from the command line. Ignore it,
5342       # but warn the user (except for BASH, which is always set by the calling BASH).
5343       if test "xCP" != xBASH; then
5344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5345 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5346       fi
5347       # Try to locate tool using the code snippet
5348       for ac_prog in cp
5349 do
5350   # Extract the first word of "$ac_prog", so it can be a program name with args.
5351 set dummy $ac_prog; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_path_CP+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   case $CP in
5358   [\\/]* | ?:[\\/]*)
5359   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5360   ;;
5361   *)
5362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367     for ac_exec_ext in '' $ac_executable_extensions; do
5368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374   done
5375 IFS=$as_save_IFS
5376 
5377   ;;
5378 esac
5379 fi
5380 CP=$ac_cv_path_CP
5381 if test -n "$CP"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5383 $as_echo "$CP" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388 
5389 
5390   test -n "$CP" && break
5391 done
5392 
5393     else
5394       # If it succeeded, then it was overridden by the user. We will use it
5395       # for the tool.
5396 
5397       # First remove it from the list of overridden variables, so we can test
5398       # for unknown variables in the end.
5399       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5400 
5401       # Check if the provided tool contains a complete path.
5402       tool_specified="$CP"
5403       tool_basename="${tool_specified##*/}"
5404       if test "x$tool_basename" = "x$tool_specified"; then
5405         # A command without a complete path is provided, search $PATH.
5406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5407 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5408         # Extract the first word of "$tool_basename", so it can be a program name with args.
5409 set dummy $tool_basename; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_path_CP+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   case $CP in
5416   [\\/]* | ?:[\\/]*)
5417   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5418   ;;
5419   *)
5420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425     for ac_exec_ext in '' $ac_executable_extensions; do
5426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432   done
5433 IFS=$as_save_IFS
5434 
5435   ;;
5436 esac
5437 fi
5438 CP=$ac_cv_path_CP
5439 if test -n "$CP"; then
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5441 $as_echo "$CP" >&6; }
5442 else
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446 
5447 
5448         if test "x$CP" = x; then
5449           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5450         fi
5451       else
5452         # Otherwise we believe it is a complete path. Use it as it is.
5453         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5454 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5456 $as_echo_n "checking for CP... " >&6; }
5457         if test ! -x "$tool_specified"; then
5458           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5459 $as_echo "not found" >&6; }
5460           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5461         fi
5462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5463 $as_echo "$tool_specified" >&6; }
5464       fi
5465     fi
5466   fi
5467 
5468 
5469 
5470   if test "x$CP" = x; then
5471     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5472   fi
5473 
5474 
5475 
5476 
5477 
5478   # Publish this variable in the help.
5479 
5480 
5481   if test "x$CPIO" = x; then
5482     # The variable is not set by user, try to locate tool using the code snippet
5483     for ac_prog in cpio
5484 do
5485   # Extract the first word of "$ac_prog", so it can be a program name with args.
5486 set dummy $ac_prog; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_path_CPIO+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   case $CPIO in
5493   [\\/]* | ?:[\\/]*)
5494   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5495   ;;
5496   *)
5497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500   IFS=$as_save_IFS
5501   test -z "$as_dir" && as_dir=.
5502     for ac_exec_ext in '' $ac_executable_extensions; do
5503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506     break 2
5507   fi
5508 done
5509   done
5510 IFS=$as_save_IFS
5511 
5512   ;;
5513 esac
5514 fi
5515 CPIO=$ac_cv_path_CPIO
5516 if test -n "$CPIO"; then
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5518 $as_echo "$CPIO" >&6; }
5519 else
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523 
5524 
5525   test -n "$CPIO" && break
5526 done
5527 
5528   else
5529     # The variable is set, but is it from the command line or the environment?
5530 
5531     # Try to remove the string !CPIO! from our list.
5532     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5533     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5534       # If it failed, the variable was not from the command line. Ignore it,
5535       # but warn the user (except for BASH, which is always set by the calling BASH).
5536       if test "xCPIO" != xBASH; then
5537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5538 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5539       fi
5540       # Try to locate tool using the code snippet
5541       for ac_prog in cpio
5542 do
5543   # Extract the first word of "$ac_prog", so it can be a program name with args.
5544 set dummy $ac_prog; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_path_CPIO+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   case $CPIO in
5551   [\\/]* | ?:[\\/]*)
5552   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5553   ;;
5554   *)
5555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560     for ac_exec_ext in '' $ac_executable_extensions; do
5561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567   done
5568 IFS=$as_save_IFS
5569 
5570   ;;
5571 esac
5572 fi
5573 CPIO=$ac_cv_path_CPIO
5574 if test -n "$CPIO"; then
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5576 $as_echo "$CPIO" >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581 
5582 
5583   test -n "$CPIO" && break
5584 done
5585 
5586     else
5587       # If it succeeded, then it was overridden by the user. We will use it
5588       # for the tool.
5589 
5590       # First remove it from the list of overridden variables, so we can test
5591       # for unknown variables in the end.
5592       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5593 
5594       # Check if the provided tool contains a complete path.
5595       tool_specified="$CPIO"
5596       tool_basename="${tool_specified##*/}"
5597       if test "x$tool_basename" = "x$tool_specified"; then
5598         # A command without a complete path is provided, search $PATH.
5599         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5600 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5601         # Extract the first word of "$tool_basename", so it can be a program name with args.
5602 set dummy $tool_basename; ac_word=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_path_CPIO+:} false; then :
5606   $as_echo_n "(cached) " >&6
5607 else
5608   case $CPIO in
5609   [\\/]* | ?:[\\/]*)
5610   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5611   ;;
5612   *)
5613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618     for ac_exec_ext in '' $ac_executable_extensions; do
5619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622     break 2
5623   fi
5624 done
5625   done
5626 IFS=$as_save_IFS
5627 
5628   ;;
5629 esac
5630 fi
5631 CPIO=$ac_cv_path_CPIO
5632 if test -n "$CPIO"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5634 $as_echo "$CPIO" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639 
5640 
5641         if test "x$CPIO" = x; then
5642           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5643         fi
5644       else
5645         # Otherwise we believe it is a complete path. Use it as it is.
5646         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5647 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5649 $as_echo_n "checking for CPIO... " >&6; }
5650         if test ! -x "$tool_specified"; then
5651           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5652 $as_echo "not found" >&6; }
5653           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5654         fi
5655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5656 $as_echo "$tool_specified" >&6; }
5657       fi
5658     fi
5659   fi
5660 
5661 
5662 
5663   if test "x$CPIO" = x; then
5664     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5665   fi
5666 
5667 
5668 
5669 
5670 
5671   # Publish this variable in the help.
5672 
5673 
5674   if test "x$CUT" = x; then
5675     # The variable is not set by user, try to locate tool using the code snippet
5676     for ac_prog in cut
5677 do
5678   # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_path_CUT+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   case $CUT in
5686   [\\/]* | ?:[\\/]*)
5687   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5688   ;;
5689   *)
5690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695     for ac_exec_ext in '' $ac_executable_extensions; do
5696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699     break 2
5700   fi
5701 done
5702   done
5703 IFS=$as_save_IFS
5704 
5705   ;;
5706 esac
5707 fi
5708 CUT=$ac_cv_path_CUT
5709 if test -n "$CUT"; then
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5711 $as_echo "$CUT" >&6; }
5712 else
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 fi
5716 
5717 
5718   test -n "$CUT" && break
5719 done
5720 
5721   else
5722     # The variable is set, but is it from the command line or the environment?
5723 
5724     # Try to remove the string !CUT! from our list.
5725     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5726     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5727       # If it failed, the variable was not from the command line. Ignore it,
5728       # but warn the user (except for BASH, which is always set by the calling BASH).
5729       if test "xCUT" != xBASH; then
5730         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5731 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5732       fi
5733       # Try to locate tool using the code snippet
5734       for ac_prog in cut
5735 do
5736   # Extract the first word of "$ac_prog", so it can be a program name with args.
5737 set dummy $ac_prog; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_path_CUT+:} false; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   case $CUT in
5744   [\\/]* | ?:[\\/]*)
5745   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5746   ;;
5747   *)
5748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762 
5763   ;;
5764 esac
5765 fi
5766 CUT=$ac_cv_path_CUT
5767 if test -n "$CUT"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5769 $as_echo "$CUT" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774 
5775 
5776   test -n "$CUT" && break
5777 done
5778 
5779     else
5780       # If it succeeded, then it was overridden by the user. We will use it
5781       # for the tool.
5782 
5783       # First remove it from the list of overridden variables, so we can test
5784       # for unknown variables in the end.
5785       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5786 
5787       # Check if the provided tool contains a complete path.
5788       tool_specified="$CUT"
5789       tool_basename="${tool_specified##*/}"
5790       if test "x$tool_basename" = "x$tool_specified"; then
5791         # A command without a complete path is provided, search $PATH.
5792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5793 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5794         # Extract the first word of "$tool_basename", so it can be a program name with args.
5795 set dummy $tool_basename; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_path_CUT+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   case $CUT in
5802   [\\/]* | ?:[\\/]*)
5803   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5804   ;;
5805   *)
5806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809   IFS=$as_save_IFS
5810   test -z "$as_dir" && as_dir=.
5811     for ac_exec_ext in '' $ac_executable_extensions; do
5812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815     break 2
5816   fi
5817 done
5818   done
5819 IFS=$as_save_IFS
5820 
5821   ;;
5822 esac
5823 fi
5824 CUT=$ac_cv_path_CUT
5825 if test -n "$CUT"; then
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5827 $as_echo "$CUT" >&6; }
5828 else
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 $as_echo "no" >&6; }
5831 fi
5832 
5833 
5834         if test "x$CUT" = x; then
5835           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5836         fi
5837       else
5838         # Otherwise we believe it is a complete path. Use it as it is.
5839         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5840 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5842 $as_echo_n "checking for CUT... " >&6; }
5843         if test ! -x "$tool_specified"; then
5844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5845 $as_echo "not found" >&6; }
5846           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5847         fi
5848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5849 $as_echo "$tool_specified" >&6; }
5850       fi
5851     fi
5852   fi
5853 
5854 
5855 
5856   if test "x$CUT" = x; then
5857     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5858   fi
5859 
5860 
5861 
5862 
5863 
5864   # Publish this variable in the help.
5865 
5866 
5867   if test "x$DATE" = x; then
5868     # The variable is not set by user, try to locate tool using the code snippet
5869     for ac_prog in date
5870 do
5871   # Extract the first word of "$ac_prog", so it can be a program name with args.
5872 set dummy $ac_prog; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if ${ac_cv_path_DATE+:} false; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   case $DATE in
5879   [\\/]* | ?:[\\/]*)
5880   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5881   ;;
5882   *)
5883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_exec_ext in '' $ac_executable_extensions; do
5889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895   done
5896 IFS=$as_save_IFS
5897 
5898   ;;
5899 esac
5900 fi
5901 DATE=$ac_cv_path_DATE
5902 if test -n "$DATE"; then
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5904 $as_echo "$DATE" >&6; }
5905 else
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909 
5910 
5911   test -n "$DATE" && break
5912 done
5913 
5914   else
5915     # The variable is set, but is it from the command line or the environment?
5916 
5917     # Try to remove the string !DATE! from our list.
5918     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5919     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5920       # If it failed, the variable was not from the command line. Ignore it,
5921       # but warn the user (except for BASH, which is always set by the calling BASH).
5922       if test "xDATE" != xBASH; then
5923         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5924 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5925       fi
5926       # Try to locate tool using the code snippet
5927       for ac_prog in date
5928 do
5929   # Extract the first word of "$ac_prog", so it can be a program name with args.
5930 set dummy $ac_prog; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_path_DATE+:} false; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   case $DATE in
5937   [\\/]* | ?:[\\/]*)
5938   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5939   ;;
5940   *)
5941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946     for ac_exec_ext in '' $ac_executable_extensions; do
5947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953   done
5954 IFS=$as_save_IFS
5955 
5956   ;;
5957 esac
5958 fi
5959 DATE=$ac_cv_path_DATE
5960 if test -n "$DATE"; then
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5962 $as_echo "$DATE" >&6; }
5963 else
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967 
5968 
5969   test -n "$DATE" && break
5970 done
5971 
5972     else
5973       # If it succeeded, then it was overridden by the user. We will use it
5974       # for the tool.
5975 
5976       # First remove it from the list of overridden variables, so we can test
5977       # for unknown variables in the end.
5978       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5979 
5980       # Check if the provided tool contains a complete path.
5981       tool_specified="$DATE"
5982       tool_basename="${tool_specified##*/}"
5983       if test "x$tool_basename" = "x$tool_specified"; then
5984         # A command without a complete path is provided, search $PATH.
5985         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
5986 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
5987         # Extract the first word of "$tool_basename", so it can be a program name with args.
5988 set dummy $tool_basename; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_path_DATE+:} false; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   case $DATE in
5995   [\\/]* | ?:[\\/]*)
5996   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5997   ;;
5998   *)
5999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004     for ac_exec_ext in '' $ac_executable_extensions; do
6005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011   done
6012 IFS=$as_save_IFS
6013 
6014   ;;
6015 esac
6016 fi
6017 DATE=$ac_cv_path_DATE
6018 if test -n "$DATE"; then
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6020 $as_echo "$DATE" >&6; }
6021 else
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6024 fi
6025 
6026 
6027         if test "x$DATE" = x; then
6028           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6029         fi
6030       else
6031         # Otherwise we believe it is a complete path. Use it as it is.
6032         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6033 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6035 $as_echo_n "checking for DATE... " >&6; }
6036         if test ! -x "$tool_specified"; then
6037           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6038 $as_echo "not found" >&6; }
6039           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6040         fi
6041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6042 $as_echo "$tool_specified" >&6; }
6043       fi
6044     fi
6045   fi
6046 
6047 
6048 
6049   if test "x$DATE" = x; then
6050     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6051   fi
6052 
6053 
6054 
6055 
6056 
6057   # Publish this variable in the help.
6058 
6059 
6060   if test "x$DIFF" = x; then
6061     # The variable is not set by user, try to locate tool using the code snippet
6062     for ac_prog in gdiff diff
6063 do
6064   # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_path_DIFF+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   case $DIFF in
6072   [\\/]* | ?:[\\/]*)
6073   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6074   ;;
6075   *)
6076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081     for ac_exec_ext in '' $ac_executable_extensions; do
6082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088   done
6089 IFS=$as_save_IFS
6090 
6091   ;;
6092 esac
6093 fi
6094 DIFF=$ac_cv_path_DIFF
6095 if test -n "$DIFF"; then
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6097 $as_echo "$DIFF" >&6; }
6098 else
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102 
6103 
6104   test -n "$DIFF" && break
6105 done
6106 
6107   else
6108     # The variable is set, but is it from the command line or the environment?
6109 
6110     # Try to remove the string !DIFF! from our list.
6111     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6112     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6113       # If it failed, the variable was not from the command line. Ignore it,
6114       # but warn the user (except for BASH, which is always set by the calling BASH).
6115       if test "xDIFF" != xBASH; then
6116         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6117 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6118       fi
6119       # Try to locate tool using the code snippet
6120       for ac_prog in gdiff diff
6121 do
6122   # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_path_DIFF+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   case $DIFF in
6130   [\\/]* | ?:[\\/]*)
6131   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6132   ;;
6133   *)
6134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139     for ac_exec_ext in '' $ac_executable_extensions; do
6140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146   done
6147 IFS=$as_save_IFS
6148 
6149   ;;
6150 esac
6151 fi
6152 DIFF=$ac_cv_path_DIFF
6153 if test -n "$DIFF"; then
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6155 $as_echo "$DIFF" >&6; }
6156 else
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6159 fi
6160 
6161 
6162   test -n "$DIFF" && break
6163 done
6164 
6165     else
6166       # If it succeeded, then it was overridden by the user. We will use it
6167       # for the tool.
6168 
6169       # First remove it from the list of overridden variables, so we can test
6170       # for unknown variables in the end.
6171       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6172 
6173       # Check if the provided tool contains a complete path.
6174       tool_specified="$DIFF"
6175       tool_basename="${tool_specified##*/}"
6176       if test "x$tool_basename" = "x$tool_specified"; then
6177         # A command without a complete path is provided, search $PATH.
6178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6179 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6180         # Extract the first word of "$tool_basename", so it can be a program name with args.
6181 set dummy $tool_basename; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_path_DIFF+:} false; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187   case $DIFF in
6188   [\\/]* | ?:[\\/]*)
6189   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6190   ;;
6191   *)
6192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197     for ac_exec_ext in '' $ac_executable_extensions; do
6198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6199     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204   done
6205 IFS=$as_save_IFS
6206 
6207   ;;
6208 esac
6209 fi
6210 DIFF=$ac_cv_path_DIFF
6211 if test -n "$DIFF"; then
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6213 $as_echo "$DIFF" >&6; }
6214 else
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218 
6219 
6220         if test "x$DIFF" = x; then
6221           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6222         fi
6223       else
6224         # Otherwise we believe it is a complete path. Use it as it is.
6225         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6226 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6228 $as_echo_n "checking for DIFF... " >&6; }
6229         if test ! -x "$tool_specified"; then
6230           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6231 $as_echo "not found" >&6; }
6232           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6233         fi
6234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6235 $as_echo "$tool_specified" >&6; }
6236       fi
6237     fi
6238   fi
6239 
6240 
6241 
6242   if test "x$DIFF" = x; then
6243     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6244   fi
6245 
6246 
6247 
6248 
6249 
6250   # Publish this variable in the help.
6251 
6252 
6253   if test "x$DIRNAME" = x; then
6254     # The variable is not set by user, try to locate tool using the code snippet
6255     for ac_prog in dirname
6256 do
6257   # Extract the first word of "$ac_prog", so it can be a program name with args.
6258 set dummy $ac_prog; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_path_DIRNAME+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   case $DIRNAME in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6267   ;;
6268   *)
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274     for ac_exec_ext in '' $ac_executable_extensions; do
6275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281   done
6282 IFS=$as_save_IFS
6283 
6284   ;;
6285 esac
6286 fi
6287 DIRNAME=$ac_cv_path_DIRNAME
6288 if test -n "$DIRNAME"; then
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6290 $as_echo "$DIRNAME" >&6; }
6291 else
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6294 fi
6295 
6296 
6297   test -n "$DIRNAME" && break
6298 done
6299 
6300   else
6301     # The variable is set, but is it from the command line or the environment?
6302 
6303     # Try to remove the string !DIRNAME! from our list.
6304     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6305     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6306       # If it failed, the variable was not from the command line. Ignore it,
6307       # but warn the user (except for BASH, which is always set by the calling BASH).
6308       if test "xDIRNAME" != xBASH; then
6309         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6310 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6311       fi
6312       # Try to locate tool using the code snippet
6313       for ac_prog in dirname
6314 do
6315   # Extract the first word of "$ac_prog", so it can be a program name with args.
6316 set dummy $ac_prog; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_path_DIRNAME+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322   case $DIRNAME in
6323   [\\/]* | ?:[\\/]*)
6324   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6325   ;;
6326   *)
6327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332     for ac_exec_ext in '' $ac_executable_extensions; do
6333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339   done
6340 IFS=$as_save_IFS
6341 
6342   ;;
6343 esac
6344 fi
6345 DIRNAME=$ac_cv_path_DIRNAME
6346 if test -n "$DIRNAME"; then
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6348 $as_echo "$DIRNAME" >&6; }
6349 else
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353 
6354 
6355   test -n "$DIRNAME" && break
6356 done
6357 
6358     else
6359       # If it succeeded, then it was overridden by the user. We will use it
6360       # for the tool.
6361 
6362       # First remove it from the list of overridden variables, so we can test
6363       # for unknown variables in the end.
6364       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6365 
6366       # Check if the provided tool contains a complete path.
6367       tool_specified="$DIRNAME"
6368       tool_basename="${tool_specified##*/}"
6369       if test "x$tool_basename" = "x$tool_specified"; then
6370         # A command without a complete path is provided, search $PATH.
6371         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6372 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6373         # Extract the first word of "$tool_basename", so it can be a program name with args.
6374 set dummy $tool_basename; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_path_DIRNAME+:} false; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   case $DIRNAME in
6381   [\\/]* | ?:[\\/]*)
6382   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6383   ;;
6384   *)
6385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388   IFS=$as_save_IFS
6389   test -z "$as_dir" && as_dir=.
6390     for ac_exec_ext in '' $ac_executable_extensions; do
6391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6392     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394     break 2
6395   fi
6396 done
6397   done
6398 IFS=$as_save_IFS
6399 
6400   ;;
6401 esac
6402 fi
6403 DIRNAME=$ac_cv_path_DIRNAME
6404 if test -n "$DIRNAME"; then
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6406 $as_echo "$DIRNAME" >&6; }
6407 else
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411 
6412 
6413         if test "x$DIRNAME" = x; then
6414           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6415         fi
6416       else
6417         # Otherwise we believe it is a complete path. Use it as it is.
6418         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6419 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6421 $as_echo_n "checking for DIRNAME... " >&6; }
6422         if test ! -x "$tool_specified"; then
6423           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6424 $as_echo "not found" >&6; }
6425           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6426         fi
6427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6428 $as_echo "$tool_specified" >&6; }
6429       fi
6430     fi
6431   fi
6432 
6433 
6434 
6435   if test "x$DIRNAME" = x; then
6436     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6437   fi
6438 
6439 
6440 
6441 
6442 
6443   # Publish this variable in the help.
6444 
6445 
6446   if test "x$ECHO" = x; then
6447     # The variable is not set by user, try to locate tool using the code snippet
6448     for ac_prog in echo
6449 do
6450   # Extract the first word of "$ac_prog", so it can be a program name with args.
6451 set dummy $ac_prog; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_path_ECHO+:} false; then :
6455   $as_echo_n "(cached) " >&6
6456 else
6457   case $ECHO in
6458   [\\/]* | ?:[\\/]*)
6459   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6460   ;;
6461   *)
6462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465   IFS=$as_save_IFS
6466   test -z "$as_dir" && as_dir=.
6467     for ac_exec_ext in '' $ac_executable_extensions; do
6468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471     break 2
6472   fi
6473 done
6474   done
6475 IFS=$as_save_IFS
6476 
6477   ;;
6478 esac
6479 fi
6480 ECHO=$ac_cv_path_ECHO
6481 if test -n "$ECHO"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6483 $as_echo "$ECHO" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488 
6489 
6490   test -n "$ECHO" && break
6491 done
6492 
6493   else
6494     # The variable is set, but is it from the command line or the environment?
6495 
6496     # Try to remove the string !ECHO! from our list.
6497     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6498     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6499       # If it failed, the variable was not from the command line. Ignore it,
6500       # but warn the user (except for BASH, which is always set by the calling BASH).
6501       if test "xECHO" != xBASH; then
6502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6503 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6504       fi
6505       # Try to locate tool using the code snippet
6506       for ac_prog in echo
6507 do
6508   # Extract the first word of "$ac_prog", so it can be a program name with args.
6509 set dummy $ac_prog; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_path_ECHO+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   case $ECHO in
6516   [\\/]* | ?:[\\/]*)
6517   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6518   ;;
6519   *)
6520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525     for ac_exec_ext in '' $ac_executable_extensions; do
6526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532   done
6533 IFS=$as_save_IFS
6534 
6535   ;;
6536 esac
6537 fi
6538 ECHO=$ac_cv_path_ECHO
6539 if test -n "$ECHO"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6541 $as_echo "$ECHO" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546 
6547 
6548   test -n "$ECHO" && break
6549 done
6550 
6551     else
6552       # If it succeeded, then it was overridden by the user. We will use it
6553       # for the tool.
6554 
6555       # First remove it from the list of overridden variables, so we can test
6556       # for unknown variables in the end.
6557       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6558 
6559       # Check if the provided tool contains a complete path.
6560       tool_specified="$ECHO"
6561       tool_basename="${tool_specified##*/}"
6562       if test "x$tool_basename" = "x$tool_specified"; then
6563         # A command without a complete path is provided, search $PATH.
6564         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6565 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6566         # Extract the first word of "$tool_basename", so it can be a program name with args.
6567 set dummy $tool_basename; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_path_ECHO+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   case $ECHO in
6574   [\\/]* | ?:[\\/]*)
6575   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6576   ;;
6577   *)
6578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583     for ac_exec_ext in '' $ac_executable_extensions; do
6584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590   done
6591 IFS=$as_save_IFS
6592 
6593   ;;
6594 esac
6595 fi
6596 ECHO=$ac_cv_path_ECHO
6597 if test -n "$ECHO"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6599 $as_echo "$ECHO" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604 
6605 
6606         if test "x$ECHO" = x; then
6607           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6608         fi
6609       else
6610         # Otherwise we believe it is a complete path. Use it as it is.
6611         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6612 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6614 $as_echo_n "checking for ECHO... " >&6; }
6615         if test ! -x "$tool_specified"; then
6616           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6617 $as_echo "not found" >&6; }
6618           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6619         fi
6620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6621 $as_echo "$tool_specified" >&6; }
6622       fi
6623     fi
6624   fi
6625 
6626 
6627 
6628   if test "x$ECHO" = x; then
6629     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6630   fi
6631 
6632 
6633 
6634 
6635 
6636   # Publish this variable in the help.
6637 
6638 
6639   if test "x$EXPR" = x; then
6640     # The variable is not set by user, try to locate tool using the code snippet
6641     for ac_prog in expr
6642 do
6643   # Extract the first word of "$ac_prog", so it can be a program name with args.
6644 set dummy $ac_prog; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_path_EXPR+:} false; then :
6648   $as_echo_n "(cached) " >&6
6649 else
6650   case $EXPR in
6651   [\\/]* | ?:[\\/]*)
6652   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6653   ;;
6654   *)
6655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658   IFS=$as_save_IFS
6659   test -z "$as_dir" && as_dir=.
6660     for ac_exec_ext in '' $ac_executable_extensions; do
6661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667   done
6668 IFS=$as_save_IFS
6669 
6670   ;;
6671 esac
6672 fi
6673 EXPR=$ac_cv_path_EXPR
6674 if test -n "$EXPR"; then
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6676 $as_echo "$EXPR" >&6; }
6677 else
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6680 fi
6681 
6682 
6683   test -n "$EXPR" && break
6684 done
6685 
6686   else
6687     # The variable is set, but is it from the command line or the environment?
6688 
6689     # Try to remove the string !EXPR! from our list.
6690     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6691     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6692       # If it failed, the variable was not from the command line. Ignore it,
6693       # but warn the user (except for BASH, which is always set by the calling BASH).
6694       if test "xEXPR" != xBASH; then
6695         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6696 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6697       fi
6698       # Try to locate tool using the code snippet
6699       for ac_prog in expr
6700 do
6701   # Extract the first word of "$ac_prog", so it can be a program name with args.
6702 set dummy $ac_prog; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_path_EXPR+:} false; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   case $EXPR in
6709   [\\/]* | ?:[\\/]*)
6710   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6711   ;;
6712   *)
6713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718     for ac_exec_ext in '' $ac_executable_extensions; do
6719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6720     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725   done
6726 IFS=$as_save_IFS
6727 
6728   ;;
6729 esac
6730 fi
6731 EXPR=$ac_cv_path_EXPR
6732 if test -n "$EXPR"; then
6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6734 $as_echo "$EXPR" >&6; }
6735 else
6736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739 
6740 
6741   test -n "$EXPR" && break
6742 done
6743 
6744     else
6745       # If it succeeded, then it was overridden by the user. We will use it
6746       # for the tool.
6747 
6748       # First remove it from the list of overridden variables, so we can test
6749       # for unknown variables in the end.
6750       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6751 
6752       # Check if the provided tool contains a complete path.
6753       tool_specified="$EXPR"
6754       tool_basename="${tool_specified##*/}"
6755       if test "x$tool_basename" = "x$tool_specified"; then
6756         # A command without a complete path is provided, search $PATH.
6757         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6758 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6759         # Extract the first word of "$tool_basename", so it can be a program name with args.
6760 set dummy $tool_basename; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_path_EXPR+:} false; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   case $EXPR in
6767   [\\/]* | ?:[\\/]*)
6768   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6769   ;;
6770   *)
6771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776     for ac_exec_ext in '' $ac_executable_extensions; do
6777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783   done
6784 IFS=$as_save_IFS
6785 
6786   ;;
6787 esac
6788 fi
6789 EXPR=$ac_cv_path_EXPR
6790 if test -n "$EXPR"; then
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6792 $as_echo "$EXPR" >&6; }
6793 else
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797 
6798 
6799         if test "x$EXPR" = x; then
6800           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6801         fi
6802       else
6803         # Otherwise we believe it is a complete path. Use it as it is.
6804         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6805 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6807 $as_echo_n "checking for EXPR... " >&6; }
6808         if test ! -x "$tool_specified"; then
6809           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6810 $as_echo "not found" >&6; }
6811           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6812         fi
6813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6814 $as_echo "$tool_specified" >&6; }
6815       fi
6816     fi
6817   fi
6818 
6819 
6820 
6821   if test "x$EXPR" = x; then
6822     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6823   fi
6824 
6825 
6826 
6827 
6828 
6829   # Publish this variable in the help.
6830 
6831 
6832   if test "x$FILE" = x; then
6833     # The variable is not set by user, try to locate tool using the code snippet
6834     for ac_prog in file
6835 do
6836   # Extract the first word of "$ac_prog", so it can be a program name with args.
6837 set dummy $ac_prog; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_path_FILE+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   case $FILE in
6844   [\\/]* | ?:[\\/]*)
6845   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6846   ;;
6847   *)
6848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853     for ac_exec_ext in '' $ac_executable_extensions; do
6854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860   done
6861 IFS=$as_save_IFS
6862 
6863   ;;
6864 esac
6865 fi
6866 FILE=$ac_cv_path_FILE
6867 if test -n "$FILE"; then
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6869 $as_echo "$FILE" >&6; }
6870 else
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874 
6875 
6876   test -n "$FILE" && break
6877 done
6878 
6879   else
6880     # The variable is set, but is it from the command line or the environment?
6881 
6882     # Try to remove the string !FILE! from our list.
6883     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6884     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6885       # If it failed, the variable was not from the command line. Ignore it,
6886       # but warn the user (except for BASH, which is always set by the calling BASH).
6887       if test "xFILE" != xBASH; then
6888         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6889 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6890       fi
6891       # Try to locate tool using the code snippet
6892       for ac_prog in file
6893 do
6894   # Extract the first word of "$ac_prog", so it can be a program name with args.
6895 set dummy $ac_prog; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_path_FILE+:} false; then :
6899   $as_echo_n "(cached) " >&6
6900 else
6901   case $FILE in
6902   [\\/]* | ?:[\\/]*)
6903   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6904   ;;
6905   *)
6906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920 
6921   ;;
6922 esac
6923 fi
6924 FILE=$ac_cv_path_FILE
6925 if test -n "$FILE"; then
6926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6927 $as_echo "$FILE" >&6; }
6928 else
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6931 fi
6932 
6933 
6934   test -n "$FILE" && break
6935 done
6936 
6937     else
6938       # If it succeeded, then it was overridden by the user. We will use it
6939       # for the tool.
6940 
6941       # First remove it from the list of overridden variables, so we can test
6942       # for unknown variables in the end.
6943       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6944 
6945       # Check if the provided tool contains a complete path.
6946       tool_specified="$FILE"
6947       tool_basename="${tool_specified##*/}"
6948       if test "x$tool_basename" = "x$tool_specified"; then
6949         # A command without a complete path is provided, search $PATH.
6950         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6951 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6952         # Extract the first word of "$tool_basename", so it can be a program name with args.
6953 set dummy $tool_basename; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if ${ac_cv_path_FILE+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   case $FILE in
6960   [\\/]* | ?:[\\/]*)
6961   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6962   ;;
6963   *)
6964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969     for ac_exec_ext in '' $ac_executable_extensions; do
6970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976   done
6977 IFS=$as_save_IFS
6978 
6979   ;;
6980 esac
6981 fi
6982 FILE=$ac_cv_path_FILE
6983 if test -n "$FILE"; then
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6985 $as_echo "$FILE" >&6; }
6986 else
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990 
6991 
6992         if test "x$FILE" = x; then
6993           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6994         fi
6995       else
6996         # Otherwise we believe it is a complete path. Use it as it is.
6997         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
6998 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
6999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7000 $as_echo_n "checking for FILE... " >&6; }
7001         if test ! -x "$tool_specified"; then
7002           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7003 $as_echo "not found" >&6; }
7004           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7005         fi
7006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7007 $as_echo "$tool_specified" >&6; }
7008       fi
7009     fi
7010   fi
7011 
7012 
7013 
7014   if test "x$FILE" = x; then
7015     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7016   fi
7017 
7018 
7019 
7020 
7021 
7022   # Publish this variable in the help.
7023 
7024 
7025   if test "x$FIND" = x; then
7026     # The variable is not set by user, try to locate tool using the code snippet
7027     for ac_prog in find
7028 do
7029   # Extract the first word of "$ac_prog", so it can be a program name with args.
7030 set dummy $ac_prog; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_path_FIND+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   case $FIND in
7037   [\\/]* | ?:[\\/]*)
7038   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7039   ;;
7040   *)
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046     for ac_exec_ext in '' $ac_executable_extensions; do
7047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053   done
7054 IFS=$as_save_IFS
7055 
7056   ;;
7057 esac
7058 fi
7059 FIND=$ac_cv_path_FIND
7060 if test -n "$FIND"; then
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7062 $as_echo "$FIND" >&6; }
7063 else
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067 
7068 
7069   test -n "$FIND" && break
7070 done
7071 
7072   else
7073     # The variable is set, but is it from the command line or the environment?
7074 
7075     # Try to remove the string !FIND! from our list.
7076     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7077     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7078       # If it failed, the variable was not from the command line. Ignore it,
7079       # but warn the user (except for BASH, which is always set by the calling BASH).
7080       if test "xFIND" != xBASH; then
7081         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7082 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7083       fi
7084       # Try to locate tool using the code snippet
7085       for ac_prog in find
7086 do
7087   # Extract the first word of "$ac_prog", so it can be a program name with args.
7088 set dummy $ac_prog; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_path_FIND+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094   case $FIND in
7095   [\\/]* | ?:[\\/]*)
7096   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7097   ;;
7098   *)
7099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102   IFS=$as_save_IFS
7103   test -z "$as_dir" && as_dir=.
7104     for ac_exec_ext in '' $ac_executable_extensions; do
7105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108     break 2
7109   fi
7110 done
7111   done
7112 IFS=$as_save_IFS
7113 
7114   ;;
7115 esac
7116 fi
7117 FIND=$ac_cv_path_FIND
7118 if test -n "$FIND"; then
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7120 $as_echo "$FIND" >&6; }
7121 else
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125 
7126 
7127   test -n "$FIND" && break
7128 done
7129 
7130     else
7131       # If it succeeded, then it was overridden by the user. We will use it
7132       # for the tool.
7133 
7134       # First remove it from the list of overridden variables, so we can test
7135       # for unknown variables in the end.
7136       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7137 
7138       # Check if the provided tool contains a complete path.
7139       tool_specified="$FIND"
7140       tool_basename="${tool_specified##*/}"
7141       if test "x$tool_basename" = "x$tool_specified"; then
7142         # A command without a complete path is provided, search $PATH.
7143         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7144 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7145         # Extract the first word of "$tool_basename", so it can be a program name with args.
7146 set dummy $tool_basename; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_path_FIND+:} false; then :
7150   $as_echo_n "(cached) " >&6
7151 else
7152   case $FIND in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162     for ac_exec_ext in '' $ac_executable_extensions; do
7163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169   done
7170 IFS=$as_save_IFS
7171 
7172   ;;
7173 esac
7174 fi
7175 FIND=$ac_cv_path_FIND
7176 if test -n "$FIND"; then
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7178 $as_echo "$FIND" >&6; }
7179 else
7180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183 
7184 
7185         if test "x$FIND" = x; then
7186           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7187         fi
7188       else
7189         # Otherwise we believe it is a complete path. Use it as it is.
7190         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7191 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7193 $as_echo_n "checking for FIND... " >&6; }
7194         if test ! -x "$tool_specified"; then
7195           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7196 $as_echo "not found" >&6; }
7197           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7198         fi
7199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7200 $as_echo "$tool_specified" >&6; }
7201       fi
7202     fi
7203   fi
7204 
7205 
7206 
7207   if test "x$FIND" = x; then
7208     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7209   fi
7210 
7211 
7212 
7213 
7214 
7215   # Publish this variable in the help.
7216 
7217 
7218   if test "x$HEAD" = x; then
7219     # The variable is not set by user, try to locate tool using the code snippet
7220     for ac_prog in head
7221 do
7222   # Extract the first word of "$ac_prog", so it can be a program name with args.
7223 set dummy $ac_prog; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_path_HEAD+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   case $HEAD in
7230   [\\/]* | ?:[\\/]*)
7231   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7232   ;;
7233   *)
7234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239     for ac_exec_ext in '' $ac_executable_extensions; do
7240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246   done
7247 IFS=$as_save_IFS
7248 
7249   ;;
7250 esac
7251 fi
7252 HEAD=$ac_cv_path_HEAD
7253 if test -n "$HEAD"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7255 $as_echo "$HEAD" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260 
7261 
7262   test -n "$HEAD" && break
7263 done
7264 
7265   else
7266     # The variable is set, but is it from the command line or the environment?
7267 
7268     # Try to remove the string !HEAD! from our list.
7269     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7270     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7271       # If it failed, the variable was not from the command line. Ignore it,
7272       # but warn the user (except for BASH, which is always set by the calling BASH).
7273       if test "xHEAD" != xBASH; then
7274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7275 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7276       fi
7277       # Try to locate tool using the code snippet
7278       for ac_prog in head
7279 do
7280   # Extract the first word of "$ac_prog", so it can be a program name with args.
7281 set dummy $ac_prog; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_path_HEAD+:} false; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   case $HEAD in
7288   [\\/]* | ?:[\\/]*)
7289   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7290   ;;
7291   *)
7292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297     for ac_exec_ext in '' $ac_executable_extensions; do
7298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304   done
7305 IFS=$as_save_IFS
7306 
7307   ;;
7308 esac
7309 fi
7310 HEAD=$ac_cv_path_HEAD
7311 if test -n "$HEAD"; then
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7313 $as_echo "$HEAD" >&6; }
7314 else
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7317 fi
7318 
7319 
7320   test -n "$HEAD" && break
7321 done
7322 
7323     else
7324       # If it succeeded, then it was overridden by the user. We will use it
7325       # for the tool.
7326 
7327       # First remove it from the list of overridden variables, so we can test
7328       # for unknown variables in the end.
7329       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7330 
7331       # Check if the provided tool contains a complete path.
7332       tool_specified="$HEAD"
7333       tool_basename="${tool_specified##*/}"
7334       if test "x$tool_basename" = "x$tool_specified"; then
7335         # A command without a complete path is provided, search $PATH.
7336         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7337 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7338         # Extract the first word of "$tool_basename", so it can be a program name with args.
7339 set dummy $tool_basename; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_path_HEAD+:} false; then :
7343   $as_echo_n "(cached) " >&6
7344 else
7345   case $HEAD in
7346   [\\/]* | ?:[\\/]*)
7347   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7348   ;;
7349   *)
7350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364 
7365   ;;
7366 esac
7367 fi
7368 HEAD=$ac_cv_path_HEAD
7369 if test -n "$HEAD"; then
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7371 $as_echo "$HEAD" >&6; }
7372 else
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376 
7377 
7378         if test "x$HEAD" = x; then
7379           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7380         fi
7381       else
7382         # Otherwise we believe it is a complete path. Use it as it is.
7383         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7384 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7386 $as_echo_n "checking for HEAD... " >&6; }
7387         if test ! -x "$tool_specified"; then
7388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7389 $as_echo "not found" >&6; }
7390           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7391         fi
7392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7393 $as_echo "$tool_specified" >&6; }
7394       fi
7395     fi
7396   fi
7397 
7398 
7399 
7400   if test "x$HEAD" = x; then
7401     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7402   fi
7403 
7404 
7405 
7406 
7407 
7408   # Publish this variable in the help.
7409 
7410 
7411   if test "x$LN" = x; then
7412     # The variable is not set by user, try to locate tool using the code snippet
7413     for ac_prog in ln
7414 do
7415   # Extract the first word of "$ac_prog", so it can be a program name with args.
7416 set dummy $ac_prog; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_path_LN+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   case $LN in
7423   [\\/]* | ?:[\\/]*)
7424   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7425   ;;
7426   *)
7427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432     for ac_exec_ext in '' $ac_executable_extensions; do
7433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439   done
7440 IFS=$as_save_IFS
7441 
7442   ;;
7443 esac
7444 fi
7445 LN=$ac_cv_path_LN
7446 if test -n "$LN"; then
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7448 $as_echo "$LN" >&6; }
7449 else
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453 
7454 
7455   test -n "$LN" && break
7456 done
7457 
7458   else
7459     # The variable is set, but is it from the command line or the environment?
7460 
7461     # Try to remove the string !LN! from our list.
7462     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7463     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7464       # If it failed, the variable was not from the command line. Ignore it,
7465       # but warn the user (except for BASH, which is always set by the calling BASH).
7466       if test "xLN" != xBASH; then
7467         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7468 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7469       fi
7470       # Try to locate tool using the code snippet
7471       for ac_prog in ln
7472 do
7473   # Extract the first word of "$ac_prog", so it can be a program name with args.
7474 set dummy $ac_prog; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_path_LN+:} false; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   case $LN in
7481   [\\/]* | ?:[\\/]*)
7482   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7483   ;;
7484   *)
7485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490     for ac_exec_ext in '' $ac_executable_extensions; do
7491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497   done
7498 IFS=$as_save_IFS
7499 
7500   ;;
7501 esac
7502 fi
7503 LN=$ac_cv_path_LN
7504 if test -n "$LN"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7506 $as_echo "$LN" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511 
7512 
7513   test -n "$LN" && break
7514 done
7515 
7516     else
7517       # If it succeeded, then it was overridden by the user. We will use it
7518       # for the tool.
7519 
7520       # First remove it from the list of overridden variables, so we can test
7521       # for unknown variables in the end.
7522       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7523 
7524       # Check if the provided tool contains a complete path.
7525       tool_specified="$LN"
7526       tool_basename="${tool_specified##*/}"
7527       if test "x$tool_basename" = "x$tool_specified"; then
7528         # A command without a complete path is provided, search $PATH.
7529         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7530 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7531         # Extract the first word of "$tool_basename", so it can be a program name with args.
7532 set dummy $tool_basename; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_path_LN+:} false; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   case $LN in
7539   [\\/]* | ?:[\\/]*)
7540   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7541   ;;
7542   *)
7543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557 
7558   ;;
7559 esac
7560 fi
7561 LN=$ac_cv_path_LN
7562 if test -n "$LN"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7564 $as_echo "$LN" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569 
7570 
7571         if test "x$LN" = x; then
7572           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7573         fi
7574       else
7575         # Otherwise we believe it is a complete path. Use it as it is.
7576         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7577 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7579 $as_echo_n "checking for LN... " >&6; }
7580         if test ! -x "$tool_specified"; then
7581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7582 $as_echo "not found" >&6; }
7583           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7584         fi
7585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7586 $as_echo "$tool_specified" >&6; }
7587       fi
7588     fi
7589   fi
7590 
7591 
7592 
7593   if test "x$LN" = x; then
7594     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7595   fi
7596 
7597 
7598 
7599 
7600 
7601   # Publish this variable in the help.
7602 
7603 
7604   if test "x$LS" = x; then
7605     # The variable is not set by user, try to locate tool using the code snippet
7606     for ac_prog in ls
7607 do
7608   # Extract the first word of "$ac_prog", so it can be a program name with args.
7609 set dummy $ac_prog; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_path_LS+:} false; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   case $LS in
7616   [\\/]* | ?:[\\/]*)
7617   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7618   ;;
7619   *)
7620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634 
7635   ;;
7636 esac
7637 fi
7638 LS=$ac_cv_path_LS
7639 if test -n "$LS"; then
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7641 $as_echo "$LS" >&6; }
7642 else
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645 fi
7646 
7647 
7648   test -n "$LS" && break
7649 done
7650 
7651   else
7652     # The variable is set, but is it from the command line or the environment?
7653 
7654     # Try to remove the string !LS! from our list.
7655     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7656     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7657       # If it failed, the variable was not from the command line. Ignore it,
7658       # but warn the user (except for BASH, which is always set by the calling BASH).
7659       if test "xLS" != xBASH; then
7660         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7661 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7662       fi
7663       # Try to locate tool using the code snippet
7664       for ac_prog in ls
7665 do
7666   # Extract the first word of "$ac_prog", so it can be a program name with args.
7667 set dummy $ac_prog; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_path_LS+:} false; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   case $LS in
7674   [\\/]* | ?:[\\/]*)
7675   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7676   ;;
7677   *)
7678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683     for ac_exec_ext in '' $ac_executable_extensions; do
7684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690   done
7691 IFS=$as_save_IFS
7692 
7693   ;;
7694 esac
7695 fi
7696 LS=$ac_cv_path_LS
7697 if test -n "$LS"; then
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7699 $as_echo "$LS" >&6; }
7700 else
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704 
7705 
7706   test -n "$LS" && break
7707 done
7708 
7709     else
7710       # If it succeeded, then it was overridden by the user. We will use it
7711       # for the tool.
7712 
7713       # First remove it from the list of overridden variables, so we can test
7714       # for unknown variables in the end.
7715       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7716 
7717       # Check if the provided tool contains a complete path.
7718       tool_specified="$LS"
7719       tool_basename="${tool_specified##*/}"
7720       if test "x$tool_basename" = "x$tool_specified"; then
7721         # A command without a complete path is provided, search $PATH.
7722         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7723 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7724         # Extract the first word of "$tool_basename", so it can be a program name with args.
7725 set dummy $tool_basename; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_path_LS+:} false; then :
7729   $as_echo_n "(cached) " >&6
7730 else
7731   case $LS in
7732   [\\/]* | ?:[\\/]*)
7733   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7734   ;;
7735   *)
7736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741     for ac_exec_ext in '' $ac_executable_extensions; do
7742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748   done
7749 IFS=$as_save_IFS
7750 
7751   ;;
7752 esac
7753 fi
7754 LS=$ac_cv_path_LS
7755 if test -n "$LS"; then
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7757 $as_echo "$LS" >&6; }
7758 else
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762 
7763 
7764         if test "x$LS" = x; then
7765           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7766         fi
7767       else
7768         # Otherwise we believe it is a complete path. Use it as it is.
7769         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7770 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7772 $as_echo_n "checking for LS... " >&6; }
7773         if test ! -x "$tool_specified"; then
7774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7775 $as_echo "not found" >&6; }
7776           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7777         fi
7778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7779 $as_echo "$tool_specified" >&6; }
7780       fi
7781     fi
7782   fi
7783 
7784 
7785 
7786   if test "x$LS" = x; then
7787     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7788   fi
7789 
7790 
7791 
7792 
7793 
7794   # Publish this variable in the help.
7795 
7796 
7797   if test "x$MKDIR" = x; then
7798     # The variable is not set by user, try to locate tool using the code snippet
7799     for ac_prog in mkdir
7800 do
7801   # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_path_MKDIR+:} false; then :
7806   $as_echo_n "(cached) " >&6
7807 else
7808   case $MKDIR in
7809   [\\/]* | ?:[\\/]*)
7810   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7811   ;;
7812   *)
7813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818     for ac_exec_ext in '' $ac_executable_extensions; do
7819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825   done
7826 IFS=$as_save_IFS
7827 
7828   ;;
7829 esac
7830 fi
7831 MKDIR=$ac_cv_path_MKDIR
7832 if test -n "$MKDIR"; then
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7834 $as_echo "$MKDIR" >&6; }
7835 else
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839 
7840 
7841   test -n "$MKDIR" && break
7842 done
7843 
7844   else
7845     # The variable is set, but is it from the command line or the environment?
7846 
7847     # Try to remove the string !MKDIR! from our list.
7848     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7849     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7850       # If it failed, the variable was not from the command line. Ignore it,
7851       # but warn the user (except for BASH, which is always set by the calling BASH).
7852       if test "xMKDIR" != xBASH; then
7853         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7854 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7855       fi
7856       # Try to locate tool using the code snippet
7857       for ac_prog in mkdir
7858 do
7859   # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_path_MKDIR+:} false; then :
7864   $as_echo_n "(cached) " >&6
7865 else
7866   case $MKDIR in
7867   [\\/]* | ?:[\\/]*)
7868   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7869   ;;
7870   *)
7871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874   IFS=$as_save_IFS
7875   test -z "$as_dir" && as_dir=.
7876     for ac_exec_ext in '' $ac_executable_extensions; do
7877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880     break 2
7881   fi
7882 done
7883   done
7884 IFS=$as_save_IFS
7885 
7886   ;;
7887 esac
7888 fi
7889 MKDIR=$ac_cv_path_MKDIR
7890 if test -n "$MKDIR"; then
7891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7892 $as_echo "$MKDIR" >&6; }
7893 else
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897 
7898 
7899   test -n "$MKDIR" && break
7900 done
7901 
7902     else
7903       # If it succeeded, then it was overridden by the user. We will use it
7904       # for the tool.
7905 
7906       # First remove it from the list of overridden variables, so we can test
7907       # for unknown variables in the end.
7908       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7909 
7910       # Check if the provided tool contains a complete path.
7911       tool_specified="$MKDIR"
7912       tool_basename="${tool_specified##*/}"
7913       if test "x$tool_basename" = "x$tool_specified"; then
7914         # A command without a complete path is provided, search $PATH.
7915         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7916 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7917         # Extract the first word of "$tool_basename", so it can be a program name with args.
7918 set dummy $tool_basename; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_path_MKDIR+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   case $MKDIR in
7925   [\\/]* | ?:[\\/]*)
7926   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7927   ;;
7928   *)
7929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934     for ac_exec_ext in '' $ac_executable_extensions; do
7935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938     break 2
7939   fi
7940 done
7941   done
7942 IFS=$as_save_IFS
7943 
7944   ;;
7945 esac
7946 fi
7947 MKDIR=$ac_cv_path_MKDIR
7948 if test -n "$MKDIR"; then
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7950 $as_echo "$MKDIR" >&6; }
7951 else
7952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955 
7956 
7957         if test "x$MKDIR" = x; then
7958           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7959         fi
7960       else
7961         # Otherwise we believe it is a complete path. Use it as it is.
7962         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
7963 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
7964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
7965 $as_echo_n "checking for MKDIR... " >&6; }
7966         if test ! -x "$tool_specified"; then
7967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7968 $as_echo "not found" >&6; }
7969           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
7970         fi
7971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7972 $as_echo "$tool_specified" >&6; }
7973       fi
7974     fi
7975   fi
7976 
7977 
7978 
7979   if test "x$MKDIR" = x; then
7980     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
7981   fi
7982 
7983 
7984 
7985 
7986 
7987   # Publish this variable in the help.
7988 
7989 
7990   if test "x$MKTEMP" = x; then
7991     # The variable is not set by user, try to locate tool using the code snippet
7992     for ac_prog in mktemp
7993 do
7994   # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_path_MKTEMP+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   case $MKTEMP in
8002   [\\/]* | ?:[\\/]*)
8003   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8004   ;;
8005   *)
8006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011     for ac_exec_ext in '' $ac_executable_extensions; do
8012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018   done
8019 IFS=$as_save_IFS
8020 
8021   ;;
8022 esac
8023 fi
8024 MKTEMP=$ac_cv_path_MKTEMP
8025 if test -n "$MKTEMP"; then
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8027 $as_echo "$MKTEMP" >&6; }
8028 else
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031 fi
8032 
8033 
8034   test -n "$MKTEMP" && break
8035 done
8036 
8037   else
8038     # The variable is set, but is it from the command line or the environment?
8039 
8040     # Try to remove the string !MKTEMP! from our list.
8041     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8042     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8043       # If it failed, the variable was not from the command line. Ignore it,
8044       # but warn the user (except for BASH, which is always set by the calling BASH).
8045       if test "xMKTEMP" != xBASH; then
8046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8047 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8048       fi
8049       # Try to locate tool using the code snippet
8050       for ac_prog in mktemp
8051 do
8052   # Extract the first word of "$ac_prog", so it can be a program name with args.
8053 set dummy $ac_prog; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_MKTEMP+:} false; then :
8057   $as_echo_n "(cached) " >&6
8058 else
8059   case $MKTEMP in
8060   [\\/]* | ?:[\\/]*)
8061   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8062   ;;
8063   *)
8064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067   IFS=$as_save_IFS
8068   test -z "$as_dir" && as_dir=.
8069     for ac_exec_ext in '' $ac_executable_extensions; do
8070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073     break 2
8074   fi
8075 done
8076   done
8077 IFS=$as_save_IFS
8078 
8079   ;;
8080 esac
8081 fi
8082 MKTEMP=$ac_cv_path_MKTEMP
8083 if test -n "$MKTEMP"; then
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8085 $as_echo "$MKTEMP" >&6; }
8086 else
8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090 
8091 
8092   test -n "$MKTEMP" && break
8093 done
8094 
8095     else
8096       # If it succeeded, then it was overridden by the user. We will use it
8097       # for the tool.
8098 
8099       # First remove it from the list of overridden variables, so we can test
8100       # for unknown variables in the end.
8101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8102 
8103       # Check if the provided tool contains a complete path.
8104       tool_specified="$MKTEMP"
8105       tool_basename="${tool_specified##*/}"
8106       if test "x$tool_basename" = "x$tool_specified"; then
8107         # A command without a complete path is provided, search $PATH.
8108         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8109 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8110         # Extract the first word of "$tool_basename", so it can be a program name with args.
8111 set dummy $tool_basename; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if ${ac_cv_path_MKTEMP+:} false; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   case $MKTEMP in
8118   [\\/]* | ?:[\\/]*)
8119   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8120   ;;
8121   *)
8122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127     for ac_exec_ext in '' $ac_executable_extensions; do
8128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134   done
8135 IFS=$as_save_IFS
8136 
8137   ;;
8138 esac
8139 fi
8140 MKTEMP=$ac_cv_path_MKTEMP
8141 if test -n "$MKTEMP"; then
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8143 $as_echo "$MKTEMP" >&6; }
8144 else
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148 
8149 
8150         if test "x$MKTEMP" = x; then
8151           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8152         fi
8153       else
8154         # Otherwise we believe it is a complete path. Use it as it is.
8155         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8156 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8158 $as_echo_n "checking for MKTEMP... " >&6; }
8159         if test ! -x "$tool_specified"; then
8160           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8161 $as_echo "not found" >&6; }
8162           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8163         fi
8164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8165 $as_echo "$tool_specified" >&6; }
8166       fi
8167     fi
8168   fi
8169 
8170 
8171 
8172   if test "x$MKTEMP" = x; then
8173     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8174   fi
8175 
8176 
8177 
8178 
8179 
8180   # Publish this variable in the help.
8181 
8182 
8183   if test "x$MV" = x; then
8184     # The variable is not set by user, try to locate tool using the code snippet
8185     for ac_prog in mv
8186 do
8187   # Extract the first word of "$ac_prog", so it can be a program name with args.
8188 set dummy $ac_prog; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if ${ac_cv_path_MV+:} false; then :
8192   $as_echo_n "(cached) " >&6
8193 else
8194   case $MV in
8195   [\\/]* | ?:[\\/]*)
8196   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8197   ;;
8198   *)
8199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200 for as_dir in $PATH
8201 do
8202   IFS=$as_save_IFS
8203   test -z "$as_dir" && as_dir=.
8204     for ac_exec_ext in '' $ac_executable_extensions; do
8205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8206     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208     break 2
8209   fi
8210 done
8211   done
8212 IFS=$as_save_IFS
8213 
8214   ;;
8215 esac
8216 fi
8217 MV=$ac_cv_path_MV
8218 if test -n "$MV"; then
8219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8220 $as_echo "$MV" >&6; }
8221 else
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225 
8226 
8227   test -n "$MV" && break
8228 done
8229 
8230   else
8231     # The variable is set, but is it from the command line or the environment?
8232 
8233     # Try to remove the string !MV! from our list.
8234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8236       # If it failed, the variable was not from the command line. Ignore it,
8237       # but warn the user (except for BASH, which is always set by the calling BASH).
8238       if test "xMV" != xBASH; then
8239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8240 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8241       fi
8242       # Try to locate tool using the code snippet
8243       for ac_prog in mv
8244 do
8245   # Extract the first word of "$ac_prog", so it can be a program name with args.
8246 set dummy $ac_prog; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if ${ac_cv_path_MV+:} false; then :
8250   $as_echo_n "(cached) " >&6
8251 else
8252   case $MV in
8253   [\\/]* | ?:[\\/]*)
8254   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8255   ;;
8256   *)
8257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262     for ac_exec_ext in '' $ac_executable_extensions; do
8263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269   done
8270 IFS=$as_save_IFS
8271 
8272   ;;
8273 esac
8274 fi
8275 MV=$ac_cv_path_MV
8276 if test -n "$MV"; then
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8278 $as_echo "$MV" >&6; }
8279 else
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8282 fi
8283 
8284 
8285   test -n "$MV" && break
8286 done
8287 
8288     else
8289       # If it succeeded, then it was overridden by the user. We will use it
8290       # for the tool.
8291 
8292       # First remove it from the list of overridden variables, so we can test
8293       # for unknown variables in the end.
8294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8295 
8296       # Check if the provided tool contains a complete path.
8297       tool_specified="$MV"
8298       tool_basename="${tool_specified##*/}"
8299       if test "x$tool_basename" = "x$tool_specified"; then
8300         # A command without a complete path is provided, search $PATH.
8301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8302 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8303         # Extract the first word of "$tool_basename", so it can be a program name with args.
8304 set dummy $tool_basename; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if ${ac_cv_path_MV+:} false; then :
8308   $as_echo_n "(cached) " >&6
8309 else
8310   case $MV in
8311   [\\/]* | ?:[\\/]*)
8312   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8313   ;;
8314   *)
8315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8329 
8330   ;;
8331 esac
8332 fi
8333 MV=$ac_cv_path_MV
8334 if test -n "$MV"; then
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8336 $as_echo "$MV" >&6; }
8337 else
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341 
8342 
8343         if test "x$MV" = x; then
8344           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8345         fi
8346       else
8347         # Otherwise we believe it is a complete path. Use it as it is.
8348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8349 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8351 $as_echo_n "checking for MV... " >&6; }
8352         if test ! -x "$tool_specified"; then
8353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8354 $as_echo "not found" >&6; }
8355           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8356         fi
8357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8358 $as_echo "$tool_specified" >&6; }
8359       fi
8360     fi
8361   fi
8362 
8363 
8364 
8365   if test "x$MV" = x; then
8366     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8367   fi
8368 
8369 
8370 
8371 
8372 
8373   # Publish this variable in the help.
8374 
8375 
8376   if test "x$NAWK" = x; then
8377     # The variable is not set by user, try to locate tool using the code snippet
8378     for ac_prog in nawk gawk awk
8379 do
8380   # Extract the first word of "$ac_prog", so it can be a program name with args.
8381 set dummy $ac_prog; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_path_NAWK+:} false; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   case $NAWK in
8388   [\\/]* | ?:[\\/]*)
8389   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8390   ;;
8391   *)
8392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8394 do
8395   IFS=$as_save_IFS
8396   test -z "$as_dir" && as_dir=.
8397     for ac_exec_ext in '' $ac_executable_extensions; do
8398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8399     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401     break 2
8402   fi
8403 done
8404   done
8405 IFS=$as_save_IFS
8406 
8407   ;;
8408 esac
8409 fi
8410 NAWK=$ac_cv_path_NAWK
8411 if test -n "$NAWK"; then
8412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8413 $as_echo "$NAWK" >&6; }
8414 else
8415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8417 fi
8418 
8419 
8420   test -n "$NAWK" && break
8421 done
8422 
8423   else
8424     # The variable is set, but is it from the command line or the environment?
8425 
8426     # Try to remove the string !NAWK! from our list.
8427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8429       # If it failed, the variable was not from the command line. Ignore it,
8430       # but warn the user (except for BASH, which is always set by the calling BASH).
8431       if test "xNAWK" != xBASH; then
8432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8433 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8434       fi
8435       # Try to locate tool using the code snippet
8436       for ac_prog in nawk gawk awk
8437 do
8438   # Extract the first word of "$ac_prog", so it can be a program name with args.
8439 set dummy $ac_prog; ac_word=$2
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441 $as_echo_n "checking for $ac_word... " >&6; }
8442 if ${ac_cv_path_NAWK+:} false; then :
8443   $as_echo_n "(cached) " >&6
8444 else
8445   case $NAWK in
8446   [\\/]* | ?:[\\/]*)
8447   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8448   ;;
8449   *)
8450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 for as_dir in $PATH
8452 do
8453   IFS=$as_save_IFS
8454   test -z "$as_dir" && as_dir=.
8455     for ac_exec_ext in '' $ac_executable_extensions; do
8456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8457     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459     break 2
8460   fi
8461 done
8462   done
8463 IFS=$as_save_IFS
8464 
8465   ;;
8466 esac
8467 fi
8468 NAWK=$ac_cv_path_NAWK
8469 if test -n "$NAWK"; then
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8471 $as_echo "$NAWK" >&6; }
8472 else
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8475 fi
8476 
8477 
8478   test -n "$NAWK" && break
8479 done
8480 
8481     else
8482       # If it succeeded, then it was overridden by the user. We will use it
8483       # for the tool.
8484 
8485       # First remove it from the list of overridden variables, so we can test
8486       # for unknown variables in the end.
8487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8488 
8489       # Check if the provided tool contains a complete path.
8490       tool_specified="$NAWK"
8491       tool_basename="${tool_specified##*/}"
8492       if test "x$tool_basename" = "x$tool_specified"; then
8493         # A command without a complete path is provided, search $PATH.
8494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8495 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8496         # Extract the first word of "$tool_basename", so it can be a program name with args.
8497 set dummy $tool_basename; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if ${ac_cv_path_NAWK+:} false; then :
8501   $as_echo_n "(cached) " >&6
8502 else
8503   case $NAWK in
8504   [\\/]* | ?:[\\/]*)
8505   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8506   ;;
8507   *)
8508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513     for ac_exec_ext in '' $ac_executable_extensions; do
8514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520   done
8521 IFS=$as_save_IFS
8522 
8523   ;;
8524 esac
8525 fi
8526 NAWK=$ac_cv_path_NAWK
8527 if test -n "$NAWK"; then
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8529 $as_echo "$NAWK" >&6; }
8530 else
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534 
8535 
8536         if test "x$NAWK" = x; then
8537           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8538         fi
8539       else
8540         # Otherwise we believe it is a complete path. Use it as it is.
8541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8542 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8544 $as_echo_n "checking for NAWK... " >&6; }
8545         if test ! -x "$tool_specified"; then
8546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8547 $as_echo "not found" >&6; }
8548           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8549         fi
8550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8551 $as_echo "$tool_specified" >&6; }
8552       fi
8553     fi
8554   fi
8555 
8556 
8557 
8558   if test "x$NAWK" = x; then
8559     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8560   fi
8561 
8562 
8563 
8564 
8565 
8566   # Publish this variable in the help.
8567 
8568 
8569   if test "x$PRINTF" = x; then
8570     # The variable is not set by user, try to locate tool using the code snippet
8571     for ac_prog in printf
8572 do
8573   # Extract the first word of "$ac_prog", so it can be a program name with args.
8574 set dummy $ac_prog; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if ${ac_cv_path_PRINTF+:} false; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   case $PRINTF in
8581   [\\/]* | ?:[\\/]*)
8582   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8583   ;;
8584   *)
8585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588   IFS=$as_save_IFS
8589   test -z "$as_dir" && as_dir=.
8590     for ac_exec_ext in '' $ac_executable_extensions; do
8591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594     break 2
8595   fi
8596 done
8597   done
8598 IFS=$as_save_IFS
8599 
8600   ;;
8601 esac
8602 fi
8603 PRINTF=$ac_cv_path_PRINTF
8604 if test -n "$PRINTF"; then
8605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8606 $as_echo "$PRINTF" >&6; }
8607 else
8608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8610 fi
8611 
8612 
8613   test -n "$PRINTF" && break
8614 done
8615 
8616   else
8617     # The variable is set, but is it from the command line or the environment?
8618 
8619     # Try to remove the string !PRINTF! from our list.
8620     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8621     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8622       # If it failed, the variable was not from the command line. Ignore it,
8623       # but warn the user (except for BASH, which is always set by the calling BASH).
8624       if test "xPRINTF" != xBASH; then
8625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8626 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8627       fi
8628       # Try to locate tool using the code snippet
8629       for ac_prog in printf
8630 do
8631   # Extract the first word of "$ac_prog", so it can be a program name with args.
8632 set dummy $ac_prog; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if ${ac_cv_path_PRINTF+:} false; then :
8636   $as_echo_n "(cached) " >&6
8637 else
8638   case $PRINTF in
8639   [\\/]* | ?:[\\/]*)
8640   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8641   ;;
8642   *)
8643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646   IFS=$as_save_IFS
8647   test -z "$as_dir" && as_dir=.
8648     for ac_exec_ext in '' $ac_executable_extensions; do
8649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8650     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652     break 2
8653   fi
8654 done
8655   done
8656 IFS=$as_save_IFS
8657 
8658   ;;
8659 esac
8660 fi
8661 PRINTF=$ac_cv_path_PRINTF
8662 if test -n "$PRINTF"; then
8663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8664 $as_echo "$PRINTF" >&6; }
8665 else
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8668 fi
8669 
8670 
8671   test -n "$PRINTF" && break
8672 done
8673 
8674     else
8675       # If it succeeded, then it was overridden by the user. We will use it
8676       # for the tool.
8677 
8678       # First remove it from the list of overridden variables, so we can test
8679       # for unknown variables in the end.
8680       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8681 
8682       # Check if the provided tool contains a complete path.
8683       tool_specified="$PRINTF"
8684       tool_basename="${tool_specified##*/}"
8685       if test "x$tool_basename" = "x$tool_specified"; then
8686         # A command without a complete path is provided, search $PATH.
8687         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8688 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8689         # Extract the first word of "$tool_basename", so it can be a program name with args.
8690 set dummy $tool_basename; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_path_PRINTF+:} false; then :
8694   $as_echo_n "(cached) " >&6
8695 else
8696   case $PRINTF in
8697   [\\/]* | ?:[\\/]*)
8698   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8699   ;;
8700   *)
8701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8703 do
8704   IFS=$as_save_IFS
8705   test -z "$as_dir" && as_dir=.
8706     for ac_exec_ext in '' $ac_executable_extensions; do
8707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8708     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710     break 2
8711   fi
8712 done
8713   done
8714 IFS=$as_save_IFS
8715 
8716   ;;
8717 esac
8718 fi
8719 PRINTF=$ac_cv_path_PRINTF
8720 if test -n "$PRINTF"; then
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8722 $as_echo "$PRINTF" >&6; }
8723 else
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8726 fi
8727 
8728 
8729         if test "x$PRINTF" = x; then
8730           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8731         fi
8732       else
8733         # Otherwise we believe it is a complete path. Use it as it is.
8734         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8735 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8737 $as_echo_n "checking for PRINTF... " >&6; }
8738         if test ! -x "$tool_specified"; then
8739           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8740 $as_echo "not found" >&6; }
8741           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8742         fi
8743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8744 $as_echo "$tool_specified" >&6; }
8745       fi
8746     fi
8747   fi
8748 
8749 
8750 
8751   if test "x$PRINTF" = x; then
8752     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8753   fi
8754 
8755 
8756 
8757 
8758 
8759   # Publish this variable in the help.
8760 
8761 
8762   if test "x$RM" = x; then
8763     # The variable is not set by user, try to locate tool using the code snippet
8764     for ac_prog in rm
8765 do
8766   # Extract the first word of "$ac_prog", so it can be a program name with args.
8767 set dummy $ac_prog; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_path_RM+:} false; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   case $RM in
8774   [\\/]* | ?:[\\/]*)
8775   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8776   ;;
8777   *)
8778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8780 do
8781   IFS=$as_save_IFS
8782   test -z "$as_dir" && as_dir=.
8783     for ac_exec_ext in '' $ac_executable_extensions; do
8784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787     break 2
8788   fi
8789 done
8790   done
8791 IFS=$as_save_IFS
8792 
8793   ;;
8794 esac
8795 fi
8796 RM=$ac_cv_path_RM
8797 if test -n "$RM"; then
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8799 $as_echo "$RM" >&6; }
8800 else
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8803 fi
8804 
8805 
8806   test -n "$RM" && break
8807 done
8808 
8809   else
8810     # The variable is set, but is it from the command line or the environment?
8811 
8812     # Try to remove the string !RM! from our list.
8813     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8814     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8815       # If it failed, the variable was not from the command line. Ignore it,
8816       # but warn the user (except for BASH, which is always set by the calling BASH).
8817       if test "xRM" != xBASH; then
8818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8819 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8820       fi
8821       # Try to locate tool using the code snippet
8822       for ac_prog in rm
8823 do
8824   # Extract the first word of "$ac_prog", so it can be a program name with args.
8825 set dummy $ac_prog; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_path_RM+:} false; then :
8829   $as_echo_n "(cached) " >&6
8830 else
8831   case $RM in
8832   [\\/]* | ?:[\\/]*)
8833   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8834   ;;
8835   *)
8836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839   IFS=$as_save_IFS
8840   test -z "$as_dir" && as_dir=.
8841     for ac_exec_ext in '' $ac_executable_extensions; do
8842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8843     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845     break 2
8846   fi
8847 done
8848   done
8849 IFS=$as_save_IFS
8850 
8851   ;;
8852 esac
8853 fi
8854 RM=$ac_cv_path_RM
8855 if test -n "$RM"; then
8856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8857 $as_echo "$RM" >&6; }
8858 else
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8861 fi
8862 
8863 
8864   test -n "$RM" && break
8865 done
8866 
8867     else
8868       # If it succeeded, then it was overridden by the user. We will use it
8869       # for the tool.
8870 
8871       # First remove it from the list of overridden variables, so we can test
8872       # for unknown variables in the end.
8873       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8874 
8875       # Check if the provided tool contains a complete path.
8876       tool_specified="$RM"
8877       tool_basename="${tool_specified##*/}"
8878       if test "x$tool_basename" = "x$tool_specified"; then
8879         # A command without a complete path is provided, search $PATH.
8880         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8881 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8882         # Extract the first word of "$tool_basename", so it can be a program name with args.
8883 set dummy $tool_basename; ac_word=$2
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885 $as_echo_n "checking for $ac_word... " >&6; }
8886 if ${ac_cv_path_RM+:} false; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   case $RM in
8890   [\\/]* | ?:[\\/]*)
8891   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8892   ;;
8893   *)
8894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8896 do
8897   IFS=$as_save_IFS
8898   test -z "$as_dir" && as_dir=.
8899     for ac_exec_ext in '' $ac_executable_extensions; do
8900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8901     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903     break 2
8904   fi
8905 done
8906   done
8907 IFS=$as_save_IFS
8908 
8909   ;;
8910 esac
8911 fi
8912 RM=$ac_cv_path_RM
8913 if test -n "$RM"; then
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8915 $as_echo "$RM" >&6; }
8916 else
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8919 fi
8920 
8921 
8922         if test "x$RM" = x; then
8923           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8924         fi
8925       else
8926         # Otherwise we believe it is a complete path. Use it as it is.
8927         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8928 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8930 $as_echo_n "checking for RM... " >&6; }
8931         if test ! -x "$tool_specified"; then
8932           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8933 $as_echo "not found" >&6; }
8934           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8935         fi
8936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8937 $as_echo "$tool_specified" >&6; }
8938       fi
8939     fi
8940   fi
8941 
8942 
8943 
8944   if test "x$RM" = x; then
8945     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8946   fi
8947 
8948 
8949 
8950 
8951 
8952   # Publish this variable in the help.
8953 
8954 
8955   if test "x$SH" = x; then
8956     # The variable is not set by user, try to locate tool using the code snippet
8957     for ac_prog in sh
8958 do
8959   # Extract the first word of "$ac_prog", so it can be a program name with args.
8960 set dummy $ac_prog; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if ${ac_cv_path_SH+:} false; then :
8964   $as_echo_n "(cached) " >&6
8965 else
8966   case $SH in
8967   [\\/]* | ?:[\\/]*)
8968   ac_cv_path_SH="$SH" # Let the user override the test with a path.
8969   ;;
8970   *)
8971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8973 do
8974   IFS=$as_save_IFS
8975   test -z "$as_dir" && as_dir=.
8976     for ac_exec_ext in '' $ac_executable_extensions; do
8977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8978     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
8979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980     break 2
8981   fi
8982 done
8983   done
8984 IFS=$as_save_IFS
8985 
8986   ;;
8987 esac
8988 fi
8989 SH=$ac_cv_path_SH
8990 if test -n "$SH"; then
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
8992 $as_echo "$SH" >&6; }
8993 else
8994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
8996 fi
8997 
8998 
8999   test -n "$SH" && break
9000 done
9001 
9002   else
9003     # The variable is set, but is it from the command line or the environment?
9004 
9005     # Try to remove the string !SH! from our list.
9006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9008       # If it failed, the variable was not from the command line. Ignore it,
9009       # but warn the user (except for BASH, which is always set by the calling BASH).
9010       if test "xSH" != xBASH; then
9011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9012 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9013       fi
9014       # Try to locate tool using the code snippet
9015       for ac_prog in sh
9016 do
9017   # Extract the first word of "$ac_prog", so it can be a program name with args.
9018 set dummy $ac_prog; ac_word=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if ${ac_cv_path_SH+:} false; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024   case $SH in
9025   [\\/]* | ?:[\\/]*)
9026   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9027   ;;
9028   *)
9029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9031 do
9032   IFS=$as_save_IFS
9033   test -z "$as_dir" && as_dir=.
9034     for ac_exec_ext in '' $ac_executable_extensions; do
9035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9036     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038     break 2
9039   fi
9040 done
9041   done
9042 IFS=$as_save_IFS
9043 
9044   ;;
9045 esac
9046 fi
9047 SH=$ac_cv_path_SH
9048 if test -n "$SH"; then
9049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9050 $as_echo "$SH" >&6; }
9051 else
9052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053 $as_echo "no" >&6; }
9054 fi
9055 
9056 
9057   test -n "$SH" && break
9058 done
9059 
9060     else
9061       # If it succeeded, then it was overridden by the user. We will use it
9062       # for the tool.
9063 
9064       # First remove it from the list of overridden variables, so we can test
9065       # for unknown variables in the end.
9066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9067 
9068       # Check if the provided tool contains a complete path.
9069       tool_specified="$SH"
9070       tool_basename="${tool_specified##*/}"
9071       if test "x$tool_basename" = "x$tool_specified"; then
9072         # A command without a complete path is provided, search $PATH.
9073         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9074 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9075         # Extract the first word of "$tool_basename", so it can be a program name with args.
9076 set dummy $tool_basename; ac_word=$2
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078 $as_echo_n "checking for $ac_word... " >&6; }
9079 if ${ac_cv_path_SH+:} false; then :
9080   $as_echo_n "(cached) " >&6
9081 else
9082   case $SH in
9083   [\\/]* | ?:[\\/]*)
9084   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9085   ;;
9086   *)
9087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9088 for as_dir in $PATH
9089 do
9090   IFS=$as_save_IFS
9091   test -z "$as_dir" && as_dir=.
9092     for ac_exec_ext in '' $ac_executable_extensions; do
9093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096     break 2
9097   fi
9098 done
9099   done
9100 IFS=$as_save_IFS
9101 
9102   ;;
9103 esac
9104 fi
9105 SH=$ac_cv_path_SH
9106 if test -n "$SH"; then
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9108 $as_echo "$SH" >&6; }
9109 else
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9112 fi
9113 
9114 
9115         if test "x$SH" = x; then
9116           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9117         fi
9118       else
9119         # Otherwise we believe it is a complete path. Use it as it is.
9120         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9121 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9123 $as_echo_n "checking for SH... " >&6; }
9124         if test ! -x "$tool_specified"; then
9125           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9126 $as_echo "not found" >&6; }
9127           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9128         fi
9129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9130 $as_echo "$tool_specified" >&6; }
9131       fi
9132     fi
9133   fi
9134 
9135 
9136 
9137   if test "x$SH" = x; then
9138     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9139   fi
9140 
9141 
9142 
9143 
9144 
9145   # Publish this variable in the help.
9146 
9147 
9148   if test "x$SORT" = x; then
9149     # The variable is not set by user, try to locate tool using the code snippet
9150     for ac_prog in sort
9151 do
9152   # Extract the first word of "$ac_prog", so it can be a program name with args.
9153 set dummy $ac_prog; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_path_SORT+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   case $SORT in
9160   [\\/]* | ?:[\\/]*)
9161   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9162   ;;
9163   *)
9164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167   IFS=$as_save_IFS
9168   test -z "$as_dir" && as_dir=.
9169     for ac_exec_ext in '' $ac_executable_extensions; do
9170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173     break 2
9174   fi
9175 done
9176   done
9177 IFS=$as_save_IFS
9178 
9179   ;;
9180 esac
9181 fi
9182 SORT=$ac_cv_path_SORT
9183 if test -n "$SORT"; then
9184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9185 $as_echo "$SORT" >&6; }
9186 else
9187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9189 fi
9190 
9191 
9192   test -n "$SORT" && break
9193 done
9194 
9195   else
9196     # The variable is set, but is it from the command line or the environment?
9197 
9198     # Try to remove the string !SORT! from our list.
9199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9201       # If it failed, the variable was not from the command line. Ignore it,
9202       # but warn the user (except for BASH, which is always set by the calling BASH).
9203       if test "xSORT" != xBASH; then
9204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9205 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9206       fi
9207       # Try to locate tool using the code snippet
9208       for ac_prog in sort
9209 do
9210   # Extract the first word of "$ac_prog", so it can be a program name with args.
9211 set dummy $ac_prog; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_path_SORT+:} false; then :
9215   $as_echo_n "(cached) " >&6
9216 else
9217   case $SORT in
9218   [\\/]* | ?:[\\/]*)
9219   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9220   ;;
9221   *)
9222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in $PATH
9224 do
9225   IFS=$as_save_IFS
9226   test -z "$as_dir" && as_dir=.
9227     for ac_exec_ext in '' $ac_executable_extensions; do
9228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9229     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9231     break 2
9232   fi
9233 done
9234   done
9235 IFS=$as_save_IFS
9236 
9237   ;;
9238 esac
9239 fi
9240 SORT=$ac_cv_path_SORT
9241 if test -n "$SORT"; then
9242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9243 $as_echo "$SORT" >&6; }
9244 else
9245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9247 fi
9248 
9249 
9250   test -n "$SORT" && break
9251 done
9252 
9253     else
9254       # If it succeeded, then it was overridden by the user. We will use it
9255       # for the tool.
9256 
9257       # First remove it from the list of overridden variables, so we can test
9258       # for unknown variables in the end.
9259       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9260 
9261       # Check if the provided tool contains a complete path.
9262       tool_specified="$SORT"
9263       tool_basename="${tool_specified##*/}"
9264       if test "x$tool_basename" = "x$tool_specified"; then
9265         # A command without a complete path is provided, search $PATH.
9266         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9267 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9268         # Extract the first word of "$tool_basename", so it can be a program name with args.
9269 set dummy $tool_basename; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if ${ac_cv_path_SORT+:} false; then :
9273   $as_echo_n "(cached) " >&6
9274 else
9275   case $SORT in
9276   [\\/]* | ?:[\\/]*)
9277   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9278   ;;
9279   *)
9280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $PATH
9282 do
9283   IFS=$as_save_IFS
9284   test -z "$as_dir" && as_dir=.
9285     for ac_exec_ext in '' $ac_executable_extensions; do
9286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289     break 2
9290   fi
9291 done
9292   done
9293 IFS=$as_save_IFS
9294 
9295   ;;
9296 esac
9297 fi
9298 SORT=$ac_cv_path_SORT
9299 if test -n "$SORT"; then
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9301 $as_echo "$SORT" >&6; }
9302 else
9303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9305 fi
9306 
9307 
9308         if test "x$SORT" = x; then
9309           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9310         fi
9311       else
9312         # Otherwise we believe it is a complete path. Use it as it is.
9313         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9314 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9316 $as_echo_n "checking for SORT... " >&6; }
9317         if test ! -x "$tool_specified"; then
9318           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9319 $as_echo "not found" >&6; }
9320           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9321         fi
9322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9323 $as_echo "$tool_specified" >&6; }
9324       fi
9325     fi
9326   fi
9327 
9328 
9329 
9330   if test "x$SORT" = x; then
9331     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9332   fi
9333 
9334 
9335 
9336 
9337 
9338   # Publish this variable in the help.
9339 
9340 
9341   if test "x$TAIL" = x; then
9342     # The variable is not set by user, try to locate tool using the code snippet
9343     for ac_prog in tail
9344 do
9345   # Extract the first word of "$ac_prog", so it can be a program name with args.
9346 set dummy $ac_prog; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if ${ac_cv_path_TAIL+:} false; then :
9350   $as_echo_n "(cached) " >&6
9351 else
9352   case $TAIL in
9353   [\\/]* | ?:[\\/]*)
9354   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9355   ;;
9356   *)
9357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9359 do
9360   IFS=$as_save_IFS
9361   test -z "$as_dir" && as_dir=.
9362     for ac_exec_ext in '' $ac_executable_extensions; do
9363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366     break 2
9367   fi
9368 done
9369   done
9370 IFS=$as_save_IFS
9371 
9372   ;;
9373 esac
9374 fi
9375 TAIL=$ac_cv_path_TAIL
9376 if test -n "$TAIL"; then
9377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9378 $as_echo "$TAIL" >&6; }
9379 else
9380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382 fi
9383 
9384 
9385   test -n "$TAIL" && break
9386 done
9387 
9388   else
9389     # The variable is set, but is it from the command line or the environment?
9390 
9391     # Try to remove the string !TAIL! from our list.
9392     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9393     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9394       # If it failed, the variable was not from the command line. Ignore it,
9395       # but warn the user (except for BASH, which is always set by the calling BASH).
9396       if test "xTAIL" != xBASH; then
9397         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9398 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9399       fi
9400       # Try to locate tool using the code snippet
9401       for ac_prog in tail
9402 do
9403   # Extract the first word of "$ac_prog", so it can be a program name with args.
9404 set dummy $ac_prog; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_TAIL+:} false; then :
9408   $as_echo_n "(cached) " >&6
9409 else
9410   case $TAIL in
9411   [\\/]* | ?:[\\/]*)
9412   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9413   ;;
9414   *)
9415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in $PATH
9417 do
9418   IFS=$as_save_IFS
9419   test -z "$as_dir" && as_dir=.
9420     for ac_exec_ext in '' $ac_executable_extensions; do
9421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9422     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424     break 2
9425   fi
9426 done
9427   done
9428 IFS=$as_save_IFS
9429 
9430   ;;
9431 esac
9432 fi
9433 TAIL=$ac_cv_path_TAIL
9434 if test -n "$TAIL"; then
9435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9436 $as_echo "$TAIL" >&6; }
9437 else
9438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9440 fi
9441 
9442 
9443   test -n "$TAIL" && break
9444 done
9445 
9446     else
9447       # If it succeeded, then it was overridden by the user. We will use it
9448       # for the tool.
9449 
9450       # First remove it from the list of overridden variables, so we can test
9451       # for unknown variables in the end.
9452       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9453 
9454       # Check if the provided tool contains a complete path.
9455       tool_specified="$TAIL"
9456       tool_basename="${tool_specified##*/}"
9457       if test "x$tool_basename" = "x$tool_specified"; then
9458         # A command without a complete path is provided, search $PATH.
9459         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9460 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9461         # Extract the first word of "$tool_basename", so it can be a program name with args.
9462 set dummy $tool_basename; ac_word=$2
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9464 $as_echo_n "checking for $ac_word... " >&6; }
9465 if ${ac_cv_path_TAIL+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   case $TAIL in
9469   [\\/]* | ?:[\\/]*)
9470   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9471   ;;
9472   *)
9473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 for as_dir in $PATH
9475 do
9476   IFS=$as_save_IFS
9477   test -z "$as_dir" && as_dir=.
9478     for ac_exec_ext in '' $ac_executable_extensions; do
9479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9480     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9482     break 2
9483   fi
9484 done
9485   done
9486 IFS=$as_save_IFS
9487 
9488   ;;
9489 esac
9490 fi
9491 TAIL=$ac_cv_path_TAIL
9492 if test -n "$TAIL"; then
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9494 $as_echo "$TAIL" >&6; }
9495 else
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9498 fi
9499 
9500 
9501         if test "x$TAIL" = x; then
9502           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9503         fi
9504       else
9505         # Otherwise we believe it is a complete path. Use it as it is.
9506         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9507 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9509 $as_echo_n "checking for TAIL... " >&6; }
9510         if test ! -x "$tool_specified"; then
9511           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9512 $as_echo "not found" >&6; }
9513           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9514         fi
9515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9516 $as_echo "$tool_specified" >&6; }
9517       fi
9518     fi
9519   fi
9520 
9521 
9522 
9523   if test "x$TAIL" = x; then
9524     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9525   fi
9526 
9527 
9528 
9529 
9530 
9531   # Publish this variable in the help.
9532 
9533 
9534   if test "x$TAR" = x; then
9535     # The variable is not set by user, try to locate tool using the code snippet
9536     for ac_prog in tar
9537 do
9538   # Extract the first word of "$ac_prog", so it can be a program name with args.
9539 set dummy $ac_prog; ac_word=$2
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541 $as_echo_n "checking for $ac_word... " >&6; }
9542 if ${ac_cv_path_TAR+:} false; then :
9543   $as_echo_n "(cached) " >&6
9544 else
9545   case $TAR in
9546   [\\/]* | ?:[\\/]*)
9547   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9548   ;;
9549   *)
9550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9552 do
9553   IFS=$as_save_IFS
9554   test -z "$as_dir" && as_dir=.
9555     for ac_exec_ext in '' $ac_executable_extensions; do
9556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9557     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9559     break 2
9560   fi
9561 done
9562   done
9563 IFS=$as_save_IFS
9564 
9565   ;;
9566 esac
9567 fi
9568 TAR=$ac_cv_path_TAR
9569 if test -n "$TAR"; then
9570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9571 $as_echo "$TAR" >&6; }
9572 else
9573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574 $as_echo "no" >&6; }
9575 fi
9576 
9577 
9578   test -n "$TAR" && break
9579 done
9580 
9581   else
9582     # The variable is set, but is it from the command line or the environment?
9583 
9584     # Try to remove the string !TAR! from our list.
9585     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9586     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9587       # If it failed, the variable was not from the command line. Ignore it,
9588       # but warn the user (except for BASH, which is always set by the calling BASH).
9589       if test "xTAR" != xBASH; then
9590         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9591 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9592       fi
9593       # Try to locate tool using the code snippet
9594       for ac_prog in tar
9595 do
9596   # Extract the first word of "$ac_prog", so it can be a program name with args.
9597 set dummy $ac_prog; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if ${ac_cv_path_TAR+:} false; then :
9601   $as_echo_n "(cached) " >&6
9602 else
9603   case $TAR in
9604   [\\/]* | ?:[\\/]*)
9605   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9606   ;;
9607   *)
9608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9610 do
9611   IFS=$as_save_IFS
9612   test -z "$as_dir" && as_dir=.
9613     for ac_exec_ext in '' $ac_executable_extensions; do
9614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617     break 2
9618   fi
9619 done
9620   done
9621 IFS=$as_save_IFS
9622 
9623   ;;
9624 esac
9625 fi
9626 TAR=$ac_cv_path_TAR
9627 if test -n "$TAR"; then
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9629 $as_echo "$TAR" >&6; }
9630 else
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633 fi
9634 
9635 
9636   test -n "$TAR" && break
9637 done
9638 
9639     else
9640       # If it succeeded, then it was overridden by the user. We will use it
9641       # for the tool.
9642 
9643       # First remove it from the list of overridden variables, so we can test
9644       # for unknown variables in the end.
9645       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9646 
9647       # Check if the provided tool contains a complete path.
9648       tool_specified="$TAR"
9649       tool_basename="${tool_specified##*/}"
9650       if test "x$tool_basename" = "x$tool_specified"; then
9651         # A command without a complete path is provided, search $PATH.
9652         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9653 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9654         # Extract the first word of "$tool_basename", so it can be a program name with args.
9655 set dummy $tool_basename; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if ${ac_cv_path_TAR+:} false; then :
9659   $as_echo_n "(cached) " >&6
9660 else
9661   case $TAR in
9662   [\\/]* | ?:[\\/]*)
9663   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9664   ;;
9665   *)
9666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9668 do
9669   IFS=$as_save_IFS
9670   test -z "$as_dir" && as_dir=.
9671     for ac_exec_ext in '' $ac_executable_extensions; do
9672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675     break 2
9676   fi
9677 done
9678   done
9679 IFS=$as_save_IFS
9680 
9681   ;;
9682 esac
9683 fi
9684 TAR=$ac_cv_path_TAR
9685 if test -n "$TAR"; then
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9687 $as_echo "$TAR" >&6; }
9688 else
9689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9691 fi
9692 
9693 
9694         if test "x$TAR" = x; then
9695           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9696         fi
9697       else
9698         # Otherwise we believe it is a complete path. Use it as it is.
9699         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9700 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9702 $as_echo_n "checking for TAR... " >&6; }
9703         if test ! -x "$tool_specified"; then
9704           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9705 $as_echo "not found" >&6; }
9706           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9707         fi
9708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9709 $as_echo "$tool_specified" >&6; }
9710       fi
9711     fi
9712   fi
9713 
9714 
9715 
9716   if test "x$TAR" = x; then
9717     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9718   fi
9719 
9720 
9721 
9722 
9723 
9724   # Publish this variable in the help.
9725 
9726 
9727   if test "x$TEE" = x; then
9728     # The variable is not set by user, try to locate tool using the code snippet
9729     for ac_prog in tee
9730 do
9731   # Extract the first word of "$ac_prog", so it can be a program name with args.
9732 set dummy $ac_prog; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if ${ac_cv_path_TEE+:} false; then :
9736   $as_echo_n "(cached) " >&6
9737 else
9738   case $TEE in
9739   [\\/]* | ?:[\\/]*)
9740   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9741   ;;
9742   *)
9743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 for as_dir in $PATH
9745 do
9746   IFS=$as_save_IFS
9747   test -z "$as_dir" && as_dir=.
9748     for ac_exec_ext in '' $ac_executable_extensions; do
9749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9750     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752     break 2
9753   fi
9754 done
9755   done
9756 IFS=$as_save_IFS
9757 
9758   ;;
9759 esac
9760 fi
9761 TEE=$ac_cv_path_TEE
9762 if test -n "$TEE"; then
9763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9764 $as_echo "$TEE" >&6; }
9765 else
9766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9768 fi
9769 
9770 
9771   test -n "$TEE" && break
9772 done
9773 
9774   else
9775     # The variable is set, but is it from the command line or the environment?
9776 
9777     # Try to remove the string !TEE! from our list.
9778     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9779     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9780       # If it failed, the variable was not from the command line. Ignore it,
9781       # but warn the user (except for BASH, which is always set by the calling BASH).
9782       if test "xTEE" != xBASH; then
9783         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9784 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9785       fi
9786       # Try to locate tool using the code snippet
9787       for ac_prog in tee
9788 do
9789   # Extract the first word of "$ac_prog", so it can be a program name with args.
9790 set dummy $ac_prog; ac_word=$2
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9792 $as_echo_n "checking for $ac_word... " >&6; }
9793 if ${ac_cv_path_TEE+:} false; then :
9794   $as_echo_n "(cached) " >&6
9795 else
9796   case $TEE in
9797   [\\/]* | ?:[\\/]*)
9798   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9799   ;;
9800   *)
9801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9803 do
9804   IFS=$as_save_IFS
9805   test -z "$as_dir" && as_dir=.
9806     for ac_exec_ext in '' $ac_executable_extensions; do
9807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810     break 2
9811   fi
9812 done
9813   done
9814 IFS=$as_save_IFS
9815 
9816   ;;
9817 esac
9818 fi
9819 TEE=$ac_cv_path_TEE
9820 if test -n "$TEE"; then
9821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9822 $as_echo "$TEE" >&6; }
9823 else
9824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9826 fi
9827 
9828 
9829   test -n "$TEE" && break
9830 done
9831 
9832     else
9833       # If it succeeded, then it was overridden by the user. We will use it
9834       # for the tool.
9835 
9836       # First remove it from the list of overridden variables, so we can test
9837       # for unknown variables in the end.
9838       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9839 
9840       # Check if the provided tool contains a complete path.
9841       tool_specified="$TEE"
9842       tool_basename="${tool_specified##*/}"
9843       if test "x$tool_basename" = "x$tool_specified"; then
9844         # A command without a complete path is provided, search $PATH.
9845         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9846 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9847         # Extract the first word of "$tool_basename", so it can be a program name with args.
9848 set dummy $tool_basename; ac_word=$2
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850 $as_echo_n "checking for $ac_word... " >&6; }
9851 if ${ac_cv_path_TEE+:} false; then :
9852   $as_echo_n "(cached) " >&6
9853 else
9854   case $TEE in
9855   [\\/]* | ?:[\\/]*)
9856   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9857   ;;
9858   *)
9859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH
9861 do
9862   IFS=$as_save_IFS
9863   test -z "$as_dir" && as_dir=.
9864     for ac_exec_ext in '' $ac_executable_extensions; do
9865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9866     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868     break 2
9869   fi
9870 done
9871   done
9872 IFS=$as_save_IFS
9873 
9874   ;;
9875 esac
9876 fi
9877 TEE=$ac_cv_path_TEE
9878 if test -n "$TEE"; then
9879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9880 $as_echo "$TEE" >&6; }
9881 else
9882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9884 fi
9885 
9886 
9887         if test "x$TEE" = x; then
9888           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9889         fi
9890       else
9891         # Otherwise we believe it is a complete path. Use it as it is.
9892         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9893 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9895 $as_echo_n "checking for TEE... " >&6; }
9896         if test ! -x "$tool_specified"; then
9897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9898 $as_echo "not found" >&6; }
9899           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9900         fi
9901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9902 $as_echo "$tool_specified" >&6; }
9903       fi
9904     fi
9905   fi
9906 
9907 
9908 
9909   if test "x$TEE" = x; then
9910     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9911   fi
9912 
9913 
9914 
9915 
9916 
9917   # Publish this variable in the help.
9918 
9919 
9920   if test "x$TOUCH" = x; then
9921     # The variable is not set by user, try to locate tool using the code snippet
9922     for ac_prog in touch
9923 do
9924   # Extract the first word of "$ac_prog", so it can be a program name with args.
9925 set dummy $ac_prog; ac_word=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if ${ac_cv_path_TOUCH+:} false; then :
9929   $as_echo_n "(cached) " >&6
9930 else
9931   case $TOUCH in
9932   [\\/]* | ?:[\\/]*)
9933   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9934   ;;
9935   *)
9936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9938 do
9939   IFS=$as_save_IFS
9940   test -z "$as_dir" && as_dir=.
9941     for ac_exec_ext in '' $ac_executable_extensions; do
9942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945     break 2
9946   fi
9947 done
9948   done
9949 IFS=$as_save_IFS
9950 
9951   ;;
9952 esac
9953 fi
9954 TOUCH=$ac_cv_path_TOUCH
9955 if test -n "$TOUCH"; then
9956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9957 $as_echo "$TOUCH" >&6; }
9958 else
9959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9961 fi
9962 
9963 
9964   test -n "$TOUCH" && break
9965 done
9966 
9967   else
9968     # The variable is set, but is it from the command line or the environment?
9969 
9970     # Try to remove the string !TOUCH! from our list.
9971     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
9972     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9973       # If it failed, the variable was not from the command line. Ignore it,
9974       # but warn the user (except for BASH, which is always set by the calling BASH).
9975       if test "xTOUCH" != xBASH; then
9976         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
9977 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
9978       fi
9979       # Try to locate tool using the code snippet
9980       for ac_prog in touch
9981 do
9982   # Extract the first word of "$ac_prog", so it can be a program name with args.
9983 set dummy $ac_prog; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_path_TOUCH+:} false; then :
9987   $as_echo_n "(cached) " >&6
9988 else
9989   case $TOUCH in
9990   [\\/]* | ?:[\\/]*)
9991   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9992   ;;
9993   *)
9994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997   IFS=$as_save_IFS
9998   test -z "$as_dir" && as_dir=.
9999     for ac_exec_ext in '' $ac_executable_extensions; do
10000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003     break 2
10004   fi
10005 done
10006   done
10007 IFS=$as_save_IFS
10008 
10009   ;;
10010 esac
10011 fi
10012 TOUCH=$ac_cv_path_TOUCH
10013 if test -n "$TOUCH"; then
10014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10015 $as_echo "$TOUCH" >&6; }
10016 else
10017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10018 $as_echo "no" >&6; }
10019 fi
10020 
10021 
10022   test -n "$TOUCH" && break
10023 done
10024 
10025     else
10026       # If it succeeded, then it was overridden by the user. We will use it
10027       # for the tool.
10028 
10029       # First remove it from the list of overridden variables, so we can test
10030       # for unknown variables in the end.
10031       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10032 
10033       # Check if the provided tool contains a complete path.
10034       tool_specified="$TOUCH"
10035       tool_basename="${tool_specified##*/}"
10036       if test "x$tool_basename" = "x$tool_specified"; then
10037         # A command without a complete path is provided, search $PATH.
10038         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10039 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10040         # Extract the first word of "$tool_basename", so it can be a program name with args.
10041 set dummy $tool_basename; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if ${ac_cv_path_TOUCH+:} false; then :
10045   $as_echo_n "(cached) " >&6
10046 else
10047   case $TOUCH in
10048   [\\/]* | ?:[\\/]*)
10049   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10050   ;;
10051   *)
10052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10054 do
10055   IFS=$as_save_IFS
10056   test -z "$as_dir" && as_dir=.
10057     for ac_exec_ext in '' $ac_executable_extensions; do
10058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10059     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061     break 2
10062   fi
10063 done
10064   done
10065 IFS=$as_save_IFS
10066 
10067   ;;
10068 esac
10069 fi
10070 TOUCH=$ac_cv_path_TOUCH
10071 if test -n "$TOUCH"; then
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10073 $as_echo "$TOUCH" >&6; }
10074 else
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078 
10079 
10080         if test "x$TOUCH" = x; then
10081           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10082         fi
10083       else
10084         # Otherwise we believe it is a complete path. Use it as it is.
10085         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10086 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10088 $as_echo_n "checking for TOUCH... " >&6; }
10089         if test ! -x "$tool_specified"; then
10090           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10091 $as_echo "not found" >&6; }
10092           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10093         fi
10094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10095 $as_echo "$tool_specified" >&6; }
10096       fi
10097     fi
10098   fi
10099 
10100 
10101 
10102   if test "x$TOUCH" = x; then
10103     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10104   fi
10105 
10106 
10107 
10108 
10109 
10110   # Publish this variable in the help.
10111 
10112 
10113   if test "x$TR" = x; then
10114     # The variable is not set by user, try to locate tool using the code snippet
10115     for ac_prog in tr
10116 do
10117   # Extract the first word of "$ac_prog", so it can be a program name with args.
10118 set dummy $ac_prog; ac_word=$2
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10120 $as_echo_n "checking for $ac_word... " >&6; }
10121 if ${ac_cv_path_TR+:} false; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   case $TR in
10125   [\\/]* | ?:[\\/]*)
10126   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10127   ;;
10128   *)
10129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10131 do
10132   IFS=$as_save_IFS
10133   test -z "$as_dir" && as_dir=.
10134     for ac_exec_ext in '' $ac_executable_extensions; do
10135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138     break 2
10139   fi
10140 done
10141   done
10142 IFS=$as_save_IFS
10143 
10144   ;;
10145 esac
10146 fi
10147 TR=$ac_cv_path_TR
10148 if test -n "$TR"; then
10149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10150 $as_echo "$TR" >&6; }
10151 else
10152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10154 fi
10155 
10156 
10157   test -n "$TR" && break
10158 done
10159 
10160   else
10161     # The variable is set, but is it from the command line or the environment?
10162 
10163     # Try to remove the string !TR! from our list.
10164     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10165     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10166       # If it failed, the variable was not from the command line. Ignore it,
10167       # but warn the user (except for BASH, which is always set by the calling BASH).
10168       if test "xTR" != xBASH; then
10169         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10170 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10171       fi
10172       # Try to locate tool using the code snippet
10173       for ac_prog in tr
10174 do
10175   # Extract the first word of "$ac_prog", so it can be a program name with args.
10176 set dummy $ac_prog; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_path_TR+:} false; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   case $TR in
10183   [\\/]* | ?:[\\/]*)
10184   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10185   ;;
10186   *)
10187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10189 do
10190   IFS=$as_save_IFS
10191   test -z "$as_dir" && as_dir=.
10192     for ac_exec_ext in '' $ac_executable_extensions; do
10193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196     break 2
10197   fi
10198 done
10199   done
10200 IFS=$as_save_IFS
10201 
10202   ;;
10203 esac
10204 fi
10205 TR=$ac_cv_path_TR
10206 if test -n "$TR"; then
10207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10208 $as_echo "$TR" >&6; }
10209 else
10210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10212 fi
10213 
10214 
10215   test -n "$TR" && break
10216 done
10217 
10218     else
10219       # If it succeeded, then it was overridden by the user. We will use it
10220       # for the tool.
10221 
10222       # First remove it from the list of overridden variables, so we can test
10223       # for unknown variables in the end.
10224       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10225 
10226       # Check if the provided tool contains a complete path.
10227       tool_specified="$TR"
10228       tool_basename="${tool_specified##*/}"
10229       if test "x$tool_basename" = "x$tool_specified"; then
10230         # A command without a complete path is provided, search $PATH.
10231         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10232 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10233         # Extract the first word of "$tool_basename", so it can be a program name with args.
10234 set dummy $tool_basename; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if ${ac_cv_path_TR+:} false; then :
10238   $as_echo_n "(cached) " >&6
10239 else
10240   case $TR in
10241   [\\/]* | ?:[\\/]*)
10242   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10243   ;;
10244   *)
10245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246 for as_dir in $PATH
10247 do
10248   IFS=$as_save_IFS
10249   test -z "$as_dir" && as_dir=.
10250     for ac_exec_ext in '' $ac_executable_extensions; do
10251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10252     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254     break 2
10255   fi
10256 done
10257   done
10258 IFS=$as_save_IFS
10259 
10260   ;;
10261 esac
10262 fi
10263 TR=$ac_cv_path_TR
10264 if test -n "$TR"; then
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10266 $as_echo "$TR" >&6; }
10267 else
10268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10270 fi
10271 
10272 
10273         if test "x$TR" = x; then
10274           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10275         fi
10276       else
10277         # Otherwise we believe it is a complete path. Use it as it is.
10278         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10279 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10281 $as_echo_n "checking for TR... " >&6; }
10282         if test ! -x "$tool_specified"; then
10283           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10284 $as_echo "not found" >&6; }
10285           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10286         fi
10287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10288 $as_echo "$tool_specified" >&6; }
10289       fi
10290     fi
10291   fi
10292 
10293 
10294 
10295   if test "x$TR" = x; then
10296     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10297   fi
10298 
10299 
10300 
10301 
10302 
10303   # Publish this variable in the help.
10304 
10305 
10306   if test "x$UNAME" = x; then
10307     # The variable is not set by user, try to locate tool using the code snippet
10308     for ac_prog in uname
10309 do
10310   # Extract the first word of "$ac_prog", so it can be a program name with args.
10311 set dummy $ac_prog; ac_word=$2
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10313 $as_echo_n "checking for $ac_word... " >&6; }
10314 if ${ac_cv_path_UNAME+:} false; then :
10315   $as_echo_n "(cached) " >&6
10316 else
10317   case $UNAME in
10318   [\\/]* | ?:[\\/]*)
10319   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10320   ;;
10321   *)
10322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10324 do
10325   IFS=$as_save_IFS
10326   test -z "$as_dir" && as_dir=.
10327     for ac_exec_ext in '' $ac_executable_extensions; do
10328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331     break 2
10332   fi
10333 done
10334   done
10335 IFS=$as_save_IFS
10336 
10337   ;;
10338 esac
10339 fi
10340 UNAME=$ac_cv_path_UNAME
10341 if test -n "$UNAME"; then
10342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10343 $as_echo "$UNAME" >&6; }
10344 else
10345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10347 fi
10348 
10349 
10350   test -n "$UNAME" && break
10351 done
10352 
10353   else
10354     # The variable is set, but is it from the command line or the environment?
10355 
10356     # Try to remove the string !UNAME! from our list.
10357     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10358     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10359       # If it failed, the variable was not from the command line. Ignore it,
10360       # but warn the user (except for BASH, which is always set by the calling BASH).
10361       if test "xUNAME" != xBASH; then
10362         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10363 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10364       fi
10365       # Try to locate tool using the code snippet
10366       for ac_prog in uname
10367 do
10368   # Extract the first word of "$ac_prog", so it can be a program name with args.
10369 set dummy $ac_prog; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if ${ac_cv_path_UNAME+:} false; then :
10373   $as_echo_n "(cached) " >&6
10374 else
10375   case $UNAME in
10376   [\\/]* | ?:[\\/]*)
10377   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10378   ;;
10379   *)
10380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10382 do
10383   IFS=$as_save_IFS
10384   test -z "$as_dir" && as_dir=.
10385     for ac_exec_ext in '' $ac_executable_extensions; do
10386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10387     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389     break 2
10390   fi
10391 done
10392   done
10393 IFS=$as_save_IFS
10394 
10395   ;;
10396 esac
10397 fi
10398 UNAME=$ac_cv_path_UNAME
10399 if test -n "$UNAME"; then
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10401 $as_echo "$UNAME" >&6; }
10402 else
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406 
10407 
10408   test -n "$UNAME" && break
10409 done
10410 
10411     else
10412       # If it succeeded, then it was overridden by the user. We will use it
10413       # for the tool.
10414 
10415       # First remove it from the list of overridden variables, so we can test
10416       # for unknown variables in the end.
10417       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10418 
10419       # Check if the provided tool contains a complete path.
10420       tool_specified="$UNAME"
10421       tool_basename="${tool_specified##*/}"
10422       if test "x$tool_basename" = "x$tool_specified"; then
10423         # A command without a complete path is provided, search $PATH.
10424         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10425 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10426         # Extract the first word of "$tool_basename", so it can be a program name with args.
10427 set dummy $tool_basename; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if ${ac_cv_path_UNAME+:} false; then :
10431   $as_echo_n "(cached) " >&6
10432 else
10433   case $UNAME in
10434   [\\/]* | ?:[\\/]*)
10435   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10436   ;;
10437   *)
10438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $PATH
10440 do
10441   IFS=$as_save_IFS
10442   test -z "$as_dir" && as_dir=.
10443     for ac_exec_ext in '' $ac_executable_extensions; do
10444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10445     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447     break 2
10448   fi
10449 done
10450   done
10451 IFS=$as_save_IFS
10452 
10453   ;;
10454 esac
10455 fi
10456 UNAME=$ac_cv_path_UNAME
10457 if test -n "$UNAME"; then
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10459 $as_echo "$UNAME" >&6; }
10460 else
10461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10463 fi
10464 
10465 
10466         if test "x$UNAME" = x; then
10467           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10468         fi
10469       else
10470         # Otherwise we believe it is a complete path. Use it as it is.
10471         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10472 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10474 $as_echo_n "checking for UNAME... " >&6; }
10475         if test ! -x "$tool_specified"; then
10476           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10477 $as_echo "not found" >&6; }
10478           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10479         fi
10480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10481 $as_echo "$tool_specified" >&6; }
10482       fi
10483     fi
10484   fi
10485 
10486 
10487 
10488   if test "x$UNAME" = x; then
10489     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10490   fi
10491 
10492 
10493 
10494 
10495 
10496   # Publish this variable in the help.
10497 
10498 
10499   if test "x$UNIQ" = x; then
10500     # The variable is not set by user, try to locate tool using the code snippet
10501     for ac_prog in uniq
10502 do
10503   # Extract the first word of "$ac_prog", so it can be a program name with args.
10504 set dummy $ac_prog; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if ${ac_cv_path_UNIQ+:} false; then :
10508   $as_echo_n "(cached) " >&6
10509 else
10510   case $UNIQ in
10511   [\\/]* | ?:[\\/]*)
10512   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10513   ;;
10514   *)
10515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10517 do
10518   IFS=$as_save_IFS
10519   test -z "$as_dir" && as_dir=.
10520     for ac_exec_ext in '' $ac_executable_extensions; do
10521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524     break 2
10525   fi
10526 done
10527   done
10528 IFS=$as_save_IFS
10529 
10530   ;;
10531 esac
10532 fi
10533 UNIQ=$ac_cv_path_UNIQ
10534 if test -n "$UNIQ"; then
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10536 $as_echo "$UNIQ" >&6; }
10537 else
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10540 fi
10541 
10542 
10543   test -n "$UNIQ" && break
10544 done
10545 
10546   else
10547     # The variable is set, but is it from the command line or the environment?
10548 
10549     # Try to remove the string !UNIQ! from our list.
10550     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10551     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10552       # If it failed, the variable was not from the command line. Ignore it,
10553       # but warn the user (except for BASH, which is always set by the calling BASH).
10554       if test "xUNIQ" != xBASH; then
10555         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10556 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10557       fi
10558       # Try to locate tool using the code snippet
10559       for ac_prog in uniq
10560 do
10561   # Extract the first word of "$ac_prog", so it can be a program name with args.
10562 set dummy $ac_prog; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if ${ac_cv_path_UNIQ+:} false; then :
10566   $as_echo_n "(cached) " >&6
10567 else
10568   case $UNIQ in
10569   [\\/]* | ?:[\\/]*)
10570   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10571   ;;
10572   *)
10573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10575 do
10576   IFS=$as_save_IFS
10577   test -z "$as_dir" && as_dir=.
10578     for ac_exec_ext in '' $ac_executable_extensions; do
10579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10580     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582     break 2
10583   fi
10584 done
10585   done
10586 IFS=$as_save_IFS
10587 
10588   ;;
10589 esac
10590 fi
10591 UNIQ=$ac_cv_path_UNIQ
10592 if test -n "$UNIQ"; then
10593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10594 $as_echo "$UNIQ" >&6; }
10595 else
10596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 fi
10599 
10600 
10601   test -n "$UNIQ" && break
10602 done
10603 
10604     else
10605       # If it succeeded, then it was overridden by the user. We will use it
10606       # for the tool.
10607 
10608       # First remove it from the list of overridden variables, so we can test
10609       # for unknown variables in the end.
10610       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10611 
10612       # Check if the provided tool contains a complete path.
10613       tool_specified="$UNIQ"
10614       tool_basename="${tool_specified##*/}"
10615       if test "x$tool_basename" = "x$tool_specified"; then
10616         # A command without a complete path is provided, search $PATH.
10617         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10618 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10619         # Extract the first word of "$tool_basename", so it can be a program name with args.
10620 set dummy $tool_basename; ac_word=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if ${ac_cv_path_UNIQ+:} false; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   case $UNIQ in
10627   [\\/]* | ?:[\\/]*)
10628   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10629   ;;
10630   *)
10631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10633 do
10634   IFS=$as_save_IFS
10635   test -z "$as_dir" && as_dir=.
10636     for ac_exec_ext in '' $ac_executable_extensions; do
10637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10638     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640     break 2
10641   fi
10642 done
10643   done
10644 IFS=$as_save_IFS
10645 
10646   ;;
10647 esac
10648 fi
10649 UNIQ=$ac_cv_path_UNIQ
10650 if test -n "$UNIQ"; then
10651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10652 $as_echo "$UNIQ" >&6; }
10653 else
10654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10656 fi
10657 
10658 
10659         if test "x$UNIQ" = x; then
10660           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10661         fi
10662       else
10663         # Otherwise we believe it is a complete path. Use it as it is.
10664         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10665 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10667 $as_echo_n "checking for UNIQ... " >&6; }
10668         if test ! -x "$tool_specified"; then
10669           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10670 $as_echo "not found" >&6; }
10671           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10672         fi
10673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10674 $as_echo "$tool_specified" >&6; }
10675       fi
10676     fi
10677   fi
10678 
10679 
10680 
10681   if test "x$UNIQ" = x; then
10682     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10683   fi
10684 
10685 
10686 
10687 
10688 
10689   # Publish this variable in the help.
10690 
10691 
10692   if test "x$WC" = x; then
10693     # The variable is not set by user, try to locate tool using the code snippet
10694     for ac_prog in wc
10695 do
10696   # Extract the first word of "$ac_prog", so it can be a program name with args.
10697 set dummy $ac_prog; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if ${ac_cv_path_WC+:} false; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703   case $WC in
10704   [\\/]* | ?:[\\/]*)
10705   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10706   ;;
10707   *)
10708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10710 do
10711   IFS=$as_save_IFS
10712   test -z "$as_dir" && as_dir=.
10713     for ac_exec_ext in '' $ac_executable_extensions; do
10714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10715     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717     break 2
10718   fi
10719 done
10720   done
10721 IFS=$as_save_IFS
10722 
10723   ;;
10724 esac
10725 fi
10726 WC=$ac_cv_path_WC
10727 if test -n "$WC"; then
10728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10729 $as_echo "$WC" >&6; }
10730 else
10731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10733 fi
10734 
10735 
10736   test -n "$WC" && break
10737 done
10738 
10739   else
10740     # The variable is set, but is it from the command line or the environment?
10741 
10742     # Try to remove the string !WC! from our list.
10743     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10744     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10745       # If it failed, the variable was not from the command line. Ignore it,
10746       # but warn the user (except for BASH, which is always set by the calling BASH).
10747       if test "xWC" != xBASH; then
10748         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10749 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10750       fi
10751       # Try to locate tool using the code snippet
10752       for ac_prog in wc
10753 do
10754   # Extract the first word of "$ac_prog", so it can be a program name with args.
10755 set dummy $ac_prog; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757 $as_echo_n "checking for $ac_word... " >&6; }
10758 if ${ac_cv_path_WC+:} false; then :
10759   $as_echo_n "(cached) " >&6
10760 else
10761   case $WC in
10762   [\\/]* | ?:[\\/]*)
10763   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10764   ;;
10765   *)
10766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in $PATH
10768 do
10769   IFS=$as_save_IFS
10770   test -z "$as_dir" && as_dir=.
10771     for ac_exec_ext in '' $ac_executable_extensions; do
10772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10773     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775     break 2
10776   fi
10777 done
10778   done
10779 IFS=$as_save_IFS
10780 
10781   ;;
10782 esac
10783 fi
10784 WC=$ac_cv_path_WC
10785 if test -n "$WC"; then
10786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10787 $as_echo "$WC" >&6; }
10788 else
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10791 fi
10792 
10793 
10794   test -n "$WC" && break
10795 done
10796 
10797     else
10798       # If it succeeded, then it was overridden by the user. We will use it
10799       # for the tool.
10800 
10801       # First remove it from the list of overridden variables, so we can test
10802       # for unknown variables in the end.
10803       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10804 
10805       # Check if the provided tool contains a complete path.
10806       tool_specified="$WC"
10807       tool_basename="${tool_specified##*/}"
10808       if test "x$tool_basename" = "x$tool_specified"; then
10809         # A command without a complete path is provided, search $PATH.
10810         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10811 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10812         # Extract the first word of "$tool_basename", so it can be a program name with args.
10813 set dummy $tool_basename; ac_word=$2
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if ${ac_cv_path_WC+:} false; then :
10817   $as_echo_n "(cached) " >&6
10818 else
10819   case $WC in
10820   [\\/]* | ?:[\\/]*)
10821   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10822   ;;
10823   *)
10824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10826 do
10827   IFS=$as_save_IFS
10828   test -z "$as_dir" && as_dir=.
10829     for ac_exec_ext in '' $ac_executable_extensions; do
10830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10831     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833     break 2
10834   fi
10835 done
10836   done
10837 IFS=$as_save_IFS
10838 
10839   ;;
10840 esac
10841 fi
10842 WC=$ac_cv_path_WC
10843 if test -n "$WC"; then
10844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10845 $as_echo "$WC" >&6; }
10846 else
10847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; }
10849 fi
10850 
10851 
10852         if test "x$WC" = x; then
10853           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10854         fi
10855       else
10856         # Otherwise we believe it is a complete path. Use it as it is.
10857         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10858 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10860 $as_echo_n "checking for WC... " >&6; }
10861         if test ! -x "$tool_specified"; then
10862           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10863 $as_echo "not found" >&6; }
10864           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10865         fi
10866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10867 $as_echo "$tool_specified" >&6; }
10868       fi
10869     fi
10870   fi
10871 
10872 
10873 
10874   if test "x$WC" = x; then
10875     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10876   fi
10877 
10878 
10879 
10880 
10881 
10882   # Publish this variable in the help.
10883 
10884 
10885   if test "x$WHICH" = x; then
10886     # The variable is not set by user, try to locate tool using the code snippet
10887     for ac_prog in which
10888 do
10889   # Extract the first word of "$ac_prog", so it can be a program name with args.
10890 set dummy $ac_prog; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if ${ac_cv_path_WHICH+:} false; then :
10894   $as_echo_n "(cached) " >&6
10895 else
10896   case $WHICH in
10897   [\\/]* | ?:[\\/]*)
10898   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10899   ;;
10900   *)
10901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10903 do
10904   IFS=$as_save_IFS
10905   test -z "$as_dir" && as_dir=.
10906     for ac_exec_ext in '' $ac_executable_extensions; do
10907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910     break 2
10911   fi
10912 done
10913   done
10914 IFS=$as_save_IFS
10915 
10916   ;;
10917 esac
10918 fi
10919 WHICH=$ac_cv_path_WHICH
10920 if test -n "$WHICH"; then
10921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10922 $as_echo "$WHICH" >&6; }
10923 else
10924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10926 fi
10927 
10928 
10929   test -n "$WHICH" && break
10930 done
10931 
10932   else
10933     # The variable is set, but is it from the command line or the environment?
10934 
10935     # Try to remove the string !WHICH! from our list.
10936     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10937     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10938       # If it failed, the variable was not from the command line. Ignore it,
10939       # but warn the user (except for BASH, which is always set by the calling BASH).
10940       if test "xWHICH" != xBASH; then
10941         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10942 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10943       fi
10944       # Try to locate tool using the code snippet
10945       for ac_prog in which
10946 do
10947   # Extract the first word of "$ac_prog", so it can be a program name with args.
10948 set dummy $ac_prog; ac_word=$2
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950 $as_echo_n "checking for $ac_word... " >&6; }
10951 if ${ac_cv_path_WHICH+:} false; then :
10952   $as_echo_n "(cached) " >&6
10953 else
10954   case $WHICH in
10955   [\\/]* | ?:[\\/]*)
10956   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10957   ;;
10958   *)
10959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10961 do
10962   IFS=$as_save_IFS
10963   test -z "$as_dir" && as_dir=.
10964     for ac_exec_ext in '' $ac_executable_extensions; do
10965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968     break 2
10969   fi
10970 done
10971   done
10972 IFS=$as_save_IFS
10973 
10974   ;;
10975 esac
10976 fi
10977 WHICH=$ac_cv_path_WHICH
10978 if test -n "$WHICH"; then
10979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10980 $as_echo "$WHICH" >&6; }
10981 else
10982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10984 fi
10985 
10986 
10987   test -n "$WHICH" && break
10988 done
10989 
10990     else
10991       # If it succeeded, then it was overridden by the user. We will use it
10992       # for the tool.
10993 
10994       # First remove it from the list of overridden variables, so we can test
10995       # for unknown variables in the end.
10996       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10997 
10998       # Check if the provided tool contains a complete path.
10999       tool_specified="$WHICH"
11000       tool_basename="${tool_specified##*/}"
11001       if test "x$tool_basename" = "x$tool_specified"; then
11002         # A command without a complete path is provided, search $PATH.
11003         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11004 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11005         # Extract the first word of "$tool_basename", so it can be a program name with args.
11006 set dummy $tool_basename; ac_word=$2
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008 $as_echo_n "checking for $ac_word... " >&6; }
11009 if ${ac_cv_path_WHICH+:} false; then :
11010   $as_echo_n "(cached) " >&6
11011 else
11012   case $WHICH in
11013   [\\/]* | ?:[\\/]*)
11014   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11015   ;;
11016   *)
11017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11019 do
11020   IFS=$as_save_IFS
11021   test -z "$as_dir" && as_dir=.
11022     for ac_exec_ext in '' $ac_executable_extensions; do
11023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11026     break 2
11027   fi
11028 done
11029   done
11030 IFS=$as_save_IFS
11031 
11032   ;;
11033 esac
11034 fi
11035 WHICH=$ac_cv_path_WHICH
11036 if test -n "$WHICH"; then
11037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11038 $as_echo "$WHICH" >&6; }
11039 else
11040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11042 fi
11043 
11044 
11045         if test "x$WHICH" = x; then
11046           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11047         fi
11048       else
11049         # Otherwise we believe it is a complete path. Use it as it is.
11050         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11051 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11053 $as_echo_n "checking for WHICH... " >&6; }
11054         if test ! -x "$tool_specified"; then
11055           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11056 $as_echo "not found" >&6; }
11057           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11058         fi
11059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11060 $as_echo "$tool_specified" >&6; }
11061       fi
11062     fi
11063   fi
11064 
11065 
11066 
11067   if test "x$WHICH" = x; then
11068     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11069   fi
11070 
11071 
11072 
11073 
11074 
11075   # Publish this variable in the help.
11076 
11077 
11078   if test "x$XARGS" = x; then
11079     # The variable is not set by user, try to locate tool using the code snippet
11080     for ac_prog in xargs
11081 do
11082   # Extract the first word of "$ac_prog", so it can be a program name with args.
11083 set dummy $ac_prog; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_path_XARGS+:} false; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089   case $XARGS in
11090   [\\/]* | ?:[\\/]*)
11091   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11092   ;;
11093   *)
11094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11096 do
11097   IFS=$as_save_IFS
11098   test -z "$as_dir" && as_dir=.
11099     for ac_exec_ext in '' $ac_executable_extensions; do
11100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11101     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103     break 2
11104   fi
11105 done
11106   done
11107 IFS=$as_save_IFS
11108 
11109   ;;
11110 esac
11111 fi
11112 XARGS=$ac_cv_path_XARGS
11113 if test -n "$XARGS"; then
11114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11115 $as_echo "$XARGS" >&6; }
11116 else
11117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11119 fi
11120 
11121 
11122   test -n "$XARGS" && break
11123 done
11124 
11125   else
11126     # The variable is set, but is it from the command line or the environment?
11127 
11128     # Try to remove the string !XARGS! from our list.
11129     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11130     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11131       # If it failed, the variable was not from the command line. Ignore it,
11132       # but warn the user (except for BASH, which is always set by the calling BASH).
11133       if test "xXARGS" != xBASH; then
11134         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11135 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11136       fi
11137       # Try to locate tool using the code snippet
11138       for ac_prog in xargs
11139 do
11140   # Extract the first word of "$ac_prog", so it can be a program name with args.
11141 set dummy $ac_prog; ac_word=$2
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143 $as_echo_n "checking for $ac_word... " >&6; }
11144 if ${ac_cv_path_XARGS+:} false; then :
11145   $as_echo_n "(cached) " >&6
11146 else
11147   case $XARGS in
11148   [\\/]* | ?:[\\/]*)
11149   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11150   ;;
11151   *)
11152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11154 do
11155   IFS=$as_save_IFS
11156   test -z "$as_dir" && as_dir=.
11157     for ac_exec_ext in '' $ac_executable_extensions; do
11158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161     break 2
11162   fi
11163 done
11164   done
11165 IFS=$as_save_IFS
11166 
11167   ;;
11168 esac
11169 fi
11170 XARGS=$ac_cv_path_XARGS
11171 if test -n "$XARGS"; then
11172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11173 $as_echo "$XARGS" >&6; }
11174 else
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; }
11177 fi
11178 
11179 
11180   test -n "$XARGS" && break
11181 done
11182 
11183     else
11184       # If it succeeded, then it was overridden by the user. We will use it
11185       # for the tool.
11186 
11187       # First remove it from the list of overridden variables, so we can test
11188       # for unknown variables in the end.
11189       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11190 
11191       # Check if the provided tool contains a complete path.
11192       tool_specified="$XARGS"
11193       tool_basename="${tool_specified##*/}"
11194       if test "x$tool_basename" = "x$tool_specified"; then
11195         # A command without a complete path is provided, search $PATH.
11196         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11197 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11198         # Extract the first word of "$tool_basename", so it can be a program name with args.
11199 set dummy $tool_basename; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_path_XARGS+:} false; then :
11203   $as_echo_n "(cached) " >&6
11204 else
11205   case $XARGS in
11206   [\\/]* | ?:[\\/]*)
11207   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11208   ;;
11209   *)
11210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11212 do
11213   IFS=$as_save_IFS
11214   test -z "$as_dir" && as_dir=.
11215     for ac_exec_ext in '' $ac_executable_extensions; do
11216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219     break 2
11220   fi
11221 done
11222   done
11223 IFS=$as_save_IFS
11224 
11225   ;;
11226 esac
11227 fi
11228 XARGS=$ac_cv_path_XARGS
11229 if test -n "$XARGS"; then
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11231 $as_echo "$XARGS" >&6; }
11232 else
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11235 fi
11236 
11237 
11238         if test "x$XARGS" = x; then
11239           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11240         fi
11241       else
11242         # Otherwise we believe it is a complete path. Use it as it is.
11243         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11244 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11246 $as_echo_n "checking for XARGS... " >&6; }
11247         if test ! -x "$tool_specified"; then
11248           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11249 $as_echo "not found" >&6; }
11250           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11251         fi
11252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11253 $as_echo "$tool_specified" >&6; }
11254       fi
11255     fi
11256   fi
11257 
11258 
11259 
11260   if test "x$XARGS" = x; then
11261     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11262   fi
11263 
11264 
11265 
11266   # Then required tools that require some special treatment.
11267 
11268 
11269   # Publish this variable in the help.
11270 
11271 
11272   if test "x$AWK" = x; then
11273     # The variable is not set by user, try to locate tool using the code snippet
11274     for ac_prog in gawk mawk nawk awk
11275 do
11276   # Extract the first word of "$ac_prog", so it can be a program name with args.
11277 set dummy $ac_prog; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if ${ac_cv_prog_AWK+:} false; then :
11281   $as_echo_n "(cached) " >&6
11282 else
11283   if test -n "$AWK"; then
11284   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11285 else
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11288 do
11289   IFS=$as_save_IFS
11290   test -z "$as_dir" && as_dir=.
11291     for ac_exec_ext in '' $ac_executable_extensions; do
11292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293     ac_cv_prog_AWK="$ac_prog"
11294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295     break 2
11296   fi
11297 done
11298   done
11299 IFS=$as_save_IFS
11300 
11301 fi
11302 fi
11303 AWK=$ac_cv_prog_AWK
11304 if test -n "$AWK"; then
11305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11306 $as_echo "$AWK" >&6; }
11307 else
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 fi
11311 
11312 
11313   test -n "$AWK" && break
11314 done
11315 
11316   else
11317     # The variable is set, but is it from the command line or the environment?
11318 
11319     # Try to remove the string !AWK! from our list.
11320     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11321     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11322       # If it failed, the variable was not from the command line. Ignore it,
11323       # but warn the user (except for BASH, which is always set by the calling BASH).
11324       if test "xAWK" != xBASH; then
11325         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11326 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11327       fi
11328       # Try to locate tool using the code snippet
11329       for ac_prog in gawk mawk nawk awk
11330 do
11331   # Extract the first word of "$ac_prog", so it can be a program name with args.
11332 set dummy $ac_prog; ac_word=$2
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 $as_echo_n "checking for $ac_word... " >&6; }
11335 if ${ac_cv_prog_AWK+:} false; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   if test -n "$AWK"; then
11339   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11340 else
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11343 do
11344   IFS=$as_save_IFS
11345   test -z "$as_dir" && as_dir=.
11346     for ac_exec_ext in '' $ac_executable_extensions; do
11347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11348     ac_cv_prog_AWK="$ac_prog"
11349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350     break 2
11351   fi
11352 done
11353   done
11354 IFS=$as_save_IFS
11355 
11356 fi
11357 fi
11358 AWK=$ac_cv_prog_AWK
11359 if test -n "$AWK"; then
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11361 $as_echo "$AWK" >&6; }
11362 else
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364 $as_echo "no" >&6; }
11365 fi
11366 
11367 
11368   test -n "$AWK" && break
11369 done
11370 
11371     else
11372       # If it succeeded, then it was overridden by the user. We will use it
11373       # for the tool.
11374 
11375       # First remove it from the list of overridden variables, so we can test
11376       # for unknown variables in the end.
11377       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11378 
11379       # Check if the provided tool contains a complete path.
11380       tool_specified="$AWK"
11381       tool_basename="${tool_specified##*/}"
11382       if test "x$tool_basename" = "x$tool_specified"; then
11383         # A command without a complete path is provided, search $PATH.
11384         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11385 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11386         # Extract the first word of "$tool_basename", so it can be a program name with args.
11387 set dummy $tool_basename; ac_word=$2
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11389 $as_echo_n "checking for $ac_word... " >&6; }
11390 if ${ac_cv_path_AWK+:} false; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393   case $AWK in
11394   [\\/]* | ?:[\\/]*)
11395   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11396   ;;
11397   *)
11398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11400 do
11401   IFS=$as_save_IFS
11402   test -z "$as_dir" && as_dir=.
11403     for ac_exec_ext in '' $ac_executable_extensions; do
11404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11405     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407     break 2
11408   fi
11409 done
11410   done
11411 IFS=$as_save_IFS
11412 
11413   ;;
11414 esac
11415 fi
11416 AWK=$ac_cv_path_AWK
11417 if test -n "$AWK"; then
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11419 $as_echo "$AWK" >&6; }
11420 else
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11423 fi
11424 
11425 
11426         if test "x$AWK" = x; then
11427           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11428         fi
11429       else
11430         # Otherwise we believe it is a complete path. Use it as it is.
11431         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11432 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11434 $as_echo_n "checking for AWK... " >&6; }
11435         if test ! -x "$tool_specified"; then
11436           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11437 $as_echo "not found" >&6; }
11438           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11439         fi
11440         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11441 $as_echo "$tool_specified" >&6; }
11442       fi
11443     fi
11444   fi
11445 
11446 
11447   if test "x$AWK" = x; then
11448     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11449   fi
11450 
11451 
11452 
11453 
11454   # Publish this variable in the help.
11455 
11456 
11457   if test "x$GREP" = x; then
11458     # The variable is not set by user, try to locate tool using the code snippet
11459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11461 if ${ac_cv_path_GREP+:} false; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   if test -z "$GREP"; then
11465   ac_path_GREP_found=false
11466   # Loop through the user's path and test for each of PROGNAME-LIST
11467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11469 do
11470   IFS=$as_save_IFS
11471   test -z "$as_dir" && as_dir=.
11472     for ac_prog in grep ggrep; do
11473     for ac_exec_ext in '' $ac_executable_extensions; do
11474       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11475       as_fn_executable_p "$ac_path_GREP" || continue
11476 # Check for GNU ac_path_GREP and select it if it is found.
11477   # Check for GNU $ac_path_GREP
11478 case `"$ac_path_GREP" --version 2>&1` in
11479 *GNU*)
11480   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11481 *)
11482   ac_count=0
11483   $as_echo_n 0123456789 >"conftest.in"
11484   while :
11485   do
11486     cat "conftest.in" "conftest.in" >"conftest.tmp"
11487     mv "conftest.tmp" "conftest.in"
11488     cp "conftest.in" "conftest.nl"
11489     $as_echo 'GREP' >> "conftest.nl"
11490     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11492     as_fn_arith $ac_count + 1 && ac_count=$as_val
11493     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11494       # Best one so far, save it but keep looking for a better one
11495       ac_cv_path_GREP="$ac_path_GREP"
11496       ac_path_GREP_max=$ac_count
11497     fi
11498     # 10*(2^10) chars as input seems more than enough
11499     test $ac_count -gt 10 && break
11500   done
11501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11502 esac
11503 
11504       $ac_path_GREP_found && break 3
11505     done
11506   done
11507   done
11508 IFS=$as_save_IFS
11509   if test -z "$ac_cv_path_GREP"; then
11510     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11511   fi
11512 else
11513   ac_cv_path_GREP=$GREP
11514 fi
11515 
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11518 $as_echo "$ac_cv_path_GREP" >&6; }
11519  GREP="$ac_cv_path_GREP"
11520 
11521 
11522   else
11523     # The variable is set, but is it from the command line or the environment?
11524 
11525     # Try to remove the string !GREP! from our list.
11526     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11527     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11528       # If it failed, the variable was not from the command line. Ignore it,
11529       # but warn the user (except for BASH, which is always set by the calling BASH).
11530       if test "xGREP" != xBASH; then
11531         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11532 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11533       fi
11534       # Try to locate tool using the code snippet
11535       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11536 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11537 if ${ac_cv_path_GREP+:} false; then :
11538   $as_echo_n "(cached) " >&6
11539 else
11540   if test -z "$GREP"; then
11541   ac_path_GREP_found=false
11542   # Loop through the user's path and test for each of PROGNAME-LIST
11543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11545 do
11546   IFS=$as_save_IFS
11547   test -z "$as_dir" && as_dir=.
11548     for ac_prog in grep ggrep; do
11549     for ac_exec_ext in '' $ac_executable_extensions; do
11550       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11551       as_fn_executable_p "$ac_path_GREP" || continue
11552 # Check for GNU ac_path_GREP and select it if it is found.
11553   # Check for GNU $ac_path_GREP
11554 case `"$ac_path_GREP" --version 2>&1` in
11555 *GNU*)
11556   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11557 *)
11558   ac_count=0
11559   $as_echo_n 0123456789 >"conftest.in"
11560   while :
11561   do
11562     cat "conftest.in" "conftest.in" >"conftest.tmp"
11563     mv "conftest.tmp" "conftest.in"
11564     cp "conftest.in" "conftest.nl"
11565     $as_echo 'GREP' >> "conftest.nl"
11566     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11567     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11568     as_fn_arith $ac_count + 1 && ac_count=$as_val
11569     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11570       # Best one so far, save it but keep looking for a better one
11571       ac_cv_path_GREP="$ac_path_GREP"
11572       ac_path_GREP_max=$ac_count
11573     fi
11574     # 10*(2^10) chars as input seems more than enough
11575     test $ac_count -gt 10 && break
11576   done
11577   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11578 esac
11579 
11580       $ac_path_GREP_found && break 3
11581     done
11582   done
11583   done
11584 IFS=$as_save_IFS
11585   if test -z "$ac_cv_path_GREP"; then
11586     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11587   fi
11588 else
11589   ac_cv_path_GREP=$GREP
11590 fi
11591 
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11594 $as_echo "$ac_cv_path_GREP" >&6; }
11595  GREP="$ac_cv_path_GREP"
11596 
11597 
11598     else
11599       # If it succeeded, then it was overridden by the user. We will use it
11600       # for the tool.
11601 
11602       # First remove it from the list of overridden variables, so we can test
11603       # for unknown variables in the end.
11604       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11605 
11606       # Check if the provided tool contains a complete path.
11607       tool_specified="$GREP"
11608       tool_basename="${tool_specified##*/}"
11609       if test "x$tool_basename" = "x$tool_specified"; then
11610         # A command without a complete path is provided, search $PATH.
11611         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11612 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11613         # Extract the first word of "$tool_basename", so it can be a program name with args.
11614 set dummy $tool_basename; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if ${ac_cv_path_GREP+:} false; then :
11618   $as_echo_n "(cached) " >&6
11619 else
11620   case $GREP in
11621   [\\/]* | ?:[\\/]*)
11622   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11623   ;;
11624   *)
11625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11627 do
11628   IFS=$as_save_IFS
11629   test -z "$as_dir" && as_dir=.
11630     for ac_exec_ext in '' $ac_executable_extensions; do
11631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11632     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11634     break 2
11635   fi
11636 done
11637   done
11638 IFS=$as_save_IFS
11639 
11640   ;;
11641 esac
11642 fi
11643 GREP=$ac_cv_path_GREP
11644 if test -n "$GREP"; then
11645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11646 $as_echo "$GREP" >&6; }
11647 else
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649 $as_echo "no" >&6; }
11650 fi
11651 
11652 
11653         if test "x$GREP" = x; then
11654           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11655         fi
11656       else
11657         # Otherwise we believe it is a complete path. Use it as it is.
11658         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11659 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11660         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11661 $as_echo_n "checking for GREP... " >&6; }
11662         if test ! -x "$tool_specified"; then
11663           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11664 $as_echo "not found" >&6; }
11665           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11666         fi
11667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11668 $as_echo "$tool_specified" >&6; }
11669       fi
11670     fi
11671   fi
11672 
11673 
11674   if test "x$GREP" = x; then
11675     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11676   fi
11677 
11678 
11679 
11680 
11681   # Publish this variable in the help.
11682 
11683 
11684   if test "x$EGREP" = x; then
11685     # The variable is not set by user, try to locate tool using the code snippet
11686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11687 $as_echo_n "checking for egrep... " >&6; }
11688 if ${ac_cv_path_EGREP+:} false; then :
11689   $as_echo_n "(cached) " >&6
11690 else
11691   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11692    then ac_cv_path_EGREP="$GREP -E"
11693    else
11694      if test -z "$EGREP"; then
11695   ac_path_EGREP_found=false
11696   # Loop through the user's path and test for each of PROGNAME-LIST
11697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11699 do
11700   IFS=$as_save_IFS
11701   test -z "$as_dir" && as_dir=.
11702     for ac_prog in egrep; do
11703     for ac_exec_ext in '' $ac_executable_extensions; do
11704       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11705       as_fn_executable_p "$ac_path_EGREP" || continue
11706 # Check for GNU ac_path_EGREP and select it if it is found.
11707   # Check for GNU $ac_path_EGREP
11708 case `"$ac_path_EGREP" --version 2>&1` in
11709 *GNU*)
11710   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11711 *)
11712   ac_count=0
11713   $as_echo_n 0123456789 >"conftest.in"
11714   while :
11715   do
11716     cat "conftest.in" "conftest.in" >"conftest.tmp"
11717     mv "conftest.tmp" "conftest.in"
11718     cp "conftest.in" "conftest.nl"
11719     $as_echo 'EGREP' >> "conftest.nl"
11720     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11722     as_fn_arith $ac_count + 1 && ac_count=$as_val
11723     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11724       # Best one so far, save it but keep looking for a better one
11725       ac_cv_path_EGREP="$ac_path_EGREP"
11726       ac_path_EGREP_max=$ac_count
11727     fi
11728     # 10*(2^10) chars as input seems more than enough
11729     test $ac_count -gt 10 && break
11730   done
11731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11732 esac
11733 
11734       $ac_path_EGREP_found && break 3
11735     done
11736   done
11737   done
11738 IFS=$as_save_IFS
11739   if test -z "$ac_cv_path_EGREP"; then
11740     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11741   fi
11742 else
11743   ac_cv_path_EGREP=$EGREP
11744 fi
11745 
11746    fi
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11749 $as_echo "$ac_cv_path_EGREP" >&6; }
11750  EGREP="$ac_cv_path_EGREP"
11751 
11752 
11753   else
11754     # The variable is set, but is it from the command line or the environment?
11755 
11756     # Try to remove the string !EGREP! from our list.
11757     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11758     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11759       # If it failed, the variable was not from the command line. Ignore it,
11760       # but warn the user (except for BASH, which is always set by the calling BASH).
11761       if test "xEGREP" != xBASH; then
11762         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11763 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11764       fi
11765       # Try to locate tool using the code snippet
11766       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11767 $as_echo_n "checking for egrep... " >&6; }
11768 if ${ac_cv_path_EGREP+:} false; then :
11769   $as_echo_n "(cached) " >&6
11770 else
11771   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11772    then ac_cv_path_EGREP="$GREP -E"
11773    else
11774      if test -z "$EGREP"; then
11775   ac_path_EGREP_found=false
11776   # Loop through the user's path and test for each of PROGNAME-LIST
11777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11779 do
11780   IFS=$as_save_IFS
11781   test -z "$as_dir" && as_dir=.
11782     for ac_prog in egrep; do
11783     for ac_exec_ext in '' $ac_executable_extensions; do
11784       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11785       as_fn_executable_p "$ac_path_EGREP" || continue
11786 # Check for GNU ac_path_EGREP and select it if it is found.
11787   # Check for GNU $ac_path_EGREP
11788 case `"$ac_path_EGREP" --version 2>&1` in
11789 *GNU*)
11790   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11791 *)
11792   ac_count=0
11793   $as_echo_n 0123456789 >"conftest.in"
11794   while :
11795   do
11796     cat "conftest.in" "conftest.in" >"conftest.tmp"
11797     mv "conftest.tmp" "conftest.in"
11798     cp "conftest.in" "conftest.nl"
11799     $as_echo 'EGREP' >> "conftest.nl"
11800     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11802     as_fn_arith $ac_count + 1 && ac_count=$as_val
11803     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11804       # Best one so far, save it but keep looking for a better one
11805       ac_cv_path_EGREP="$ac_path_EGREP"
11806       ac_path_EGREP_max=$ac_count
11807     fi
11808     # 10*(2^10) chars as input seems more than enough
11809     test $ac_count -gt 10 && break
11810   done
11811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11812 esac
11813 
11814       $ac_path_EGREP_found && break 3
11815     done
11816   done
11817   done
11818 IFS=$as_save_IFS
11819   if test -z "$ac_cv_path_EGREP"; then
11820     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11821   fi
11822 else
11823   ac_cv_path_EGREP=$EGREP
11824 fi
11825 
11826    fi
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11829 $as_echo "$ac_cv_path_EGREP" >&6; }
11830  EGREP="$ac_cv_path_EGREP"
11831 
11832 
11833     else
11834       # If it succeeded, then it was overridden by the user. We will use it
11835       # for the tool.
11836 
11837       # First remove it from the list of overridden variables, so we can test
11838       # for unknown variables in the end.
11839       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11840 
11841       # Check if the provided tool contains a complete path.
11842       tool_specified="$EGREP"
11843       tool_basename="${tool_specified##*/}"
11844       if test "x$tool_basename" = "x$tool_specified"; then
11845         # A command without a complete path is provided, search $PATH.
11846         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11847 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11848         # Extract the first word of "$tool_basename", so it can be a program name with args.
11849 set dummy $tool_basename; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_path_EGREP+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   case $EGREP in
11856   [\\/]* | ?:[\\/]*)
11857   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11858   ;;
11859   *)
11860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11862 do
11863   IFS=$as_save_IFS
11864   test -z "$as_dir" && as_dir=.
11865     for ac_exec_ext in '' $ac_executable_extensions; do
11866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869     break 2
11870   fi
11871 done
11872   done
11873 IFS=$as_save_IFS
11874 
11875   ;;
11876 esac
11877 fi
11878 EGREP=$ac_cv_path_EGREP
11879 if test -n "$EGREP"; then
11880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11881 $as_echo "$EGREP" >&6; }
11882 else
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11885 fi
11886 
11887 
11888         if test "x$EGREP" = x; then
11889           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11890         fi
11891       else
11892         # Otherwise we believe it is a complete path. Use it as it is.
11893         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11894 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11896 $as_echo_n "checking for EGREP... " >&6; }
11897         if test ! -x "$tool_specified"; then
11898           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11899 $as_echo "not found" >&6; }
11900           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11901         fi
11902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11903 $as_echo "$tool_specified" >&6; }
11904       fi
11905     fi
11906   fi
11907 
11908 
11909   if test "x$EGREP" = x; then
11910     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11911   fi
11912 
11913 
11914 
11915 
11916   # Publish this variable in the help.
11917 
11918 
11919   if test "x$FGREP" = x; then
11920     # The variable is not set by user, try to locate tool using the code snippet
11921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11922 $as_echo_n "checking for fgrep... " >&6; }
11923 if ${ac_cv_path_FGREP+:} false; then :
11924   $as_echo_n "(cached) " >&6
11925 else
11926   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11927    then ac_cv_path_FGREP="$GREP -F"
11928    else
11929      if test -z "$FGREP"; then
11930   ac_path_FGREP_found=false
11931   # Loop through the user's path and test for each of PROGNAME-LIST
11932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11934 do
11935   IFS=$as_save_IFS
11936   test -z "$as_dir" && as_dir=.
11937     for ac_prog in fgrep; do
11938     for ac_exec_ext in '' $ac_executable_extensions; do
11939       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11940       as_fn_executable_p "$ac_path_FGREP" || continue
11941 # Check for GNU ac_path_FGREP and select it if it is found.
11942   # Check for GNU $ac_path_FGREP
11943 case `"$ac_path_FGREP" --version 2>&1` in
11944 *GNU*)
11945   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11946 *)
11947   ac_count=0
11948   $as_echo_n 0123456789 >"conftest.in"
11949   while :
11950   do
11951     cat "conftest.in" "conftest.in" >"conftest.tmp"
11952     mv "conftest.tmp" "conftest.in"
11953     cp "conftest.in" "conftest.nl"
11954     $as_echo 'FGREP' >> "conftest.nl"
11955     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11956     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11957     as_fn_arith $ac_count + 1 && ac_count=$as_val
11958     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11959       # Best one so far, save it but keep looking for a better one
11960       ac_cv_path_FGREP="$ac_path_FGREP"
11961       ac_path_FGREP_max=$ac_count
11962     fi
11963     # 10*(2^10) chars as input seems more than enough
11964     test $ac_count -gt 10 && break
11965   done
11966   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11967 esac
11968 
11969       $ac_path_FGREP_found && break 3
11970     done
11971   done
11972   done
11973 IFS=$as_save_IFS
11974   if test -z "$ac_cv_path_FGREP"; then
11975     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11976   fi
11977 else
11978   ac_cv_path_FGREP=$FGREP
11979 fi
11980 
11981    fi
11982 fi
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11984 $as_echo "$ac_cv_path_FGREP" >&6; }
11985  FGREP="$ac_cv_path_FGREP"
11986 
11987 
11988   else
11989     # The variable is set, but is it from the command line or the environment?
11990 
11991     # Try to remove the string !FGREP! from our list.
11992     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
11993     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11994       # If it failed, the variable was not from the command line. Ignore it,
11995       # but warn the user (except for BASH, which is always set by the calling BASH).
11996       if test "xFGREP" != xBASH; then
11997         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
11998 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
11999       fi
12000       # Try to locate tool using the code snippet
12001       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12002 $as_echo_n "checking for fgrep... " >&6; }
12003 if ${ac_cv_path_FGREP+:} false; then :
12004   $as_echo_n "(cached) " >&6
12005 else
12006   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12007    then ac_cv_path_FGREP="$GREP -F"
12008    else
12009      if test -z "$FGREP"; then
12010   ac_path_FGREP_found=false
12011   # Loop through the user's path and test for each of PROGNAME-LIST
12012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12014 do
12015   IFS=$as_save_IFS
12016   test -z "$as_dir" && as_dir=.
12017     for ac_prog in fgrep; do
12018     for ac_exec_ext in '' $ac_executable_extensions; do
12019       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12020       as_fn_executable_p "$ac_path_FGREP" || continue
12021 # Check for GNU ac_path_FGREP and select it if it is found.
12022   # Check for GNU $ac_path_FGREP
12023 case `"$ac_path_FGREP" --version 2>&1` in
12024 *GNU*)
12025   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12026 *)
12027   ac_count=0
12028   $as_echo_n 0123456789 >"conftest.in"
12029   while :
12030   do
12031     cat "conftest.in" "conftest.in" >"conftest.tmp"
12032     mv "conftest.tmp" "conftest.in"
12033     cp "conftest.in" "conftest.nl"
12034     $as_echo 'FGREP' >> "conftest.nl"
12035     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12036     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12037     as_fn_arith $ac_count + 1 && ac_count=$as_val
12038     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12039       # Best one so far, save it but keep looking for a better one
12040       ac_cv_path_FGREP="$ac_path_FGREP"
12041       ac_path_FGREP_max=$ac_count
12042     fi
12043     # 10*(2^10) chars as input seems more than enough
12044     test $ac_count -gt 10 && break
12045   done
12046   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12047 esac
12048 
12049       $ac_path_FGREP_found && break 3
12050     done
12051   done
12052   done
12053 IFS=$as_save_IFS
12054   if test -z "$ac_cv_path_FGREP"; then
12055     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12056   fi
12057 else
12058   ac_cv_path_FGREP=$FGREP
12059 fi
12060 
12061    fi
12062 fi
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12064 $as_echo "$ac_cv_path_FGREP" >&6; }
12065  FGREP="$ac_cv_path_FGREP"
12066 
12067 
12068     else
12069       # If it succeeded, then it was overridden by the user. We will use it
12070       # for the tool.
12071 
12072       # First remove it from the list of overridden variables, so we can test
12073       # for unknown variables in the end.
12074       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12075 
12076       # Check if the provided tool contains a complete path.
12077       tool_specified="$FGREP"
12078       tool_basename="${tool_specified##*/}"
12079       if test "x$tool_basename" = "x$tool_specified"; then
12080         # A command without a complete path is provided, search $PATH.
12081         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12082 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12083         # Extract the first word of "$tool_basename", so it can be a program name with args.
12084 set dummy $tool_basename; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if ${ac_cv_path_FGREP+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   case $FGREP in
12091   [\\/]* | ?:[\\/]*)
12092   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12093   ;;
12094   *)
12095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098   IFS=$as_save_IFS
12099   test -z "$as_dir" && as_dir=.
12100     for ac_exec_ext in '' $ac_executable_extensions; do
12101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104     break 2
12105   fi
12106 done
12107   done
12108 IFS=$as_save_IFS
12109 
12110   ;;
12111 esac
12112 fi
12113 FGREP=$ac_cv_path_FGREP
12114 if test -n "$FGREP"; then
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12116 $as_echo "$FGREP" >&6; }
12117 else
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120 fi
12121 
12122 
12123         if test "x$FGREP" = x; then
12124           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12125         fi
12126       else
12127         # Otherwise we believe it is a complete path. Use it as it is.
12128         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12129 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12130         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12131 $as_echo_n "checking for FGREP... " >&6; }
12132         if test ! -x "$tool_specified"; then
12133           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12134 $as_echo "not found" >&6; }
12135           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12136         fi
12137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12138 $as_echo "$tool_specified" >&6; }
12139       fi
12140     fi
12141   fi
12142 
12143 
12144   if test "x$FGREP" = x; then
12145     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12146   fi
12147 
12148 
12149 
12150 
12151   # Publish this variable in the help.
12152 
12153 
12154   if test "x$SED" = x; then
12155     # The variable is not set by user, try to locate tool using the code snippet
12156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12157 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12158 if ${ac_cv_path_SED+:} false; then :
12159   $as_echo_n "(cached) " >&6
12160 else
12161             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12162      for ac_i in 1 2 3 4 5 6 7; do
12163        ac_script="$ac_script$as_nl$ac_script"
12164      done
12165      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12166      { ac_script=; unset ac_script;}
12167      if test -z "$SED"; then
12168   ac_path_SED_found=false
12169   # Loop through the user's path and test for each of PROGNAME-LIST
12170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_prog in sed gsed; do
12176     for ac_exec_ext in '' $ac_executable_extensions; do
12177       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12178       as_fn_executable_p "$ac_path_SED" || continue
12179 # Check for GNU ac_path_SED and select it if it is found.
12180   # Check for GNU $ac_path_SED
12181 case `"$ac_path_SED" --version 2>&1` in
12182 *GNU*)
12183   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12184 *)
12185   ac_count=0
12186   $as_echo_n 0123456789 >"conftest.in"
12187   while :
12188   do
12189     cat "conftest.in" "conftest.in" >"conftest.tmp"
12190     mv "conftest.tmp" "conftest.in"
12191     cp "conftest.in" "conftest.nl"
12192     $as_echo '' >> "conftest.nl"
12193     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12195     as_fn_arith $ac_count + 1 && ac_count=$as_val
12196     if test $ac_count -gt ${ac_path_SED_max-0}; then
12197       # Best one so far, save it but keep looking for a better one
12198       ac_cv_path_SED="$ac_path_SED"
12199       ac_path_SED_max=$ac_count
12200     fi
12201     # 10*(2^10) chars as input seems more than enough
12202     test $ac_count -gt 10 && break
12203   done
12204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12205 esac
12206 
12207       $ac_path_SED_found && break 3
12208     done
12209   done
12210   done
12211 IFS=$as_save_IFS
12212   if test -z "$ac_cv_path_SED"; then
12213     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12214   fi
12215 else
12216   ac_cv_path_SED=$SED
12217 fi
12218 
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12221 $as_echo "$ac_cv_path_SED" >&6; }
12222  SED="$ac_cv_path_SED"
12223   rm -f conftest.sed
12224 
12225   else
12226     # The variable is set, but is it from the command line or the environment?
12227 
12228     # Try to remove the string !SED! from our list.
12229     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12230     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12231       # If it failed, the variable was not from the command line. Ignore it,
12232       # but warn the user (except for BASH, which is always set by the calling BASH).
12233       if test "xSED" != xBASH; then
12234         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12235 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12236       fi
12237       # Try to locate tool using the code snippet
12238       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12239 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12240 if ${ac_cv_path_SED+:} false; then :
12241   $as_echo_n "(cached) " >&6
12242 else
12243             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12244      for ac_i in 1 2 3 4 5 6 7; do
12245        ac_script="$ac_script$as_nl$ac_script"
12246      done
12247      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12248      { ac_script=; unset ac_script;}
12249      if test -z "$SED"; then
12250   ac_path_SED_found=false
12251   # Loop through the user's path and test for each of PROGNAME-LIST
12252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12254 do
12255   IFS=$as_save_IFS
12256   test -z "$as_dir" && as_dir=.
12257     for ac_prog in sed gsed; do
12258     for ac_exec_ext in '' $ac_executable_extensions; do
12259       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12260       as_fn_executable_p "$ac_path_SED" || continue
12261 # Check for GNU ac_path_SED and select it if it is found.
12262   # Check for GNU $ac_path_SED
12263 case `"$ac_path_SED" --version 2>&1` in
12264 *GNU*)
12265   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12266 *)
12267   ac_count=0
12268   $as_echo_n 0123456789 >"conftest.in"
12269   while :
12270   do
12271     cat "conftest.in" "conftest.in" >"conftest.tmp"
12272     mv "conftest.tmp" "conftest.in"
12273     cp "conftest.in" "conftest.nl"
12274     $as_echo '' >> "conftest.nl"
12275     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12277     as_fn_arith $ac_count + 1 && ac_count=$as_val
12278     if test $ac_count -gt ${ac_path_SED_max-0}; then
12279       # Best one so far, save it but keep looking for a better one
12280       ac_cv_path_SED="$ac_path_SED"
12281       ac_path_SED_max=$ac_count
12282     fi
12283     # 10*(2^10) chars as input seems more than enough
12284     test $ac_count -gt 10 && break
12285   done
12286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12287 esac
12288 
12289       $ac_path_SED_found && break 3
12290     done
12291   done
12292   done
12293 IFS=$as_save_IFS
12294   if test -z "$ac_cv_path_SED"; then
12295     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12296   fi
12297 else
12298   ac_cv_path_SED=$SED
12299 fi
12300 
12301 fi
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12303 $as_echo "$ac_cv_path_SED" >&6; }
12304  SED="$ac_cv_path_SED"
12305   rm -f conftest.sed
12306 
12307     else
12308       # If it succeeded, then it was overridden by the user. We will use it
12309       # for the tool.
12310 
12311       # First remove it from the list of overridden variables, so we can test
12312       # for unknown variables in the end.
12313       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12314 
12315       # Check if the provided tool contains a complete path.
12316       tool_specified="$SED"
12317       tool_basename="${tool_specified##*/}"
12318       if test "x$tool_basename" = "x$tool_specified"; then
12319         # A command without a complete path is provided, search $PATH.
12320         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12321 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12322         # Extract the first word of "$tool_basename", so it can be a program name with args.
12323 set dummy $tool_basename; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325 $as_echo_n "checking for $ac_word... " >&6; }
12326 if ${ac_cv_path_SED+:} false; then :
12327   $as_echo_n "(cached) " >&6
12328 else
12329   case $SED in
12330   [\\/]* | ?:[\\/]*)
12331   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12332   ;;
12333   *)
12334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12336 do
12337   IFS=$as_save_IFS
12338   test -z "$as_dir" && as_dir=.
12339     for ac_exec_ext in '' $ac_executable_extensions; do
12340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343     break 2
12344   fi
12345 done
12346   done
12347 IFS=$as_save_IFS
12348 
12349   ;;
12350 esac
12351 fi
12352 SED=$ac_cv_path_SED
12353 if test -n "$SED"; then
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12355 $as_echo "$SED" >&6; }
12356 else
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12359 fi
12360 
12361 
12362         if test "x$SED" = x; then
12363           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12364         fi
12365       else
12366         # Otherwise we believe it is a complete path. Use it as it is.
12367         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12368 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12370 $as_echo_n "checking for SED... " >&6; }
12371         if test ! -x "$tool_specified"; then
12372           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12373 $as_echo "not found" >&6; }
12374           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12375         fi
12376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12377 $as_echo "$tool_specified" >&6; }
12378       fi
12379     fi
12380   fi
12381 
12382 
12383   if test "x$SED" = x; then
12384     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12385   fi
12386 
12387 
12388 
12389   # Always force rm.
12390   RM="$RM -f"
12391 
12392   # pwd behaves differently on various platforms and some don't support the -L flag.
12393   # Always use the bash builtin pwd to get uniform behavior.
12394   THEPWDCMD=pwd
12395 
12396   # These are not required on all platforms
12397 
12398 
12399   # Publish this variable in the help.
12400 
12401 
12402   if test "x$CYGPATH" = x; then
12403     # The variable is not set by user, try to locate tool using the code snippet
12404     for ac_prog in cygpath
12405 do
12406   # Extract the first word of "$ac_prog", so it can be a program name with args.
12407 set dummy $ac_prog; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_path_CYGPATH+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   case $CYGPATH in
12414   [\\/]* | ?:[\\/]*)
12415   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12416   ;;
12417   *)
12418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419 for as_dir in $PATH
12420 do
12421   IFS=$as_save_IFS
12422   test -z "$as_dir" && as_dir=.
12423     for ac_exec_ext in '' $ac_executable_extensions; do
12424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12425     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427     break 2
12428   fi
12429 done
12430   done
12431 IFS=$as_save_IFS
12432 
12433   ;;
12434 esac
12435 fi
12436 CYGPATH=$ac_cv_path_CYGPATH
12437 if test -n "$CYGPATH"; then
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12439 $as_echo "$CYGPATH" >&6; }
12440 else
12441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12443 fi
12444 
12445 
12446   test -n "$CYGPATH" && break
12447 done
12448 
12449   else
12450     # The variable is set, but is it from the command line or the environment?
12451 
12452     # Try to remove the string !CYGPATH! from our list.
12453     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12454     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12455       # If it failed, the variable was not from the command line. Ignore it,
12456       # but warn the user (except for BASH, which is always set by the calling BASH).
12457       if test "xCYGPATH" != xBASH; then
12458         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12459 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12460       fi
12461       # Try to locate tool using the code snippet
12462       for ac_prog in cygpath
12463 do
12464   # Extract the first word of "$ac_prog", so it can be a program name with args.
12465 set dummy $ac_prog; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if ${ac_cv_path_CYGPATH+:} false; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471   case $CYGPATH in
12472   [\\/]* | ?:[\\/]*)
12473   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12474   ;;
12475   *)
12476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479   IFS=$as_save_IFS
12480   test -z "$as_dir" && as_dir=.
12481     for ac_exec_ext in '' $ac_executable_extensions; do
12482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485     break 2
12486   fi
12487 done
12488   done
12489 IFS=$as_save_IFS
12490 
12491   ;;
12492 esac
12493 fi
12494 CYGPATH=$ac_cv_path_CYGPATH
12495 if test -n "$CYGPATH"; then
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12497 $as_echo "$CYGPATH" >&6; }
12498 else
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12500 $as_echo "no" >&6; }
12501 fi
12502 
12503 
12504   test -n "$CYGPATH" && break
12505 done
12506 
12507     else
12508       # If it succeeded, then it was overridden by the user. We will use it
12509       # for the tool.
12510 
12511       # First remove it from the list of overridden variables, so we can test
12512       # for unknown variables in the end.
12513       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12514 
12515       # Check if the provided tool contains a complete path.
12516       tool_specified="$CYGPATH"
12517       tool_basename="${tool_specified##*/}"
12518       if test "x$tool_basename" = "x$tool_specified"; then
12519         # A command without a complete path is provided, search $PATH.
12520         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12521 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12522         # Extract the first word of "$tool_basename", so it can be a program name with args.
12523 set dummy $tool_basename; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if ${ac_cv_path_CYGPATH+:} false; then :
12527   $as_echo_n "(cached) " >&6
12528 else
12529   case $CYGPATH in
12530   [\\/]* | ?:[\\/]*)
12531   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12532   ;;
12533   *)
12534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12536 do
12537   IFS=$as_save_IFS
12538   test -z "$as_dir" && as_dir=.
12539     for ac_exec_ext in '' $ac_executable_extensions; do
12540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12541     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543     break 2
12544   fi
12545 done
12546   done
12547 IFS=$as_save_IFS
12548 
12549   ;;
12550 esac
12551 fi
12552 CYGPATH=$ac_cv_path_CYGPATH
12553 if test -n "$CYGPATH"; then
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12555 $as_echo "$CYGPATH" >&6; }
12556 else
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559 fi
12560 
12561 
12562         if test "x$CYGPATH" = x; then
12563           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12564         fi
12565       else
12566         # Otherwise we believe it is a complete path. Use it as it is.
12567         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12568 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12569         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12570 $as_echo_n "checking for CYGPATH... " >&6; }
12571         if test ! -x "$tool_specified"; then
12572           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12573 $as_echo "not found" >&6; }
12574           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12575         fi
12576         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12577 $as_echo "$tool_specified" >&6; }
12578       fi
12579     fi
12580   fi
12581 
12582 
12583 
12584 
12585   # Publish this variable in the help.
12586 
12587 
12588   if test "x$READLINK" = x; then
12589     # The variable is not set by user, try to locate tool using the code snippet
12590     for ac_prog in greadlink readlink
12591 do
12592   # Extract the first word of "$ac_prog", so it can be a program name with args.
12593 set dummy $ac_prog; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_path_READLINK+:} false; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   case $READLINK in
12600   [\\/]* | ?:[\\/]*)
12601   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12602   ;;
12603   *)
12604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in $PATH
12606 do
12607   IFS=$as_save_IFS
12608   test -z "$as_dir" && as_dir=.
12609     for ac_exec_ext in '' $ac_executable_extensions; do
12610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613     break 2
12614   fi
12615 done
12616   done
12617 IFS=$as_save_IFS
12618 
12619   ;;
12620 esac
12621 fi
12622 READLINK=$ac_cv_path_READLINK
12623 if test -n "$READLINK"; then
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12625 $as_echo "$READLINK" >&6; }
12626 else
12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12629 fi
12630 
12631 
12632   test -n "$READLINK" && break
12633 done
12634 
12635   else
12636     # The variable is set, but is it from the command line or the environment?
12637 
12638     # Try to remove the string !READLINK! from our list.
12639     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12640     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12641       # If it failed, the variable was not from the command line. Ignore it,
12642       # but warn the user (except for BASH, which is always set by the calling BASH).
12643       if test "xREADLINK" != xBASH; then
12644         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12645 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12646       fi
12647       # Try to locate tool using the code snippet
12648       for ac_prog in greadlink readlink
12649 do
12650   # Extract the first word of "$ac_prog", so it can be a program name with args.
12651 set dummy $ac_prog; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_READLINK+:} false; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   case $READLINK in
12658   [\\/]* | ?:[\\/]*)
12659   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12660   ;;
12661   *)
12662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665   IFS=$as_save_IFS
12666   test -z "$as_dir" && as_dir=.
12667     for ac_exec_ext in '' $ac_executable_extensions; do
12668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671     break 2
12672   fi
12673 done
12674   done
12675 IFS=$as_save_IFS
12676 
12677   ;;
12678 esac
12679 fi
12680 READLINK=$ac_cv_path_READLINK
12681 if test -n "$READLINK"; then
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12683 $as_echo "$READLINK" >&6; }
12684 else
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688 
12689 
12690   test -n "$READLINK" && break
12691 done
12692 
12693     else
12694       # If it succeeded, then it was overridden by the user. We will use it
12695       # for the tool.
12696 
12697       # First remove it from the list of overridden variables, so we can test
12698       # for unknown variables in the end.
12699       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12700 
12701       # Check if the provided tool contains a complete path.
12702       tool_specified="$READLINK"
12703       tool_basename="${tool_specified##*/}"
12704       if test "x$tool_basename" = "x$tool_specified"; then
12705         # A command without a complete path is provided, search $PATH.
12706         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12707 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12708         # Extract the first word of "$tool_basename", so it can be a program name with args.
12709 set dummy $tool_basename; ac_word=$2
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12711 $as_echo_n "checking for $ac_word... " >&6; }
12712 if ${ac_cv_path_READLINK+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715   case $READLINK in
12716   [\\/]* | ?:[\\/]*)
12717   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12718   ;;
12719   *)
12720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721 for as_dir in $PATH
12722 do
12723   IFS=$as_save_IFS
12724   test -z "$as_dir" && as_dir=.
12725     for ac_exec_ext in '' $ac_executable_extensions; do
12726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12727     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729     break 2
12730   fi
12731 done
12732   done
12733 IFS=$as_save_IFS
12734 
12735   ;;
12736 esac
12737 fi
12738 READLINK=$ac_cv_path_READLINK
12739 if test -n "$READLINK"; then
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12741 $as_echo "$READLINK" >&6; }
12742 else
12743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744 $as_echo "no" >&6; }
12745 fi
12746 
12747 
12748         if test "x$READLINK" = x; then
12749           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12750         fi
12751       else
12752         # Otherwise we believe it is a complete path. Use it as it is.
12753         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12754 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12756 $as_echo_n "checking for READLINK... " >&6; }
12757         if test ! -x "$tool_specified"; then
12758           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12759 $as_echo "not found" >&6; }
12760           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12761         fi
12762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12763 $as_echo "$tool_specified" >&6; }
12764       fi
12765     fi
12766   fi
12767 
12768 
12769 
12770 
12771   # Publish this variable in the help.
12772 
12773 
12774   if test "x$DF" = x; then
12775     # The variable is not set by user, try to locate tool using the code snippet
12776     for ac_prog in df
12777 do
12778   # Extract the first word of "$ac_prog", so it can be a program name with args.
12779 set dummy $ac_prog; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if ${ac_cv_path_DF+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   case $DF in
12786   [\\/]* | ?:[\\/]*)
12787   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12788   ;;
12789   *)
12790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793   IFS=$as_save_IFS
12794   test -z "$as_dir" && as_dir=.
12795     for ac_exec_ext in '' $ac_executable_extensions; do
12796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799     break 2
12800   fi
12801 done
12802   done
12803 IFS=$as_save_IFS
12804 
12805   ;;
12806 esac
12807 fi
12808 DF=$ac_cv_path_DF
12809 if test -n "$DF"; then
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12811 $as_echo "$DF" >&6; }
12812 else
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816 
12817 
12818   test -n "$DF" && break
12819 done
12820 
12821   else
12822     # The variable is set, but is it from the command line or the environment?
12823 
12824     # Try to remove the string !DF! from our list.
12825     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12826     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12827       # If it failed, the variable was not from the command line. Ignore it,
12828       # but warn the user (except for BASH, which is always set by the calling BASH).
12829       if test "xDF" != xBASH; then
12830         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12831 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12832       fi
12833       # Try to locate tool using the code snippet
12834       for ac_prog in df
12835 do
12836   # Extract the first word of "$ac_prog", so it can be a program name with args.
12837 set dummy $ac_prog; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_path_DF+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   case $DF in
12844   [\\/]* | ?:[\\/]*)
12845   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12846   ;;
12847   *)
12848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851   IFS=$as_save_IFS
12852   test -z "$as_dir" && as_dir=.
12853     for ac_exec_ext in '' $ac_executable_extensions; do
12854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857     break 2
12858   fi
12859 done
12860   done
12861 IFS=$as_save_IFS
12862 
12863   ;;
12864 esac
12865 fi
12866 DF=$ac_cv_path_DF
12867 if test -n "$DF"; then
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12869 $as_echo "$DF" >&6; }
12870 else
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 fi
12874 
12875 
12876   test -n "$DF" && break
12877 done
12878 
12879     else
12880       # If it succeeded, then it was overridden by the user. We will use it
12881       # for the tool.
12882 
12883       # First remove it from the list of overridden variables, so we can test
12884       # for unknown variables in the end.
12885       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12886 
12887       # Check if the provided tool contains a complete path.
12888       tool_specified="$DF"
12889       tool_basename="${tool_specified##*/}"
12890       if test "x$tool_basename" = "x$tool_specified"; then
12891         # A command without a complete path is provided, search $PATH.
12892         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12893 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12894         # Extract the first word of "$tool_basename", so it can be a program name with args.
12895 set dummy $tool_basename; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if ${ac_cv_path_DF+:} false; then :
12899   $as_echo_n "(cached) " >&6
12900 else
12901   case $DF in
12902   [\\/]* | ?:[\\/]*)
12903   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12904   ;;
12905   *)
12906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12908 do
12909   IFS=$as_save_IFS
12910   test -z "$as_dir" && as_dir=.
12911     for ac_exec_ext in '' $ac_executable_extensions; do
12912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915     break 2
12916   fi
12917 done
12918   done
12919 IFS=$as_save_IFS
12920 
12921   ;;
12922 esac
12923 fi
12924 DF=$ac_cv_path_DF
12925 if test -n "$DF"; then
12926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12927 $as_echo "$DF" >&6; }
12928 else
12929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12931 fi
12932 
12933 
12934         if test "x$DF" = x; then
12935           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12936         fi
12937       else
12938         # Otherwise we believe it is a complete path. Use it as it is.
12939         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12940 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12941         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12942 $as_echo_n "checking for DF... " >&6; }
12943         if test ! -x "$tool_specified"; then
12944           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12945 $as_echo "not found" >&6; }
12946           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12947         fi
12948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12949 $as_echo "$tool_specified" >&6; }
12950       fi
12951     fi
12952   fi
12953 
12954 
12955 
12956 
12957   # Publish this variable in the help.
12958 
12959 
12960   if test "x$SETFILE" = x; then
12961     # The variable is not set by user, try to locate tool using the code snippet
12962     for ac_prog in SetFile
12963 do
12964   # Extract the first word of "$ac_prog", so it can be a program name with args.
12965 set dummy $ac_prog; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if ${ac_cv_path_SETFILE+:} false; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   case $SETFILE in
12972   [\\/]* | ?:[\\/]*)
12973   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
12974   ;;
12975   *)
12976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979   IFS=$as_save_IFS
12980   test -z "$as_dir" && as_dir=.
12981     for ac_exec_ext in '' $ac_executable_extensions; do
12982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
12984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985     break 2
12986   fi
12987 done
12988   done
12989 IFS=$as_save_IFS
12990 
12991   ;;
12992 esac
12993 fi
12994 SETFILE=$ac_cv_path_SETFILE
12995 if test -n "$SETFILE"; then
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
12997 $as_echo "$SETFILE" >&6; }
12998 else
12999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001 fi
13002 
13003 
13004   test -n "$SETFILE" && break
13005 done
13006 
13007   else
13008     # The variable is set, but is it from the command line or the environment?
13009 
13010     # Try to remove the string !SETFILE! from our list.
13011     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13012     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13013       # If it failed, the variable was not from the command line. Ignore it,
13014       # but warn the user (except for BASH, which is always set by the calling BASH).
13015       if test "xSETFILE" != xBASH; then
13016         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13017 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13018       fi
13019       # Try to locate tool using the code snippet
13020       for ac_prog in SetFile
13021 do
13022   # Extract the first word of "$ac_prog", so it can be a program name with args.
13023 set dummy $ac_prog; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if ${ac_cv_path_SETFILE+:} false; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029   case $SETFILE in
13030   [\\/]* | ?:[\\/]*)
13031   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13032   ;;
13033   *)
13034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037   IFS=$as_save_IFS
13038   test -z "$as_dir" && as_dir=.
13039     for ac_exec_ext in '' $ac_executable_extensions; do
13040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043     break 2
13044   fi
13045 done
13046   done
13047 IFS=$as_save_IFS
13048 
13049   ;;
13050 esac
13051 fi
13052 SETFILE=$ac_cv_path_SETFILE
13053 if test -n "$SETFILE"; then
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13055 $as_echo "$SETFILE" >&6; }
13056 else
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059 fi
13060 
13061 
13062   test -n "$SETFILE" && break
13063 done
13064 
13065     else
13066       # If it succeeded, then it was overridden by the user. We will use it
13067       # for the tool.
13068 
13069       # First remove it from the list of overridden variables, so we can test
13070       # for unknown variables in the end.
13071       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13072 
13073       # Check if the provided tool contains a complete path.
13074       tool_specified="$SETFILE"
13075       tool_basename="${tool_specified##*/}"
13076       if test "x$tool_basename" = "x$tool_specified"; then
13077         # A command without a complete path is provided, search $PATH.
13078         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13079 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13080         # Extract the first word of "$tool_basename", so it can be a program name with args.
13081 set dummy $tool_basename; ac_word=$2
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083 $as_echo_n "checking for $ac_word... " >&6; }
13084 if ${ac_cv_path_SETFILE+:} false; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087   case $SETFILE in
13088   [\\/]* | ?:[\\/]*)
13089   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13090   ;;
13091   *)
13092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13094 do
13095   IFS=$as_save_IFS
13096   test -z "$as_dir" && as_dir=.
13097     for ac_exec_ext in '' $ac_executable_extensions; do
13098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13099     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13101     break 2
13102   fi
13103 done
13104   done
13105 IFS=$as_save_IFS
13106 
13107   ;;
13108 esac
13109 fi
13110 SETFILE=$ac_cv_path_SETFILE
13111 if test -n "$SETFILE"; then
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13113 $as_echo "$SETFILE" >&6; }
13114 else
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117 fi
13118 
13119 
13120         if test "x$SETFILE" = x; then
13121           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13122         fi
13123       else
13124         # Otherwise we believe it is a complete path. Use it as it is.
13125         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13126 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13128 $as_echo_n "checking for SETFILE... " >&6; }
13129         if test ! -x "$tool_specified"; then
13130           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13131 $as_echo "not found" >&6; }
13132           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13133         fi
13134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13135 $as_echo "$tool_specified" >&6; }
13136       fi
13137     fi
13138   fi
13139 
13140 
13141 
13142 
13143 # Now we can determine OpenJDK build and target platforms. This is required to
13144 # have early on.
13145 # Make sure we can run config.sub.
13146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13147   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13148 
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13150 $as_echo_n "checking build system type... " >&6; }
13151 if ${ac_cv_build+:} false; then :
13152   $as_echo_n "(cached) " >&6
13153 else
13154   ac_build_alias=$build_alias
13155 test "x$ac_build_alias" = x &&
13156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13157 test "x$ac_build_alias" = x &&
13158   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13160   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13161 
13162 fi
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13164 $as_echo "$ac_cv_build" >&6; }
13165 case $ac_cv_build in
13166 *-*-*) ;;
13167 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13168 esac
13169 build=$ac_cv_build
13170 ac_save_IFS=$IFS; IFS='-'
13171 set x $ac_cv_build
13172 shift
13173 build_cpu=$1
13174 build_vendor=$2
13175 shift; shift
13176 # Remember, the first character of IFS is used to create $*,
13177 # except with old shells:
13178 build_os=$*
13179 IFS=$ac_save_IFS
13180 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13181 
13182 
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13184 $as_echo_n "checking host system type... " >&6; }
13185 if ${ac_cv_host+:} false; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   if test "x$host_alias" = x; then
13189   ac_cv_host=$ac_cv_build
13190 else
13191   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13192     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13193 fi
13194 
13195 fi
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13197 $as_echo "$ac_cv_host" >&6; }
13198 case $ac_cv_host in
13199 *-*-*) ;;
13200 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13201 esac
13202 host=$ac_cv_host
13203 ac_save_IFS=$IFS; IFS='-'
13204 set x $ac_cv_host
13205 shift
13206 host_cpu=$1
13207 host_vendor=$2
13208 shift; shift
13209 # Remember, the first character of IFS is used to create $*,
13210 # except with old shells:
13211 host_os=$*
13212 IFS=$ac_save_IFS
13213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13214 
13215 
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13217 $as_echo_n "checking target system type... " >&6; }
13218 if ${ac_cv_target+:} false; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221   if test "x$target_alias" = x; then
13222   ac_cv_target=$ac_cv_host
13223 else
13224   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13225     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13226 fi
13227 
13228 fi
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13230 $as_echo "$ac_cv_target" >&6; }
13231 case $ac_cv_target in
13232 *-*-*) ;;
13233 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13234 esac
13235 target=$ac_cv_target
13236 ac_save_IFS=$IFS; IFS='-'
13237 set x $ac_cv_target
13238 shift
13239 target_cpu=$1
13240 target_vendor=$2
13241 shift; shift
13242 # Remember, the first character of IFS is used to create $*,
13243 # except with old shells:
13244 target_os=$*
13245 IFS=$ac_save_IFS
13246 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13247 
13248 
13249 # The aliases save the names the user supplied, while $host etc.
13250 # will get canonicalized.
13251 test -n "$target_alias" &&
13252   test "$program_prefix$program_suffix$program_transform_name" = \
13253     NONENONEs,x,x, &&
13254   program_prefix=${target_alias}-
13255 
13256   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13257   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13258   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13259   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13260   # to use the configure naming style.
13261 
13262 
13263 
13264 
13265 
13266   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13267   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13268   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13269   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13270   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13271   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13272 
13273 
13274 
13275   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13276 
13277   case "$build_os" in
13278     *linux*)
13279       VAR_OS=linux
13280       VAR_OS_API=posix
13281       VAR_OS_ENV=linux
13282       ;;
13283     *solaris*)
13284       VAR_OS=solaris
13285       VAR_OS_API=posix
13286       VAR_OS_ENV=solaris
13287       ;;
13288     *darwin*)
13289       VAR_OS=macosx
13290       VAR_OS_API=posix
13291       VAR_OS_ENV=macosx
13292       ;;
13293     *bsd*)
13294       VAR_OS=bsd
13295       VAR_OS_API=posix
13296       VAR_OS_ENV=bsd
13297       ;;
13298     *cygwin*)
13299       VAR_OS=windows
13300       VAR_OS_API=winapi
13301       VAR_OS_ENV=windows.cygwin
13302       ;;
13303     *mingw*)
13304       VAR_OS=windows
13305       VAR_OS_API=winapi
13306       VAR_OS_ENV=windows.msys
13307       ;;
13308     *aix*)
13309       VAR_OS=aix
13310       VAR_OS_API=posix
13311       VAR_OS_ENV=aix
13312       ;;
13313     *)
13314       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13315       ;;
13316   esac
13317 
13318 
13319   # First argument is the cpu name from the trip/quad
13320   case "$build_cpu" in
13321     x86_64)
13322       VAR_CPU=x86_64
13323       VAR_CPU_ARCH=x86
13324       VAR_CPU_BITS=64
13325       VAR_CPU_ENDIAN=little
13326       ;;
13327     i?86)
13328       VAR_CPU=x86
13329       VAR_CPU_ARCH=x86
13330       VAR_CPU_BITS=32
13331       VAR_CPU_ENDIAN=little
13332       ;;
13333     arm*)
13334       VAR_CPU=arm
13335       VAR_CPU_ARCH=arm
13336       VAR_CPU_BITS=32
13337       VAR_CPU_ENDIAN=little
13338       ;;
13339     powerpc)
13340       VAR_CPU=ppc
13341       VAR_CPU_ARCH=ppc
13342       VAR_CPU_BITS=32
13343       VAR_CPU_ENDIAN=big
13344       ;;
13345     powerpc64)
13346       VAR_CPU=ppc64
13347       VAR_CPU_ARCH=ppc
13348       VAR_CPU_BITS=64
13349       VAR_CPU_ENDIAN=big
13350       ;;
13351     s390)
13352       VAR_CPU=s390
13353       VAR_CPU_ARCH=s390
13354       VAR_CPU_BITS=32
13355       VAR_CPU_ENDIAN=big
13356       ;;
13357     s390x)
13358       VAR_CPU=s390x
13359       VAR_CPU_ARCH=s390
13360       VAR_CPU_BITS=64
13361       VAR_CPU_ENDIAN=big
13362       ;;
13363     sparc)
13364       VAR_CPU=sparc
13365       VAR_CPU_ARCH=sparc
13366       VAR_CPU_BITS=32
13367       VAR_CPU_ENDIAN=big
13368       ;;
13369     sparcv9)
13370       VAR_CPU=sparcv9
13371       VAR_CPU_ARCH=sparc
13372       VAR_CPU_BITS=64
13373       VAR_CPU_ENDIAN=big
13374       ;;
13375     *)
13376       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13377       ;;
13378   esac
13379 
13380   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13381   OPENJDK_BUILD_OS="$VAR_OS"
13382   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13383   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13384   OPENJDK_BUILD_CPU="$VAR_CPU"
13385   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13386   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13387   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13388 
13389 
13390 
13391 
13392 
13393 
13394 
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13396 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13398 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13399 
13400   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13401 
13402   case "$host_os" in
13403     *linux*)
13404       VAR_OS=linux
13405       VAR_OS_API=posix
13406       VAR_OS_ENV=linux
13407       ;;
13408     *solaris*)
13409       VAR_OS=solaris
13410       VAR_OS_API=posix
13411       VAR_OS_ENV=solaris
13412       ;;
13413     *darwin*)
13414       VAR_OS=macosx
13415       VAR_OS_API=posix
13416       VAR_OS_ENV=macosx
13417       ;;
13418     *bsd*)
13419       VAR_OS=bsd
13420       VAR_OS_API=posix
13421       VAR_OS_ENV=bsd
13422       ;;
13423     *cygwin*)
13424       VAR_OS=windows
13425       VAR_OS_API=winapi
13426       VAR_OS_ENV=windows.cygwin
13427       ;;
13428     *mingw*)
13429       VAR_OS=windows
13430       VAR_OS_API=winapi
13431       VAR_OS_ENV=windows.msys
13432       ;;
13433     *aix*)
13434       VAR_OS=aix
13435       VAR_OS_API=posix
13436       VAR_OS_ENV=aix
13437       ;;
13438     *)
13439       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13440       ;;
13441   esac
13442 
13443 
13444   # First argument is the cpu name from the trip/quad
13445   case "$host_cpu" in
13446     x86_64)
13447       VAR_CPU=x86_64
13448       VAR_CPU_ARCH=x86
13449       VAR_CPU_BITS=64
13450       VAR_CPU_ENDIAN=little
13451       ;;
13452     i?86)
13453       VAR_CPU=x86
13454       VAR_CPU_ARCH=x86
13455       VAR_CPU_BITS=32
13456       VAR_CPU_ENDIAN=little
13457       ;;
13458     arm*)
13459       VAR_CPU=arm
13460       VAR_CPU_ARCH=arm
13461       VAR_CPU_BITS=32
13462       VAR_CPU_ENDIAN=little
13463       ;;
13464     powerpc)
13465       VAR_CPU=ppc
13466       VAR_CPU_ARCH=ppc
13467       VAR_CPU_BITS=32
13468       VAR_CPU_ENDIAN=big
13469       ;;
13470     powerpc64)
13471       VAR_CPU=ppc64
13472       VAR_CPU_ARCH=ppc
13473       VAR_CPU_BITS=64
13474       VAR_CPU_ENDIAN=big
13475       ;;
13476     s390)
13477       VAR_CPU=s390
13478       VAR_CPU_ARCH=s390
13479       VAR_CPU_BITS=32
13480       VAR_CPU_ENDIAN=big
13481       ;;
13482     s390x)
13483       VAR_CPU=s390x
13484       VAR_CPU_ARCH=s390
13485       VAR_CPU_BITS=64
13486       VAR_CPU_ENDIAN=big
13487       ;;
13488     sparc)
13489       VAR_CPU=sparc
13490       VAR_CPU_ARCH=sparc
13491       VAR_CPU_BITS=32
13492       VAR_CPU_ENDIAN=big
13493       ;;
13494     sparcv9)
13495       VAR_CPU=sparcv9
13496       VAR_CPU_ARCH=sparc
13497       VAR_CPU_BITS=64
13498       VAR_CPU_ENDIAN=big
13499       ;;
13500     *)
13501       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13502       ;;
13503   esac
13504 
13505   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13506   OPENJDK_TARGET_OS="$VAR_OS"
13507   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13508   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13509   OPENJDK_TARGET_CPU="$VAR_CPU"
13510   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13511   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13512   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13513 
13514 
13515 
13516 
13517 
13518 
13519 
13520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13521 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13523 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13524 
13525 
13526 
13527 # Check whether --with-target-bits was given.
13528 if test "${with_target_bits+set}" = set; then :
13529   withval=$with_target_bits;
13530 fi
13531 
13532 
13533   # We have three types of compiles:
13534   # native  == normal compilation, target system == build system
13535   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13536   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13537   #
13538   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13539     # We're doing a proper cross-compilation
13540     COMPILE_TYPE="cross"
13541   else
13542     COMPILE_TYPE="native"
13543   fi
13544 
13545   if test "x$with_target_bits" != x; then
13546     if test "x$COMPILE_TYPE" = "xcross"; then
13547       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13548     fi
13549 
13550     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13551       # A reduced build is requested
13552       COMPILE_TYPE="reduced"
13553       OPENJDK_TARGET_CPU_BITS=32
13554       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13555         OPENJDK_TARGET_CPU=x86
13556       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13557         OPENJDK_TARGET_CPU=sparc
13558       else
13559         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13560       fi
13561     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13562       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
13563     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13564       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13565 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13566     else
13567       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13568     fi
13569   fi
13570 
13571 
13572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13573 $as_echo_n "checking compilation type... " >&6; }
13574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13575 $as_echo "$COMPILE_TYPE" >&6; }
13576 
13577 
13578   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13579     REQUIRED_OS_NAME=SunOS
13580     REQUIRED_OS_VERSION=5.10
13581   fi
13582   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13583     REQUIRED_OS_NAME=Linux
13584     REQUIRED_OS_VERSION=2.6
13585   fi
13586   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13587     REQUIRED_OS_NAME=Windows
13588     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13589       REQUIRED_OS_VERSION=5.2
13590     else
13591       REQUIRED_OS_VERSION=5.1
13592     fi
13593   fi
13594   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13595     REQUIRED_OS_NAME=Darwin
13596     REQUIRED_OS_VERSION=11.2
13597   fi
13598 
13599 
13600 
13601 
13602 
13603   # Also store the legacy naming of the cpu.
13604   # Ie i586 and amd64 instead of x86 and x86_64
13605   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13606   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13607     OPENJDK_TARGET_CPU_LEGACY="i586"
13608   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13609     # On all platforms except MacOSX replace x86_64 with amd64.
13610     OPENJDK_TARGET_CPU_LEGACY="amd64"
13611   fi
13612 
13613 
13614   # And the second legacy naming of the cpu.
13615   # Ie i386 and amd64 instead of x86 and x86_64.
13616   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13617   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13618     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13619   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13620     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13621   fi
13622 
13623 
13624   # This is the name of the cpu (but using i386 and amd64 instead of
13625   # x86 and x86_64, respectively), preceeded by a /, to be used when
13626   # locating libraries. On macosx, it's empty, though.
13627   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13628   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13629     OPENJDK_TARGET_CPU_LIBDIR=""
13630   fi
13631 
13632 
13633   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13634   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13635   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13636   OPENJDK_TARGET_CPU_ISADIR=""
13637   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13638     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13639       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13640     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13641       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13642     fi
13643   fi
13644 
13645 
13646   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13647   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13648   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13649     # On linux only, we replace x86 with i386.
13650     OPENJDK_TARGET_CPU_OSARCH="i386"
13651   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13652     # On all platforms except macosx, we replace x86_64 with amd64.
13653     OPENJDK_TARGET_CPU_OSARCH="amd64"
13654   fi
13655 
13656 
13657   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13658   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13659     OPENJDK_TARGET_CPU_JLI="i386"
13660   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13661     # On all platforms except macosx, we replace x86_64 with amd64.
13662     OPENJDK_TARGET_CPU_JLI="amd64"
13663   fi
13664   # Now setup the -D flags for building libjli.
13665   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13666   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13667     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13668       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13669     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13670       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13671     fi
13672   fi
13673 
13674 
13675   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13676   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13677     OPENJDK_TARGET_OS_API_DIR="solaris"
13678   fi
13679   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13680     OPENJDK_TARGET_OS_API_DIR="windows"
13681   fi
13682 
13683 
13684   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13685       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13686   else
13687       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13688   fi
13689 
13690 
13691   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13692     A_LP64="LP64:="
13693     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13694     # unpack200.exe
13695     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13696       ADD_LP64="-D_LP64=1"
13697     fi
13698   fi
13699   LP64=$A_LP64
13700 
13701 
13702   if test "x$COMPILE_TYPE" = "xcross"; then
13703     # FIXME: ... or should this include reduced builds..?
13704     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13705   else
13706     DEFINE_CROSS_COMPILE_ARCH=""
13707   fi
13708 
13709 
13710   # ZERO_ARCHDEF is used to enable architecture-specific code
13711   case "${OPENJDK_TARGET_CPU}" in
13712     ppc*)    ZERO_ARCHDEF=PPC   ;;
13713     s390*)   ZERO_ARCHDEF=S390  ;;
13714     sparc*)  ZERO_ARCHDEF=SPARC ;;
13715     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13716     x86)     ZERO_ARCHDEF=IA32  ;;
13717     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13718   esac
13719 
13720 
13721 
13722 
13723 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13724 
13725   # Locate the directory of this script.
13726   SCRIPT="$0"
13727   AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L`
13728 
13729   # Where is the source? It is located two levels above the configure script.
13730   CURDIR="$PWD"
13731   cd "$AUTOCONF_DIR/../.."
13732   SRC_ROOT="`$THEPWDCMD -L`"
13733 
13734   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13735     PATH_SEP=";"
13736 
13737   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13738   if test $SRC_ROOT_LENGTH -gt 100; then
13739     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13740   fi
13741 
13742   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13744 $as_echo_n "checking cygwin release... " >&6; }
13745     CYGWIN_VERSION=`$UNAME -r`
13746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13747 $as_echo "$CYGWIN_VERSION" >&6; }
13748     WINDOWS_ENV_VENDOR='cygwin'
13749     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13750 
13751     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13752     if test "x$CYGWIN_VERSION_OK" = x; then
13753       { $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
13754 $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;}
13755       as_fn_error $? "Cannot continue" "$LINENO" 5
13756     fi
13757     if test "x$CYGPATH" = x; then
13758       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13759     fi
13760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13761 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13762     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13763     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13764     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13765     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13767 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13768     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13769     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13770     if test "x$test_cygdrive_prefix" = x; then
13771       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13772     fi
13773   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13775 $as_echo_n "checking msys release... " >&6; }
13776     MSYS_VERSION=`$UNAME -r`
13777     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13778 $as_echo "$MSYS_VERSION" >&6; }
13779 
13780     WINDOWS_ENV_VENDOR='msys'
13781     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13782 
13783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13784 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13785     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13786     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13787 
13788   windows_path="$MSYS_ROOT_PATH"
13789   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13790     unix_path=`$CYGPATH -u "$windows_path"`
13791     MSYS_ROOT_PATH="$unix_path"
13792   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13793     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13794     MSYS_ROOT_PATH="$unix_path"
13795   fi
13796 
13797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13798 $as_echo "$MSYS_ROOT_PATH" >&6; }
13799     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13800   else
13801     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13802   fi
13803 
13804   # Test if windows or unix (cygwin/msys) find is first in path.
13805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13806 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13807   FIND_BINARY_OUTPUT=`find --version 2>&1`
13808   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13810 $as_echo "unix style" >&6; }
13811   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13813 $as_echo "Windows" >&6; }
13814     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13815 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13816     { $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
13817 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13818     as_fn_error $? "Cannot continue" "$LINENO" 5
13819   else
13820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13821 $as_echo "unknown" >&6; }
13822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13823 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13824   fi
13825 
13826   else
13827     PATH_SEP=":"
13828   fi
13829 
13830 
13831 
13832   cd "$CURDIR"
13833 
13834 
13835   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13836 
13837   # Input might be given as Windows format, start by converting to
13838   # unix format.
13839   path="$SRC_ROOT"
13840   new_path=`$CYGPATH -u "$path"`
13841 
13842   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13843   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13844   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13845   # "foo.exe" is OK but "foo" is an error.
13846   #
13847   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13848   # It is also a way to make sure we got the proper file name for the real test later on.
13849   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13850   if test "x$test_shortpath" = x; then
13851     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13852 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13853     as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5
13854   fi
13855 
13856   # Call helper function which possibly converts this using DOS-style short mode.
13857   # If so, the updated path is stored in $new_path.
13858 
13859   input_path="$new_path"
13860   # Check if we need to convert this using DOS-style short mode. If the path
13861   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13862   # take no chances and rewrite it.
13863   # Note: m4 eats our [], so we need to use [ and ] instead.
13864   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13865   if test "x$has_forbidden_chars" != x; then
13866     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13867     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13868     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13869     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13870       # Going to short mode and back again did indeed matter. Since short mode is
13871       # case insensitive, let's make it lowercase to improve readability.
13872       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13873       # Now convert it back to Unix-stile (cygpath)
13874       input_path=`$CYGPATH -u "$shortmode_path"`
13875       new_path="$input_path"
13876     fi
13877   fi
13878 
13879   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
13880   if test "x$test_cygdrive_prefix" = x; then
13881     # As a simple fix, exclude /usr/bin since it's not a real path.
13882     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
13883       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
13884       # a path prefixed by /cygdrive for fixpath to work.
13885       new_path="$CYGWIN_ROOT_PATH$input_path"
13886     fi
13887   fi
13888 
13889 
13890   if test "x$path" != "x$new_path"; then
13891     SRC_ROOT="$new_path"
13892     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13893 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13894   fi
13895 
13896   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13897 
13898   path="$SRC_ROOT"
13899   has_colon=`$ECHO $path | $GREP ^.:`
13900   new_path="$path"
13901   if test "x$has_colon" = x; then
13902     # Not in mixed or Windows style, start by that.
13903     new_path=`cmd //c echo $path`
13904   fi
13905 
13906 
13907   input_path="$new_path"
13908   # Check if we need to convert this using DOS-style short mode. If the path
13909   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13910   # take no chances and rewrite it.
13911   # Note: m4 eats our [], so we need to use [ and ] instead.
13912   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
13913   if test "x$has_forbidden_chars" != x; then
13914     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13915     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13916   fi
13917 
13918 
13919   windows_path="$new_path"
13920   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13921     unix_path=`$CYGPATH -u "$windows_path"`
13922     new_path="$unix_path"
13923   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13924     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13925     new_path="$unix_path"
13926   fi
13927 
13928   if test "x$path" != "x$new_path"; then
13929     SRC_ROOT="$new_path"
13930     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5
13931 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;}
13932   fi
13933 
13934   # Save the first 10 bytes of this path to the storage, so fixpath can work.
13935   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
13936 
13937   else
13938     # We're on a posix platform. Hooray! :)
13939     path="$SRC_ROOT"
13940     has_space=`$ECHO "$path" | $GREP " "`
13941     if test "x$has_space" != x; then
13942       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5
13943 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;}
13944       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
13945     fi
13946 
13947     # Use eval to expand a potential ~
13948     eval path="$path"
13949     if test ! -f "$path" && test ! -d "$path"; then
13950       as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
13951     fi
13952 
13953     SRC_ROOT="`cd "$path"; $THEPWDCMD -L`"
13954   fi
13955 
13956 
13957   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13958 
13959   # Input might be given as Windows format, start by converting to
13960   # unix format.
13961   path="$CURDIR"
13962   new_path=`$CYGPATH -u "$path"`
13963 
13964   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
13965   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
13966   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
13967   # "foo.exe" is OK but "foo" is an error.
13968   #
13969   # This test is therefore slightly more accurate than "test -f" to check for file precense.
13970   # It is also a way to make sure we got the proper file name for the real test later on.
13971   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
13972   if test "x$test_shortpath" = x; then
13973     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
13974 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
13975     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
13976   fi
13977 
13978   # Call helper function which possibly converts this using DOS-style short mode.
13979   # If so, the updated path is stored in $new_path.
13980 
13981   input_path="$new_path"
13982   # Check if we need to convert this using DOS-style short mode. If the path
13983   # contains just simple characters, use it. Otherwise (spaces, weird characters),
13984   # take no chances and rewrite it.
13985   # Note: m4 eats our [], so we need to use [ and ] instead.
13986   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
13987   if test "x$has_forbidden_chars" != x; then
13988     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
13989     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
13990     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
13991     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
13992       # Going to short mode and back again did indeed matter. Since short mode is
13993       # case insensitive, let's make it lowercase to improve readability.
13994       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
13995       # Now convert it back to Unix-stile (cygpath)
13996       input_path=`$CYGPATH -u "$shortmode_path"`
13997       new_path="$input_path"
13998     fi
13999   fi
14000 
14001   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14002   if test "x$test_cygdrive_prefix" = x; then
14003     # As a simple fix, exclude /usr/bin since it's not a real path.
14004     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14005       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14006       # a path prefixed by /cygdrive for fixpath to work.
14007       new_path="$CYGWIN_ROOT_PATH$input_path"
14008     fi
14009   fi
14010 
14011 
14012   if test "x$path" != "x$new_path"; then
14013     CURDIR="$new_path"
14014     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14015 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14016   fi
14017 
14018   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14019 
14020   path="$CURDIR"
14021   has_colon=`$ECHO $path | $GREP ^.:`
14022   new_path="$path"
14023   if test "x$has_colon" = x; then
14024     # Not in mixed or Windows style, start by that.
14025     new_path=`cmd //c echo $path`
14026   fi
14027 
14028 
14029   input_path="$new_path"
14030   # Check if we need to convert this using DOS-style short mode. If the path
14031   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14032   # take no chances and rewrite it.
14033   # Note: m4 eats our [], so we need to use [ and ] instead.
14034   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14035   if test "x$has_forbidden_chars" != x; then
14036     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14037     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14038   fi
14039 
14040 
14041   windows_path="$new_path"
14042   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14043     unix_path=`$CYGPATH -u "$windows_path"`
14044     new_path="$unix_path"
14045   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14046     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14047     new_path="$unix_path"
14048   fi
14049 
14050   if test "x$path" != "x$new_path"; then
14051     CURDIR="$new_path"
14052     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14053 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14054   fi
14055 
14056   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14057   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14058 
14059   else
14060     # We're on a posix platform. Hooray! :)
14061     path="$CURDIR"
14062     has_space=`$ECHO "$path" | $GREP " "`
14063     if test "x$has_space" != x; then
14064       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14065 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14066       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14067     fi
14068 
14069     # Use eval to expand a potential ~
14070     eval path="$path"
14071     if test ! -f "$path" && test ! -d "$path"; then
14072       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14073     fi
14074 
14075     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14076   fi
14077 
14078 
14079   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14080     # Add extra search paths on solaris for utilities like ar and as etc...
14081     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14082   fi
14083 
14084   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14085   # is not correct.
14086 
14087 # Check whether --with-sys-root was given.
14088 if test "${with_sys_root+set}" = set; then :
14089   withval=$with_sys_root;
14090 fi
14091 
14092 
14093   if test "x$with_sys_root" != x; then
14094     SYS_ROOT=$with_sys_root
14095   else
14096     SYS_ROOT=/
14097   fi
14098 
14099 
14100 
14101 # Check whether --with-tools-dir was given.
14102 if test "${with_tools_dir+set}" = set; then :
14103   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14104 
14105 fi
14106 
14107 
14108 
14109 # Check whether --with-devkit was given.
14110 if test "${with_devkit+set}" = set; then :
14111   withval=$with_devkit;
14112         if test "x$with_sys_root" != x; then
14113           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14114         fi
14115 
14116   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14117 
14118   # Input might be given as Windows format, start by converting to
14119   # unix format.
14120   path="$with_devkit"
14121   new_path=`$CYGPATH -u "$path"`
14122 
14123   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14124   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14125   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14126   # "foo.exe" is OK but "foo" is an error.
14127   #
14128   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14129   # It is also a way to make sure we got the proper file name for the real test later on.
14130   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14131   if test "x$test_shortpath" = x; then
14132     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14133 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14134     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14135   fi
14136 
14137   # Call helper function which possibly converts this using DOS-style short mode.
14138   # If so, the updated path is stored in $new_path.
14139 
14140   input_path="$new_path"
14141   # Check if we need to convert this using DOS-style short mode. If the path
14142   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14143   # take no chances and rewrite it.
14144   # Note: m4 eats our [], so we need to use [ and ] instead.
14145   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14146   if test "x$has_forbidden_chars" != x; then
14147     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14148     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14149     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14150     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14151       # Going to short mode and back again did indeed matter. Since short mode is
14152       # case insensitive, let's make it lowercase to improve readability.
14153       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14154       # Now convert it back to Unix-stile (cygpath)
14155       input_path=`$CYGPATH -u "$shortmode_path"`
14156       new_path="$input_path"
14157     fi
14158   fi
14159 
14160   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14161   if test "x$test_cygdrive_prefix" = x; then
14162     # As a simple fix, exclude /usr/bin since it's not a real path.
14163     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14164       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14165       # a path prefixed by /cygdrive for fixpath to work.
14166       new_path="$CYGWIN_ROOT_PATH$input_path"
14167     fi
14168   fi
14169 
14170 
14171   if test "x$path" != "x$new_path"; then
14172     with_devkit="$new_path"
14173     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14174 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14175   fi
14176 
14177   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14178 
14179   path="$with_devkit"
14180   has_colon=`$ECHO $path | $GREP ^.:`
14181   new_path="$path"
14182   if test "x$has_colon" = x; then
14183     # Not in mixed or Windows style, start by that.
14184     new_path=`cmd //c echo $path`
14185   fi
14186 
14187 
14188   input_path="$new_path"
14189   # Check if we need to convert this using DOS-style short mode. If the path
14190   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14191   # take no chances and rewrite it.
14192   # Note: m4 eats our [], so we need to use [ and ] instead.
14193   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14194   if test "x$has_forbidden_chars" != x; then
14195     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14196     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14197   fi
14198 
14199 
14200   windows_path="$new_path"
14201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14202     unix_path=`$CYGPATH -u "$windows_path"`
14203     new_path="$unix_path"
14204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14206     new_path="$unix_path"
14207   fi
14208 
14209   if test "x$path" != "x$new_path"; then
14210     with_devkit="$new_path"
14211     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14212 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14213   fi
14214 
14215   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14216   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14217 
14218   else
14219     # We're on a posix platform. Hooray! :)
14220     path="$with_devkit"
14221     has_space=`$ECHO "$path" | $GREP " "`
14222     if test "x$has_space" != x; then
14223       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14224 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14225       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14226     fi
14227 
14228     # Use eval to expand a potential ~
14229     eval path="$path"
14230     if test ! -f "$path" && test ! -d "$path"; then
14231       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14232     fi
14233 
14234     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14235   fi
14236 
14237 
14238   if test "x$TOOLS_DIR" = x; then
14239     TOOLS_DIR="$with_devkit/bin"
14240   else
14241     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14242   fi
14243 
14244         if test -d "$with_devkit/$host_alias/libc"; then
14245           SYS_ROOT=$with_devkit/$host_alias/libc
14246         elif test -d "$with_devkit/$host/sys-root"; then
14247           SYS_ROOT=$with_devkit/$host/sys-root
14248         fi
14249 
14250 fi
14251 
14252 
14253 
14254   # Setup default logging of stdout and stderr to build.log in the output root.
14255   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14256   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14257   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14258 
14259 
14260 
14261 
14262 
14263 # Check if it's a pure open build or if custom sources are to be used.
14264 
14265   # Check whether --enable-openjdk-only was given.
14266 if test "${enable_openjdk_only+set}" = set; then :
14267   enableval=$enable_openjdk_only;
14268 else
14269   enable_openjdk_only="no"
14270 fi
14271 
14272 
14273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14274 $as_echo_n "checking for presence of closed sources... " >&6; }
14275   if test -d "$SRC_ROOT/jdk/src/closed"; then
14276     CLOSED_SOURCE_PRESENT=yes
14277   else
14278     CLOSED_SOURCE_PRESENT=no
14279   fi
14280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14281 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14282 
14283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14284 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14285   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14287 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14288 
14289   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14290     OPENJDK=true
14291     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14292       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14293 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14294     fi
14295   else
14296     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14297       OPENJDK=true
14298     else
14299       OPENJDK=false
14300     fi
14301   fi
14302 
14303   if test "x$OPENJDK" = "xtrue"; then
14304     SET_OPENJDK="OPENJDK=true"
14305   fi
14306 
14307 
14308 
14309 
14310 # These are needed to be able to create a configuration name (and thus the output directory)
14311 
14312   ###############################################################################
14313   #
14314   # Check which variant of the JDK that we want to build.
14315   # Currently we have:
14316   #    normal:   standard edition
14317   # but the custom make system may add other variants
14318   #
14319   # Effectively the JDK variant gives a name to a specific set of
14320   # modules to compile into the JDK. In the future, these modules
14321   # might even be Jigsaw modules.
14322   #
14323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14324 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14325 
14326 # Check whether --with-jdk-variant was given.
14327 if test "${with_jdk_variant+set}" = set; then :
14328   withval=$with_jdk_variant;
14329 fi
14330 
14331 
14332   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14333     JDK_VARIANT="normal"
14334   else
14335     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14336   fi
14337 
14338 
14339 
14340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14341 $as_echo "$JDK_VARIANT" >&6; }
14342 
14343 
14344 ###############################################################################
14345 #
14346 # Check which interpreter of the JVM we want to build.
14347 # Currently we have:
14348 #    template: Template interpreter (the default)
14349 #    cpp     : C++ interpreter
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14351 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14352 
14353 # Check whether --with-jvm-interpreter was given.
14354 if test "${with_jvm_interpreter+set}" = set; then :
14355   withval=$with_jvm_interpreter;
14356 fi
14357 
14358 
14359 if test "x$with_jvm_interpreter" = x; then
14360      with_jvm_interpreter="template"
14361 fi
14362 
14363 JVM_INTERPRETER="$with_jvm_interpreter"
14364 
14365 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14366    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14367 fi
14368 
14369 
14370 
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14372 $as_echo "$with_jvm_interpreter" >&6; }
14373 
14374 
14375 
14376   ###############################################################################
14377   #
14378   # Check which variants of the JVM that we want to build.
14379   # Currently we have:
14380   #    server: normal interpreter and a tiered C1/C2 compiler
14381   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14382   #    minimal1: reduced form of client with optional VM services and features stripped out
14383   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14384   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14385   #    zero: no machine code interpreter, no compiler
14386   #    zeroshark: zero interpreter and shark/llvm compiler backend
14387 #    core: interpreter only, no compiler (only works on some platforms)
14388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14389 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14390 
14391 # Check whether --with-jvm-variants was given.
14392 if test "${with_jvm_variants+set}" = set; then :
14393   withval=$with_jvm_variants;
14394 fi
14395 
14396 
14397   if test "x$with_jvm_variants" = x; then
14398     with_jvm_variants="server"
14399   fi
14400 
14401   JVM_VARIANTS=",$with_jvm_variants,"
14402   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,//'`
14403 
14404   if test "x$TEST_VARIANTS" != "x,"; then
14405      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14406   fi
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14408 $as_echo "$with_jvm_variants" >&6; }
14409 
14410   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14411   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14412   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14413   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14414   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14415   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14416   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14417 
14418   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14419     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14420       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14421     fi
14422   fi
14423   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14424     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14425       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14426     fi
14427   fi
14428   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14429     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14430       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14431     fi
14432   fi
14433 
14434   # Replace the commas with AND for use in the build directory name.
14435   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14436   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/'`
14437   if test "x$COUNT_VARIANTS" != "x,1"; then
14438     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14439   else
14440     BUILDING_MULTIPLE_JVM_VARIANTS=no
14441   fi
14442 
14443 
14444 
14445 
14446 
14447 
14448 
14449 
14450 
14451 
14452   INCLUDE_SA=true
14453   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14454     INCLUDE_SA=false
14455   fi
14456   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14457     INCLUDE_SA=false
14458   fi
14459   if test "x$VAR_CPU" = xppc64 ; then
14460     INCLUDE_SA=false
14461   fi
14462 
14463 
14464   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14465     MACOSX_UNIVERSAL="true"
14466   fi
14467 
14468 
14469 
14470 
14471   ###############################################################################
14472   #
14473   # Set the debug level
14474   #    release: no debug information, all optimizations, no asserts.
14475   #    fastdebug: debug information (-g), all optimizations, all asserts
14476   #    slowdebug: debug information (-g), no optimizations, all asserts
14477   #
14478   DEBUG_LEVEL="release"
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14480 $as_echo_n "checking which debug level to use... " >&6; }
14481   # Check whether --enable-debug was given.
14482 if test "${enable_debug+set}" = set; then :
14483   enableval=$enable_debug;
14484         ENABLE_DEBUG="${enableval}"
14485         DEBUG_LEVEL="fastdebug"
14486 
14487 else
14488   ENABLE_DEBUG="no"
14489 fi
14490 
14491 
14492 
14493 # Check whether --with-debug-level was given.
14494 if test "${with_debug_level+set}" = set; then :
14495   withval=$with_debug_level;
14496         DEBUG_LEVEL="${withval}"
14497         if test "x$ENABLE_DEBUG" = xyes; then
14498           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14499         fi
14500 
14501 fi
14502 
14503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14504 $as_echo "$DEBUG_LEVEL" >&6; }
14505 
14506   if test "x$DEBUG_LEVEL" != xrelease && \
14507       test "x$DEBUG_LEVEL" != xfastdebug && \
14508       test "x$DEBUG_LEVEL" != xslowdebug; then
14509     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14510   fi
14511 
14512 
14513   ###############################################################################
14514   #
14515   # Setup legacy vars/targets and new vars to deal with different debug levels.
14516   #
14517 
14518   case $DEBUG_LEVEL in
14519     release )
14520       VARIANT="OPT"
14521       FASTDEBUG="false"
14522       DEBUG_CLASSFILES="false"
14523       BUILD_VARIANT_RELEASE=""
14524       HOTSPOT_DEBUG_LEVEL="product"
14525       HOTSPOT_EXPORT="product"
14526       ;;
14527     fastdebug )
14528       VARIANT="DBG"
14529       FASTDEBUG="true"
14530       DEBUG_CLASSFILES="true"
14531       BUILD_VARIANT_RELEASE="-fastdebug"
14532       HOTSPOT_DEBUG_LEVEL="fastdebug"
14533       HOTSPOT_EXPORT="fastdebug"
14534       ;;
14535     slowdebug )
14536       VARIANT="DBG"
14537       FASTDEBUG="false"
14538       DEBUG_CLASSFILES="true"
14539       BUILD_VARIANT_RELEASE="-debug"
14540       HOTSPOT_DEBUG_LEVEL="jvmg"
14541       HOTSPOT_EXPORT="debug"
14542       ;;
14543   esac
14544 
14545   #####
14546   # Generate the legacy makefile targets for hotspot.
14547   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14548   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14549   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14550   # But until then ...
14551   HOTSPOT_TARGET=""
14552 
14553   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14554     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14555   fi
14556 
14557   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14558     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14559   fi
14560 
14561   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14562     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14563   fi
14564 
14565   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14566     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14567   fi
14568 
14569   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14570     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14571   fi
14572 
14573   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14574     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14575   fi
14576 
14577   if test "x$JVM_VARIANT_CORE" = xtrue; then
14578     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14579   fi
14580 
14581   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14582 
14583   # On Macosx universal binaries are produced, but they only contain
14584   # 64 bit intel. This invalidates control of which jvms are built
14585   # from configure, but only server is valid anyway. Fix this
14586   # when hotspot makefiles are rewritten.
14587   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14588     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14589   fi
14590 
14591   #####
14592 
14593 
14594 
14595 
14596 
14597 
14598 
14599 
14600 # With basic setup done, call the custom early hook.
14601 
14602 
14603 # To properly create a configuration name, we need to have the OpenJDK target
14604 # and options (variants and debug level) parsed.
14605 
14606 
14607 
14608 # Check whether --with-conf-name was given.
14609 if test "${with_conf_name+set}" = set; then :
14610   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14611 fi
14612 
14613 
14614   # Test from where we are running configure, in or outside of src root.
14615   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14616       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14617       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14618     # We are running configure from the src root.
14619     # Create a default ./build/target-variant-debuglevel output root.
14620     if test "x${CONF_NAME}" = x; then
14621       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14622     fi
14623     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14624     $MKDIR -p "$OUTPUT_ROOT"
14625     if test ! -d "$OUTPUT_ROOT"; then
14626       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14627     fi
14628   else
14629     # We are running configure from outside of the src dir.
14630     # Then use the current directory as output dir!
14631     # If configuration is situated in normal build directory, just use the build
14632     # directory name as configuration name, otherwise use the complete path.
14633     if test "x${CONF_NAME}" = x; then
14634       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14635     fi
14636     OUTPUT_ROOT="$CURDIR"
14637 
14638     # WARNING: This might be a bad thing to do. You need to be sure you want to
14639     # have a configuration in this directory. Do some sanity checks!
14640 
14641     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14642       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14643       # other files
14644       files_present=`$LS $OUTPUT_ROOT`
14645       # Configure has already touched config.log and confdefs.h in the current dir when this check
14646       # is performed.
14647       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14648       | $TR -d '\n'`
14649       if test "x$filtered_files" != x; then
14650         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14651 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14652         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14653 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14654         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14655 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14656         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14657 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14658         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14659 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14660         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14661 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14662         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14663 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14664         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14665       fi
14666     fi
14667   fi
14668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14669 $as_echo_n "checking what configuration name to use... " >&6; }
14670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14671 $as_echo "$CONF_NAME" >&6; }
14672 
14673 
14674   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14675 
14676   # Input might be given as Windows format, start by converting to
14677   # unix format.
14678   path="$OUTPUT_ROOT"
14679   new_path=`$CYGPATH -u "$path"`
14680 
14681   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14682   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14683   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14684   # "foo.exe" is OK but "foo" is an error.
14685   #
14686   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14687   # It is also a way to make sure we got the proper file name for the real test later on.
14688   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14689   if test "x$test_shortpath" = x; then
14690     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14691 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14692     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14693   fi
14694 
14695   # Call helper function which possibly converts this using DOS-style short mode.
14696   # If so, the updated path is stored in $new_path.
14697 
14698   input_path="$new_path"
14699   # Check if we need to convert this using DOS-style short mode. If the path
14700   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14701   # take no chances and rewrite it.
14702   # Note: m4 eats our [], so we need to use [ and ] instead.
14703   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14704   if test "x$has_forbidden_chars" != x; then
14705     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14706     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14707     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14708     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14709       # Going to short mode and back again did indeed matter. Since short mode is
14710       # case insensitive, let's make it lowercase to improve readability.
14711       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14712       # Now convert it back to Unix-stile (cygpath)
14713       input_path=`$CYGPATH -u "$shortmode_path"`
14714       new_path="$input_path"
14715     fi
14716   fi
14717 
14718   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14719   if test "x$test_cygdrive_prefix" = x; then
14720     # As a simple fix, exclude /usr/bin since it's not a real path.
14721     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14722       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14723       # a path prefixed by /cygdrive for fixpath to work.
14724       new_path="$CYGWIN_ROOT_PATH$input_path"
14725     fi
14726   fi
14727 
14728 
14729   if test "x$path" != "x$new_path"; then
14730     OUTPUT_ROOT="$new_path"
14731     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14732 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14733   fi
14734 
14735   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14736 
14737   path="$OUTPUT_ROOT"
14738   has_colon=`$ECHO $path | $GREP ^.:`
14739   new_path="$path"
14740   if test "x$has_colon" = x; then
14741     # Not in mixed or Windows style, start by that.
14742     new_path=`cmd //c echo $path`
14743   fi
14744 
14745 
14746   input_path="$new_path"
14747   # Check if we need to convert this using DOS-style short mode. If the path
14748   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14749   # take no chances and rewrite it.
14750   # Note: m4 eats our [], so we need to use [ and ] instead.
14751   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14752   if test "x$has_forbidden_chars" != x; then
14753     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14754     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14755   fi
14756 
14757 
14758   windows_path="$new_path"
14759   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14760     unix_path=`$CYGPATH -u "$windows_path"`
14761     new_path="$unix_path"
14762   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14763     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14764     new_path="$unix_path"
14765   fi
14766 
14767   if test "x$path" != "x$new_path"; then
14768     OUTPUT_ROOT="$new_path"
14769     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14770 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14771   fi
14772 
14773   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14774   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14775 
14776   else
14777     # We're on a posix platform. Hooray! :)
14778     path="$OUTPUT_ROOT"
14779     has_space=`$ECHO "$path" | $GREP " "`
14780     if test "x$has_space" != x; then
14781       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14782 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14783       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14784     fi
14785 
14786     # Use eval to expand a potential ~
14787     eval path="$path"
14788     if test ! -f "$path" && test ! -d "$path"; then
14789       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14790     fi
14791 
14792     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14793   fi
14794 
14795 
14796   SPEC=$OUTPUT_ROOT/spec.gmk
14797 
14798   CONF_NAME=$CONF_NAME
14799 
14800   OUTPUT_ROOT=$OUTPUT_ROOT
14801 
14802 
14803   # Most of the probed defines are put into config.h
14804   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14805 
14806   # The spec.gmk file contains all variables for the make system.
14807   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14808 
14809   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14810   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14811 
14812   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14813   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14814 
14815   # The compare.sh is used to compare the build output to other builds.
14816   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
14817 
14818   # Spec.sh is currently used by compare-objects.sh
14819   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
14820 
14821   # The generated Makefile knows where the spec.gmk is and where the source is.
14822   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
14823   # which will look for generated configurations
14824   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
14825 
14826 
14827   # Save the arguments given to us
14828   echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
14829 
14830 
14831 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
14832 
14833   for ac_prog in apt-get yum port pkgutil pkgadd
14834 do
14835   # Extract the first word of "$ac_prog", so it can be a program name with args.
14836 set dummy $ac_prog; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if ${ac_cv_prog_PKGHANDLER+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   if test -n "$PKGHANDLER"; then
14843   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
14844 else
14845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $PATH
14847 do
14848   IFS=$as_save_IFS
14849   test -z "$as_dir" && as_dir=.
14850     for ac_exec_ext in '' $ac_executable_extensions; do
14851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14852     ac_cv_prog_PKGHANDLER="$ac_prog"
14853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14854     break 2
14855   fi
14856 done
14857   done
14858 IFS=$as_save_IFS
14859 
14860 fi
14861 fi
14862 PKGHANDLER=$ac_cv_prog_PKGHANDLER
14863 if test -n "$PKGHANDLER"; then
14864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
14865 $as_echo "$PKGHANDLER" >&6; }
14866 else
14867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14868 $as_echo "no" >&6; }
14869 fi
14870 
14871 
14872   test -n "$PKGHANDLER" && break
14873 done
14874 
14875 
14876 
14877 # Setup tools that requires more complex handling, or that is not needed by the configure script.
14878 
14879 
14880   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
14881   if test "x$MAKE" != x; then
14882     # User has supplied a make, test it.
14883     if test ! -f "$MAKE"; then
14884       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
14885     fi
14886 
14887   MAKE_CANDIDATE=""$MAKE""
14888   DESCRIPTION="user supplied MAKE=$MAKE"
14889   if test "x$MAKE_CANDIDATE" != x; then
14890     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
14891 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
14892     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
14893     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
14894     if test "x$IS_GNU_MAKE" = x; then
14895       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
14896 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
14897     else
14898       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
14899       if test "x$IS_MODERN_MAKE" = x; then
14900         { $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
14901 $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;}
14902       else
14903         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
14904           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14905             MAKE_EXPECTED_ENV='cygwin'
14906           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14907             MAKE_EXPECTED_ENV='msys'
14908           else
14909             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
14910           fi
14911           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
14912           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
14913         else
14914           # Not relevant for non-Windows
14915           IS_MAKE_CORRECT_ENV=true
14916         fi
14917         if test "x$IS_MAKE_CORRECT_ENV" = x; then
14918           { $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
14919 $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;}
14920         else
14921           FOUND_MAKE=$MAKE_CANDIDATE
14922 
14923   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14924 
14925   # First separate the path from the arguments. This will split at the first
14926   # space.
14927   complete="$FOUND_MAKE"
14928   path="${complete%% *}"
14929   tmp="$complete EOL"
14930   arguments="${tmp#* }"
14931 
14932   # Input might be given as Windows format, start by converting to
14933   # unix format.
14934   new_path=`$CYGPATH -u "$path"`
14935 
14936   # Now try to locate executable using which
14937   new_path=`$WHICH "$new_path" 2> /dev/null`
14938   # bat and cmd files are not always considered executable in cygwin causing which
14939   # to not find them
14940   if test "x$new_path" = x \
14941       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14942       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14943     new_path=`$CYGPATH -u "$path"`
14944   fi
14945   if test "x$new_path" = x; then
14946     # Oops. Which didn't find the executable.
14947     # The splitting of arguments from the executable at a space might have been incorrect,
14948     # since paths with space are more likely in Windows. Give it another try with the whole
14949     # argument.
14950     path="$complete"
14951     arguments="EOL"
14952     new_path=`$CYGPATH -u "$path"`
14953     new_path=`$WHICH "$new_path" 2> /dev/null`
14954     # bat and cmd files are not always considered executable in cygwin causing which
14955     # to not find them
14956     if test "x$new_path" = x \
14957         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
14958         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
14959       new_path=`$CYGPATH -u "$path"`
14960     fi
14961     if test "x$new_path" = x; then
14962       # It's still not found. Now this is an unrecoverable error.
14963       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
14964 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
14965       has_space=`$ECHO "$complete" | $GREP " "`
14966       if test "x$has_space" != x; then
14967         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
14968 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
14969       fi
14970       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14971     fi
14972   fi
14973 
14974   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14975   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14976   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14977   # "foo.exe" is OK but "foo" is an error.
14978   #
14979   # This test is therefore slightly more accurate than "test -f" to check for file presence.
14980   # It is also a way to make sure we got the proper file name for the real test later on.
14981   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14982   if test "x$test_shortpath" = x; then
14983     # Short path failed, file does not exist as specified.
14984     # Try adding .exe or .cmd
14985     if test -f "${new_path}.exe"; then
14986       input_to_shortpath="${new_path}.exe"
14987     elif test -f "${new_path}.cmd"; then
14988       input_to_shortpath="${new_path}.cmd"
14989     else
14990       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
14991 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
14992       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
14993 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
14994       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
14995     fi
14996   else
14997     input_to_shortpath="$new_path"
14998   fi
14999 
15000   # Call helper function which possibly converts this using DOS-style short mode.
15001   # If so, the updated path is stored in $new_path.
15002   new_path="$input_to_shortpath"
15003 
15004   input_path="$input_to_shortpath"
15005   # Check if we need to convert this using DOS-style short mode. If the path
15006   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15007   # take no chances and rewrite it.
15008   # Note: m4 eats our [], so we need to use [ and ] instead.
15009   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15010   if test "x$has_forbidden_chars" != x; then
15011     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15012     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15013     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15014     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15015       # Going to short mode and back again did indeed matter. Since short mode is
15016       # case insensitive, let's make it lowercase to improve readability.
15017       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15018       # Now convert it back to Unix-stile (cygpath)
15019       input_path=`$CYGPATH -u "$shortmode_path"`
15020       new_path="$input_path"
15021     fi
15022   fi
15023 
15024   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15025   if test "x$test_cygdrive_prefix" = x; then
15026     # As a simple fix, exclude /usr/bin since it's not a real path.
15027     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15028       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15029       # a path prefixed by /cygdrive for fixpath to work.
15030       new_path="$CYGWIN_ROOT_PATH$input_path"
15031     fi
15032   fi
15033 
15034   # remove trailing .exe if any
15035   new_path="${new_path/%.exe/}"
15036 
15037   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15038 
15039   # First separate the path from the arguments. This will split at the first
15040   # space.
15041   complete="$FOUND_MAKE"
15042   path="${complete%% *}"
15043   tmp="$complete EOL"
15044   arguments="${tmp#* }"
15045 
15046   # Input might be given as Windows format, start by converting to
15047   # unix format.
15048   new_path="$path"
15049 
15050   windows_path="$new_path"
15051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15052     unix_path=`$CYGPATH -u "$windows_path"`
15053     new_path="$unix_path"
15054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15055     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15056     new_path="$unix_path"
15057   fi
15058 
15059 
15060   # Now try to locate executable using which
15061   new_path=`$WHICH "$new_path" 2> /dev/null`
15062 
15063   if test "x$new_path" = x; then
15064     # Oops. Which didn't find the executable.
15065     # The splitting of arguments from the executable at a space might have been incorrect,
15066     # since paths with space are more likely in Windows. Give it another try with the whole
15067     # argument.
15068     path="$complete"
15069     arguments="EOL"
15070     new_path="$path"
15071 
15072   windows_path="$new_path"
15073   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15074     unix_path=`$CYGPATH -u "$windows_path"`
15075     new_path="$unix_path"
15076   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15077     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15078     new_path="$unix_path"
15079   fi
15080 
15081 
15082     new_path=`$WHICH "$new_path" 2> /dev/null`
15083 
15084     if test "x$new_path" = x; then
15085       # It's still not found. Now this is an unrecoverable error.
15086       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15087 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15088       has_space=`$ECHO "$complete" | $GREP " "`
15089       if test "x$has_space" != x; then
15090         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15091 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15092       fi
15093       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15094     fi
15095   fi
15096 
15097   # Now new_path has a complete unix path to the binary
15098   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15099     # Keep paths in /bin as-is, but remove trailing .exe if any
15100     new_path="${new_path/%.exe/}"
15101     # Do not save /bin paths to all_fixpath_prefixes!
15102   else
15103     # Not in mixed or Windows style, start by that.
15104     new_path=`cmd //c echo $new_path`
15105 
15106   input_path="$new_path"
15107   # Check if we need to convert this using DOS-style short mode. If the path
15108   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15109   # take no chances and rewrite it.
15110   # Note: m4 eats our [], so we need to use [ and ] instead.
15111   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15112   if test "x$has_forbidden_chars" != x; then
15113     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15114     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15115   fi
15116 
15117     # Output is in $new_path
15118 
15119   windows_path="$new_path"
15120   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15121     unix_path=`$CYGPATH -u "$windows_path"`
15122     new_path="$unix_path"
15123   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15124     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15125     new_path="$unix_path"
15126   fi
15127 
15128     # remove trailing .exe if any
15129     new_path="${new_path/%.exe/}"
15130 
15131     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15132     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15133   fi
15134 
15135   else
15136     # We're on a posix platform. Hooray! :)
15137     # First separate the path from the arguments. This will split at the first
15138     # space.
15139     complete="$FOUND_MAKE"
15140     path="${complete%% *}"
15141     tmp="$complete EOL"
15142     arguments="${tmp#* }"
15143 
15144     # Cannot rely on the command "which" here since it doesn't always work.
15145     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15146     if test -z "$is_absolute_path"; then
15147       # Path to executable is not absolute. Find it.
15148       IFS_save="$IFS"
15149       IFS=:
15150       for p in $PATH; do
15151         if test -f "$p/$path" && test -x "$p/$path"; then
15152           new_path="$p/$path"
15153           break
15154         fi
15155       done
15156       IFS="$IFS_save"
15157     else
15158       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15159 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15160       new_path="$path"
15161     fi
15162 
15163     if test "x$new_path" = x; then
15164       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15165 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15166       has_space=`$ECHO "$complete" | $GREP " "`
15167       if test "x$has_space" != x; then
15168         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15169 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15170       fi
15171       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15172     fi
15173   fi
15174 
15175   # Now join together the path and the arguments once again
15176   if test "x$arguments" != xEOL; then
15177     new_complete="$new_path ${arguments% *}"
15178   else
15179     new_complete="$new_path"
15180   fi
15181 
15182   if test "x$complete" != "x$new_complete"; then
15183     FOUND_MAKE="$new_complete"
15184     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15185 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15186   fi
15187 
15188         fi
15189       fi
15190     fi
15191   fi
15192 
15193     if test "x$FOUND_MAKE" = x; then
15194       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15195     fi
15196   else
15197     # Try our hardest to locate a correct version of GNU make
15198     for ac_prog in gmake
15199 do
15200   # Extract the first word of "$ac_prog", so it can be a program name with args.
15201 set dummy $ac_prog; ac_word=$2
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15203 $as_echo_n "checking for $ac_word... " >&6; }
15204 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15205   $as_echo_n "(cached) " >&6
15206 else
15207   case $CHECK_GMAKE in
15208   [\\/]* | ?:[\\/]*)
15209   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15210   ;;
15211   *)
15212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213 for as_dir in $PATH
15214 do
15215   IFS=$as_save_IFS
15216   test -z "$as_dir" && as_dir=.
15217     for ac_exec_ext in '' $ac_executable_extensions; do
15218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15219     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15221     break 2
15222   fi
15223 done
15224   done
15225 IFS=$as_save_IFS
15226 
15227   ;;
15228 esac
15229 fi
15230 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15231 if test -n "$CHECK_GMAKE"; then
15232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15233 $as_echo "$CHECK_GMAKE" >&6; }
15234 else
15235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15236 $as_echo "no" >&6; }
15237 fi
15238 
15239 
15240   test -n "$CHECK_GMAKE" && break
15241 done
15242 
15243 
15244   MAKE_CANDIDATE=""$CHECK_GMAKE""
15245   DESCRIPTION="gmake in PATH"
15246   if test "x$MAKE_CANDIDATE" != x; then
15247     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15248 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15249     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15250     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15251     if test "x$IS_GNU_MAKE" = x; then
15252       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15253 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15254     else
15255       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15256       if test "x$IS_MODERN_MAKE" = x; then
15257         { $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
15258 $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;}
15259       else
15260         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15261           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15262             MAKE_EXPECTED_ENV='cygwin'
15263           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15264             MAKE_EXPECTED_ENV='msys'
15265           else
15266             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15267           fi
15268           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15269           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15270         else
15271           # Not relevant for non-Windows
15272           IS_MAKE_CORRECT_ENV=true
15273         fi
15274         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15275           { $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
15276 $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;}
15277         else
15278           FOUND_MAKE=$MAKE_CANDIDATE
15279 
15280   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15281 
15282   # First separate the path from the arguments. This will split at the first
15283   # space.
15284   complete="$FOUND_MAKE"
15285   path="${complete%% *}"
15286   tmp="$complete EOL"
15287   arguments="${tmp#* }"
15288 
15289   # Input might be given as Windows format, start by converting to
15290   # unix format.
15291   new_path=`$CYGPATH -u "$path"`
15292 
15293   # Now try to locate executable using which
15294   new_path=`$WHICH "$new_path" 2> /dev/null`
15295   # bat and cmd files are not always considered executable in cygwin causing which
15296   # to not find them
15297   if test "x$new_path" = x \
15298       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15299       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15300     new_path=`$CYGPATH -u "$path"`
15301   fi
15302   if test "x$new_path" = x; then
15303     # Oops. Which didn't find the executable.
15304     # The splitting of arguments from the executable at a space might have been incorrect,
15305     # since paths with space are more likely in Windows. Give it another try with the whole
15306     # argument.
15307     path="$complete"
15308     arguments="EOL"
15309     new_path=`$CYGPATH -u "$path"`
15310     new_path=`$WHICH "$new_path" 2> /dev/null`
15311     # bat and cmd files are not always considered executable in cygwin causing which
15312     # to not find them
15313     if test "x$new_path" = x \
15314         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15315         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15316       new_path=`$CYGPATH -u "$path"`
15317     fi
15318     if test "x$new_path" = x; then
15319       # It's still not found. Now this is an unrecoverable error.
15320       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15321 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15322       has_space=`$ECHO "$complete" | $GREP " "`
15323       if test "x$has_space" != x; then
15324         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15326       fi
15327       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15328     fi
15329   fi
15330 
15331   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15332   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15333   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15334   # "foo.exe" is OK but "foo" is an error.
15335   #
15336   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15337   # It is also a way to make sure we got the proper file name for the real test later on.
15338   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15339   if test "x$test_shortpath" = x; then
15340     # Short path failed, file does not exist as specified.
15341     # Try adding .exe or .cmd
15342     if test -f "${new_path}.exe"; then
15343       input_to_shortpath="${new_path}.exe"
15344     elif test -f "${new_path}.cmd"; then
15345       input_to_shortpath="${new_path}.cmd"
15346     else
15347       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15348 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15349       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15350 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15351       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15352     fi
15353   else
15354     input_to_shortpath="$new_path"
15355   fi
15356 
15357   # Call helper function which possibly converts this using DOS-style short mode.
15358   # If so, the updated path is stored in $new_path.
15359   new_path="$input_to_shortpath"
15360 
15361   input_path="$input_to_shortpath"
15362   # Check if we need to convert this using DOS-style short mode. If the path
15363   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15364   # take no chances and rewrite it.
15365   # Note: m4 eats our [], so we need to use [ and ] instead.
15366   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15367   if test "x$has_forbidden_chars" != x; then
15368     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15369     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15370     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15371     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15372       # Going to short mode and back again did indeed matter. Since short mode is
15373       # case insensitive, let's make it lowercase to improve readability.
15374       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15375       # Now convert it back to Unix-stile (cygpath)
15376       input_path=`$CYGPATH -u "$shortmode_path"`
15377       new_path="$input_path"
15378     fi
15379   fi
15380 
15381   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15382   if test "x$test_cygdrive_prefix" = x; then
15383     # As a simple fix, exclude /usr/bin since it's not a real path.
15384     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15385       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15386       # a path prefixed by /cygdrive for fixpath to work.
15387       new_path="$CYGWIN_ROOT_PATH$input_path"
15388     fi
15389   fi
15390 
15391   # remove trailing .exe if any
15392   new_path="${new_path/%.exe/}"
15393 
15394   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15395 
15396   # First separate the path from the arguments. This will split at the first
15397   # space.
15398   complete="$FOUND_MAKE"
15399   path="${complete%% *}"
15400   tmp="$complete EOL"
15401   arguments="${tmp#* }"
15402 
15403   # Input might be given as Windows format, start by converting to
15404   # unix format.
15405   new_path="$path"
15406 
15407   windows_path="$new_path"
15408   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15409     unix_path=`$CYGPATH -u "$windows_path"`
15410     new_path="$unix_path"
15411   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15412     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15413     new_path="$unix_path"
15414   fi
15415 
15416 
15417   # Now try to locate executable using which
15418   new_path=`$WHICH "$new_path" 2> /dev/null`
15419 
15420   if test "x$new_path" = x; then
15421     # Oops. Which didn't find the executable.
15422     # The splitting of arguments from the executable at a space might have been incorrect,
15423     # since paths with space are more likely in Windows. Give it another try with the whole
15424     # argument.
15425     path="$complete"
15426     arguments="EOL"
15427     new_path="$path"
15428 
15429   windows_path="$new_path"
15430   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15431     unix_path=`$CYGPATH -u "$windows_path"`
15432     new_path="$unix_path"
15433   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15434     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15435     new_path="$unix_path"
15436   fi
15437 
15438 
15439     new_path=`$WHICH "$new_path" 2> /dev/null`
15440 
15441     if test "x$new_path" = x; then
15442       # It's still not found. Now this is an unrecoverable error.
15443       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15444 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15445       has_space=`$ECHO "$complete" | $GREP " "`
15446       if test "x$has_space" != x; then
15447         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15448 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15449       fi
15450       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15451     fi
15452   fi
15453 
15454   # Now new_path has a complete unix path to the binary
15455   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15456     # Keep paths in /bin as-is, but remove trailing .exe if any
15457     new_path="${new_path/%.exe/}"
15458     # Do not save /bin paths to all_fixpath_prefixes!
15459   else
15460     # Not in mixed or Windows style, start by that.
15461     new_path=`cmd //c echo $new_path`
15462 
15463   input_path="$new_path"
15464   # Check if we need to convert this using DOS-style short mode. If the path
15465   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15466   # take no chances and rewrite it.
15467   # Note: m4 eats our [], so we need to use [ and ] instead.
15468   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15469   if test "x$has_forbidden_chars" != x; then
15470     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15471     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15472   fi
15473 
15474     # Output is in $new_path
15475 
15476   windows_path="$new_path"
15477   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15478     unix_path=`$CYGPATH -u "$windows_path"`
15479     new_path="$unix_path"
15480   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15481     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15482     new_path="$unix_path"
15483   fi
15484 
15485     # remove trailing .exe if any
15486     new_path="${new_path/%.exe/}"
15487 
15488     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15489     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15490   fi
15491 
15492   else
15493     # We're on a posix platform. Hooray! :)
15494     # First separate the path from the arguments. This will split at the first
15495     # space.
15496     complete="$FOUND_MAKE"
15497     path="${complete%% *}"
15498     tmp="$complete EOL"
15499     arguments="${tmp#* }"
15500 
15501     # Cannot rely on the command "which" here since it doesn't always work.
15502     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15503     if test -z "$is_absolute_path"; then
15504       # Path to executable is not absolute. Find it.
15505       IFS_save="$IFS"
15506       IFS=:
15507       for p in $PATH; do
15508         if test -f "$p/$path" && test -x "$p/$path"; then
15509           new_path="$p/$path"
15510           break
15511         fi
15512       done
15513       IFS="$IFS_save"
15514     else
15515       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15516 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15517       new_path="$path"
15518     fi
15519 
15520     if test "x$new_path" = x; then
15521       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15522 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15523       has_space=`$ECHO "$complete" | $GREP " "`
15524       if test "x$has_space" != x; then
15525         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15526 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15527       fi
15528       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15529     fi
15530   fi
15531 
15532   # Now join together the path and the arguments once again
15533   if test "x$arguments" != xEOL; then
15534     new_complete="$new_path ${arguments% *}"
15535   else
15536     new_complete="$new_path"
15537   fi
15538 
15539   if test "x$complete" != "x$new_complete"; then
15540     FOUND_MAKE="$new_complete"
15541     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15542 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15543   fi
15544 
15545         fi
15546       fi
15547     fi
15548   fi
15549 
15550 
15551     if test "x$FOUND_MAKE" = x; then
15552       for ac_prog in make
15553 do
15554   # Extract the first word of "$ac_prog", so it can be a program name with args.
15555 set dummy $ac_prog; ac_word=$2
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15557 $as_echo_n "checking for $ac_word... " >&6; }
15558 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15559   $as_echo_n "(cached) " >&6
15560 else
15561   case $CHECK_MAKE in
15562   [\\/]* | ?:[\\/]*)
15563   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15564   ;;
15565   *)
15566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567 for as_dir in $PATH
15568 do
15569   IFS=$as_save_IFS
15570   test -z "$as_dir" && as_dir=.
15571     for ac_exec_ext in '' $ac_executable_extensions; do
15572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15573     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15575     break 2
15576   fi
15577 done
15578   done
15579 IFS=$as_save_IFS
15580 
15581   ;;
15582 esac
15583 fi
15584 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15585 if test -n "$CHECK_MAKE"; then
15586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15587 $as_echo "$CHECK_MAKE" >&6; }
15588 else
15589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15591 fi
15592 
15593 
15594   test -n "$CHECK_MAKE" && break
15595 done
15596 
15597 
15598   MAKE_CANDIDATE=""$CHECK_MAKE""
15599   DESCRIPTION="make in PATH"
15600   if test "x$MAKE_CANDIDATE" != x; then
15601     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15602 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15603     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15604     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15605     if test "x$IS_GNU_MAKE" = x; then
15606       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15607 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15608     else
15609       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15610       if test "x$IS_MODERN_MAKE" = x; then
15611         { $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
15612 $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;}
15613       else
15614         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15615           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15616             MAKE_EXPECTED_ENV='cygwin'
15617           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15618             MAKE_EXPECTED_ENV='msys'
15619           else
15620             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15621           fi
15622           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15623           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15624         else
15625           # Not relevant for non-Windows
15626           IS_MAKE_CORRECT_ENV=true
15627         fi
15628         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15629           { $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
15630 $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;}
15631         else
15632           FOUND_MAKE=$MAKE_CANDIDATE
15633 
15634   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15635 
15636   # First separate the path from the arguments. This will split at the first
15637   # space.
15638   complete="$FOUND_MAKE"
15639   path="${complete%% *}"
15640   tmp="$complete EOL"
15641   arguments="${tmp#* }"
15642 
15643   # Input might be given as Windows format, start by converting to
15644   # unix format.
15645   new_path=`$CYGPATH -u "$path"`
15646 
15647   # Now try to locate executable using which
15648   new_path=`$WHICH "$new_path" 2> /dev/null`
15649   # bat and cmd files are not always considered executable in cygwin causing which
15650   # to not find them
15651   if test "x$new_path" = x \
15652       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15653       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15654     new_path=`$CYGPATH -u "$path"`
15655   fi
15656   if test "x$new_path" = x; then
15657     # Oops. Which didn't find the executable.
15658     # The splitting of arguments from the executable at a space might have been incorrect,
15659     # since paths with space are more likely in Windows. Give it another try with the whole
15660     # argument.
15661     path="$complete"
15662     arguments="EOL"
15663     new_path=`$CYGPATH -u "$path"`
15664     new_path=`$WHICH "$new_path" 2> /dev/null`
15665     # bat and cmd files are not always considered executable in cygwin causing which
15666     # to not find them
15667     if test "x$new_path" = x \
15668         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15669         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15670       new_path=`$CYGPATH -u "$path"`
15671     fi
15672     if test "x$new_path" = x; then
15673       # It's still not found. Now this is an unrecoverable error.
15674       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15675 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15676       has_space=`$ECHO "$complete" | $GREP " "`
15677       if test "x$has_space" != x; then
15678         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15679 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15680       fi
15681       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15682     fi
15683   fi
15684 
15685   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15686   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15687   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15688   # "foo.exe" is OK but "foo" is an error.
15689   #
15690   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15691   # It is also a way to make sure we got the proper file name for the real test later on.
15692   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15693   if test "x$test_shortpath" = x; then
15694     # Short path failed, file does not exist as specified.
15695     # Try adding .exe or .cmd
15696     if test -f "${new_path}.exe"; then
15697       input_to_shortpath="${new_path}.exe"
15698     elif test -f "${new_path}.cmd"; then
15699       input_to_shortpath="${new_path}.cmd"
15700     else
15701       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15702 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15703       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15704 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15705       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15706     fi
15707   else
15708     input_to_shortpath="$new_path"
15709   fi
15710 
15711   # Call helper function which possibly converts this using DOS-style short mode.
15712   # If so, the updated path is stored in $new_path.
15713   new_path="$input_to_shortpath"
15714 
15715   input_path="$input_to_shortpath"
15716   # Check if we need to convert this using DOS-style short mode. If the path
15717   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15718   # take no chances and rewrite it.
15719   # Note: m4 eats our [], so we need to use [ and ] instead.
15720   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15721   if test "x$has_forbidden_chars" != x; then
15722     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15723     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15724     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15725     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15726       # Going to short mode and back again did indeed matter. Since short mode is
15727       # case insensitive, let's make it lowercase to improve readability.
15728       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15729       # Now convert it back to Unix-stile (cygpath)
15730       input_path=`$CYGPATH -u "$shortmode_path"`
15731       new_path="$input_path"
15732     fi
15733   fi
15734 
15735   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15736   if test "x$test_cygdrive_prefix" = x; then
15737     # As a simple fix, exclude /usr/bin since it's not a real path.
15738     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15739       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15740       # a path prefixed by /cygdrive for fixpath to work.
15741       new_path="$CYGWIN_ROOT_PATH$input_path"
15742     fi
15743   fi
15744 
15745   # remove trailing .exe if any
15746   new_path="${new_path/%.exe/}"
15747 
15748   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15749 
15750   # First separate the path from the arguments. This will split at the first
15751   # space.
15752   complete="$FOUND_MAKE"
15753   path="${complete%% *}"
15754   tmp="$complete EOL"
15755   arguments="${tmp#* }"
15756 
15757   # Input might be given as Windows format, start by converting to
15758   # unix format.
15759   new_path="$path"
15760 
15761   windows_path="$new_path"
15762   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15763     unix_path=`$CYGPATH -u "$windows_path"`
15764     new_path="$unix_path"
15765   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15766     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15767     new_path="$unix_path"
15768   fi
15769 
15770 
15771   # Now try to locate executable using which
15772   new_path=`$WHICH "$new_path" 2> /dev/null`
15773 
15774   if test "x$new_path" = x; then
15775     # Oops. Which didn't find the executable.
15776     # The splitting of arguments from the executable at a space might have been incorrect,
15777     # since paths with space are more likely in Windows. Give it another try with the whole
15778     # argument.
15779     path="$complete"
15780     arguments="EOL"
15781     new_path="$path"
15782 
15783   windows_path="$new_path"
15784   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15785     unix_path=`$CYGPATH -u "$windows_path"`
15786     new_path="$unix_path"
15787   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15788     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15789     new_path="$unix_path"
15790   fi
15791 
15792 
15793     new_path=`$WHICH "$new_path" 2> /dev/null`
15794 
15795     if test "x$new_path" = x; then
15796       # It's still not found. Now this is an unrecoverable error.
15797       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15798 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15799       has_space=`$ECHO "$complete" | $GREP " "`
15800       if test "x$has_space" != x; then
15801         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15802 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15803       fi
15804       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15805     fi
15806   fi
15807 
15808   # Now new_path has a complete unix path to the binary
15809   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15810     # Keep paths in /bin as-is, but remove trailing .exe if any
15811     new_path="${new_path/%.exe/}"
15812     # Do not save /bin paths to all_fixpath_prefixes!
15813   else
15814     # Not in mixed or Windows style, start by that.
15815     new_path=`cmd //c echo $new_path`
15816 
15817   input_path="$new_path"
15818   # Check if we need to convert this using DOS-style short mode. If the path
15819   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15820   # take no chances and rewrite it.
15821   # Note: m4 eats our [], so we need to use [ and ] instead.
15822   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15823   if test "x$has_forbidden_chars" != x; then
15824     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15825     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15826   fi
15827 
15828     # Output is in $new_path
15829 
15830   windows_path="$new_path"
15831   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15832     unix_path=`$CYGPATH -u "$windows_path"`
15833     new_path="$unix_path"
15834   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15835     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15836     new_path="$unix_path"
15837   fi
15838 
15839     # remove trailing .exe if any
15840     new_path="${new_path/%.exe/}"
15841 
15842     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15843     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15844   fi
15845 
15846   else
15847     # We're on a posix platform. Hooray! :)
15848     # First separate the path from the arguments. This will split at the first
15849     # space.
15850     complete="$FOUND_MAKE"
15851     path="${complete%% *}"
15852     tmp="$complete EOL"
15853     arguments="${tmp#* }"
15854 
15855     # Cannot rely on the command "which" here since it doesn't always work.
15856     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15857     if test -z "$is_absolute_path"; then
15858       # Path to executable is not absolute. Find it.
15859       IFS_save="$IFS"
15860       IFS=:
15861       for p in $PATH; do
15862         if test -f "$p/$path" && test -x "$p/$path"; then
15863           new_path="$p/$path"
15864           break
15865         fi
15866       done
15867       IFS="$IFS_save"
15868     else
15869       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
15870 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
15871       new_path="$path"
15872     fi
15873 
15874     if test "x$new_path" = x; then
15875       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15876 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15877       has_space=`$ECHO "$complete" | $GREP " "`
15878       if test "x$has_space" != x; then
15879         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15880 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15881       fi
15882       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15883     fi
15884   fi
15885 
15886   # Now join together the path and the arguments once again
15887   if test "x$arguments" != xEOL; then
15888     new_complete="$new_path ${arguments% *}"
15889   else
15890     new_complete="$new_path"
15891   fi
15892 
15893   if test "x$complete" != "x$new_complete"; then
15894     FOUND_MAKE="$new_complete"
15895     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15896 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15897   fi
15898 
15899         fi
15900       fi
15901     fi
15902   fi
15903 
15904     fi
15905 
15906     if test "x$FOUND_MAKE" = x; then
15907       if test "x$TOOLS_DIR" != x; then
15908         # We have a tools-dir, check that as well before giving up.
15909         OLD_PATH=$PATH
15910         PATH=$TOOLS_DIR:$PATH
15911         for ac_prog in gmake
15912 do
15913   # Extract the first word of "$ac_prog", so it can be a program name with args.
15914 set dummy $ac_prog; ac_word=$2
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15916 $as_echo_n "checking for $ac_word... " >&6; }
15917 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
15918   $as_echo_n "(cached) " >&6
15919 else
15920   case $CHECK_TOOLSDIR_GMAKE in
15921   [\\/]* | ?:[\\/]*)
15922   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
15923   ;;
15924   *)
15925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15926 for as_dir in $PATH
15927 do
15928   IFS=$as_save_IFS
15929   test -z "$as_dir" && as_dir=.
15930     for ac_exec_ext in '' $ac_executable_extensions; do
15931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15932     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15934     break 2
15935   fi
15936 done
15937   done
15938 IFS=$as_save_IFS
15939 
15940   ;;
15941 esac
15942 fi
15943 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
15944 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
15945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
15946 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
15947 else
15948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15949 $as_echo "no" >&6; }
15950 fi
15951 
15952 
15953   test -n "$CHECK_TOOLSDIR_GMAKE" && break
15954 done
15955 
15956 
15957   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
15958   DESCRIPTION="gmake in tools-dir"
15959   if test "x$MAKE_CANDIDATE" != x; then
15960     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15961 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15962     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15963     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15964     if test "x$IS_GNU_MAKE" = x; then
15965       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15966 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15967     else
15968       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15969       if test "x$IS_MODERN_MAKE" = x; then
15970         { $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
15971 $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;}
15972       else
15973         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15974           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15975             MAKE_EXPECTED_ENV='cygwin'
15976           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15977             MAKE_EXPECTED_ENV='msys'
15978           else
15979             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15980           fi
15981           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15982           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15983         else
15984           # Not relevant for non-Windows
15985           IS_MAKE_CORRECT_ENV=true
15986         fi
15987         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15988           { $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
15989 $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;}
15990         else
15991           FOUND_MAKE=$MAKE_CANDIDATE
15992 
15993   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15994 
15995   # First separate the path from the arguments. This will split at the first
15996   # space.
15997   complete="$FOUND_MAKE"
15998   path="${complete%% *}"
15999   tmp="$complete EOL"
16000   arguments="${tmp#* }"
16001 
16002   # Input might be given as Windows format, start by converting to
16003   # unix format.
16004   new_path=`$CYGPATH -u "$path"`
16005 
16006   # Now try to locate executable using which
16007   new_path=`$WHICH "$new_path" 2> /dev/null`
16008   # bat and cmd files are not always considered executable in cygwin causing which
16009   # to not find them
16010   if test "x$new_path" = x \
16011       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16012       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16013     new_path=`$CYGPATH -u "$path"`
16014   fi
16015   if test "x$new_path" = x; then
16016     # Oops. Which didn't find the executable.
16017     # The splitting of arguments from the executable at a space might have been incorrect,
16018     # since paths with space are more likely in Windows. Give it another try with the whole
16019     # argument.
16020     path="$complete"
16021     arguments="EOL"
16022     new_path=`$CYGPATH -u "$path"`
16023     new_path=`$WHICH "$new_path" 2> /dev/null`
16024     # bat and cmd files are not always considered executable in cygwin causing which
16025     # to not find them
16026     if test "x$new_path" = x \
16027         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16028         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16029       new_path=`$CYGPATH -u "$path"`
16030     fi
16031     if test "x$new_path" = x; then
16032       # It's still not found. Now this is an unrecoverable error.
16033       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16034 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16035       has_space=`$ECHO "$complete" | $GREP " "`
16036       if test "x$has_space" != x; then
16037         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16038 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16039       fi
16040       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16041     fi
16042   fi
16043 
16044   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16045   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16046   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16047   # "foo.exe" is OK but "foo" is an error.
16048   #
16049   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16050   # It is also a way to make sure we got the proper file name for the real test later on.
16051   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16052   if test "x$test_shortpath" = x; then
16053     # Short path failed, file does not exist as specified.
16054     # Try adding .exe or .cmd
16055     if test -f "${new_path}.exe"; then
16056       input_to_shortpath="${new_path}.exe"
16057     elif test -f "${new_path}.cmd"; then
16058       input_to_shortpath="${new_path}.cmd"
16059     else
16060       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16061 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16062       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16063 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16064       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16065     fi
16066   else
16067     input_to_shortpath="$new_path"
16068   fi
16069 
16070   # Call helper function which possibly converts this using DOS-style short mode.
16071   # If so, the updated path is stored in $new_path.
16072   new_path="$input_to_shortpath"
16073 
16074   input_path="$input_to_shortpath"
16075   # Check if we need to convert this using DOS-style short mode. If the path
16076   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16077   # take no chances and rewrite it.
16078   # Note: m4 eats our [], so we need to use [ and ] instead.
16079   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16080   if test "x$has_forbidden_chars" != x; then
16081     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16082     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16083     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16084     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16085       # Going to short mode and back again did indeed matter. Since short mode is
16086       # case insensitive, let's make it lowercase to improve readability.
16087       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16088       # Now convert it back to Unix-stile (cygpath)
16089       input_path=`$CYGPATH -u "$shortmode_path"`
16090       new_path="$input_path"
16091     fi
16092   fi
16093 
16094   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16095   if test "x$test_cygdrive_prefix" = x; then
16096     # As a simple fix, exclude /usr/bin since it's not a real path.
16097     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16098       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16099       # a path prefixed by /cygdrive for fixpath to work.
16100       new_path="$CYGWIN_ROOT_PATH$input_path"
16101     fi
16102   fi
16103 
16104   # remove trailing .exe if any
16105   new_path="${new_path/%.exe/}"
16106 
16107   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16108 
16109   # First separate the path from the arguments. This will split at the first
16110   # space.
16111   complete="$FOUND_MAKE"
16112   path="${complete%% *}"
16113   tmp="$complete EOL"
16114   arguments="${tmp#* }"
16115 
16116   # Input might be given as Windows format, start by converting to
16117   # unix format.
16118   new_path="$path"
16119 
16120   windows_path="$new_path"
16121   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16122     unix_path=`$CYGPATH -u "$windows_path"`
16123     new_path="$unix_path"
16124   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16125     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16126     new_path="$unix_path"
16127   fi
16128 
16129 
16130   # Now try to locate executable using which
16131   new_path=`$WHICH "$new_path" 2> /dev/null`
16132 
16133   if test "x$new_path" = x; then
16134     # Oops. Which didn't find the executable.
16135     # The splitting of arguments from the executable at a space might have been incorrect,
16136     # since paths with space are more likely in Windows. Give it another try with the whole
16137     # argument.
16138     path="$complete"
16139     arguments="EOL"
16140     new_path="$path"
16141 
16142   windows_path="$new_path"
16143   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16144     unix_path=`$CYGPATH -u "$windows_path"`
16145     new_path="$unix_path"
16146   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16147     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16148     new_path="$unix_path"
16149   fi
16150 
16151 
16152     new_path=`$WHICH "$new_path" 2> /dev/null`
16153 
16154     if test "x$new_path" = x; then
16155       # It's still not found. Now this is an unrecoverable error.
16156       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16157 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16158       has_space=`$ECHO "$complete" | $GREP " "`
16159       if test "x$has_space" != x; then
16160         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16161 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16162       fi
16163       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16164     fi
16165   fi
16166 
16167   # Now new_path has a complete unix path to the binary
16168   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16169     # Keep paths in /bin as-is, but remove trailing .exe if any
16170     new_path="${new_path/%.exe/}"
16171     # Do not save /bin paths to all_fixpath_prefixes!
16172   else
16173     # Not in mixed or Windows style, start by that.
16174     new_path=`cmd //c echo $new_path`
16175 
16176   input_path="$new_path"
16177   # Check if we need to convert this using DOS-style short mode. If the path
16178   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16179   # take no chances and rewrite it.
16180   # Note: m4 eats our [], so we need to use [ and ] instead.
16181   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16182   if test "x$has_forbidden_chars" != x; then
16183     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16184     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16185   fi
16186 
16187     # Output is in $new_path
16188 
16189   windows_path="$new_path"
16190   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16191     unix_path=`$CYGPATH -u "$windows_path"`
16192     new_path="$unix_path"
16193   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16194     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16195     new_path="$unix_path"
16196   fi
16197 
16198     # remove trailing .exe if any
16199     new_path="${new_path/%.exe/}"
16200 
16201     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16202     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16203   fi
16204 
16205   else
16206     # We're on a posix platform. Hooray! :)
16207     # First separate the path from the arguments. This will split at the first
16208     # space.
16209     complete="$FOUND_MAKE"
16210     path="${complete%% *}"
16211     tmp="$complete EOL"
16212     arguments="${tmp#* }"
16213 
16214     # Cannot rely on the command "which" here since it doesn't always work.
16215     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16216     if test -z "$is_absolute_path"; then
16217       # Path to executable is not absolute. Find it.
16218       IFS_save="$IFS"
16219       IFS=:
16220       for p in $PATH; do
16221         if test -f "$p/$path" && test -x "$p/$path"; then
16222           new_path="$p/$path"
16223           break
16224         fi
16225       done
16226       IFS="$IFS_save"
16227     else
16228       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16229 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16230       new_path="$path"
16231     fi
16232 
16233     if test "x$new_path" = x; then
16234       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16235 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16236       has_space=`$ECHO "$complete" | $GREP " "`
16237       if test "x$has_space" != x; then
16238         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16239 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16240       fi
16241       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16242     fi
16243   fi
16244 
16245   # Now join together the path and the arguments once again
16246   if test "x$arguments" != xEOL; then
16247     new_complete="$new_path ${arguments% *}"
16248   else
16249     new_complete="$new_path"
16250   fi
16251 
16252   if test "x$complete" != "x$new_complete"; then
16253     FOUND_MAKE="$new_complete"
16254     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16255 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16256   fi
16257 
16258         fi
16259       fi
16260     fi
16261   fi
16262 
16263         if test "x$FOUND_MAKE" = x; then
16264           for ac_prog in make
16265 do
16266   # Extract the first word of "$ac_prog", so it can be a program name with args.
16267 set dummy $ac_prog; ac_word=$2
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16269 $as_echo_n "checking for $ac_word... " >&6; }
16270 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16271   $as_echo_n "(cached) " >&6
16272 else
16273   case $CHECK_TOOLSDIR_MAKE in
16274   [\\/]* | ?:[\\/]*)
16275   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16276   ;;
16277   *)
16278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279 for as_dir in $PATH
16280 do
16281   IFS=$as_save_IFS
16282   test -z "$as_dir" && as_dir=.
16283     for ac_exec_ext in '' $ac_executable_extensions; do
16284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16285     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16287     break 2
16288   fi
16289 done
16290   done
16291 IFS=$as_save_IFS
16292 
16293   ;;
16294 esac
16295 fi
16296 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16297 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16299 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16300 else
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16302 $as_echo "no" >&6; }
16303 fi
16304 
16305 
16306   test -n "$CHECK_TOOLSDIR_MAKE" && break
16307 done
16308 
16309 
16310   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16311   DESCRIPTION="make in tools-dir"
16312   if test "x$MAKE_CANDIDATE" != x; then
16313     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16314 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16315     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16316     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16317     if test "x$IS_GNU_MAKE" = x; then
16318       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16319 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16320     else
16321       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16322       if test "x$IS_MODERN_MAKE" = x; then
16323         { $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
16324 $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;}
16325       else
16326         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16327           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16328             MAKE_EXPECTED_ENV='cygwin'
16329           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16330             MAKE_EXPECTED_ENV='msys'
16331           else
16332             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16333           fi
16334           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16335           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16336         else
16337           # Not relevant for non-Windows
16338           IS_MAKE_CORRECT_ENV=true
16339         fi
16340         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16341           { $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
16342 $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;}
16343         else
16344           FOUND_MAKE=$MAKE_CANDIDATE
16345 
16346   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16347 
16348   # First separate the path from the arguments. This will split at the first
16349   # space.
16350   complete="$FOUND_MAKE"
16351   path="${complete%% *}"
16352   tmp="$complete EOL"
16353   arguments="${tmp#* }"
16354 
16355   # Input might be given as Windows format, start by converting to
16356   # unix format.
16357   new_path=`$CYGPATH -u "$path"`
16358 
16359   # Now try to locate executable using which
16360   new_path=`$WHICH "$new_path" 2> /dev/null`
16361   # bat and cmd files are not always considered executable in cygwin causing which
16362   # to not find them
16363   if test "x$new_path" = x \
16364       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16365       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16366     new_path=`$CYGPATH -u "$path"`
16367   fi
16368   if test "x$new_path" = x; then
16369     # Oops. Which didn't find the executable.
16370     # The splitting of arguments from the executable at a space might have been incorrect,
16371     # since paths with space are more likely in Windows. Give it another try with the whole
16372     # argument.
16373     path="$complete"
16374     arguments="EOL"
16375     new_path=`$CYGPATH -u "$path"`
16376     new_path=`$WHICH "$new_path" 2> /dev/null`
16377     # bat and cmd files are not always considered executable in cygwin causing which
16378     # to not find them
16379     if test "x$new_path" = x \
16380         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16381         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16382       new_path=`$CYGPATH -u "$path"`
16383     fi
16384     if test "x$new_path" = x; then
16385       # It's still not found. Now this is an unrecoverable error.
16386       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16387 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16388       has_space=`$ECHO "$complete" | $GREP " "`
16389       if test "x$has_space" != x; then
16390         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16391 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16392       fi
16393       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16394     fi
16395   fi
16396 
16397   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16398   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16399   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16400   # "foo.exe" is OK but "foo" is an error.
16401   #
16402   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16403   # It is also a way to make sure we got the proper file name for the real test later on.
16404   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16405   if test "x$test_shortpath" = x; then
16406     # Short path failed, file does not exist as specified.
16407     # Try adding .exe or .cmd
16408     if test -f "${new_path}.exe"; then
16409       input_to_shortpath="${new_path}.exe"
16410     elif test -f "${new_path}.cmd"; then
16411       input_to_shortpath="${new_path}.cmd"
16412     else
16413       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16414 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16415       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16416 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16417       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16418     fi
16419   else
16420     input_to_shortpath="$new_path"
16421   fi
16422 
16423   # Call helper function which possibly converts this using DOS-style short mode.
16424   # If so, the updated path is stored in $new_path.
16425   new_path="$input_to_shortpath"
16426 
16427   input_path="$input_to_shortpath"
16428   # Check if we need to convert this using DOS-style short mode. If the path
16429   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16430   # take no chances and rewrite it.
16431   # Note: m4 eats our [], so we need to use [ and ] instead.
16432   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16433   if test "x$has_forbidden_chars" != x; then
16434     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16435     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16436     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16437     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16438       # Going to short mode and back again did indeed matter. Since short mode is
16439       # case insensitive, let's make it lowercase to improve readability.
16440       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16441       # Now convert it back to Unix-stile (cygpath)
16442       input_path=`$CYGPATH -u "$shortmode_path"`
16443       new_path="$input_path"
16444     fi
16445   fi
16446 
16447   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16448   if test "x$test_cygdrive_prefix" = x; then
16449     # As a simple fix, exclude /usr/bin since it's not a real path.
16450     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16451       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16452       # a path prefixed by /cygdrive for fixpath to work.
16453       new_path="$CYGWIN_ROOT_PATH$input_path"
16454     fi
16455   fi
16456 
16457   # remove trailing .exe if any
16458   new_path="${new_path/%.exe/}"
16459 
16460   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16461 
16462   # First separate the path from the arguments. This will split at the first
16463   # space.
16464   complete="$FOUND_MAKE"
16465   path="${complete%% *}"
16466   tmp="$complete EOL"
16467   arguments="${tmp#* }"
16468 
16469   # Input might be given as Windows format, start by converting to
16470   # unix format.
16471   new_path="$path"
16472 
16473   windows_path="$new_path"
16474   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16475     unix_path=`$CYGPATH -u "$windows_path"`
16476     new_path="$unix_path"
16477   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16478     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16479     new_path="$unix_path"
16480   fi
16481 
16482 
16483   # Now try to locate executable using which
16484   new_path=`$WHICH "$new_path" 2> /dev/null`
16485 
16486   if test "x$new_path" = x; then
16487     # Oops. Which didn't find the executable.
16488     # The splitting of arguments from the executable at a space might have been incorrect,
16489     # since paths with space are more likely in Windows. Give it another try with the whole
16490     # argument.
16491     path="$complete"
16492     arguments="EOL"
16493     new_path="$path"
16494 
16495   windows_path="$new_path"
16496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16497     unix_path=`$CYGPATH -u "$windows_path"`
16498     new_path="$unix_path"
16499   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16500     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16501     new_path="$unix_path"
16502   fi
16503 
16504 
16505     new_path=`$WHICH "$new_path" 2> /dev/null`
16506 
16507     if test "x$new_path" = x; then
16508       # It's still not found. Now this is an unrecoverable error.
16509       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16510 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16511       has_space=`$ECHO "$complete" | $GREP " "`
16512       if test "x$has_space" != x; then
16513         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16514 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16515       fi
16516       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16517     fi
16518   fi
16519 
16520   # Now new_path has a complete unix path to the binary
16521   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16522     # Keep paths in /bin as-is, but remove trailing .exe if any
16523     new_path="${new_path/%.exe/}"
16524     # Do not save /bin paths to all_fixpath_prefixes!
16525   else
16526     # Not in mixed or Windows style, start by that.
16527     new_path=`cmd //c echo $new_path`
16528 
16529   input_path="$new_path"
16530   # Check if we need to convert this using DOS-style short mode. If the path
16531   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16532   # take no chances and rewrite it.
16533   # Note: m4 eats our [], so we need to use [ and ] instead.
16534   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16535   if test "x$has_forbidden_chars" != x; then
16536     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16537     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16538   fi
16539 
16540     # Output is in $new_path
16541 
16542   windows_path="$new_path"
16543   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16544     unix_path=`$CYGPATH -u "$windows_path"`
16545     new_path="$unix_path"
16546   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16547     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16548     new_path="$unix_path"
16549   fi
16550 
16551     # remove trailing .exe if any
16552     new_path="${new_path/%.exe/}"
16553 
16554     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16555     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16556   fi
16557 
16558   else
16559     # We're on a posix platform. Hooray! :)
16560     # First separate the path from the arguments. This will split at the first
16561     # space.
16562     complete="$FOUND_MAKE"
16563     path="${complete%% *}"
16564     tmp="$complete EOL"
16565     arguments="${tmp#* }"
16566 
16567     # Cannot rely on the command "which" here since it doesn't always work.
16568     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16569     if test -z "$is_absolute_path"; then
16570       # Path to executable is not absolute. Find it.
16571       IFS_save="$IFS"
16572       IFS=:
16573       for p in $PATH; do
16574         if test -f "$p/$path" && test -x "$p/$path"; then
16575           new_path="$p/$path"
16576           break
16577         fi
16578       done
16579       IFS="$IFS_save"
16580     else
16581       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5
16582 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;}
16583       new_path="$path"
16584     fi
16585 
16586     if test "x$new_path" = x; then
16587       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16588 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16589       has_space=`$ECHO "$complete" | $GREP " "`
16590       if test "x$has_space" != x; then
16591         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16592 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16593       fi
16594       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16595     fi
16596   fi
16597 
16598   # Now join together the path and the arguments once again
16599   if test "x$arguments" != xEOL; then
16600     new_complete="$new_path ${arguments% *}"
16601   else
16602     new_complete="$new_path"
16603   fi
16604 
16605   if test "x$complete" != "x$new_complete"; then
16606     FOUND_MAKE="$new_complete"
16607     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16608 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16609   fi
16610 
16611         fi
16612       fi
16613     fi
16614   fi
16615 
16616         fi
16617         PATH=$OLD_PATH
16618       fi
16619     fi
16620 
16621     if test "x$FOUND_MAKE" = x; then
16622       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
16623     fi
16624   fi
16625 
16626   MAKE=$FOUND_MAKE
16627 
16628   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16629 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16630 
16631 
16632 
16633   # Test if find supports -delete
16634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16635 $as_echo_n "checking if find supports -delete... " >&6; }
16636   FIND_DELETE="-delete"
16637 
16638   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16639 
16640   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16641 
16642   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16643   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16644     # No, it does not.
16645     rm $DELETEDIR/TestIfFindSupportsDelete
16646     FIND_DELETE="-exec rm \{\} \+"
16647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16649   else
16650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16651 $as_echo "yes" >&6; }
16652   fi
16653   rmdir $DELETEDIR
16654 
16655 
16656 
16657   # These tools might not be installed by default,
16658   # need hint on how to install them.
16659 
16660 
16661 
16662   # Publish this variable in the help.
16663 
16664 
16665   if test "x$UNZIP" = x; then
16666     # The variable is not set by user, try to locate tool using the code snippet
16667     for ac_prog in unzip
16668 do
16669   # Extract the first word of "$ac_prog", so it can be a program name with args.
16670 set dummy $ac_prog; ac_word=$2
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16672 $as_echo_n "checking for $ac_word... " >&6; }
16673 if ${ac_cv_path_UNZIP+:} false; then :
16674   $as_echo_n "(cached) " >&6
16675 else
16676   case $UNZIP in
16677   [\\/]* | ?:[\\/]*)
16678   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16679   ;;
16680   *)
16681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682 for as_dir in $PATH
16683 do
16684   IFS=$as_save_IFS
16685   test -z "$as_dir" && as_dir=.
16686     for ac_exec_ext in '' $ac_executable_extensions; do
16687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16688     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16690     break 2
16691   fi
16692 done
16693   done
16694 IFS=$as_save_IFS
16695 
16696   ;;
16697 esac
16698 fi
16699 UNZIP=$ac_cv_path_UNZIP
16700 if test -n "$UNZIP"; then
16701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16702 $as_echo "$UNZIP" >&6; }
16703 else
16704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16706 fi
16707 
16708 
16709   test -n "$UNZIP" && break
16710 done
16711 
16712   else
16713     # The variable is set, but is it from the command line or the environment?
16714 
16715     # Try to remove the string !UNZIP! from our list.
16716     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16717     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16718       # If it failed, the variable was not from the command line. Ignore it,
16719       # but warn the user (except for BASH, which is always set by the calling BASH).
16720       if test "xUNZIP" != xBASH; then
16721         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16722 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16723       fi
16724       # Try to locate tool using the code snippet
16725       for ac_prog in unzip
16726 do
16727   # Extract the first word of "$ac_prog", so it can be a program name with args.
16728 set dummy $ac_prog; ac_word=$2
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16730 $as_echo_n "checking for $ac_word... " >&6; }
16731 if ${ac_cv_path_UNZIP+:} false; then :
16732   $as_echo_n "(cached) " >&6
16733 else
16734   case $UNZIP in
16735   [\\/]* | ?:[\\/]*)
16736   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16737   ;;
16738   *)
16739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740 for as_dir in $PATH
16741 do
16742   IFS=$as_save_IFS
16743   test -z "$as_dir" && as_dir=.
16744     for ac_exec_ext in '' $ac_executable_extensions; do
16745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16746     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16748     break 2
16749   fi
16750 done
16751   done
16752 IFS=$as_save_IFS
16753 
16754   ;;
16755 esac
16756 fi
16757 UNZIP=$ac_cv_path_UNZIP
16758 if test -n "$UNZIP"; then
16759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16760 $as_echo "$UNZIP" >&6; }
16761 else
16762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16764 fi
16765 
16766 
16767   test -n "$UNZIP" && break
16768 done
16769 
16770     else
16771       # If it succeeded, then it was overridden by the user. We will use it
16772       # for the tool.
16773 
16774       # First remove it from the list of overridden variables, so we can test
16775       # for unknown variables in the end.
16776       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16777 
16778       # Check if the provided tool contains a complete path.
16779       tool_specified="$UNZIP"
16780       tool_basename="${tool_specified##*/}"
16781       if test "x$tool_basename" = "x$tool_specified"; then
16782         # A command without a complete path is provided, search $PATH.
16783         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16784 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16785         # Extract the first word of "$tool_basename", so it can be a program name with args.
16786 set dummy $tool_basename; ac_word=$2
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16788 $as_echo_n "checking for $ac_word... " >&6; }
16789 if ${ac_cv_path_UNZIP+:} false; then :
16790   $as_echo_n "(cached) " >&6
16791 else
16792   case $UNZIP in
16793   [\\/]* | ?:[\\/]*)
16794   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16795   ;;
16796   *)
16797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16798 for as_dir in $PATH
16799 do
16800   IFS=$as_save_IFS
16801   test -z "$as_dir" && as_dir=.
16802     for ac_exec_ext in '' $ac_executable_extensions; do
16803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16804     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16806     break 2
16807   fi
16808 done
16809   done
16810 IFS=$as_save_IFS
16811 
16812   ;;
16813 esac
16814 fi
16815 UNZIP=$ac_cv_path_UNZIP
16816 if test -n "$UNZIP"; then
16817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16818 $as_echo "$UNZIP" >&6; }
16819 else
16820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 $as_echo "no" >&6; }
16822 fi
16823 
16824 
16825         if test "x$UNZIP" = x; then
16826           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
16827         fi
16828       else
16829         # Otherwise we believe it is a complete path. Use it as it is.
16830         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
16831 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
16832         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
16833 $as_echo_n "checking for UNZIP... " >&6; }
16834         if test ! -x "$tool_specified"; then
16835           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16836 $as_echo "not found" >&6; }
16837           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
16838         fi
16839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
16840 $as_echo "$tool_specified" >&6; }
16841       fi
16842     fi
16843   fi
16844 
16845 
16846 
16847   if test "x$UNZIP" = x; then
16848     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
16849   fi
16850 
16851 
16852 
16853 
16854 
16855   # Publish this variable in the help.
16856 
16857 
16858   if test "x$ZIP" = x; then
16859     # The variable is not set by user, try to locate tool using the code snippet
16860     for ac_prog in zip
16861 do
16862   # Extract the first word of "$ac_prog", so it can be a program name with args.
16863 set dummy $ac_prog; ac_word=$2
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16865 $as_echo_n "checking for $ac_word... " >&6; }
16866 if ${ac_cv_path_ZIP+:} false; then :
16867   $as_echo_n "(cached) " >&6
16868 else
16869   case $ZIP in
16870   [\\/]* | ?:[\\/]*)
16871   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16872   ;;
16873   *)
16874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16875 for as_dir in $PATH
16876 do
16877   IFS=$as_save_IFS
16878   test -z "$as_dir" && as_dir=.
16879     for ac_exec_ext in '' $ac_executable_extensions; do
16880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16881     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16883     break 2
16884   fi
16885 done
16886   done
16887 IFS=$as_save_IFS
16888 
16889   ;;
16890 esac
16891 fi
16892 ZIP=$ac_cv_path_ZIP
16893 if test -n "$ZIP"; then
16894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16895 $as_echo "$ZIP" >&6; }
16896 else
16897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898 $as_echo "no" >&6; }
16899 fi
16900 
16901 
16902   test -n "$ZIP" && break
16903 done
16904 
16905   else
16906     # The variable is set, but is it from the command line or the environment?
16907 
16908     # Try to remove the string !ZIP! from our list.
16909     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
16910     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16911       # If it failed, the variable was not from the command line. Ignore it,
16912       # but warn the user (except for BASH, which is always set by the calling BASH).
16913       if test "xZIP" != xBASH; then
16914         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
16915 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
16916       fi
16917       # Try to locate tool using the code snippet
16918       for ac_prog in zip
16919 do
16920   # Extract the first word of "$ac_prog", so it can be a program name with args.
16921 set dummy $ac_prog; ac_word=$2
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16923 $as_echo_n "checking for $ac_word... " >&6; }
16924 if ${ac_cv_path_ZIP+:} false; then :
16925   $as_echo_n "(cached) " >&6
16926 else
16927   case $ZIP in
16928   [\\/]* | ?:[\\/]*)
16929   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16930   ;;
16931   *)
16932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16933 for as_dir in $PATH
16934 do
16935   IFS=$as_save_IFS
16936   test -z "$as_dir" && as_dir=.
16937     for ac_exec_ext in '' $ac_executable_extensions; do
16938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16939     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16941     break 2
16942   fi
16943 done
16944   done
16945 IFS=$as_save_IFS
16946 
16947   ;;
16948 esac
16949 fi
16950 ZIP=$ac_cv_path_ZIP
16951 if test -n "$ZIP"; then
16952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
16953 $as_echo "$ZIP" >&6; }
16954 else
16955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16956 $as_echo "no" >&6; }
16957 fi
16958 
16959 
16960   test -n "$ZIP" && break
16961 done
16962 
16963     else
16964       # If it succeeded, then it was overridden by the user. We will use it
16965       # for the tool.
16966 
16967       # First remove it from the list of overridden variables, so we can test
16968       # for unknown variables in the end.
16969       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16970 
16971       # Check if the provided tool contains a complete path.
16972       tool_specified="$ZIP"
16973       tool_basename="${tool_specified##*/}"
16974       if test "x$tool_basename" = "x$tool_specified"; then
16975         # A command without a complete path is provided, search $PATH.
16976         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
16977 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
16978         # Extract the first word of "$tool_basename", so it can be a program name with args.
16979 set dummy $tool_basename; ac_word=$2
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16981 $as_echo_n "checking for $ac_word... " >&6; }
16982 if ${ac_cv_path_ZIP+:} false; then :
16983   $as_echo_n "(cached) " >&6
16984 else
16985   case $ZIP in
16986   [\\/]* | ?:[\\/]*)
16987   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
16988   ;;
16989   *)
16990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in $PATH
16992 do
16993   IFS=$as_save_IFS
16994   test -z "$as_dir" && as_dir=.
16995     for ac_exec_ext in '' $ac_executable_extensions; do
16996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16997     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
16998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16999     break 2
17000   fi
17001 done
17002   done
17003 IFS=$as_save_IFS
17004 
17005   ;;
17006 esac
17007 fi
17008 ZIP=$ac_cv_path_ZIP
17009 if test -n "$ZIP"; then
17010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17011 $as_echo "$ZIP" >&6; }
17012 else
17013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 $as_echo "no" >&6; }
17015 fi
17016 
17017 
17018         if test "x$ZIP" = x; then
17019           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17020         fi
17021       else
17022         # Otherwise we believe it is a complete path. Use it as it is.
17023         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17024 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17026 $as_echo_n "checking for ZIP... " >&6; }
17027         if test ! -x "$tool_specified"; then
17028           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17029 $as_echo "not found" >&6; }
17030           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17031         fi
17032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17033 $as_echo "$tool_specified" >&6; }
17034       fi
17035     fi
17036   fi
17037 
17038 
17039 
17040   if test "x$ZIP" = x; then
17041     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17042   fi
17043 
17044 
17045 
17046   # Non-required basic tools
17047 
17048 
17049 
17050   # Publish this variable in the help.
17051 
17052 
17053   if test "x$LDD" = x; then
17054     # The variable is not set by user, try to locate tool using the code snippet
17055     for ac_prog in ldd
17056 do
17057   # Extract the first word of "$ac_prog", so it can be a program name with args.
17058 set dummy $ac_prog; ac_word=$2
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060 $as_echo_n "checking for $ac_word... " >&6; }
17061 if ${ac_cv_path_LDD+:} false; then :
17062   $as_echo_n "(cached) " >&6
17063 else
17064   case $LDD in
17065   [\\/]* | ?:[\\/]*)
17066   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17067   ;;
17068   *)
17069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17070 for as_dir in $PATH
17071 do
17072   IFS=$as_save_IFS
17073   test -z "$as_dir" && as_dir=.
17074     for ac_exec_ext in '' $ac_executable_extensions; do
17075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17076     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17078     break 2
17079   fi
17080 done
17081   done
17082 IFS=$as_save_IFS
17083 
17084   ;;
17085 esac
17086 fi
17087 LDD=$ac_cv_path_LDD
17088 if test -n "$LDD"; then
17089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17090 $as_echo "$LDD" >&6; }
17091 else
17092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 $as_echo "no" >&6; }
17094 fi
17095 
17096 
17097   test -n "$LDD" && break
17098 done
17099 
17100   else
17101     # The variable is set, but is it from the command line or the environment?
17102 
17103     # Try to remove the string !LDD! from our list.
17104     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17105     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17106       # If it failed, the variable was not from the command line. Ignore it,
17107       # but warn the user (except for BASH, which is always set by the calling BASH).
17108       if test "xLDD" != xBASH; then
17109         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17110 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17111       fi
17112       # Try to locate tool using the code snippet
17113       for ac_prog in ldd
17114 do
17115   # Extract the first word of "$ac_prog", so it can be a program name with args.
17116 set dummy $ac_prog; ac_word=$2
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17118 $as_echo_n "checking for $ac_word... " >&6; }
17119 if ${ac_cv_path_LDD+:} false; then :
17120   $as_echo_n "(cached) " >&6
17121 else
17122   case $LDD in
17123   [\\/]* | ?:[\\/]*)
17124   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17125   ;;
17126   *)
17127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17128 for as_dir in $PATH
17129 do
17130   IFS=$as_save_IFS
17131   test -z "$as_dir" && as_dir=.
17132     for ac_exec_ext in '' $ac_executable_extensions; do
17133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17134     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17136     break 2
17137   fi
17138 done
17139   done
17140 IFS=$as_save_IFS
17141 
17142   ;;
17143 esac
17144 fi
17145 LDD=$ac_cv_path_LDD
17146 if test -n "$LDD"; then
17147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17148 $as_echo "$LDD" >&6; }
17149 else
17150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17151 $as_echo "no" >&6; }
17152 fi
17153 
17154 
17155   test -n "$LDD" && break
17156 done
17157 
17158     else
17159       # If it succeeded, then it was overridden by the user. We will use it
17160       # for the tool.
17161 
17162       # First remove it from the list of overridden variables, so we can test
17163       # for unknown variables in the end.
17164       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17165 
17166       # Check if the provided tool contains a complete path.
17167       tool_specified="$LDD"
17168       tool_basename="${tool_specified##*/}"
17169       if test "x$tool_basename" = "x$tool_specified"; then
17170         # A command without a complete path is provided, search $PATH.
17171         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17172 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17173         # Extract the first word of "$tool_basename", so it can be a program name with args.
17174 set dummy $tool_basename; ac_word=$2
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17176 $as_echo_n "checking for $ac_word... " >&6; }
17177 if ${ac_cv_path_LDD+:} false; then :
17178   $as_echo_n "(cached) " >&6
17179 else
17180   case $LDD in
17181   [\\/]* | ?:[\\/]*)
17182   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17183   ;;
17184   *)
17185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17186 for as_dir in $PATH
17187 do
17188   IFS=$as_save_IFS
17189   test -z "$as_dir" && as_dir=.
17190     for ac_exec_ext in '' $ac_executable_extensions; do
17191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17192     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17194     break 2
17195   fi
17196 done
17197   done
17198 IFS=$as_save_IFS
17199 
17200   ;;
17201 esac
17202 fi
17203 LDD=$ac_cv_path_LDD
17204 if test -n "$LDD"; then
17205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17206 $as_echo "$LDD" >&6; }
17207 else
17208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17209 $as_echo "no" >&6; }
17210 fi
17211 
17212 
17213         if test "x$LDD" = x; then
17214           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17215         fi
17216       else
17217         # Otherwise we believe it is a complete path. Use it as it is.
17218         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17219 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17221 $as_echo_n "checking for LDD... " >&6; }
17222         if test ! -x "$tool_specified"; then
17223           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17224 $as_echo "not found" >&6; }
17225           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17226         fi
17227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17228 $as_echo "$tool_specified" >&6; }
17229       fi
17230     fi
17231   fi
17232 
17233 
17234   if test "x$LDD" = "x"; then
17235     # List shared lib dependencies is used for
17236     # debug output and checking for forbidden dependencies.
17237     # We can build without it.
17238     LDD="true"
17239   fi
17240 
17241 
17242   # Publish this variable in the help.
17243 
17244 
17245   if test "x$OTOOL" = x; then
17246     # The variable is not set by user, try to locate tool using the code snippet
17247     for ac_prog in otool
17248 do
17249   # Extract the first word of "$ac_prog", so it can be a program name with args.
17250 set dummy $ac_prog; ac_word=$2
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17252 $as_echo_n "checking for $ac_word... " >&6; }
17253 if ${ac_cv_path_OTOOL+:} false; then :
17254   $as_echo_n "(cached) " >&6
17255 else
17256   case $OTOOL in
17257   [\\/]* | ?:[\\/]*)
17258   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17259   ;;
17260   *)
17261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17262 for as_dir in $PATH
17263 do
17264   IFS=$as_save_IFS
17265   test -z "$as_dir" && as_dir=.
17266     for ac_exec_ext in '' $ac_executable_extensions; do
17267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17268     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17270     break 2
17271   fi
17272 done
17273   done
17274 IFS=$as_save_IFS
17275 
17276   ;;
17277 esac
17278 fi
17279 OTOOL=$ac_cv_path_OTOOL
17280 if test -n "$OTOOL"; then
17281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17282 $as_echo "$OTOOL" >&6; }
17283 else
17284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17285 $as_echo "no" >&6; }
17286 fi
17287 
17288 
17289   test -n "$OTOOL" && break
17290 done
17291 
17292   else
17293     # The variable is set, but is it from the command line or the environment?
17294 
17295     # Try to remove the string !OTOOL! from our list.
17296     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17297     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17298       # If it failed, the variable was not from the command line. Ignore it,
17299       # but warn the user (except for BASH, which is always set by the calling BASH).
17300       if test "xOTOOL" != xBASH; then
17301         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17302 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17303       fi
17304       # Try to locate tool using the code snippet
17305       for ac_prog in otool
17306 do
17307   # Extract the first word of "$ac_prog", so it can be a program name with args.
17308 set dummy $ac_prog; ac_word=$2
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17310 $as_echo_n "checking for $ac_word... " >&6; }
17311 if ${ac_cv_path_OTOOL+:} false; then :
17312   $as_echo_n "(cached) " >&6
17313 else
17314   case $OTOOL in
17315   [\\/]* | ?:[\\/]*)
17316   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17317   ;;
17318   *)
17319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17320 for as_dir in $PATH
17321 do
17322   IFS=$as_save_IFS
17323   test -z "$as_dir" && as_dir=.
17324     for ac_exec_ext in '' $ac_executable_extensions; do
17325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17326     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17328     break 2
17329   fi
17330 done
17331   done
17332 IFS=$as_save_IFS
17333 
17334   ;;
17335 esac
17336 fi
17337 OTOOL=$ac_cv_path_OTOOL
17338 if test -n "$OTOOL"; then
17339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17340 $as_echo "$OTOOL" >&6; }
17341 else
17342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17343 $as_echo "no" >&6; }
17344 fi
17345 
17346 
17347   test -n "$OTOOL" && break
17348 done
17349 
17350     else
17351       # If it succeeded, then it was overridden by the user. We will use it
17352       # for the tool.
17353 
17354       # First remove it from the list of overridden variables, so we can test
17355       # for unknown variables in the end.
17356       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17357 
17358       # Check if the provided tool contains a complete path.
17359       tool_specified="$OTOOL"
17360       tool_basename="${tool_specified##*/}"
17361       if test "x$tool_basename" = "x$tool_specified"; then
17362         # A command without a complete path is provided, search $PATH.
17363         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17364 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17365         # Extract the first word of "$tool_basename", so it can be a program name with args.
17366 set dummy $tool_basename; ac_word=$2
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17368 $as_echo_n "checking for $ac_word... " >&6; }
17369 if ${ac_cv_path_OTOOL+:} false; then :
17370   $as_echo_n "(cached) " >&6
17371 else
17372   case $OTOOL in
17373   [\\/]* | ?:[\\/]*)
17374   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17375   ;;
17376   *)
17377   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17378 for as_dir in $PATH
17379 do
17380   IFS=$as_save_IFS
17381   test -z "$as_dir" && as_dir=.
17382     for ac_exec_ext in '' $ac_executable_extensions; do
17383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17384     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17386     break 2
17387   fi
17388 done
17389   done
17390 IFS=$as_save_IFS
17391 
17392   ;;
17393 esac
17394 fi
17395 OTOOL=$ac_cv_path_OTOOL
17396 if test -n "$OTOOL"; then
17397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17398 $as_echo "$OTOOL" >&6; }
17399 else
17400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17401 $as_echo "no" >&6; }
17402 fi
17403 
17404 
17405         if test "x$OTOOL" = x; then
17406           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17407         fi
17408       else
17409         # Otherwise we believe it is a complete path. Use it as it is.
17410         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17411 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17412         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17413 $as_echo_n "checking for OTOOL... " >&6; }
17414         if test ! -x "$tool_specified"; then
17415           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17416 $as_echo "not found" >&6; }
17417           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17418         fi
17419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17420 $as_echo "$tool_specified" >&6; }
17421       fi
17422     fi
17423   fi
17424 
17425 
17426   if test "x$OTOOL" = "x"; then
17427     OTOOL="true"
17428   fi
17429 
17430 
17431   # Publish this variable in the help.
17432 
17433 
17434   if test "x$READELF" = x; then
17435     # The variable is not set by user, try to locate tool using the code snippet
17436     for ac_prog in greadelf readelf
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_READELF+:} false; then :
17443   $as_echo_n "(cached) " >&6
17444 else
17445   case $READELF in
17446   [\\/]* | ?:[\\/]*)
17447   ac_cv_path_READELF="$READELF" # 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_READELF="$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 READELF=$ac_cv_path_READELF
17469 if test -n "$READELF"; then
17470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17471 $as_echo "$READELF" >&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 "$READELF" && break
17479 done
17480 
17481   else
17482     # The variable is set, but is it from the command line or the environment?
17483 
17484     # Try to remove the string !READELF! from our list.
17485     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17486     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17487       # If it failed, the variable was not from the command line. Ignore it,
17488       # but warn the user (except for BASH, which is always set by the calling BASH).
17489       if test "xREADELF" != xBASH; then
17490         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17491 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17492       fi
17493       # Try to locate tool using the code snippet
17494       for ac_prog in greadelf readelf
17495 do
17496   # Extract the first word of "$ac_prog", so it can be a program name with args.
17497 set dummy $ac_prog; 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_READELF+:} false; then :
17501   $as_echo_n "(cached) " >&6
17502 else
17503   case $READELF in
17504   [\\/]* | ?:[\\/]*)
17505   ac_cv_path_READELF="$READELF" # 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_READELF="$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 READELF=$ac_cv_path_READELF
17527 if test -n "$READELF"; then
17528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17529 $as_echo "$READELF" >&6; }
17530 else
17531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17532 $as_echo "no" >&6; }
17533 fi
17534 
17535 
17536   test -n "$READELF" && break
17537 done
17538 
17539     else
17540       # If it succeeded, then it was overridden by the user. We will use it
17541       # for the tool.
17542 
17543       # First remove it from the list of overridden variables, so we can test
17544       # for unknown variables in the end.
17545       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17546 
17547       # Check if the provided tool contains a complete path.
17548       tool_specified="$READELF"
17549       tool_basename="${tool_specified##*/}"
17550       if test "x$tool_basename" = "x$tool_specified"; then
17551         # A command without a complete path is provided, search $PATH.
17552         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17553 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17554         # Extract the first word of "$tool_basename", so it can be a program name with args.
17555 set dummy $tool_basename; ac_word=$2
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17557 $as_echo_n "checking for $ac_word... " >&6; }
17558 if ${ac_cv_path_READELF+:} false; then :
17559   $as_echo_n "(cached) " >&6
17560 else
17561   case $READELF in
17562   [\\/]* | ?:[\\/]*)
17563   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17564   ;;
17565   *)
17566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17567 for as_dir in $PATH
17568 do
17569   IFS=$as_save_IFS
17570   test -z "$as_dir" && as_dir=.
17571     for ac_exec_ext in '' $ac_executable_extensions; do
17572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17573     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17575     break 2
17576   fi
17577 done
17578   done
17579 IFS=$as_save_IFS
17580 
17581   ;;
17582 esac
17583 fi
17584 READELF=$ac_cv_path_READELF
17585 if test -n "$READELF"; then
17586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17587 $as_echo "$READELF" >&6; }
17588 else
17589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17590 $as_echo "no" >&6; }
17591 fi
17592 
17593 
17594         if test "x$READELF" = x; then
17595           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17596         fi
17597       else
17598         # Otherwise we believe it is a complete path. Use it as it is.
17599         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17600 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17602 $as_echo_n "checking for READELF... " >&6; }
17603         if test ! -x "$tool_specified"; then
17604           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17605 $as_echo "not found" >&6; }
17606           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17607         fi
17608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17609 $as_echo "$tool_specified" >&6; }
17610       fi
17611     fi
17612   fi
17613 
17614 
17615 
17616 
17617   # Publish this variable in the help.
17618 
17619 
17620   if test "x$HG" = x; then
17621     # The variable is not set by user, try to locate tool using the code snippet
17622     for ac_prog in hg
17623 do
17624   # Extract the first word of "$ac_prog", so it can be a program name with args.
17625 set dummy $ac_prog; ac_word=$2
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17627 $as_echo_n "checking for $ac_word... " >&6; }
17628 if ${ac_cv_path_HG+:} false; then :
17629   $as_echo_n "(cached) " >&6
17630 else
17631   case $HG in
17632   [\\/]* | ?:[\\/]*)
17633   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17634   ;;
17635   *)
17636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17637 for as_dir in $PATH
17638 do
17639   IFS=$as_save_IFS
17640   test -z "$as_dir" && as_dir=.
17641     for ac_exec_ext in '' $ac_executable_extensions; do
17642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17643     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17645     break 2
17646   fi
17647 done
17648   done
17649 IFS=$as_save_IFS
17650 
17651   ;;
17652 esac
17653 fi
17654 HG=$ac_cv_path_HG
17655 if test -n "$HG"; then
17656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17657 $as_echo "$HG" >&6; }
17658 else
17659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17660 $as_echo "no" >&6; }
17661 fi
17662 
17663 
17664   test -n "$HG" && break
17665 done
17666 
17667   else
17668     # The variable is set, but is it from the command line or the environment?
17669 
17670     # Try to remove the string !HG! from our list.
17671     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17672     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17673       # If it failed, the variable was not from the command line. Ignore it,
17674       # but warn the user (except for BASH, which is always set by the calling BASH).
17675       if test "xHG" != xBASH; then
17676         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17677 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17678       fi
17679       # Try to locate tool using the code snippet
17680       for ac_prog in hg
17681 do
17682   # Extract the first word of "$ac_prog", so it can be a program name with args.
17683 set dummy $ac_prog; ac_word=$2
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17685 $as_echo_n "checking for $ac_word... " >&6; }
17686 if ${ac_cv_path_HG+:} false; then :
17687   $as_echo_n "(cached) " >&6
17688 else
17689   case $HG in
17690   [\\/]* | ?:[\\/]*)
17691   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17692   ;;
17693   *)
17694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17695 for as_dir in $PATH
17696 do
17697   IFS=$as_save_IFS
17698   test -z "$as_dir" && as_dir=.
17699     for ac_exec_ext in '' $ac_executable_extensions; do
17700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17701     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17703     break 2
17704   fi
17705 done
17706   done
17707 IFS=$as_save_IFS
17708 
17709   ;;
17710 esac
17711 fi
17712 HG=$ac_cv_path_HG
17713 if test -n "$HG"; then
17714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17715 $as_echo "$HG" >&6; }
17716 else
17717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718 $as_echo "no" >&6; }
17719 fi
17720 
17721 
17722   test -n "$HG" && break
17723 done
17724 
17725     else
17726       # If it succeeded, then it was overridden by the user. We will use it
17727       # for the tool.
17728 
17729       # First remove it from the list of overridden variables, so we can test
17730       # for unknown variables in the end.
17731       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17732 
17733       # Check if the provided tool contains a complete path.
17734       tool_specified="$HG"
17735       tool_basename="${tool_specified##*/}"
17736       if test "x$tool_basename" = "x$tool_specified"; then
17737         # A command without a complete path is provided, search $PATH.
17738         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17739 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17740         # Extract the first word of "$tool_basename", so it can be a program name with args.
17741 set dummy $tool_basename; ac_word=$2
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17743 $as_echo_n "checking for $ac_word... " >&6; }
17744 if ${ac_cv_path_HG+:} false; then :
17745   $as_echo_n "(cached) " >&6
17746 else
17747   case $HG in
17748   [\\/]* | ?:[\\/]*)
17749   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17750   ;;
17751   *)
17752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17753 for as_dir in $PATH
17754 do
17755   IFS=$as_save_IFS
17756   test -z "$as_dir" && as_dir=.
17757     for ac_exec_ext in '' $ac_executable_extensions; do
17758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17759     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17761     break 2
17762   fi
17763 done
17764   done
17765 IFS=$as_save_IFS
17766 
17767   ;;
17768 esac
17769 fi
17770 HG=$ac_cv_path_HG
17771 if test -n "$HG"; then
17772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17773 $as_echo "$HG" >&6; }
17774 else
17775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776 $as_echo "no" >&6; }
17777 fi
17778 
17779 
17780         if test "x$HG" = x; then
17781           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17782         fi
17783       else
17784         # Otherwise we believe it is a complete path. Use it as it is.
17785         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17786 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17788 $as_echo_n "checking for HG... " >&6; }
17789         if test ! -x "$tool_specified"; then
17790           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17791 $as_echo "not found" >&6; }
17792           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17793         fi
17794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17795 $as_echo "$tool_specified" >&6; }
17796       fi
17797     fi
17798   fi
17799 
17800 
17801 
17802 
17803   # Publish this variable in the help.
17804 
17805 
17806   if test "x$STAT" = x; then
17807     # The variable is not set by user, try to locate tool using the code snippet
17808     for ac_prog in stat
17809 do
17810   # Extract the first word of "$ac_prog", so it can be a program name with args.
17811 set dummy $ac_prog; ac_word=$2
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17813 $as_echo_n "checking for $ac_word... " >&6; }
17814 if ${ac_cv_path_STAT+:} false; then :
17815   $as_echo_n "(cached) " >&6
17816 else
17817   case $STAT in
17818   [\\/]* | ?:[\\/]*)
17819   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17820   ;;
17821   *)
17822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17823 for as_dir in $PATH
17824 do
17825   IFS=$as_save_IFS
17826   test -z "$as_dir" && as_dir=.
17827     for ac_exec_ext in '' $ac_executable_extensions; do
17828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17829     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17831     break 2
17832   fi
17833 done
17834   done
17835 IFS=$as_save_IFS
17836 
17837   ;;
17838 esac
17839 fi
17840 STAT=$ac_cv_path_STAT
17841 if test -n "$STAT"; then
17842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17843 $as_echo "$STAT" >&6; }
17844 else
17845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17846 $as_echo "no" >&6; }
17847 fi
17848 
17849 
17850   test -n "$STAT" && break
17851 done
17852 
17853   else
17854     # The variable is set, but is it from the command line or the environment?
17855 
17856     # Try to remove the string !STAT! from our list.
17857     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
17858     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17859       # If it failed, the variable was not from the command line. Ignore it,
17860       # but warn the user (except for BASH, which is always set by the calling BASH).
17861       if test "xSTAT" != xBASH; then
17862         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
17863 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
17864       fi
17865       # Try to locate tool using the code snippet
17866       for ac_prog in stat
17867 do
17868   # Extract the first word of "$ac_prog", so it can be a program name with args.
17869 set dummy $ac_prog; ac_word=$2
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17871 $as_echo_n "checking for $ac_word... " >&6; }
17872 if ${ac_cv_path_STAT+:} false; then :
17873   $as_echo_n "(cached) " >&6
17874 else
17875   case $STAT in
17876   [\\/]* | ?:[\\/]*)
17877   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17878   ;;
17879   *)
17880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17881 for as_dir in $PATH
17882 do
17883   IFS=$as_save_IFS
17884   test -z "$as_dir" && as_dir=.
17885     for ac_exec_ext in '' $ac_executable_extensions; do
17886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17887     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17889     break 2
17890   fi
17891 done
17892   done
17893 IFS=$as_save_IFS
17894 
17895   ;;
17896 esac
17897 fi
17898 STAT=$ac_cv_path_STAT
17899 if test -n "$STAT"; then
17900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17901 $as_echo "$STAT" >&6; }
17902 else
17903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17904 $as_echo "no" >&6; }
17905 fi
17906 
17907 
17908   test -n "$STAT" && break
17909 done
17910 
17911     else
17912       # If it succeeded, then it was overridden by the user. We will use it
17913       # for the tool.
17914 
17915       # First remove it from the list of overridden variables, so we can test
17916       # for unknown variables in the end.
17917       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17918 
17919       # Check if the provided tool contains a complete path.
17920       tool_specified="$STAT"
17921       tool_basename="${tool_specified##*/}"
17922       if test "x$tool_basename" = "x$tool_specified"; then
17923         # A command without a complete path is provided, search $PATH.
17924         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
17925 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
17926         # Extract the first word of "$tool_basename", so it can be a program name with args.
17927 set dummy $tool_basename; ac_word=$2
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17929 $as_echo_n "checking for $ac_word... " >&6; }
17930 if ${ac_cv_path_STAT+:} false; then :
17931   $as_echo_n "(cached) " >&6
17932 else
17933   case $STAT in
17934   [\\/]* | ?:[\\/]*)
17935   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17936   ;;
17937   *)
17938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17939 for as_dir in $PATH
17940 do
17941   IFS=$as_save_IFS
17942   test -z "$as_dir" && as_dir=.
17943     for ac_exec_ext in '' $ac_executable_extensions; do
17944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17945     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
17946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17947     break 2
17948   fi
17949 done
17950   done
17951 IFS=$as_save_IFS
17952 
17953   ;;
17954 esac
17955 fi
17956 STAT=$ac_cv_path_STAT
17957 if test -n "$STAT"; then
17958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
17959 $as_echo "$STAT" >&6; }
17960 else
17961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17962 $as_echo "no" >&6; }
17963 fi
17964 
17965 
17966         if test "x$STAT" = x; then
17967           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17968         fi
17969       else
17970         # Otherwise we believe it is a complete path. Use it as it is.
17971         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
17972 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
17973         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
17974 $as_echo_n "checking for STAT... " >&6; }
17975         if test ! -x "$tool_specified"; then
17976           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17977 $as_echo "not found" >&6; }
17978           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
17979         fi
17980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17981 $as_echo "$tool_specified" >&6; }
17982       fi
17983     fi
17984   fi
17985 
17986 
17987 
17988 
17989   # Publish this variable in the help.
17990 
17991 
17992   if test "x$TIME" = x; then
17993     # The variable is not set by user, try to locate tool using the code snippet
17994     for ac_prog in time
17995 do
17996   # Extract the first word of "$ac_prog", so it can be a program name with args.
17997 set dummy $ac_prog; ac_word=$2
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17999 $as_echo_n "checking for $ac_word... " >&6; }
18000 if ${ac_cv_path_TIME+:} false; then :
18001   $as_echo_n "(cached) " >&6
18002 else
18003   case $TIME in
18004   [\\/]* | ?:[\\/]*)
18005   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18006   ;;
18007   *)
18008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18009 for as_dir in $PATH
18010 do
18011   IFS=$as_save_IFS
18012   test -z "$as_dir" && as_dir=.
18013     for ac_exec_ext in '' $ac_executable_extensions; do
18014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18015     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18017     break 2
18018   fi
18019 done
18020   done
18021 IFS=$as_save_IFS
18022 
18023   ;;
18024 esac
18025 fi
18026 TIME=$ac_cv_path_TIME
18027 if test -n "$TIME"; then
18028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18029 $as_echo "$TIME" >&6; }
18030 else
18031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18032 $as_echo "no" >&6; }
18033 fi
18034 
18035 
18036   test -n "$TIME" && break
18037 done
18038 
18039   else
18040     # The variable is set, but is it from the command line or the environment?
18041 
18042     # Try to remove the string !TIME! from our list.
18043     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18044     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18045       # If it failed, the variable was not from the command line. Ignore it,
18046       # but warn the user (except for BASH, which is always set by the calling BASH).
18047       if test "xTIME" != xBASH; then
18048         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18049 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18050       fi
18051       # Try to locate tool using the code snippet
18052       for ac_prog in time
18053 do
18054   # Extract the first word of "$ac_prog", so it can be a program name with args.
18055 set dummy $ac_prog; ac_word=$2
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18057 $as_echo_n "checking for $ac_word... " >&6; }
18058 if ${ac_cv_path_TIME+:} false; then :
18059   $as_echo_n "(cached) " >&6
18060 else
18061   case $TIME in
18062   [\\/]* | ?:[\\/]*)
18063   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18064   ;;
18065   *)
18066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18067 for as_dir in $PATH
18068 do
18069   IFS=$as_save_IFS
18070   test -z "$as_dir" && as_dir=.
18071     for ac_exec_ext in '' $ac_executable_extensions; do
18072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18073     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18075     break 2
18076   fi
18077 done
18078   done
18079 IFS=$as_save_IFS
18080 
18081   ;;
18082 esac
18083 fi
18084 TIME=$ac_cv_path_TIME
18085 if test -n "$TIME"; then
18086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18087 $as_echo "$TIME" >&6; }
18088 else
18089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18090 $as_echo "no" >&6; }
18091 fi
18092 
18093 
18094   test -n "$TIME" && break
18095 done
18096 
18097     else
18098       # If it succeeded, then it was overridden by the user. We will use it
18099       # for the tool.
18100 
18101       # First remove it from the list of overridden variables, so we can test
18102       # for unknown variables in the end.
18103       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18104 
18105       # Check if the provided tool contains a complete path.
18106       tool_specified="$TIME"
18107       tool_basename="${tool_specified##*/}"
18108       if test "x$tool_basename" = "x$tool_specified"; then
18109         # A command without a complete path is provided, search $PATH.
18110         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18111 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18112         # Extract the first word of "$tool_basename", so it can be a program name with args.
18113 set dummy $tool_basename; ac_word=$2
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18115 $as_echo_n "checking for $ac_word... " >&6; }
18116 if ${ac_cv_path_TIME+:} false; then :
18117   $as_echo_n "(cached) " >&6
18118 else
18119   case $TIME in
18120   [\\/]* | ?:[\\/]*)
18121   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18122   ;;
18123   *)
18124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18125 for as_dir in $PATH
18126 do
18127   IFS=$as_save_IFS
18128   test -z "$as_dir" && as_dir=.
18129     for ac_exec_ext in '' $ac_executable_extensions; do
18130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18131     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18133     break 2
18134   fi
18135 done
18136   done
18137 IFS=$as_save_IFS
18138 
18139   ;;
18140 esac
18141 fi
18142 TIME=$ac_cv_path_TIME
18143 if test -n "$TIME"; then
18144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18145 $as_echo "$TIME" >&6; }
18146 else
18147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18148 $as_echo "no" >&6; }
18149 fi
18150 
18151 
18152         if test "x$TIME" = x; then
18153           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18154         fi
18155       else
18156         # Otherwise we believe it is a complete path. Use it as it is.
18157         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18158 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18160 $as_echo_n "checking for TIME... " >&6; }
18161         if test ! -x "$tool_specified"; then
18162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18163 $as_echo "not found" >&6; }
18164           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18165         fi
18166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18167 $as_echo "$tool_specified" >&6; }
18168       fi
18169     fi
18170   fi
18171 
18172 
18173   # Check if it's GNU time
18174   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18175   if test "x$IS_GNU_TIME" != x; then
18176     IS_GNU_TIME=yes
18177   else
18178     IS_GNU_TIME=no
18179   fi
18180 
18181 
18182   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18183 
18184 
18185 
18186   # Publish this variable in the help.
18187 
18188 
18189   if test "x$COMM" = x; then
18190     # The variable is not set by user, try to locate tool using the code snippet
18191     for ac_prog in comm
18192 do
18193   # Extract the first word of "$ac_prog", so it can be a program name with args.
18194 set dummy $ac_prog; ac_word=$2
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18196 $as_echo_n "checking for $ac_word... " >&6; }
18197 if ${ac_cv_path_COMM+:} false; then :
18198   $as_echo_n "(cached) " >&6
18199 else
18200   case $COMM in
18201   [\\/]* | ?:[\\/]*)
18202   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18203   ;;
18204   *)
18205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18206 for as_dir in $PATH
18207 do
18208   IFS=$as_save_IFS
18209   test -z "$as_dir" && as_dir=.
18210     for ac_exec_ext in '' $ac_executable_extensions; do
18211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18212     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18214     break 2
18215   fi
18216 done
18217   done
18218 IFS=$as_save_IFS
18219 
18220   ;;
18221 esac
18222 fi
18223 COMM=$ac_cv_path_COMM
18224 if test -n "$COMM"; then
18225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18226 $as_echo "$COMM" >&6; }
18227 else
18228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18229 $as_echo "no" >&6; }
18230 fi
18231 
18232 
18233   test -n "$COMM" && break
18234 done
18235 
18236   else
18237     # The variable is set, but is it from the command line or the environment?
18238 
18239     # Try to remove the string !COMM! from our list.
18240     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18241     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18242       # If it failed, the variable was not from the command line. Ignore it,
18243       # but warn the user (except for BASH, which is always set by the calling BASH).
18244       if test "xCOMM" != xBASH; then
18245         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18246 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18247       fi
18248       # Try to locate tool using the code snippet
18249       for ac_prog in comm
18250 do
18251   # Extract the first word of "$ac_prog", so it can be a program name with args.
18252 set dummy $ac_prog; ac_word=$2
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18254 $as_echo_n "checking for $ac_word... " >&6; }
18255 if ${ac_cv_path_COMM+:} false; then :
18256   $as_echo_n "(cached) " >&6
18257 else
18258   case $COMM in
18259   [\\/]* | ?:[\\/]*)
18260   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18261   ;;
18262   *)
18263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18264 for as_dir in $PATH
18265 do
18266   IFS=$as_save_IFS
18267   test -z "$as_dir" && as_dir=.
18268     for ac_exec_ext in '' $ac_executable_extensions; do
18269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18270     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18272     break 2
18273   fi
18274 done
18275   done
18276 IFS=$as_save_IFS
18277 
18278   ;;
18279 esac
18280 fi
18281 COMM=$ac_cv_path_COMM
18282 if test -n "$COMM"; then
18283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18284 $as_echo "$COMM" >&6; }
18285 else
18286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18287 $as_echo "no" >&6; }
18288 fi
18289 
18290 
18291   test -n "$COMM" && break
18292 done
18293 
18294     else
18295       # If it succeeded, then it was overridden by the user. We will use it
18296       # for the tool.
18297 
18298       # First remove it from the list of overridden variables, so we can test
18299       # for unknown variables in the end.
18300       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18301 
18302       # Check if the provided tool contains a complete path.
18303       tool_specified="$COMM"
18304       tool_basename="${tool_specified##*/}"
18305       if test "x$tool_basename" = "x$tool_specified"; then
18306         # A command without a complete path is provided, search $PATH.
18307         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18308 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18309         # Extract the first word of "$tool_basename", so it can be a program name with args.
18310 set dummy $tool_basename; ac_word=$2
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18312 $as_echo_n "checking for $ac_word... " >&6; }
18313 if ${ac_cv_path_COMM+:} false; then :
18314   $as_echo_n "(cached) " >&6
18315 else
18316   case $COMM in
18317   [\\/]* | ?:[\\/]*)
18318   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18319   ;;
18320   *)
18321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in $PATH
18323 do
18324   IFS=$as_save_IFS
18325   test -z "$as_dir" && as_dir=.
18326     for ac_exec_ext in '' $ac_executable_extensions; do
18327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18328     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18330     break 2
18331   fi
18332 done
18333   done
18334 IFS=$as_save_IFS
18335 
18336   ;;
18337 esac
18338 fi
18339 COMM=$ac_cv_path_COMM
18340 if test -n "$COMM"; then
18341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18342 $as_echo "$COMM" >&6; }
18343 else
18344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18345 $as_echo "no" >&6; }
18346 fi
18347 
18348 
18349         if test "x$COMM" = x; then
18350           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18351         fi
18352       else
18353         # Otherwise we believe it is a complete path. Use it as it is.
18354         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18355 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18357 $as_echo_n "checking for COMM... " >&6; }
18358         if test ! -x "$tool_specified"; then
18359           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18360 $as_echo "not found" >&6; }
18361           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18362         fi
18363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18364 $as_echo "$tool_specified" >&6; }
18365       fi
18366     fi
18367   fi
18368 
18369 
18370 
18371   if test "x$COMM" = x; then
18372     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18373   fi
18374 
18375 
18376   fi
18377 
18378   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18379 
18380 
18381 
18382   # Publish this variable in the help.
18383 
18384 
18385   if test "x$DSYMUTIL" = x; then
18386     # The variable is not set by user, try to locate tool using the code snippet
18387     for ac_prog in dsymutil
18388 do
18389   # Extract the first word of "$ac_prog", so it can be a program name with args.
18390 set dummy $ac_prog; ac_word=$2
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18392 $as_echo_n "checking for $ac_word... " >&6; }
18393 if ${ac_cv_path_DSYMUTIL+:} false; then :
18394   $as_echo_n "(cached) " >&6
18395 else
18396   case $DSYMUTIL in
18397   [\\/]* | ?:[\\/]*)
18398   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18399   ;;
18400   *)
18401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18402 for as_dir in $PATH
18403 do
18404   IFS=$as_save_IFS
18405   test -z "$as_dir" && as_dir=.
18406     for ac_exec_ext in '' $ac_executable_extensions; do
18407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18408     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18410     break 2
18411   fi
18412 done
18413   done
18414 IFS=$as_save_IFS
18415 
18416   ;;
18417 esac
18418 fi
18419 DSYMUTIL=$ac_cv_path_DSYMUTIL
18420 if test -n "$DSYMUTIL"; then
18421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18422 $as_echo "$DSYMUTIL" >&6; }
18423 else
18424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18425 $as_echo "no" >&6; }
18426 fi
18427 
18428 
18429   test -n "$DSYMUTIL" && break
18430 done
18431 
18432   else
18433     # The variable is set, but is it from the command line or the environment?
18434 
18435     # Try to remove the string !DSYMUTIL! from our list.
18436     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18437     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18438       # If it failed, the variable was not from the command line. Ignore it,
18439       # but warn the user (except for BASH, which is always set by the calling BASH).
18440       if test "xDSYMUTIL" != xBASH; then
18441         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18442 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18443       fi
18444       # Try to locate tool using the code snippet
18445       for ac_prog in dsymutil
18446 do
18447   # Extract the first word of "$ac_prog", so it can be a program name with args.
18448 set dummy $ac_prog; ac_word=$2
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18450 $as_echo_n "checking for $ac_word... " >&6; }
18451 if ${ac_cv_path_DSYMUTIL+:} false; then :
18452   $as_echo_n "(cached) " >&6
18453 else
18454   case $DSYMUTIL in
18455   [\\/]* | ?:[\\/]*)
18456   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18457   ;;
18458   *)
18459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18460 for as_dir in $PATH
18461 do
18462   IFS=$as_save_IFS
18463   test -z "$as_dir" && as_dir=.
18464     for ac_exec_ext in '' $ac_executable_extensions; do
18465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18466     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18468     break 2
18469   fi
18470 done
18471   done
18472 IFS=$as_save_IFS
18473 
18474   ;;
18475 esac
18476 fi
18477 DSYMUTIL=$ac_cv_path_DSYMUTIL
18478 if test -n "$DSYMUTIL"; then
18479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18480 $as_echo "$DSYMUTIL" >&6; }
18481 else
18482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18483 $as_echo "no" >&6; }
18484 fi
18485 
18486 
18487   test -n "$DSYMUTIL" && break
18488 done
18489 
18490     else
18491       # If it succeeded, then it was overridden by the user. We will use it
18492       # for the tool.
18493 
18494       # First remove it from the list of overridden variables, so we can test
18495       # for unknown variables in the end.
18496       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18497 
18498       # Check if the provided tool contains a complete path.
18499       tool_specified="$DSYMUTIL"
18500       tool_basename="${tool_specified##*/}"
18501       if test "x$tool_basename" = "x$tool_specified"; then
18502         # A command without a complete path is provided, search $PATH.
18503         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18504 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18505         # Extract the first word of "$tool_basename", so it can be a program name with args.
18506 set dummy $tool_basename; ac_word=$2
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18508 $as_echo_n "checking for $ac_word... " >&6; }
18509 if ${ac_cv_path_DSYMUTIL+:} false; then :
18510   $as_echo_n "(cached) " >&6
18511 else
18512   case $DSYMUTIL in
18513   [\\/]* | ?:[\\/]*)
18514   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18515   ;;
18516   *)
18517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18519 do
18520   IFS=$as_save_IFS
18521   test -z "$as_dir" && as_dir=.
18522     for ac_exec_ext in '' $ac_executable_extensions; do
18523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18524     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18526     break 2
18527   fi
18528 done
18529   done
18530 IFS=$as_save_IFS
18531 
18532   ;;
18533 esac
18534 fi
18535 DSYMUTIL=$ac_cv_path_DSYMUTIL
18536 if test -n "$DSYMUTIL"; then
18537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18538 $as_echo "$DSYMUTIL" >&6; }
18539 else
18540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18542 fi
18543 
18544 
18545         if test "x$DSYMUTIL" = x; then
18546           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18547         fi
18548       else
18549         # Otherwise we believe it is a complete path. Use it as it is.
18550         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18551 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18552         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18553 $as_echo_n "checking for DSYMUTIL... " >&6; }
18554         if test ! -x "$tool_specified"; then
18555           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18556 $as_echo "not found" >&6; }
18557           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18558         fi
18559         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18560 $as_echo "$tool_specified" >&6; }
18561       fi
18562     fi
18563   fi
18564 
18565 
18566 
18567   if test "x$DSYMUTIL" = x; then
18568     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18569   fi
18570 
18571 
18572 
18573 
18574 
18575   # Publish this variable in the help.
18576 
18577 
18578   if test "x$XATTR" = x; then
18579     # The variable is not set by user, try to locate tool using the code snippet
18580     for ac_prog in xattr
18581 do
18582   # Extract the first word of "$ac_prog", so it can be a program name with args.
18583 set dummy $ac_prog; ac_word=$2
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18585 $as_echo_n "checking for $ac_word... " >&6; }
18586 if ${ac_cv_path_XATTR+:} false; then :
18587   $as_echo_n "(cached) " >&6
18588 else
18589   case $XATTR in
18590   [\\/]* | ?:[\\/]*)
18591   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18592   ;;
18593   *)
18594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18595 for as_dir in $PATH
18596 do
18597   IFS=$as_save_IFS
18598   test -z "$as_dir" && as_dir=.
18599     for ac_exec_ext in '' $ac_executable_extensions; do
18600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18601     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18603     break 2
18604   fi
18605 done
18606   done
18607 IFS=$as_save_IFS
18608 
18609   ;;
18610 esac
18611 fi
18612 XATTR=$ac_cv_path_XATTR
18613 if test -n "$XATTR"; then
18614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18615 $as_echo "$XATTR" >&6; }
18616 else
18617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618 $as_echo "no" >&6; }
18619 fi
18620 
18621 
18622   test -n "$XATTR" && break
18623 done
18624 
18625   else
18626     # The variable is set, but is it from the command line or the environment?
18627 
18628     # Try to remove the string !XATTR! from our list.
18629     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18630     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18631       # If it failed, the variable was not from the command line. Ignore it,
18632       # but warn the user (except for BASH, which is always set by the calling BASH).
18633       if test "xXATTR" != xBASH; then
18634         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18635 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18636       fi
18637       # Try to locate tool using the code snippet
18638       for ac_prog in xattr
18639 do
18640   # Extract the first word of "$ac_prog", so it can be a program name with args.
18641 set dummy $ac_prog; ac_word=$2
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18643 $as_echo_n "checking for $ac_word... " >&6; }
18644 if ${ac_cv_path_XATTR+:} false; then :
18645   $as_echo_n "(cached) " >&6
18646 else
18647   case $XATTR in
18648   [\\/]* | ?:[\\/]*)
18649   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18650   ;;
18651   *)
18652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18653 for as_dir in $PATH
18654 do
18655   IFS=$as_save_IFS
18656   test -z "$as_dir" && as_dir=.
18657     for ac_exec_ext in '' $ac_executable_extensions; do
18658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18659     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18661     break 2
18662   fi
18663 done
18664   done
18665 IFS=$as_save_IFS
18666 
18667   ;;
18668 esac
18669 fi
18670 XATTR=$ac_cv_path_XATTR
18671 if test -n "$XATTR"; then
18672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18673 $as_echo "$XATTR" >&6; }
18674 else
18675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18676 $as_echo "no" >&6; }
18677 fi
18678 
18679 
18680   test -n "$XATTR" && break
18681 done
18682 
18683     else
18684       # If it succeeded, then it was overridden by the user. We will use it
18685       # for the tool.
18686 
18687       # First remove it from the list of overridden variables, so we can test
18688       # for unknown variables in the end.
18689       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18690 
18691       # Check if the provided tool contains a complete path.
18692       tool_specified="$XATTR"
18693       tool_basename="${tool_specified##*/}"
18694       if test "x$tool_basename" = "x$tool_specified"; then
18695         # A command without a complete path is provided, search $PATH.
18696         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18697 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18698         # Extract the first word of "$tool_basename", so it can be a program name with args.
18699 set dummy $tool_basename; ac_word=$2
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18701 $as_echo_n "checking for $ac_word... " >&6; }
18702 if ${ac_cv_path_XATTR+:} false; then :
18703   $as_echo_n "(cached) " >&6
18704 else
18705   case $XATTR in
18706   [\\/]* | ?:[\\/]*)
18707   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18708   ;;
18709   *)
18710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18711 for as_dir in $PATH
18712 do
18713   IFS=$as_save_IFS
18714   test -z "$as_dir" && as_dir=.
18715     for ac_exec_ext in '' $ac_executable_extensions; do
18716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18717     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18719     break 2
18720   fi
18721 done
18722   done
18723 IFS=$as_save_IFS
18724 
18725   ;;
18726 esac
18727 fi
18728 XATTR=$ac_cv_path_XATTR
18729 if test -n "$XATTR"; then
18730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18731 $as_echo "$XATTR" >&6; }
18732 else
18733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734 $as_echo "no" >&6; }
18735 fi
18736 
18737 
18738         if test "x$XATTR" = x; then
18739           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18740         fi
18741       else
18742         # Otherwise we believe it is a complete path. Use it as it is.
18743         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18744 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18745         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18746 $as_echo_n "checking for XATTR... " >&6; }
18747         if test ! -x "$tool_specified"; then
18748           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18749 $as_echo "not found" >&6; }
18750           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18751         fi
18752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18753 $as_echo "$tool_specified" >&6; }
18754       fi
18755     fi
18756   fi
18757 
18758 
18759 
18760   if test "x$XATTR" = x; then
18761     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18762   fi
18763 
18764 
18765 
18766 
18767   # Publish this variable in the help.
18768 
18769 
18770   if test "x$CODESIGN" = x; then
18771     # The variable is not set by user, try to locate tool using the code snippet
18772     for ac_prog in codesign
18773 do
18774   # Extract the first word of "$ac_prog", so it can be a program name with args.
18775 set dummy $ac_prog; ac_word=$2
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18777 $as_echo_n "checking for $ac_word... " >&6; }
18778 if ${ac_cv_path_CODESIGN+:} false; then :
18779   $as_echo_n "(cached) " >&6
18780 else
18781   case $CODESIGN in
18782   [\\/]* | ?:[\\/]*)
18783   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18784   ;;
18785   *)
18786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18787 for as_dir in $PATH
18788 do
18789   IFS=$as_save_IFS
18790   test -z "$as_dir" && as_dir=.
18791     for ac_exec_ext in '' $ac_executable_extensions; do
18792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18793     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18795     break 2
18796   fi
18797 done
18798   done
18799 IFS=$as_save_IFS
18800 
18801   ;;
18802 esac
18803 fi
18804 CODESIGN=$ac_cv_path_CODESIGN
18805 if test -n "$CODESIGN"; then
18806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18807 $as_echo "$CODESIGN" >&6; }
18808 else
18809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18810 $as_echo "no" >&6; }
18811 fi
18812 
18813 
18814   test -n "$CODESIGN" && break
18815 done
18816 
18817   else
18818     # The variable is set, but is it from the command line or the environment?
18819 
18820     # Try to remove the string !CODESIGN! from our list.
18821     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18822     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18823       # If it failed, the variable was not from the command line. Ignore it,
18824       # but warn the user (except for BASH, which is always set by the calling BASH).
18825       if test "xCODESIGN" != xBASH; then
18826         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
18827 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
18828       fi
18829       # Try to locate tool using the code snippet
18830       for ac_prog in codesign
18831 do
18832   # Extract the first word of "$ac_prog", so it can be a program name with args.
18833 set dummy $ac_prog; ac_word=$2
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18835 $as_echo_n "checking for $ac_word... " >&6; }
18836 if ${ac_cv_path_CODESIGN+:} false; then :
18837   $as_echo_n "(cached) " >&6
18838 else
18839   case $CODESIGN in
18840   [\\/]* | ?:[\\/]*)
18841   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18842   ;;
18843   *)
18844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18845 for as_dir in $PATH
18846 do
18847   IFS=$as_save_IFS
18848   test -z "$as_dir" && as_dir=.
18849     for ac_exec_ext in '' $ac_executable_extensions; do
18850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18851     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18853     break 2
18854   fi
18855 done
18856   done
18857 IFS=$as_save_IFS
18858 
18859   ;;
18860 esac
18861 fi
18862 CODESIGN=$ac_cv_path_CODESIGN
18863 if test -n "$CODESIGN"; then
18864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18865 $as_echo "$CODESIGN" >&6; }
18866 else
18867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 $as_echo "no" >&6; }
18869 fi
18870 
18871 
18872   test -n "$CODESIGN" && break
18873 done
18874 
18875     else
18876       # If it succeeded, then it was overridden by the user. We will use it
18877       # for the tool.
18878 
18879       # First remove it from the list of overridden variables, so we can test
18880       # for unknown variables in the end.
18881       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18882 
18883       # Check if the provided tool contains a complete path.
18884       tool_specified="$CODESIGN"
18885       tool_basename="${tool_specified##*/}"
18886       if test "x$tool_basename" = "x$tool_specified"; then
18887         # A command without a complete path is provided, search $PATH.
18888         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
18889 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
18890         # Extract the first word of "$tool_basename", so it can be a program name with args.
18891 set dummy $tool_basename; ac_word=$2
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18893 $as_echo_n "checking for $ac_word... " >&6; }
18894 if ${ac_cv_path_CODESIGN+:} false; then :
18895   $as_echo_n "(cached) " >&6
18896 else
18897   case $CODESIGN in
18898   [\\/]* | ?:[\\/]*)
18899   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18900   ;;
18901   *)
18902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18903 for as_dir in $PATH
18904 do
18905   IFS=$as_save_IFS
18906   test -z "$as_dir" && as_dir=.
18907     for ac_exec_ext in '' $ac_executable_extensions; do
18908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18909     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18911     break 2
18912   fi
18913 done
18914   done
18915 IFS=$as_save_IFS
18916 
18917   ;;
18918 esac
18919 fi
18920 CODESIGN=$ac_cv_path_CODESIGN
18921 if test -n "$CODESIGN"; then
18922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18923 $as_echo "$CODESIGN" >&6; }
18924 else
18925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18926 $as_echo "no" >&6; }
18927 fi
18928 
18929 
18930         if test "x$CODESIGN" = x; then
18931           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18932         fi
18933       else
18934         # Otherwise we believe it is a complete path. Use it as it is.
18935         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
18936 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
18937         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
18938 $as_echo_n "checking for CODESIGN... " >&6; }
18939         if test ! -x "$tool_specified"; then
18940           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18941 $as_echo "not found" >&6; }
18942           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
18943         fi
18944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18945 $as_echo "$tool_specified" >&6; }
18946       fi
18947     fi
18948   fi
18949 
18950 
18951     if test "x$CODESIGN" != "x"; then
18952       # Verify that the openjdk_codesign certificate is present
18953       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
18954 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
18955       rm -f codesign-testfile
18956       touch codesign-testfile
18957       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
18958       rm -f codesign-testfile
18959       if test "x$CODESIGN" = x; then
18960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18961 $as_echo "no" >&6; }
18962       else
18963         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18964 $as_echo "yes" >&6; }
18965       fi
18966     fi
18967   fi
18968 
18969 
18970 # Check if pkg-config is available.
18971 
18972 
18973 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18974         if test -n "$ac_tool_prefix"; then
18975   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18978 $as_echo_n "checking for $ac_word... " >&6; }
18979 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18980   $as_echo_n "(cached) " >&6
18981 else
18982   case $PKG_CONFIG in
18983   [\\/]* | ?:[\\/]*)
18984   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18985   ;;
18986   *)
18987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18988 for as_dir in $PATH
18989 do
18990   IFS=$as_save_IFS
18991   test -z "$as_dir" && as_dir=.
18992     for ac_exec_ext in '' $ac_executable_extensions; do
18993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18994     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18996     break 2
18997   fi
18998 done
18999   done
19000 IFS=$as_save_IFS
19001 
19002   ;;
19003 esac
19004 fi
19005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19006 if test -n "$PKG_CONFIG"; then
19007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19008 $as_echo "$PKG_CONFIG" >&6; }
19009 else
19010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011 $as_echo "no" >&6; }
19012 fi
19013 
19014 
19015 fi
19016 if test -z "$ac_cv_path_PKG_CONFIG"; then
19017   ac_pt_PKG_CONFIG=$PKG_CONFIG
19018   # Extract the first word of "pkg-config", so it can be a program name with args.
19019 set dummy pkg-config; ac_word=$2
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19021 $as_echo_n "checking for $ac_word... " >&6; }
19022 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19023   $as_echo_n "(cached) " >&6
19024 else
19025   case $ac_pt_PKG_CONFIG in
19026   [\\/]* | ?:[\\/]*)
19027   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19028   ;;
19029   *)
19030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in $PATH
19032 do
19033   IFS=$as_save_IFS
19034   test -z "$as_dir" && as_dir=.
19035     for ac_exec_ext in '' $ac_executable_extensions; do
19036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19037     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19039     break 2
19040   fi
19041 done
19042   done
19043 IFS=$as_save_IFS
19044 
19045   ;;
19046 esac
19047 fi
19048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19049 if test -n "$ac_pt_PKG_CONFIG"; then
19050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19051 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19052 else
19053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19054 $as_echo "no" >&6; }
19055 fi
19056 
19057   if test "x$ac_pt_PKG_CONFIG" = x; then
19058     PKG_CONFIG=""
19059   else
19060     case $cross_compiling:$ac_tool_warned in
19061 yes:)
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19064 ac_tool_warned=yes ;;
19065 esac
19066     PKG_CONFIG=$ac_pt_PKG_CONFIG
19067   fi
19068 else
19069   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19070 fi
19071 
19072 fi
19073 if test -n "$PKG_CONFIG"; then
19074         _pkg_min_version=0.9.0
19075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19076 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19077         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19078                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19079 $as_echo "yes" >&6; }
19080         else
19081                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19082 $as_echo "no" >&6; }
19083                 PKG_CONFIG=""
19084         fi
19085 
19086 fi
19087 
19088 # After basic tools have been setup, we can check build os specific details.
19089 
19090   ###############################################################################
19091 
19092   # Note that this is the build platform OS version!
19093 
19094   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19095   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19096   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19097   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19098 
19099 
19100 
19101 
19102 
19103 # Setup builddeps, for automatic downloading of tools we need.
19104 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19105 # boot-jdk setup, but we need to have basic tools setup first.
19106 
19107 
19108 # Check whether --with-builddeps-conf was given.
19109 if test "${with_builddeps_conf+set}" = set; then :
19110   withval=$with_builddeps_conf;
19111 fi
19112 
19113 
19114 
19115 # Check whether --with-builddeps-server was given.
19116 if test "${with_builddeps_server+set}" = set; then :
19117   withval=$with_builddeps_server;
19118 fi
19119 
19120 
19121 
19122 # Check whether --with-builddeps-dir was given.
19123 if test "${with_builddeps_dir+set}" = set; then :
19124   withval=$with_builddeps_dir;
19125 else
19126   with_builddeps_dir=/localhome/builddeps
19127 fi
19128 
19129 
19130 
19131 # Check whether --with-builddeps-group was given.
19132 if test "${with_builddeps_group+set}" = set; then :
19133   withval=$with_builddeps_group;
19134 fi
19135 
19136 
19137 
19138 
19139   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19140     if test "x$with_builddeps_conf" != x; then
19141       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19142 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19143       builddepsfile=$with_builddeps_conf
19144       if test -s $builddepsfile; then
19145         . $builddepsfile
19146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19147 $as_echo "loaded!" >&6; }
19148       else
19149         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19150       fi
19151     else
19152       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19153 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19154       builddepsfile=`mktemp`
19155       touch $builddepsfile
19156       # Put all found confs into a single file.
19157       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19158       # Source the file to acquire the variables
19159       if test -s $builddepsfile; then
19160         . $builddepsfile
19161         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19162 $as_echo "found at least one!" >&6; }
19163       else
19164         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19165       fi
19166     fi
19167     # Create build and target names that use _ instead of "-" and ".".
19168     # This is necessary to use them in variable names.
19169     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19170     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19171     # Extract rewrite information for build and target
19172     eval rewritten_build=\${REWRITE_${build_var}}
19173     if test "x$rewritten_build" = x; then
19174       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19175       echo Build stays the same $rewritten_build
19176     else
19177       echo Rewriting build for builddeps into $rewritten_build
19178     fi
19179     eval rewritten_target=\${REWRITE_${target_var}}
19180     if test "x$rewritten_target" = x; then
19181       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19182       echo Target stays the same $rewritten_target
19183     else
19184       echo Rewriting target for builddeps into $rewritten_target
19185     fi
19186     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19187     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19188   fi
19189   for ac_prog in 7z unzip
19190 do
19191   # Extract the first word of "$ac_prog", so it can be a program name with args.
19192 set dummy $ac_prog; ac_word=$2
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19194 $as_echo_n "checking for $ac_word... " >&6; }
19195 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19196   $as_echo_n "(cached) " >&6
19197 else
19198   if test -n "$BDEPS_UNZIP"; then
19199   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19200 else
19201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19202 for as_dir in $PATH
19203 do
19204   IFS=$as_save_IFS
19205   test -z "$as_dir" && as_dir=.
19206     for ac_exec_ext in '' $ac_executable_extensions; do
19207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19208     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19210     break 2
19211   fi
19212 done
19213   done
19214 IFS=$as_save_IFS
19215 
19216 fi
19217 fi
19218 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19219 if test -n "$BDEPS_UNZIP"; then
19220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19221 $as_echo "$BDEPS_UNZIP" >&6; }
19222 else
19223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19224 $as_echo "no" >&6; }
19225 fi
19226 
19227 
19228   test -n "$BDEPS_UNZIP" && break
19229 done
19230 
19231   if test "x$BDEPS_UNZIP" = x7z; then
19232     BDEPS_UNZIP="7z x"
19233   fi
19234 
19235   for ac_prog in wget lftp ftp
19236 do
19237   # Extract the first word of "$ac_prog", so it can be a program name with args.
19238 set dummy $ac_prog; ac_word=$2
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19240 $as_echo_n "checking for $ac_word... " >&6; }
19241 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19242   $as_echo_n "(cached) " >&6
19243 else
19244   if test -n "$BDEPS_FTP"; then
19245   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19246 else
19247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19248 for as_dir in $PATH
19249 do
19250   IFS=$as_save_IFS
19251   test -z "$as_dir" && as_dir=.
19252     for ac_exec_ext in '' $ac_executable_extensions; do
19253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19254     ac_cv_prog_BDEPS_FTP="$ac_prog"
19255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19256     break 2
19257   fi
19258 done
19259   done
19260 IFS=$as_save_IFS
19261 
19262 fi
19263 fi
19264 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19265 if test -n "$BDEPS_FTP"; then
19266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19267 $as_echo "$BDEPS_FTP" >&6; }
19268 else
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19271 fi
19272 
19273 
19274   test -n "$BDEPS_FTP" && break
19275 done
19276 
19277 
19278 
19279 ###############################################################################
19280 #
19281 # Determine OpenJDK variants, options and version numbers.
19282 #
19283 ###############################################################################
19284 
19285 # We need build & target for this.
19286 
19287 
19288   ###############################################################################
19289   #
19290   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19291   # We always build headless support.
19292   #
19293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19294 $as_echo_n "checking headful support... " >&6; }
19295   # Check whether --enable-headful was given.
19296 if test "${enable_headful+set}" = set; then :
19297   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19298 else
19299   SUPPORT_HEADFUL=yes
19300 fi
19301 
19302 
19303   SUPPORT_HEADLESS=yes
19304   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19305 
19306   if test "x$SUPPORT_HEADFUL" = xyes; then
19307     # We are building both headful and headless.
19308     headful_msg="include support for both headful and headless"
19309   fi
19310 
19311   if test "x$SUPPORT_HEADFUL" = xno; then
19312     # Thus we are building headless only.
19313     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19314     headful_msg="headless only"
19315   fi
19316 
19317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19318 $as_echo "$headful_msg" >&6; }
19319 
19320 
19321 
19322 
19323 
19324   # Control wether Hotspot runs Queens test after build.
19325   # Check whether --enable-hotspot-test-in-build was given.
19326 if test "${enable_hotspot_test_in_build+set}" = set; then :
19327   enableval=$enable_hotspot_test_in_build;
19328 else
19329   enable_hotspot_test_in_build=no
19330 fi
19331 
19332   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19333     TEST_IN_BUILD=true
19334   else
19335     TEST_IN_BUILD=false
19336   fi
19337 
19338 
19339   ###############################################################################
19340   #
19341   # Choose cacerts source file
19342   #
19343 
19344 # Check whether --with-cacerts-file was given.
19345 if test "${with_cacerts_file+set}" = set; then :
19346   withval=$with_cacerts_file;
19347 fi
19348 
19349   if test "x$with_cacerts_file" != x; then
19350     CACERTS_FILE=$with_cacerts_file
19351   else
19352     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19353   fi
19354 
19355 
19356   ###############################################################################
19357   #
19358   # Enable or disable unlimited crypto
19359   #
19360   # Check whether --enable-unlimited-crypto was given.
19361 if test "${enable_unlimited_crypto+set}" = set; then :
19362   enableval=$enable_unlimited_crypto;
19363 else
19364   enable_unlimited_crypto=no
19365 fi
19366 
19367   if test "x$enable_unlimited_crypto" = "xyes"; then
19368     UNLIMITED_CRYPTO=true
19369   else
19370     UNLIMITED_CRYPTO=false
19371   fi
19372 
19373 
19374   ###############################################################################
19375   #
19376   # Enable or disable the elliptic curve crypto implementation
19377   #
19378 
19379 
19380   ###############################################################################
19381   #
19382   # Compress jars
19383   #
19384   COMPRESS_JARS=false
19385 
19386 
19387 
19388 
19389   # Source the version numbers
19390   . $AUTOCONF_DIR/version-numbers
19391 
19392   # Get the settings from parameters
19393 
19394 # Check whether --with-milestone was given.
19395 if test "${with_milestone+set}" = set; then :
19396   withval=$with_milestone;
19397 fi
19398 
19399   if test "x$with_milestone" = xyes; then
19400     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19401   elif test "x$with_milestone" != x; then
19402     MILESTONE="$with_milestone"
19403   fi
19404   if test "x$MILESTONE" = x; then
19405     MILESTONE=internal
19406   fi
19407 
19408 
19409 # Check whether --with-update-version was given.
19410 if test "${with_update_version+set}" = set; then :
19411   withval=$with_update_version;
19412 fi
19413 
19414   if test "x$with_update_version" = xyes; then
19415     as_fn_error $? "Update version must have a value" "$LINENO" 5
19416   elif test "x$with_update_version" != x; then
19417     JDK_UPDATE_VERSION="$with_update_version"
19418     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19419     # to a bug in expr (which reduces it to just X). To work around this, we
19420     # always add a 0 to one digit update versions.
19421     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19422       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19423     fi
19424   fi
19425 
19426 
19427 # Check whether --with-user-release-suffix was given.
19428 if test "${with_user_release_suffix+set}" = set; then :
19429   withval=$with_user_release_suffix;
19430 fi
19431 
19432   if test "x$with_user_release_suffix" = xyes; then
19433     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19434   elif test "x$with_user_release_suffix" != x; then
19435     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19436   fi
19437 
19438 
19439 # Check whether --with-build-number was given.
19440 if test "${with_build_number+set}" = set; then :
19441   withval=$with_build_number;
19442 fi
19443 
19444   if test "x$with_build_number" = xyes; then
19445     as_fn_error $? "Build number must have a value" "$LINENO" 5
19446   elif test "x$with_build_number" != x; then
19447     JDK_BUILD_NUMBER="$with_build_number"
19448   fi
19449   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19450   if test "x$JDK_BUILD_NUMBER" = x; then
19451     JDK_BUILD_NUMBER=b00
19452     if test "x$USER_RELEASE_SUFFIX" = x; then
19453       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19454       # Avoid [:alnum:] since it depends on the locale.
19455       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19456       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19457     fi
19458   fi
19459 
19460   # Now set the JDK version, milestone, build number etc.
19461 
19462 
19463 
19464 
19465 
19466 
19467 
19468 
19469 
19470 
19471 
19472 
19473 
19474 
19475 
19476   COPYRIGHT_YEAR=`date +'%Y'`
19477 
19478 
19479   if test "x$JDK_UPDATE_VERSION" != x; then
19480     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19481   else
19482     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19483   fi
19484 
19485 
19486   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19487 
19488 
19489 
19490 ###############################################################################
19491 #
19492 # Setup BootJDK, used to bootstrap the build.
19493 #
19494 ###############################################################################
19495 
19496 
19497   BOOT_JDK_FOUND=no
19498 
19499 # Check whether --with-boot-jdk was given.
19500 if test "${with_boot_jdk+set}" = set; then :
19501   withval=$with_boot_jdk;
19502 fi
19503 
19504 
19505   # We look for the Boot JDK through various means, going from more certain to
19506   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19507   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19508   # must check if this is indeed valid; otherwise we'll continue looking.
19509 
19510   # Test: Is bootjdk explicitely set by command line arguments?
19511 
19512   if test "x$BOOT_JDK_FOUND" = xno; then
19513     # Now execute the test
19514 
19515   if test "x$with_boot_jdk" != x; then
19516     BOOT_JDK=$with_boot_jdk
19517     BOOT_JDK_FOUND=maybe
19518     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19519 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19520   fi
19521 
19522 
19523     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19524     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19525       # Do we have a bin/java?
19526       if test ! -x "$BOOT_JDK/bin/java"; then
19527         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19528 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19529         BOOT_JDK_FOUND=no
19530       else
19531         # Do we have a bin/javac?
19532         if test ! -x "$BOOT_JDK/bin/javac"; then
19533           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19534 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19535           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19536 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19537           BOOT_JDK_FOUND=no
19538         else
19539           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19540           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19541             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19542 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19543             BOOT_JDK_FOUND=no
19544           else
19545             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19546             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19547 
19548             # Extra M4 quote needed to protect [] in grep expression.
19549             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19550             if test "x$FOUND_CORRECT_VERSION" = x; then
19551               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19552 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19553               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19554 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19555               BOOT_JDK_FOUND=no
19556             else
19557               # We're done! :-)
19558               BOOT_JDK_FOUND=yes
19559 
19560   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19561 
19562   # Input might be given as Windows format, start by converting to
19563   # unix format.
19564   path="$BOOT_JDK"
19565   new_path=`$CYGPATH -u "$path"`
19566 
19567   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19568   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19569   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19570   # "foo.exe" is OK but "foo" is an error.
19571   #
19572   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19573   # It is also a way to make sure we got the proper file name for the real test later on.
19574   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19575   if test "x$test_shortpath" = x; then
19576     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19577 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19578     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19579   fi
19580 
19581   # Call helper function which possibly converts this using DOS-style short mode.
19582   # If so, the updated path is stored in $new_path.
19583 
19584   input_path="$new_path"
19585   # Check if we need to convert this using DOS-style short mode. If the path
19586   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19587   # take no chances and rewrite it.
19588   # Note: m4 eats our [], so we need to use [ and ] instead.
19589   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19590   if test "x$has_forbidden_chars" != x; then
19591     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19592     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19593     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19594     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19595       # Going to short mode and back again did indeed matter. Since short mode is
19596       # case insensitive, let's make it lowercase to improve readability.
19597       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19598       # Now convert it back to Unix-stile (cygpath)
19599       input_path=`$CYGPATH -u "$shortmode_path"`
19600       new_path="$input_path"
19601     fi
19602   fi
19603 
19604   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19605   if test "x$test_cygdrive_prefix" = x; then
19606     # As a simple fix, exclude /usr/bin since it's not a real path.
19607     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19608       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19609       # a path prefixed by /cygdrive for fixpath to work.
19610       new_path="$CYGWIN_ROOT_PATH$input_path"
19611     fi
19612   fi
19613 
19614 
19615   if test "x$path" != "x$new_path"; then
19616     BOOT_JDK="$new_path"
19617     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19618 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19619   fi
19620 
19621   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19622 
19623   path="$BOOT_JDK"
19624   has_colon=`$ECHO $path | $GREP ^.:`
19625   new_path="$path"
19626   if test "x$has_colon" = x; then
19627     # Not in mixed or Windows style, start by that.
19628     new_path=`cmd //c echo $path`
19629   fi
19630 
19631 
19632   input_path="$new_path"
19633   # Check if we need to convert this using DOS-style short mode. If the path
19634   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19635   # take no chances and rewrite it.
19636   # Note: m4 eats our [], so we need to use [ and ] instead.
19637   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19638   if test "x$has_forbidden_chars" != x; then
19639     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19640     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19641   fi
19642 
19643 
19644   windows_path="$new_path"
19645   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19646     unix_path=`$CYGPATH -u "$windows_path"`
19647     new_path="$unix_path"
19648   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19649     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19650     new_path="$unix_path"
19651   fi
19652 
19653   if test "x$path" != "x$new_path"; then
19654     BOOT_JDK="$new_path"
19655     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19656 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19657   fi
19658 
19659   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19660   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19661 
19662   else
19663     # We're on a posix platform. Hooray! :)
19664     path="$BOOT_JDK"
19665     has_space=`$ECHO "$path" | $GREP " "`
19666     if test "x$has_space" != x; then
19667       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19669       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19670     fi
19671 
19672     # Use eval to expand a potential ~
19673     eval path="$path"
19674     if test ! -f "$path" && test ! -d "$path"; then
19675       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19676     fi
19677 
19678     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19679   fi
19680 
19681               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19682 $as_echo_n "checking for Boot JDK... " >&6; }
19683               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19684 $as_echo "$BOOT_JDK" >&6; }
19685               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19686 $as_echo_n "checking Boot JDK version... " >&6; }
19687               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19688               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19689 $as_echo "$BOOT_JDK_VERSION" >&6; }
19690             fi # end check jdk version
19691           fi # end check rt.jar
19692         fi # end check javac
19693       fi # end check java
19694     fi # end check boot jdk found
19695   fi
19696 
19697   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19698     # Having specified an argument which is incorrect will produce an instant failure;
19699     # we should not go on looking
19700     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19701   fi
19702 
19703   # Test: Is bootjdk available from builddeps?
19704 
19705   if test "x$BOOT_JDK_FOUND" = xno; then
19706     # Now execute the test
19707 
19708 
19709 
19710   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19711     # Source the builddeps file again, to make sure it uses the latest variables!
19712     . $builddepsfile
19713     # Look for a target and build machine specific resource!
19714     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19715     if test "x$resource" = x; then
19716       # Ok, lets instead look for a target specific resource
19717       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19718     fi
19719     if test "x$resource" = x; then
19720       # Ok, lets instead look for a build specific resource
19721       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19722     fi
19723     if test "x$resource" = x; then
19724       # Ok, lets instead look for a generic resource
19725       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19726       resource=${builddep_bootjdk}
19727     fi
19728     if test "x$resource" != x; then
19729       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19730 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19731       # If the resource in the builddeps.conf file is an existing directory,
19732       # for example /java/linux/cups
19733       if test -d ${resource}; then
19734         depdir=${resource}
19735       else
19736 
19737   # bootjdk is for example mymodule
19738   # $resource is for example libs/general/libmymod_1_2_3.zip
19739   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19740   # $with_builddeps_dir is for example /localhome/builddeps
19741   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19742   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19743   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19744   filename=`basename $resource`
19745   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19746   filebase=${filename%%.*}
19747   extension=${filename#*.}
19748   installdir=$with_builddeps_dir/$filebase
19749   if test ! -f $installdir/$filename.unpacked; then
19750     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19751 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19752     if test ! -d $installdir; then
19753       mkdir -p $installdir
19754     fi
19755     if test ! -d $installdir; then
19756       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19757     fi
19758     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19759     touch $tmpfile
19760     if test ! -f $tmpfile; then
19761       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19762     fi
19763 
19764   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19765   # $tmpfile is the local file name for the downloaded file.
19766   VALID_TOOL=no
19767   if test "x$BDEPS_FTP" = xwget; then
19768     VALID_TOOL=yes
19769     wget -O $tmpfile $with_builddeps_server/$resource
19770   fi
19771   if test "x$BDEPS_FTP" = xlftp; then
19772     VALID_TOOL=yes
19773     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19774   fi
19775   if test "x$BDEPS_FTP" = xftp; then
19776     VALID_TOOL=yes
19777     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19778     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19779     FTPUSERPWD=${FTPSERVER%%@*}
19780     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19781       FTPUSER=${userpwd%%:*}
19782       FTPPWD=${userpwd#*@}
19783       FTPSERVER=${FTPSERVER#*@}
19784     else
19785       FTPUSER=ftp
19786       FTPPWD=ftp
19787     fi
19788     # the "pass" command does not work on some
19789     # ftp clients (read ftp.exe) but if it works,
19790     # passive mode is better!
19791     ( \
19792         echo "user $FTPUSER $FTPPWD"        ; \
19793         echo "pass"                         ; \
19794         echo "bin"                          ; \
19795         echo "get $FTPPATH $tmpfile"              ; \
19796     ) | ftp -in $FTPSERVER
19797   fi
19798   if test "x$VALID_TOOL" != xyes; then
19799     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19800   fi
19801 
19802     mv $tmpfile $installdir/$filename
19803     if test ! -s $installdir/$filename; then
19804       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19805     fi
19806     case "$extension" in
19807       zip)  echo "Unzipping $installdir/$filename..."
19808         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
19809         ;;
19810       tar.gz) echo "Untaring $installdir/$filename..."
19811         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19812         ;;
19813       tgz) echo "Untaring $installdir/$filename..."
19814         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
19815         ;;
19816       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
19817         ;;
19818     esac
19819   fi
19820   if test -f $installdir/$filename.unpacked; then
19821     depdir=$installdir
19822   fi
19823 
19824       fi
19825       # Source the builddeps file again, because in the previous command, the depdir
19826       # was updated to point at the current build dependency install directory.
19827       . $builddepsfile
19828       # Now extract variables from the builddeps.conf files.
19829       theroot=${builddep_bootjdk_ROOT}
19830       thecflags=${builddep_bootjdk_CFLAGS}
19831       thelibs=${builddep_bootjdk_LIBS}
19832       if test "x$depdir" = x; then
19833         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
19834       fi
19835       BOOT_JDK=$depdir
19836       if test "x$theroot" != x; then
19837         BOOT_JDK="$theroot"
19838       fi
19839       if test "x$thecflags" != x; then
19840         BOOT_JDK_CFLAGS="$thecflags"
19841       fi
19842       if test "x$thelibs" != x; then
19843         BOOT_JDK_LIBS="$thelibs"
19844       fi
19845       BOOT_JDK_FOUND=maybe
19846       else BOOT_JDK_FOUND=no
19847 
19848     fi
19849     else BOOT_JDK_FOUND=no
19850 
19851   fi
19852 
19853 
19854 
19855     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19856     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19857       # Do we have a bin/java?
19858       if test ! -x "$BOOT_JDK/bin/java"; then
19859         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19860 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19861         BOOT_JDK_FOUND=no
19862       else
19863         # Do we have a bin/javac?
19864         if test ! -x "$BOOT_JDK/bin/javac"; then
19865           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19867           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19868 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19869           BOOT_JDK_FOUND=no
19870         else
19871           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19872           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19873             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19874 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19875             BOOT_JDK_FOUND=no
19876           else
19877             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19878             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19879 
19880             # Extra M4 quote needed to protect [] in grep expression.
19881             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19882             if test "x$FOUND_CORRECT_VERSION" = x; then
19883               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19884 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19885               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19886 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19887               BOOT_JDK_FOUND=no
19888             else
19889               # We're done! :-)
19890               BOOT_JDK_FOUND=yes
19891 
19892   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19893 
19894   # Input might be given as Windows format, start by converting to
19895   # unix format.
19896   path="$BOOT_JDK"
19897   new_path=`$CYGPATH -u "$path"`
19898 
19899   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19900   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19901   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19902   # "foo.exe" is OK but "foo" is an error.
19903   #
19904   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19905   # It is also a way to make sure we got the proper file name for the real test later on.
19906   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19907   if test "x$test_shortpath" = x; then
19908     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19909 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19910     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19911   fi
19912 
19913   # Call helper function which possibly converts this using DOS-style short mode.
19914   # If so, the updated path is stored in $new_path.
19915 
19916   input_path="$new_path"
19917   # Check if we need to convert this using DOS-style short mode. If the path
19918   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19919   # take no chances and rewrite it.
19920   # Note: m4 eats our [], so we need to use [ and ] instead.
19921   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19922   if test "x$has_forbidden_chars" != x; then
19923     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19924     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19925     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19926     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19927       # Going to short mode and back again did indeed matter. Since short mode is
19928       # case insensitive, let's make it lowercase to improve readability.
19929       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19930       # Now convert it back to Unix-stile (cygpath)
19931       input_path=`$CYGPATH -u "$shortmode_path"`
19932       new_path="$input_path"
19933     fi
19934   fi
19935 
19936   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19937   if test "x$test_cygdrive_prefix" = x; then
19938     # As a simple fix, exclude /usr/bin since it's not a real path.
19939     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19940       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19941       # a path prefixed by /cygdrive for fixpath to work.
19942       new_path="$CYGWIN_ROOT_PATH$input_path"
19943     fi
19944   fi
19945 
19946 
19947   if test "x$path" != "x$new_path"; then
19948     BOOT_JDK="$new_path"
19949     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19950 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19951   fi
19952 
19953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19954 
19955   path="$BOOT_JDK"
19956   has_colon=`$ECHO $path | $GREP ^.:`
19957   new_path="$path"
19958   if test "x$has_colon" = x; then
19959     # Not in mixed or Windows style, start by that.
19960     new_path=`cmd //c echo $path`
19961   fi
19962 
19963 
19964   input_path="$new_path"
19965   # Check if we need to convert this using DOS-style short mode. If the path
19966   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19967   # take no chances and rewrite it.
19968   # Note: m4 eats our [], so we need to use [ and ] instead.
19969   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19970   if test "x$has_forbidden_chars" != x; then
19971     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19972     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19973   fi
19974 
19975 
19976   windows_path="$new_path"
19977   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19978     unix_path=`$CYGPATH -u "$windows_path"`
19979     new_path="$unix_path"
19980   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19981     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19982     new_path="$unix_path"
19983   fi
19984 
19985   if test "x$path" != "x$new_path"; then
19986     BOOT_JDK="$new_path"
19987     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19988 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19989   fi
19990 
19991   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19992   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19993 
19994   else
19995     # We're on a posix platform. Hooray! :)
19996     path="$BOOT_JDK"
19997     has_space=`$ECHO "$path" | $GREP " "`
19998     if test "x$has_space" != x; then
19999       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20000 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20001       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20002     fi
20003 
20004     # Use eval to expand a potential ~
20005     eval path="$path"
20006     if test ! -f "$path" && test ! -d "$path"; then
20007       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20008     fi
20009 
20010     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20011   fi
20012 
20013               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20014 $as_echo_n "checking for Boot JDK... " >&6; }
20015               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20016 $as_echo "$BOOT_JDK" >&6; }
20017               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20018 $as_echo_n "checking Boot JDK version... " >&6; }
20019               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20020               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20021 $as_echo "$BOOT_JDK_VERSION" >&6; }
20022             fi # end check jdk version
20023           fi # end check rt.jar
20024         fi # end check javac
20025       fi # end check java
20026     fi # end check boot jdk found
20027   fi
20028 
20029 
20030   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20031 
20032   if test "x$BOOT_JDK_FOUND" = xno; then
20033     # Now execute the test
20034 
20035   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20036     # First check at user selected default
20037 
20038   if test "x$BOOT_JDK_FOUND" = xno; then
20039     # Now execute the test
20040 
20041   if test -x /usr/libexec/java_home; then
20042     BOOT_JDK=`/usr/libexec/java_home `
20043     BOOT_JDK_FOUND=maybe
20044     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20045 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20046   fi
20047 
20048 
20049     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20050     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20051       # Do we have a bin/java?
20052       if test ! -x "$BOOT_JDK/bin/java"; then
20053         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20054 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20055         BOOT_JDK_FOUND=no
20056       else
20057         # Do we have a bin/javac?
20058         if test ! -x "$BOOT_JDK/bin/javac"; then
20059           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20061           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20062 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20063           BOOT_JDK_FOUND=no
20064         else
20065           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20066           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20067             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20069             BOOT_JDK_FOUND=no
20070           else
20071             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20072             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20073 
20074             # Extra M4 quote needed to protect [] in grep expression.
20075             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20076             if test "x$FOUND_CORRECT_VERSION" = x; then
20077               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20078 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20079               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20080 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20081               BOOT_JDK_FOUND=no
20082             else
20083               # We're done! :-)
20084               BOOT_JDK_FOUND=yes
20085 
20086   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20087 
20088   # Input might be given as Windows format, start by converting to
20089   # unix format.
20090   path="$BOOT_JDK"
20091   new_path=`$CYGPATH -u "$path"`
20092 
20093   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20094   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20095   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20096   # "foo.exe" is OK but "foo" is an error.
20097   #
20098   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20099   # It is also a way to make sure we got the proper file name for the real test later on.
20100   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20101   if test "x$test_shortpath" = x; then
20102     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20103 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20104     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20105   fi
20106 
20107   # Call helper function which possibly converts this using DOS-style short mode.
20108   # If so, the updated path is stored in $new_path.
20109 
20110   input_path="$new_path"
20111   # Check if we need to convert this using DOS-style short mode. If the path
20112   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20113   # take no chances and rewrite it.
20114   # Note: m4 eats our [], so we need to use [ and ] instead.
20115   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20116   if test "x$has_forbidden_chars" != x; then
20117     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20118     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20119     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20120     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20121       # Going to short mode and back again did indeed matter. Since short mode is
20122       # case insensitive, let's make it lowercase to improve readability.
20123       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20124       # Now convert it back to Unix-stile (cygpath)
20125       input_path=`$CYGPATH -u "$shortmode_path"`
20126       new_path="$input_path"
20127     fi
20128   fi
20129 
20130   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20131   if test "x$test_cygdrive_prefix" = x; then
20132     # As a simple fix, exclude /usr/bin since it's not a real path.
20133     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20134       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20135       # a path prefixed by /cygdrive for fixpath to work.
20136       new_path="$CYGWIN_ROOT_PATH$input_path"
20137     fi
20138   fi
20139 
20140 
20141   if test "x$path" != "x$new_path"; then
20142     BOOT_JDK="$new_path"
20143     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20144 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20145   fi
20146 
20147   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20148 
20149   path="$BOOT_JDK"
20150   has_colon=`$ECHO $path | $GREP ^.:`
20151   new_path="$path"
20152   if test "x$has_colon" = x; then
20153     # Not in mixed or Windows style, start by that.
20154     new_path=`cmd //c echo $path`
20155   fi
20156 
20157 
20158   input_path="$new_path"
20159   # Check if we need to convert this using DOS-style short mode. If the path
20160   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20161   # take no chances and rewrite it.
20162   # Note: m4 eats our [], so we need to use [ and ] instead.
20163   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20164   if test "x$has_forbidden_chars" != x; then
20165     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20166     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20167   fi
20168 
20169 
20170   windows_path="$new_path"
20171   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20172     unix_path=`$CYGPATH -u "$windows_path"`
20173     new_path="$unix_path"
20174   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20175     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20176     new_path="$unix_path"
20177   fi
20178 
20179   if test "x$path" != "x$new_path"; then
20180     BOOT_JDK="$new_path"
20181     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20182 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20183   fi
20184 
20185   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20186   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20187 
20188   else
20189     # We're on a posix platform. Hooray! :)
20190     path="$BOOT_JDK"
20191     has_space=`$ECHO "$path" | $GREP " "`
20192     if test "x$has_space" != x; then
20193       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20194 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20195       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20196     fi
20197 
20198     # Use eval to expand a potential ~
20199     eval path="$path"
20200     if test ! -f "$path" && test ! -d "$path"; then
20201       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20202     fi
20203 
20204     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20205   fi
20206 
20207               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20208 $as_echo_n "checking for Boot JDK... " >&6; }
20209               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20210 $as_echo "$BOOT_JDK" >&6; }
20211               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20212 $as_echo_n "checking Boot JDK version... " >&6; }
20213               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20214               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20215 $as_echo "$BOOT_JDK_VERSION" >&6; }
20216             fi # end check jdk version
20217           fi # end check rt.jar
20218         fi # end check javac
20219       fi # end check java
20220     fi # end check boot jdk found
20221   fi
20222 
20223     # If that did not work out (e.g. too old), try explicit versions instead
20224 
20225   if test "x$BOOT_JDK_FOUND" = xno; then
20226     # Now execute the test
20227 
20228   if test -x /usr/libexec/java_home; then
20229     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20230     BOOT_JDK_FOUND=maybe
20231     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20232 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20233   fi
20234 
20235 
20236     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20237     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20238       # Do we have a bin/java?
20239       if test ! -x "$BOOT_JDK/bin/java"; then
20240         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20242         BOOT_JDK_FOUND=no
20243       else
20244         # Do we have a bin/javac?
20245         if test ! -x "$BOOT_JDK/bin/javac"; then
20246           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20248           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20250           BOOT_JDK_FOUND=no
20251         else
20252           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20253           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20254             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20256             BOOT_JDK_FOUND=no
20257           else
20258             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20259             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20260 
20261             # Extra M4 quote needed to protect [] in grep expression.
20262             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20263             if test "x$FOUND_CORRECT_VERSION" = x; then
20264               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20266               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20267 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20268               BOOT_JDK_FOUND=no
20269             else
20270               # We're done! :-)
20271               BOOT_JDK_FOUND=yes
20272 
20273   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20274 
20275   # Input might be given as Windows format, start by converting to
20276   # unix format.
20277   path="$BOOT_JDK"
20278   new_path=`$CYGPATH -u "$path"`
20279 
20280   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20281   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20282   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20283   # "foo.exe" is OK but "foo" is an error.
20284   #
20285   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20286   # It is also a way to make sure we got the proper file name for the real test later on.
20287   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20288   if test "x$test_shortpath" = x; then
20289     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20291     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20292   fi
20293 
20294   # Call helper function which possibly converts this using DOS-style short mode.
20295   # If so, the updated path is stored in $new_path.
20296 
20297   input_path="$new_path"
20298   # Check if we need to convert this using DOS-style short mode. If the path
20299   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20300   # take no chances and rewrite it.
20301   # Note: m4 eats our [], so we need to use [ and ] instead.
20302   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20303   if test "x$has_forbidden_chars" != x; then
20304     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20305     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20306     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20307     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20308       # Going to short mode and back again did indeed matter. Since short mode is
20309       # case insensitive, let's make it lowercase to improve readability.
20310       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20311       # Now convert it back to Unix-stile (cygpath)
20312       input_path=`$CYGPATH -u "$shortmode_path"`
20313       new_path="$input_path"
20314     fi
20315   fi
20316 
20317   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20318   if test "x$test_cygdrive_prefix" = x; then
20319     # As a simple fix, exclude /usr/bin since it's not a real path.
20320     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20321       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20322       # a path prefixed by /cygdrive for fixpath to work.
20323       new_path="$CYGWIN_ROOT_PATH$input_path"
20324     fi
20325   fi
20326 
20327 
20328   if test "x$path" != "x$new_path"; then
20329     BOOT_JDK="$new_path"
20330     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20332   fi
20333 
20334   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20335 
20336   path="$BOOT_JDK"
20337   has_colon=`$ECHO $path | $GREP ^.:`
20338   new_path="$path"
20339   if test "x$has_colon" = x; then
20340     # Not in mixed or Windows style, start by that.
20341     new_path=`cmd //c echo $path`
20342   fi
20343 
20344 
20345   input_path="$new_path"
20346   # Check if we need to convert this using DOS-style short mode. If the path
20347   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20348   # take no chances and rewrite it.
20349   # Note: m4 eats our [], so we need to use [ and ] instead.
20350   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20351   if test "x$has_forbidden_chars" != x; then
20352     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20353     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20354   fi
20355 
20356 
20357   windows_path="$new_path"
20358   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20359     unix_path=`$CYGPATH -u "$windows_path"`
20360     new_path="$unix_path"
20361   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20362     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20363     new_path="$unix_path"
20364   fi
20365 
20366   if test "x$path" != "x$new_path"; then
20367     BOOT_JDK="$new_path"
20368     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20369 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20370   fi
20371 
20372   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20373   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20374 
20375   else
20376     # We're on a posix platform. Hooray! :)
20377     path="$BOOT_JDK"
20378     has_space=`$ECHO "$path" | $GREP " "`
20379     if test "x$has_space" != x; then
20380       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20381 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20382       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20383     fi
20384 
20385     # Use eval to expand a potential ~
20386     eval path="$path"
20387     if test ! -f "$path" && test ! -d "$path"; then
20388       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20389     fi
20390 
20391     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20392   fi
20393 
20394               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20395 $as_echo_n "checking for Boot JDK... " >&6; }
20396               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20397 $as_echo "$BOOT_JDK" >&6; }
20398               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20399 $as_echo_n "checking Boot JDK version... " >&6; }
20400               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20402 $as_echo "$BOOT_JDK_VERSION" >&6; }
20403             fi # end check jdk version
20404           fi # end check rt.jar
20405         fi # end check javac
20406       fi # end check java
20407     fi # end check boot jdk found
20408   fi
20409 
20410 
20411   if test "x$BOOT_JDK_FOUND" = xno; then
20412     # Now execute the test
20413 
20414   if test -x /usr/libexec/java_home; then
20415     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20416     BOOT_JDK_FOUND=maybe
20417     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20418 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20419   fi
20420 
20421 
20422     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20423     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20424       # Do we have a bin/java?
20425       if test ! -x "$BOOT_JDK/bin/java"; then
20426         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20428         BOOT_JDK_FOUND=no
20429       else
20430         # Do we have a bin/javac?
20431         if test ! -x "$BOOT_JDK/bin/javac"; then
20432           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20434           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20435 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20436           BOOT_JDK_FOUND=no
20437         else
20438           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20439           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20440             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20442             BOOT_JDK_FOUND=no
20443           else
20444             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20445             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20446 
20447             # Extra M4 quote needed to protect [] in grep expression.
20448             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20449             if test "x$FOUND_CORRECT_VERSION" = x; then
20450               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20451 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20452               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20453 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20454               BOOT_JDK_FOUND=no
20455             else
20456               # We're done! :-)
20457               BOOT_JDK_FOUND=yes
20458 
20459   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20460 
20461   # Input might be given as Windows format, start by converting to
20462   # unix format.
20463   path="$BOOT_JDK"
20464   new_path=`$CYGPATH -u "$path"`
20465 
20466   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20467   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20468   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20469   # "foo.exe" is OK but "foo" is an error.
20470   #
20471   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20472   # It is also a way to make sure we got the proper file name for the real test later on.
20473   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20474   if test "x$test_shortpath" = x; then
20475     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20476 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20477     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20478   fi
20479 
20480   # Call helper function which possibly converts this using DOS-style short mode.
20481   # If so, the updated path is stored in $new_path.
20482 
20483   input_path="$new_path"
20484   # Check if we need to convert this using DOS-style short mode. If the path
20485   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20486   # take no chances and rewrite it.
20487   # Note: m4 eats our [], so we need to use [ and ] instead.
20488   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20489   if test "x$has_forbidden_chars" != x; then
20490     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20491     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20492     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20493     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20494       # Going to short mode and back again did indeed matter. Since short mode is
20495       # case insensitive, let's make it lowercase to improve readability.
20496       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20497       # Now convert it back to Unix-stile (cygpath)
20498       input_path=`$CYGPATH -u "$shortmode_path"`
20499       new_path="$input_path"
20500     fi
20501   fi
20502 
20503   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20504   if test "x$test_cygdrive_prefix" = x; then
20505     # As a simple fix, exclude /usr/bin since it's not a real path.
20506     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20507       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20508       # a path prefixed by /cygdrive for fixpath to work.
20509       new_path="$CYGWIN_ROOT_PATH$input_path"
20510     fi
20511   fi
20512 
20513 
20514   if test "x$path" != "x$new_path"; then
20515     BOOT_JDK="$new_path"
20516     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20517 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20518   fi
20519 
20520   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20521 
20522   path="$BOOT_JDK"
20523   has_colon=`$ECHO $path | $GREP ^.:`
20524   new_path="$path"
20525   if test "x$has_colon" = x; then
20526     # Not in mixed or Windows style, start by that.
20527     new_path=`cmd //c echo $path`
20528   fi
20529 
20530 
20531   input_path="$new_path"
20532   # Check if we need to convert this using DOS-style short mode. If the path
20533   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20534   # take no chances and rewrite it.
20535   # Note: m4 eats our [], so we need to use [ and ] instead.
20536   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20537   if test "x$has_forbidden_chars" != x; then
20538     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20539     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20540   fi
20541 
20542 
20543   windows_path="$new_path"
20544   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20545     unix_path=`$CYGPATH -u "$windows_path"`
20546     new_path="$unix_path"
20547   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20548     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20549     new_path="$unix_path"
20550   fi
20551 
20552   if test "x$path" != "x$new_path"; then
20553     BOOT_JDK="$new_path"
20554     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20555 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20556   fi
20557 
20558   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20559   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20560 
20561   else
20562     # We're on a posix platform. Hooray! :)
20563     path="$BOOT_JDK"
20564     has_space=`$ECHO "$path" | $GREP " "`
20565     if test "x$has_space" != x; then
20566       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20567 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20568       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20569     fi
20570 
20571     # Use eval to expand a potential ~
20572     eval path="$path"
20573     if test ! -f "$path" && test ! -d "$path"; then
20574       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20575     fi
20576 
20577     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20578   fi
20579 
20580               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20581 $as_echo_n "checking for Boot JDK... " >&6; }
20582               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20583 $as_echo "$BOOT_JDK" >&6; }
20584               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20585 $as_echo_n "checking Boot JDK version... " >&6; }
20586               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20587               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20588 $as_echo "$BOOT_JDK_VERSION" >&6; }
20589             fi # end check jdk version
20590           fi # end check rt.jar
20591         fi # end check javac
20592       fi # end check java
20593     fi # end check boot jdk found
20594   fi
20595 
20596 
20597   if test "x$BOOT_JDK_FOUND" = xno; then
20598     # Now execute the test
20599 
20600   if test -x /usr/libexec/java_home; then
20601     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20602     BOOT_JDK_FOUND=maybe
20603     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20604 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20605   fi
20606 
20607 
20608     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20609     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20610       # Do we have a bin/java?
20611       if test ! -x "$BOOT_JDK/bin/java"; then
20612         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20614         BOOT_JDK_FOUND=no
20615       else
20616         # Do we have a bin/javac?
20617         if test ! -x "$BOOT_JDK/bin/javac"; then
20618           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20620           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20621 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20622           BOOT_JDK_FOUND=no
20623         else
20624           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20625           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20626             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20628             BOOT_JDK_FOUND=no
20629           else
20630             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20631             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20632 
20633             # Extra M4 quote needed to protect [] in grep expression.
20634             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20635             if test "x$FOUND_CORRECT_VERSION" = x; then
20636               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20638               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20639 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20640               BOOT_JDK_FOUND=no
20641             else
20642               # We're done! :-)
20643               BOOT_JDK_FOUND=yes
20644 
20645   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20646 
20647   # Input might be given as Windows format, start by converting to
20648   # unix format.
20649   path="$BOOT_JDK"
20650   new_path=`$CYGPATH -u "$path"`
20651 
20652   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20653   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20654   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20655   # "foo.exe" is OK but "foo" is an error.
20656   #
20657   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20658   # It is also a way to make sure we got the proper file name for the real test later on.
20659   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20660   if test "x$test_shortpath" = x; then
20661     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20662 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20663     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20664   fi
20665 
20666   # Call helper function which possibly converts this using DOS-style short mode.
20667   # If so, the updated path is stored in $new_path.
20668 
20669   input_path="$new_path"
20670   # Check if we need to convert this using DOS-style short mode. If the path
20671   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20672   # take no chances and rewrite it.
20673   # Note: m4 eats our [], so we need to use [ and ] instead.
20674   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20675   if test "x$has_forbidden_chars" != x; then
20676     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20677     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20678     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20679     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20680       # Going to short mode and back again did indeed matter. Since short mode is
20681       # case insensitive, let's make it lowercase to improve readability.
20682       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20683       # Now convert it back to Unix-stile (cygpath)
20684       input_path=`$CYGPATH -u "$shortmode_path"`
20685       new_path="$input_path"
20686     fi
20687   fi
20688 
20689   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20690   if test "x$test_cygdrive_prefix" = x; then
20691     # As a simple fix, exclude /usr/bin since it's not a real path.
20692     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20693       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20694       # a path prefixed by /cygdrive for fixpath to work.
20695       new_path="$CYGWIN_ROOT_PATH$input_path"
20696     fi
20697   fi
20698 
20699 
20700   if test "x$path" != "x$new_path"; then
20701     BOOT_JDK="$new_path"
20702     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20703 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20704   fi
20705 
20706   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20707 
20708   path="$BOOT_JDK"
20709   has_colon=`$ECHO $path | $GREP ^.:`
20710   new_path="$path"
20711   if test "x$has_colon" = x; then
20712     # Not in mixed or Windows style, start by that.
20713     new_path=`cmd //c echo $path`
20714   fi
20715 
20716 
20717   input_path="$new_path"
20718   # Check if we need to convert this using DOS-style short mode. If the path
20719   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20720   # take no chances and rewrite it.
20721   # Note: m4 eats our [], so we need to use [ and ] instead.
20722   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20723   if test "x$has_forbidden_chars" != x; then
20724     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20725     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20726   fi
20727 
20728 
20729   windows_path="$new_path"
20730   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20731     unix_path=`$CYGPATH -u "$windows_path"`
20732     new_path="$unix_path"
20733   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20734     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20735     new_path="$unix_path"
20736   fi
20737 
20738   if test "x$path" != "x$new_path"; then
20739     BOOT_JDK="$new_path"
20740     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20741 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20742   fi
20743 
20744   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20745   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20746 
20747   else
20748     # We're on a posix platform. Hooray! :)
20749     path="$BOOT_JDK"
20750     has_space=`$ECHO "$path" | $GREP " "`
20751     if test "x$has_space" != x; then
20752       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20753 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20754       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20755     fi
20756 
20757     # Use eval to expand a potential ~
20758     eval path="$path"
20759     if test ! -f "$path" && test ! -d "$path"; then
20760       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20761     fi
20762 
20763     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20764   fi
20765 
20766               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20767 $as_echo_n "checking for Boot JDK... " >&6; }
20768               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20769 $as_echo "$BOOT_JDK" >&6; }
20770               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20771 $as_echo_n "checking Boot JDK version... " >&6; }
20772               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20773               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20774 $as_echo "$BOOT_JDK_VERSION" >&6; }
20775             fi # end check jdk version
20776           fi # end check rt.jar
20777         fi # end check javac
20778       fi # end check java
20779     fi # end check boot jdk found
20780   fi
20781 
20782   fi
20783 
20784 
20785     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20786     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20787       # Do we have a bin/java?
20788       if test ! -x "$BOOT_JDK/bin/java"; then
20789         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20791         BOOT_JDK_FOUND=no
20792       else
20793         # Do we have a bin/javac?
20794         if test ! -x "$BOOT_JDK/bin/javac"; then
20795           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20797           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20798 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20799           BOOT_JDK_FOUND=no
20800         else
20801           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20802           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20803             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20804 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20805             BOOT_JDK_FOUND=no
20806           else
20807             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20808             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20809 
20810             # Extra M4 quote needed to protect [] in grep expression.
20811             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20812             if test "x$FOUND_CORRECT_VERSION" = x; then
20813               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20815               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20816 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20817               BOOT_JDK_FOUND=no
20818             else
20819               # We're done! :-)
20820               BOOT_JDK_FOUND=yes
20821 
20822   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20823 
20824   # Input might be given as Windows format, start by converting to
20825   # unix format.
20826   path="$BOOT_JDK"
20827   new_path=`$CYGPATH -u "$path"`
20828 
20829   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20830   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20831   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20832   # "foo.exe" is OK but "foo" is an error.
20833   #
20834   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20835   # It is also a way to make sure we got the proper file name for the real test later on.
20836   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20837   if test "x$test_shortpath" = x; then
20838     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20839 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20840     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20841   fi
20842 
20843   # Call helper function which possibly converts this using DOS-style short mode.
20844   # If so, the updated path is stored in $new_path.
20845 
20846   input_path="$new_path"
20847   # Check if we need to convert this using DOS-style short mode. If the path
20848   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20849   # take no chances and rewrite it.
20850   # Note: m4 eats our [], so we need to use [ and ] instead.
20851   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20852   if test "x$has_forbidden_chars" != x; then
20853     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20854     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20855     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20856     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20857       # Going to short mode and back again did indeed matter. Since short mode is
20858       # case insensitive, let's make it lowercase to improve readability.
20859       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20860       # Now convert it back to Unix-stile (cygpath)
20861       input_path=`$CYGPATH -u "$shortmode_path"`
20862       new_path="$input_path"
20863     fi
20864   fi
20865 
20866   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20867   if test "x$test_cygdrive_prefix" = x; then
20868     # As a simple fix, exclude /usr/bin since it's not a real path.
20869     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20870       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20871       # a path prefixed by /cygdrive for fixpath to work.
20872       new_path="$CYGWIN_ROOT_PATH$input_path"
20873     fi
20874   fi
20875 
20876 
20877   if test "x$path" != "x$new_path"; then
20878     BOOT_JDK="$new_path"
20879     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20880 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20881   fi
20882 
20883   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20884 
20885   path="$BOOT_JDK"
20886   has_colon=`$ECHO $path | $GREP ^.:`
20887   new_path="$path"
20888   if test "x$has_colon" = x; then
20889     # Not in mixed or Windows style, start by that.
20890     new_path=`cmd //c echo $path`
20891   fi
20892 
20893 
20894   input_path="$new_path"
20895   # Check if we need to convert this using DOS-style short mode. If the path
20896   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20897   # take no chances and rewrite it.
20898   # Note: m4 eats our [], so we need to use [ and ] instead.
20899   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20900   if test "x$has_forbidden_chars" != x; then
20901     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20902     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20903   fi
20904 
20905 
20906   windows_path="$new_path"
20907   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20908     unix_path=`$CYGPATH -u "$windows_path"`
20909     new_path="$unix_path"
20910   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20911     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20912     new_path="$unix_path"
20913   fi
20914 
20915   if test "x$path" != "x$new_path"; then
20916     BOOT_JDK="$new_path"
20917     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20918 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20919   fi
20920 
20921   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20922   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20923 
20924   else
20925     # We're on a posix platform. Hooray! :)
20926     path="$BOOT_JDK"
20927     has_space=`$ECHO "$path" | $GREP " "`
20928     if test "x$has_space" != x; then
20929       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20930 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20931       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20932     fi
20933 
20934     # Use eval to expand a potential ~
20935     eval path="$path"
20936     if test ! -f "$path" && test ! -d "$path"; then
20937       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20938     fi
20939 
20940     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20941   fi
20942 
20943               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20944 $as_echo_n "checking for Boot JDK... " >&6; }
20945               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20946 $as_echo "$BOOT_JDK" >&6; }
20947               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20948 $as_echo_n "checking Boot JDK version... " >&6; }
20949               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20950               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20951 $as_echo "$BOOT_JDK_VERSION" >&6; }
20952             fi # end check jdk version
20953           fi # end check rt.jar
20954         fi # end check javac
20955       fi # end check java
20956     fi # end check boot jdk found
20957   fi
20958 
20959 
20960   # Test: Is $JAVA_HOME set?
20961 
20962   if test "x$BOOT_JDK_FOUND" = xno; then
20963     # Now execute the test
20964 
20965   if test "x$JAVA_HOME" != x; then
20966     JAVA_HOME_PROCESSED="$JAVA_HOME"
20967 
20968   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20969 
20970   # Input might be given as Windows format, start by converting to
20971   # unix format.
20972   path="$JAVA_HOME_PROCESSED"
20973   new_path=`$CYGPATH -u "$path"`
20974 
20975   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20976   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20977   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20978   # "foo.exe" is OK but "foo" is an error.
20979   #
20980   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20981   # It is also a way to make sure we got the proper file name for the real test later on.
20982   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20983   if test "x$test_shortpath" = x; then
20984     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20985 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20986     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20987   fi
20988 
20989   # Call helper function which possibly converts this using DOS-style short mode.
20990   # If so, the updated path is stored in $new_path.
20991 
20992   input_path="$new_path"
20993   # Check if we need to convert this using DOS-style short mode. If the path
20994   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20995   # take no chances and rewrite it.
20996   # Note: m4 eats our [], so we need to use [ and ] instead.
20997   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20998   if test "x$has_forbidden_chars" != x; then
20999     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21000     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21001     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21002     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21003       # Going to short mode and back again did indeed matter. Since short mode is
21004       # case insensitive, let's make it lowercase to improve readability.
21005       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21006       # Now convert it back to Unix-stile (cygpath)
21007       input_path=`$CYGPATH -u "$shortmode_path"`
21008       new_path="$input_path"
21009     fi
21010   fi
21011 
21012   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21013   if test "x$test_cygdrive_prefix" = x; then
21014     # As a simple fix, exclude /usr/bin since it's not a real path.
21015     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21016       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21017       # a path prefixed by /cygdrive for fixpath to work.
21018       new_path="$CYGWIN_ROOT_PATH$input_path"
21019     fi
21020   fi
21021 
21022 
21023   if test "x$path" != "x$new_path"; then
21024     JAVA_HOME_PROCESSED="$new_path"
21025     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21026 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21027   fi
21028 
21029   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21030 
21031   path="$JAVA_HOME_PROCESSED"
21032   has_colon=`$ECHO $path | $GREP ^.:`
21033   new_path="$path"
21034   if test "x$has_colon" = x; then
21035     # Not in mixed or Windows style, start by that.
21036     new_path=`cmd //c echo $path`
21037   fi
21038 
21039 
21040   input_path="$new_path"
21041   # Check if we need to convert this using DOS-style short mode. If the path
21042   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21043   # take no chances and rewrite it.
21044   # Note: m4 eats our [], so we need to use [ and ] instead.
21045   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21046   if test "x$has_forbidden_chars" != x; then
21047     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21048     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21049   fi
21050 
21051 
21052   windows_path="$new_path"
21053   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21054     unix_path=`$CYGPATH -u "$windows_path"`
21055     new_path="$unix_path"
21056   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21057     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21058     new_path="$unix_path"
21059   fi
21060 
21061   if test "x$path" != "x$new_path"; then
21062     JAVA_HOME_PROCESSED="$new_path"
21063     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21064 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21065   fi
21066 
21067   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21068   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21069 
21070   else
21071     # We're on a posix platform. Hooray! :)
21072     path="$JAVA_HOME_PROCESSED"
21073     has_space=`$ECHO "$path" | $GREP " "`
21074     if test "x$has_space" != x; then
21075       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21076 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21077       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21078     fi
21079 
21080     # Use eval to expand a potential ~
21081     eval path="$path"
21082     if test ! -f "$path" && test ! -d "$path"; then
21083       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21084     fi
21085 
21086     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21087   fi
21088 
21089     if test ! -d "$JAVA_HOME_PROCESSED"; then
21090       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21091 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21092     else
21093       # Aha, the user has set a JAVA_HOME
21094       # let us use that as the Boot JDK.
21095       BOOT_JDK="$JAVA_HOME_PROCESSED"
21096       BOOT_JDK_FOUND=maybe
21097       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21098 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21099     fi
21100   fi
21101 
21102 
21103     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21104     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21105       # Do we have a bin/java?
21106       if test ! -x "$BOOT_JDK/bin/java"; then
21107         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21109         BOOT_JDK_FOUND=no
21110       else
21111         # Do we have a bin/javac?
21112         if test ! -x "$BOOT_JDK/bin/javac"; then
21113           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21114 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21115           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21116 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21117           BOOT_JDK_FOUND=no
21118         else
21119           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21120           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21121             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21123             BOOT_JDK_FOUND=no
21124           else
21125             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21126             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21127 
21128             # Extra M4 quote needed to protect [] in grep expression.
21129             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21130             if test "x$FOUND_CORRECT_VERSION" = x; then
21131               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21132 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21133               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21134 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21135               BOOT_JDK_FOUND=no
21136             else
21137               # We're done! :-)
21138               BOOT_JDK_FOUND=yes
21139 
21140   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21141 
21142   # Input might be given as Windows format, start by converting to
21143   # unix format.
21144   path="$BOOT_JDK"
21145   new_path=`$CYGPATH -u "$path"`
21146 
21147   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21148   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21149   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21150   # "foo.exe" is OK but "foo" is an error.
21151   #
21152   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21153   # It is also a way to make sure we got the proper file name for the real test later on.
21154   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21155   if test "x$test_shortpath" = x; then
21156     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21157 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21158     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21159   fi
21160 
21161   # Call helper function which possibly converts this using DOS-style short mode.
21162   # If so, the updated path is stored in $new_path.
21163 
21164   input_path="$new_path"
21165   # Check if we need to convert this using DOS-style short mode. If the path
21166   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21167   # take no chances and rewrite it.
21168   # Note: m4 eats our [], so we need to use [ and ] instead.
21169   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21170   if test "x$has_forbidden_chars" != x; then
21171     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21172     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21173     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21174     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21175       # Going to short mode and back again did indeed matter. Since short mode is
21176       # case insensitive, let's make it lowercase to improve readability.
21177       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21178       # Now convert it back to Unix-stile (cygpath)
21179       input_path=`$CYGPATH -u "$shortmode_path"`
21180       new_path="$input_path"
21181     fi
21182   fi
21183 
21184   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21185   if test "x$test_cygdrive_prefix" = x; then
21186     # As a simple fix, exclude /usr/bin since it's not a real path.
21187     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21188       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21189       # a path prefixed by /cygdrive for fixpath to work.
21190       new_path="$CYGWIN_ROOT_PATH$input_path"
21191     fi
21192   fi
21193 
21194 
21195   if test "x$path" != "x$new_path"; then
21196     BOOT_JDK="$new_path"
21197     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21198 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21199   fi
21200 
21201   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21202 
21203   path="$BOOT_JDK"
21204   has_colon=`$ECHO $path | $GREP ^.:`
21205   new_path="$path"
21206   if test "x$has_colon" = x; then
21207     # Not in mixed or Windows style, start by that.
21208     new_path=`cmd //c echo $path`
21209   fi
21210 
21211 
21212   input_path="$new_path"
21213   # Check if we need to convert this using DOS-style short mode. If the path
21214   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21215   # take no chances and rewrite it.
21216   # Note: m4 eats our [], so we need to use [ and ] instead.
21217   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21218   if test "x$has_forbidden_chars" != x; then
21219     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21220     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21221   fi
21222 
21223 
21224   windows_path="$new_path"
21225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21226     unix_path=`$CYGPATH -u "$windows_path"`
21227     new_path="$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     new_path="$unix_path"
21231   fi
21232 
21233   if test "x$path" != "x$new_path"; then
21234     BOOT_JDK="$new_path"
21235     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21236 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21237   fi
21238 
21239   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21240   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21241 
21242   else
21243     # We're on a posix platform. Hooray! :)
21244     path="$BOOT_JDK"
21245     has_space=`$ECHO "$path" | $GREP " "`
21246     if test "x$has_space" != x; then
21247       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21248 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21249       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21250     fi
21251 
21252     # Use eval to expand a potential ~
21253     eval path="$path"
21254     if test ! -f "$path" && test ! -d "$path"; then
21255       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21256     fi
21257 
21258     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21259   fi
21260 
21261               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21262 $as_echo_n "checking for Boot JDK... " >&6; }
21263               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21264 $as_echo "$BOOT_JDK" >&6; }
21265               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21266 $as_echo_n "checking Boot JDK version... " >&6; }
21267               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21268               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21269 $as_echo "$BOOT_JDK_VERSION" >&6; }
21270             fi # end check jdk version
21271           fi # end check rt.jar
21272         fi # end check javac
21273       fi # end check java
21274     fi # end check boot jdk found
21275   fi
21276 
21277 
21278   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21279 
21280   if test "x$BOOT_JDK_FOUND" = xno; then
21281     # Now execute the test
21282 
21283   # Extract the first word of "javac", so it can be a program name with args.
21284 set dummy javac; ac_word=$2
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21286 $as_echo_n "checking for $ac_word... " >&6; }
21287 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21288   $as_echo_n "(cached) " >&6
21289 else
21290   case $JAVAC_CHECK in
21291   [\\/]* | ?:[\\/]*)
21292   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21293   ;;
21294   *)
21295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21296 for as_dir in $PATH
21297 do
21298   IFS=$as_save_IFS
21299   test -z "$as_dir" && as_dir=.
21300     for ac_exec_ext in '' $ac_executable_extensions; do
21301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21302     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21304     break 2
21305   fi
21306 done
21307   done
21308 IFS=$as_save_IFS
21309 
21310   ;;
21311 esac
21312 fi
21313 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21314 if test -n "$JAVAC_CHECK"; then
21315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21316 $as_echo "$JAVAC_CHECK" >&6; }
21317 else
21318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 $as_echo "no" >&6; }
21320 fi
21321 
21322 
21323   # Extract the first word of "java", so it can be a program name with args.
21324 set dummy java; ac_word=$2
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21326 $as_echo_n "checking for $ac_word... " >&6; }
21327 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21328   $as_echo_n "(cached) " >&6
21329 else
21330   case $JAVA_CHECK in
21331   [\\/]* | ?:[\\/]*)
21332   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21333   ;;
21334   *)
21335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21336 for as_dir in $PATH
21337 do
21338   IFS=$as_save_IFS
21339   test -z "$as_dir" && as_dir=.
21340     for ac_exec_ext in '' $ac_executable_extensions; do
21341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21342     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21344     break 2
21345   fi
21346 done
21347   done
21348 IFS=$as_save_IFS
21349 
21350   ;;
21351 esac
21352 fi
21353 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21354 if test -n "$JAVA_CHECK"; then
21355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21356 $as_echo "$JAVA_CHECK" >&6; }
21357 else
21358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21359 $as_echo "no" >&6; }
21360 fi
21361 
21362 
21363   BINARY="$JAVAC_CHECK"
21364   if test "x$JAVAC_CHECK" = x; then
21365     BINARY="$JAVA_CHECK"
21366   fi
21367   if test "x$BINARY" != x; then
21368     # So there is a java(c) binary, it might be part of a JDK.
21369     # Lets find the JDK/JRE directory by following symbolic links.
21370     # Linux/GNU systems often have links from /usr/bin/java to
21371     # /etc/alternatives/java to the real JDK binary.
21372 
21373   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21374     # Follow a chain of symbolic links. Use readlink
21375     # where it exists, else fall back to horribly
21376     # complicated shell code.
21377     if test "x$READLINK_TESTED" != yes; then
21378       # On MacOSX there is a readlink tool with a different
21379       # purpose than the GNU readlink tool. Check the found readlink.
21380       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21381       if test "x$ISGNU" = x; then
21382         # A readlink that we do not know how to use.
21383         # Are there other non-GNU readlinks out there?
21384         READLINK_TESTED=yes
21385         READLINK=
21386       fi
21387     fi
21388 
21389     if test "x$READLINK" != x; then
21390       BINARY=`$READLINK -f $BINARY`
21391     else
21392       # Save the current directory for restoring afterwards
21393       STARTDIR=$PWD
21394       COUNTER=0
21395       sym_link_dir=`$DIRNAME $BINARY`
21396       sym_link_file=`$BASENAME $BINARY`
21397       cd $sym_link_dir
21398       # Use -P flag to resolve symlinks in directories.
21399       cd `$THEPWDCMD -P`
21400       sym_link_dir=`$THEPWDCMD -P`
21401       # Resolve file symlinks
21402       while test $COUNTER -lt 20; do
21403         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21404         if test "x$ISLINK" == x; then
21405           # This is not a symbolic link! We are done!
21406           break
21407         fi
21408         # Again resolve directory symlinks since the target of the just found
21409         # link could be in a different directory
21410         cd `$DIRNAME $ISLINK`
21411         sym_link_dir=`$THEPWDCMD -P`
21412         sym_link_file=`$BASENAME $ISLINK`
21413         let COUNTER=COUNTER+1
21414       done
21415       cd $STARTDIR
21416       BINARY=$sym_link_dir/$sym_link_file
21417     fi
21418   fi
21419 
21420     BOOT_JDK=`dirname "$BINARY"`
21421     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21422     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21423       # Looks like we found ourselves an JDK
21424       BOOT_JDK_FOUND=maybe
21425       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21426 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21427     fi
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_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21458             if test "x$FOUND_CORRECT_VERSION" = 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, 8 or 9)" >&5
21462 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&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-stile (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   # Test: Is there a JDK installed in default, well-known locations?
21607 
21608   if test "x$BOOT_JDK_FOUND" = xno; then
21609     # Now execute the test
21610 
21611   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21612 
21613   if test "x$BOOT_JDK_FOUND" = xno; then
21614     # Now execute the test
21615 
21616   if test "x$ProgramW6432" != x; then
21617     VIRTUAL_DIR="$ProgramW6432/Java"
21618 
21619   windows_path="$VIRTUAL_DIR"
21620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21621     unix_path=`$CYGPATH -u "$windows_path"`
21622     VIRTUAL_DIR="$unix_path"
21623   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21624     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21625     VIRTUAL_DIR="$unix_path"
21626   fi
21627 
21628 
21629   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21630   BOOT_JDK_SUFFIX=""
21631   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21632   if test "x$ALL_JDKS_FOUND" != x; then
21633     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21634 
21635   if test "x$BOOT_JDK_FOUND" = xno; then
21636     # Now execute the test
21637 
21638         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21639         if test -d "$BOOT_JDK"; then
21640           BOOT_JDK_FOUND=maybe
21641           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21642 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21643         fi
21644 
21645 
21646     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21647     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21648       # Do we have a bin/java?
21649       if test ! -x "$BOOT_JDK/bin/java"; then
21650         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21651 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21652         BOOT_JDK_FOUND=no
21653       else
21654         # Do we have a bin/javac?
21655         if test ! -x "$BOOT_JDK/bin/javac"; then
21656           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21657 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21658           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21659 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21660           BOOT_JDK_FOUND=no
21661         else
21662           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21663           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21664             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21665 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21666             BOOT_JDK_FOUND=no
21667           else
21668             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21669             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21670 
21671             # Extra M4 quote needed to protect [] in grep expression.
21672             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21673             if test "x$FOUND_CORRECT_VERSION" = x; then
21674               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21675 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21676               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21677 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21678               BOOT_JDK_FOUND=no
21679             else
21680               # We're done! :-)
21681               BOOT_JDK_FOUND=yes
21682 
21683   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21684 
21685   # Input might be given as Windows format, start by converting to
21686   # unix format.
21687   path="$BOOT_JDK"
21688   new_path=`$CYGPATH -u "$path"`
21689 
21690   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21691   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21692   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21693   # "foo.exe" is OK but "foo" is an error.
21694   #
21695   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21696   # It is also a way to make sure we got the proper file name for the real test later on.
21697   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21698   if test "x$test_shortpath" = x; then
21699     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21700 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21701     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21702   fi
21703 
21704   # Call helper function which possibly converts this using DOS-style short mode.
21705   # If so, the updated path is stored in $new_path.
21706 
21707   input_path="$new_path"
21708   # Check if we need to convert this using DOS-style short mode. If the path
21709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21710   # take no chances and rewrite it.
21711   # Note: m4 eats our [], so we need to use [ and ] instead.
21712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21713   if test "x$has_forbidden_chars" != x; then
21714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21715     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21716     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21717     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21718       # Going to short mode and back again did indeed matter. Since short mode is
21719       # case insensitive, let's make it lowercase to improve readability.
21720       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21721       # Now convert it back to Unix-stile (cygpath)
21722       input_path=`$CYGPATH -u "$shortmode_path"`
21723       new_path="$input_path"
21724     fi
21725   fi
21726 
21727   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21728   if test "x$test_cygdrive_prefix" = x; then
21729     # As a simple fix, exclude /usr/bin since it's not a real path.
21730     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21731       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21732       # a path prefixed by /cygdrive for fixpath to work.
21733       new_path="$CYGWIN_ROOT_PATH$input_path"
21734     fi
21735   fi
21736 
21737 
21738   if test "x$path" != "x$new_path"; then
21739     BOOT_JDK="$new_path"
21740     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21741 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21742   fi
21743 
21744   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21745 
21746   path="$BOOT_JDK"
21747   has_colon=`$ECHO $path | $GREP ^.:`
21748   new_path="$path"
21749   if test "x$has_colon" = x; then
21750     # Not in mixed or Windows style, start by that.
21751     new_path=`cmd //c echo $path`
21752   fi
21753 
21754 
21755   input_path="$new_path"
21756   # Check if we need to convert this using DOS-style short mode. If the path
21757   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21758   # take no chances and rewrite it.
21759   # Note: m4 eats our [], so we need to use [ and ] instead.
21760   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21761   if test "x$has_forbidden_chars" != x; then
21762     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21763     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21764   fi
21765 
21766 
21767   windows_path="$new_path"
21768   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21769     unix_path=`$CYGPATH -u "$windows_path"`
21770     new_path="$unix_path"
21771   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21772     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21773     new_path="$unix_path"
21774   fi
21775 
21776   if test "x$path" != "x$new_path"; then
21777     BOOT_JDK="$new_path"
21778     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21779 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21780   fi
21781 
21782   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21783   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21784 
21785   else
21786     # We're on a posix platform. Hooray! :)
21787     path="$BOOT_JDK"
21788     has_space=`$ECHO "$path" | $GREP " "`
21789     if test "x$has_space" != x; then
21790       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21791 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21792       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21793     fi
21794 
21795     # Use eval to expand a potential ~
21796     eval path="$path"
21797     if test ! -f "$path" && test ! -d "$path"; then
21798       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21799     fi
21800 
21801     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21802   fi
21803 
21804               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21805 $as_echo_n "checking for Boot JDK... " >&6; }
21806               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21807 $as_echo "$BOOT_JDK" >&6; }
21808               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21809 $as_echo_n "checking Boot JDK version... " >&6; }
21810               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21811               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21812 $as_echo "$BOOT_JDK_VERSION" >&6; }
21813             fi # end check jdk version
21814           fi # end check rt.jar
21815         fi # end check javac
21816       fi # end check java
21817     fi # end check boot jdk found
21818   fi
21819 
21820     done
21821   fi
21822 
21823   fi
21824 
21825 
21826     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21827     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21828       # Do we have a bin/java?
21829       if test ! -x "$BOOT_JDK/bin/java"; then
21830         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21831 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21832         BOOT_JDK_FOUND=no
21833       else
21834         # Do we have a bin/javac?
21835         if test ! -x "$BOOT_JDK/bin/javac"; then
21836           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21837 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21838           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21839 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21840           BOOT_JDK_FOUND=no
21841         else
21842           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21843           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21844             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21845 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21846             BOOT_JDK_FOUND=no
21847           else
21848             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21849             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21850 
21851             # Extra M4 quote needed to protect [] in grep expression.
21852             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21853             if test "x$FOUND_CORRECT_VERSION" = x; then
21854               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21855 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21856               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21857 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21858               BOOT_JDK_FOUND=no
21859             else
21860               # We're done! :-)
21861               BOOT_JDK_FOUND=yes
21862 
21863   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21864 
21865   # Input might be given as Windows format, start by converting to
21866   # unix format.
21867   path="$BOOT_JDK"
21868   new_path=`$CYGPATH -u "$path"`
21869 
21870   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21871   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21872   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21873   # "foo.exe" is OK but "foo" is an error.
21874   #
21875   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21876   # It is also a way to make sure we got the proper file name for the real test later on.
21877   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21878   if test "x$test_shortpath" = x; then
21879     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21880 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21881     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21882   fi
21883 
21884   # Call helper function which possibly converts this using DOS-style short mode.
21885   # If so, the updated path is stored in $new_path.
21886 
21887   input_path="$new_path"
21888   # Check if we need to convert this using DOS-style short mode. If the path
21889   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21890   # take no chances and rewrite it.
21891   # Note: m4 eats our [], so we need to use [ and ] instead.
21892   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21893   if test "x$has_forbidden_chars" != x; then
21894     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21895     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21896     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21897     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21898       # Going to short mode and back again did indeed matter. Since short mode is
21899       # case insensitive, let's make it lowercase to improve readability.
21900       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21901       # Now convert it back to Unix-stile (cygpath)
21902       input_path=`$CYGPATH -u "$shortmode_path"`
21903       new_path="$input_path"
21904     fi
21905   fi
21906 
21907   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21908   if test "x$test_cygdrive_prefix" = x; then
21909     # As a simple fix, exclude /usr/bin since it's not a real path.
21910     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21911       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21912       # a path prefixed by /cygdrive for fixpath to work.
21913       new_path="$CYGWIN_ROOT_PATH$input_path"
21914     fi
21915   fi
21916 
21917 
21918   if test "x$path" != "x$new_path"; then
21919     BOOT_JDK="$new_path"
21920     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21921 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21922   fi
21923 
21924   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21925 
21926   path="$BOOT_JDK"
21927   has_colon=`$ECHO $path | $GREP ^.:`
21928   new_path="$path"
21929   if test "x$has_colon" = x; then
21930     # Not in mixed or Windows style, start by that.
21931     new_path=`cmd //c echo $path`
21932   fi
21933 
21934 
21935   input_path="$new_path"
21936   # Check if we need to convert this using DOS-style short mode. If the path
21937   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21938   # take no chances and rewrite it.
21939   # Note: m4 eats our [], so we need to use [ and ] instead.
21940   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21941   if test "x$has_forbidden_chars" != x; then
21942     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21943     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21944   fi
21945 
21946 
21947   windows_path="$new_path"
21948   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21949     unix_path=`$CYGPATH -u "$windows_path"`
21950     new_path="$unix_path"
21951   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21952     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21953     new_path="$unix_path"
21954   fi
21955 
21956   if test "x$path" != "x$new_path"; then
21957     BOOT_JDK="$new_path"
21958     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21959 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21960   fi
21961 
21962   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21963   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21964 
21965   else
21966     # We're on a posix platform. Hooray! :)
21967     path="$BOOT_JDK"
21968     has_space=`$ECHO "$path" | $GREP " "`
21969     if test "x$has_space" != x; then
21970       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21971 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21972       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21973     fi
21974 
21975     # Use eval to expand a potential ~
21976     eval path="$path"
21977     if test ! -f "$path" && test ! -d "$path"; then
21978       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21979     fi
21980 
21981     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21982   fi
21983 
21984               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21985 $as_echo_n "checking for Boot JDK... " >&6; }
21986               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21987 $as_echo "$BOOT_JDK" >&6; }
21988               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21989 $as_echo_n "checking Boot JDK version... " >&6; }
21990               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21991               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21992 $as_echo "$BOOT_JDK_VERSION" >&6; }
21993             fi # end check jdk version
21994           fi # end check rt.jar
21995         fi # end check javac
21996       fi # end check java
21997     fi # end check boot jdk found
21998   fi
21999 
22000 
22001   if test "x$BOOT_JDK_FOUND" = xno; then
22002     # Now execute the test
22003 
22004   if test "x$PROGRAMW6432" != x; then
22005     VIRTUAL_DIR="$PROGRAMW6432/Java"
22006 
22007   windows_path="$VIRTUAL_DIR"
22008   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22009     unix_path=`$CYGPATH -u "$windows_path"`
22010     VIRTUAL_DIR="$unix_path"
22011   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22012     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22013     VIRTUAL_DIR="$unix_path"
22014   fi
22015 
22016 
22017   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22018   BOOT_JDK_SUFFIX=""
22019   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22020   if test "x$ALL_JDKS_FOUND" != x; then
22021     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22022 
22023   if test "x$BOOT_JDK_FOUND" = xno; then
22024     # Now execute the test
22025 
22026         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22027         if test -d "$BOOT_JDK"; then
22028           BOOT_JDK_FOUND=maybe
22029           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22030 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22031         fi
22032 
22033 
22034     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22035     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22036       # Do we have a bin/java?
22037       if test ! -x "$BOOT_JDK/bin/java"; then
22038         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22040         BOOT_JDK_FOUND=no
22041       else
22042         # Do we have a bin/javac?
22043         if test ! -x "$BOOT_JDK/bin/javac"; then
22044           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22045 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22046           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22047 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22048           BOOT_JDK_FOUND=no
22049         else
22050           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22051           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22052             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22054             BOOT_JDK_FOUND=no
22055           else
22056             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22057             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22058 
22059             # Extra M4 quote needed to protect [] in grep expression.
22060             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22061             if test "x$FOUND_CORRECT_VERSION" = x; then
22062               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22063 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22064               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22065 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22066               BOOT_JDK_FOUND=no
22067             else
22068               # We're done! :-)
22069               BOOT_JDK_FOUND=yes
22070 
22071   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22072 
22073   # Input might be given as Windows format, start by converting to
22074   # unix format.
22075   path="$BOOT_JDK"
22076   new_path=`$CYGPATH -u "$path"`
22077 
22078   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22079   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22080   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22081   # "foo.exe" is OK but "foo" is an error.
22082   #
22083   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22084   # It is also a way to make sure we got the proper file name for the real test later on.
22085   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22086   if test "x$test_shortpath" = x; then
22087     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22088 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22089     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22090   fi
22091 
22092   # Call helper function which possibly converts this using DOS-style short mode.
22093   # If so, the updated path is stored in $new_path.
22094 
22095   input_path="$new_path"
22096   # Check if we need to convert this using DOS-style short mode. If the path
22097   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22098   # take no chances and rewrite it.
22099   # Note: m4 eats our [], so we need to use [ and ] instead.
22100   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22101   if test "x$has_forbidden_chars" != x; then
22102     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22103     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22104     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22105     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22106       # Going to short mode and back again did indeed matter. Since short mode is
22107       # case insensitive, let's make it lowercase to improve readability.
22108       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22109       # Now convert it back to Unix-stile (cygpath)
22110       input_path=`$CYGPATH -u "$shortmode_path"`
22111       new_path="$input_path"
22112     fi
22113   fi
22114 
22115   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22116   if test "x$test_cygdrive_prefix" = x; then
22117     # As a simple fix, exclude /usr/bin since it's not a real path.
22118     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22119       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22120       # a path prefixed by /cygdrive for fixpath to work.
22121       new_path="$CYGWIN_ROOT_PATH$input_path"
22122     fi
22123   fi
22124 
22125 
22126   if test "x$path" != "x$new_path"; then
22127     BOOT_JDK="$new_path"
22128     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22130   fi
22131 
22132   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22133 
22134   path="$BOOT_JDK"
22135   has_colon=`$ECHO $path | $GREP ^.:`
22136   new_path="$path"
22137   if test "x$has_colon" = x; then
22138     # Not in mixed or Windows style, start by that.
22139     new_path=`cmd //c echo $path`
22140   fi
22141 
22142 
22143   input_path="$new_path"
22144   # Check if we need to convert this using DOS-style short mode. If the path
22145   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22146   # take no chances and rewrite it.
22147   # Note: m4 eats our [], so we need to use [ and ] instead.
22148   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22149   if test "x$has_forbidden_chars" != x; then
22150     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22151     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22152   fi
22153 
22154 
22155   windows_path="$new_path"
22156   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22157     unix_path=`$CYGPATH -u "$windows_path"`
22158     new_path="$unix_path"
22159   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22160     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22161     new_path="$unix_path"
22162   fi
22163 
22164   if test "x$path" != "x$new_path"; then
22165     BOOT_JDK="$new_path"
22166     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22167 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22168   fi
22169 
22170   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22171   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22172 
22173   else
22174     # We're on a posix platform. Hooray! :)
22175     path="$BOOT_JDK"
22176     has_space=`$ECHO "$path" | $GREP " "`
22177     if test "x$has_space" != x; then
22178       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22180       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22181     fi
22182 
22183     # Use eval to expand a potential ~
22184     eval path="$path"
22185     if test ! -f "$path" && test ! -d "$path"; then
22186       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22187     fi
22188 
22189     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22190   fi
22191 
22192               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22193 $as_echo_n "checking for Boot JDK... " >&6; }
22194               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22195 $as_echo "$BOOT_JDK" >&6; }
22196               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22197 $as_echo_n "checking Boot JDK version... " >&6; }
22198               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22199               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22200 $as_echo "$BOOT_JDK_VERSION" >&6; }
22201             fi # end check jdk version
22202           fi # end check rt.jar
22203         fi # end check javac
22204       fi # end check java
22205     fi # end check boot jdk found
22206   fi
22207 
22208     done
22209   fi
22210 
22211   fi
22212 
22213 
22214     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22215     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22216       # Do we have a bin/java?
22217       if test ! -x "$BOOT_JDK/bin/java"; then
22218         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22219 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22220         BOOT_JDK_FOUND=no
22221       else
22222         # Do we have a bin/javac?
22223         if test ! -x "$BOOT_JDK/bin/javac"; then
22224           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22226           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22227 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22228           BOOT_JDK_FOUND=no
22229         else
22230           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22231           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22232             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22234             BOOT_JDK_FOUND=no
22235           else
22236             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22237             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22238 
22239             # Extra M4 quote needed to protect [] in grep expression.
22240             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22241             if test "x$FOUND_CORRECT_VERSION" = x; then
22242               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22244               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22245 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22246               BOOT_JDK_FOUND=no
22247             else
22248               # We're done! :-)
22249               BOOT_JDK_FOUND=yes
22250 
22251   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22252 
22253   # Input might be given as Windows format, start by converting to
22254   # unix format.
22255   path="$BOOT_JDK"
22256   new_path=`$CYGPATH -u "$path"`
22257 
22258   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22259   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22260   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22261   # "foo.exe" is OK but "foo" is an error.
22262   #
22263   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22264   # It is also a way to make sure we got the proper file name for the real test later on.
22265   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22266   if test "x$test_shortpath" = x; then
22267     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22269     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22270   fi
22271 
22272   # Call helper function which possibly converts this using DOS-style short mode.
22273   # If so, the updated path is stored in $new_path.
22274 
22275   input_path="$new_path"
22276   # Check if we need to convert this using DOS-style short mode. If the path
22277   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22278   # take no chances and rewrite it.
22279   # Note: m4 eats our [], so we need to use [ and ] instead.
22280   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22281   if test "x$has_forbidden_chars" != x; then
22282     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22283     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22284     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22285     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22286       # Going to short mode and back again did indeed matter. Since short mode is
22287       # case insensitive, let's make it lowercase to improve readability.
22288       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22289       # Now convert it back to Unix-stile (cygpath)
22290       input_path=`$CYGPATH -u "$shortmode_path"`
22291       new_path="$input_path"
22292     fi
22293   fi
22294 
22295   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22296   if test "x$test_cygdrive_prefix" = x; then
22297     # As a simple fix, exclude /usr/bin since it's not a real path.
22298     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22299       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22300       # a path prefixed by /cygdrive for fixpath to work.
22301       new_path="$CYGWIN_ROOT_PATH$input_path"
22302     fi
22303   fi
22304 
22305 
22306   if test "x$path" != "x$new_path"; then
22307     BOOT_JDK="$new_path"
22308     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22309 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22310   fi
22311 
22312   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22313 
22314   path="$BOOT_JDK"
22315   has_colon=`$ECHO $path | $GREP ^.:`
22316   new_path="$path"
22317   if test "x$has_colon" = x; then
22318     # Not in mixed or Windows style, start by that.
22319     new_path=`cmd //c echo $path`
22320   fi
22321 
22322 
22323   input_path="$new_path"
22324   # Check if we need to convert this using DOS-style short mode. If the path
22325   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22326   # take no chances and rewrite it.
22327   # Note: m4 eats our [], so we need to use [ and ] instead.
22328   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22329   if test "x$has_forbidden_chars" != x; then
22330     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22331     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22332   fi
22333 
22334 
22335   windows_path="$new_path"
22336   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22337     unix_path=`$CYGPATH -u "$windows_path"`
22338     new_path="$unix_path"
22339   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22340     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22341     new_path="$unix_path"
22342   fi
22343 
22344   if test "x$path" != "x$new_path"; then
22345     BOOT_JDK="$new_path"
22346     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22347 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22348   fi
22349 
22350   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22351   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22352 
22353   else
22354     # We're on a posix platform. Hooray! :)
22355     path="$BOOT_JDK"
22356     has_space=`$ECHO "$path" | $GREP " "`
22357     if test "x$has_space" != x; then
22358       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22359 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22360       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22361     fi
22362 
22363     # Use eval to expand a potential ~
22364     eval path="$path"
22365     if test ! -f "$path" && test ! -d "$path"; then
22366       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22367     fi
22368 
22369     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22370   fi
22371 
22372               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22373 $as_echo_n "checking for Boot JDK... " >&6; }
22374               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22375 $as_echo "$BOOT_JDK" >&6; }
22376               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22377 $as_echo_n "checking Boot JDK version... " >&6; }
22378               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22379               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22380 $as_echo "$BOOT_JDK_VERSION" >&6; }
22381             fi # end check jdk version
22382           fi # end check rt.jar
22383         fi # end check javac
22384       fi # end check java
22385     fi # end check boot jdk found
22386   fi
22387 
22388 
22389   if test "x$BOOT_JDK_FOUND" = xno; then
22390     # Now execute the test
22391 
22392   if test "x$PROGRAMFILES" != x; then
22393     VIRTUAL_DIR="$PROGRAMFILES/Java"
22394 
22395   windows_path="$VIRTUAL_DIR"
22396   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22397     unix_path=`$CYGPATH -u "$windows_path"`
22398     VIRTUAL_DIR="$unix_path"
22399   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22400     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22401     VIRTUAL_DIR="$unix_path"
22402   fi
22403 
22404 
22405   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22406   BOOT_JDK_SUFFIX=""
22407   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22408   if test "x$ALL_JDKS_FOUND" != x; then
22409     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22410 
22411   if test "x$BOOT_JDK_FOUND" = xno; then
22412     # Now execute the test
22413 
22414         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22415         if test -d "$BOOT_JDK"; then
22416           BOOT_JDK_FOUND=maybe
22417           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22418 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22419         fi
22420 
22421 
22422     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22423     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22424       # Do we have a bin/java?
22425       if test ! -x "$BOOT_JDK/bin/java"; then
22426         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22428         BOOT_JDK_FOUND=no
22429       else
22430         # Do we have a bin/javac?
22431         if test ! -x "$BOOT_JDK/bin/javac"; then
22432           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22433 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22434           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22435 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22436           BOOT_JDK_FOUND=no
22437         else
22438           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22439           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22440             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22442             BOOT_JDK_FOUND=no
22443           else
22444             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22445             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22446 
22447             # Extra M4 quote needed to protect [] in grep expression.
22448             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22449             if test "x$FOUND_CORRECT_VERSION" = x; then
22450               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22451 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22452               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22453 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22454               BOOT_JDK_FOUND=no
22455             else
22456               # We're done! :-)
22457               BOOT_JDK_FOUND=yes
22458 
22459   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22460 
22461   # Input might be given as Windows format, start by converting to
22462   # unix format.
22463   path="$BOOT_JDK"
22464   new_path=`$CYGPATH -u "$path"`
22465 
22466   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22467   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22468   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22469   # "foo.exe" is OK but "foo" is an error.
22470   #
22471   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22472   # It is also a way to make sure we got the proper file name for the real test later on.
22473   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22474   if test "x$test_shortpath" = x; then
22475     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22476 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22477     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22478   fi
22479 
22480   # Call helper function which possibly converts this using DOS-style short mode.
22481   # If so, the updated path is stored in $new_path.
22482 
22483   input_path="$new_path"
22484   # Check if we need to convert this using DOS-style short mode. If the path
22485   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22486   # take no chances and rewrite it.
22487   # Note: m4 eats our [], so we need to use [ and ] instead.
22488   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22489   if test "x$has_forbidden_chars" != x; then
22490     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22491     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22492     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22493     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22494       # Going to short mode and back again did indeed matter. Since short mode is
22495       # case insensitive, let's make it lowercase to improve readability.
22496       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22497       # Now convert it back to Unix-stile (cygpath)
22498       input_path=`$CYGPATH -u "$shortmode_path"`
22499       new_path="$input_path"
22500     fi
22501   fi
22502 
22503   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22504   if test "x$test_cygdrive_prefix" = x; then
22505     # As a simple fix, exclude /usr/bin since it's not a real path.
22506     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22507       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22508       # a path prefixed by /cygdrive for fixpath to work.
22509       new_path="$CYGWIN_ROOT_PATH$input_path"
22510     fi
22511   fi
22512 
22513 
22514   if test "x$path" != "x$new_path"; then
22515     BOOT_JDK="$new_path"
22516     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22517 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22518   fi
22519 
22520   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22521 
22522   path="$BOOT_JDK"
22523   has_colon=`$ECHO $path | $GREP ^.:`
22524   new_path="$path"
22525   if test "x$has_colon" = x; then
22526     # Not in mixed or Windows style, start by that.
22527     new_path=`cmd //c echo $path`
22528   fi
22529 
22530 
22531   input_path="$new_path"
22532   # Check if we need to convert this using DOS-style short mode. If the path
22533   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22534   # take no chances and rewrite it.
22535   # Note: m4 eats our [], so we need to use [ and ] instead.
22536   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22537   if test "x$has_forbidden_chars" != x; then
22538     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22539     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22540   fi
22541 
22542 
22543   windows_path="$new_path"
22544   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22545     unix_path=`$CYGPATH -u "$windows_path"`
22546     new_path="$unix_path"
22547   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22548     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22549     new_path="$unix_path"
22550   fi
22551 
22552   if test "x$path" != "x$new_path"; then
22553     BOOT_JDK="$new_path"
22554     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22555 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22556   fi
22557 
22558   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22559   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22560 
22561   else
22562     # We're on a posix platform. Hooray! :)
22563     path="$BOOT_JDK"
22564     has_space=`$ECHO "$path" | $GREP " "`
22565     if test "x$has_space" != x; then
22566       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22567 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22568       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22569     fi
22570 
22571     # Use eval to expand a potential ~
22572     eval path="$path"
22573     if test ! -f "$path" && test ! -d "$path"; then
22574       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22575     fi
22576 
22577     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22578   fi
22579 
22580               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22581 $as_echo_n "checking for Boot JDK... " >&6; }
22582               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22583 $as_echo "$BOOT_JDK" >&6; }
22584               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22585 $as_echo_n "checking Boot JDK version... " >&6; }
22586               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22587               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22588 $as_echo "$BOOT_JDK_VERSION" >&6; }
22589             fi # end check jdk version
22590           fi # end check rt.jar
22591         fi # end check javac
22592       fi # end check java
22593     fi # end check boot jdk found
22594   fi
22595 
22596     done
22597   fi
22598 
22599   fi
22600 
22601 
22602     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22603     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22604       # Do we have a bin/java?
22605       if test ! -x "$BOOT_JDK/bin/java"; then
22606         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22607 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22608         BOOT_JDK_FOUND=no
22609       else
22610         # Do we have a bin/javac?
22611         if test ! -x "$BOOT_JDK/bin/javac"; then
22612           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22614           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22615 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22616           BOOT_JDK_FOUND=no
22617         else
22618           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22619           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22620             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22622             BOOT_JDK_FOUND=no
22623           else
22624             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22625             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22626 
22627             # Extra M4 quote needed to protect [] in grep expression.
22628             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22629             if test "x$FOUND_CORRECT_VERSION" = x; then
22630               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22632               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22633 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22634               BOOT_JDK_FOUND=no
22635             else
22636               # We're done! :-)
22637               BOOT_JDK_FOUND=yes
22638 
22639   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22640 
22641   # Input might be given as Windows format, start by converting to
22642   # unix format.
22643   path="$BOOT_JDK"
22644   new_path=`$CYGPATH -u "$path"`
22645 
22646   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22647   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22648   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22649   # "foo.exe" is OK but "foo" is an error.
22650   #
22651   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22652   # It is also a way to make sure we got the proper file name for the real test later on.
22653   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22654   if test "x$test_shortpath" = x; then
22655     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22657     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22658   fi
22659 
22660   # Call helper function which possibly converts this using DOS-style short mode.
22661   # If so, the updated path is stored in $new_path.
22662 
22663   input_path="$new_path"
22664   # Check if we need to convert this using DOS-style short mode. If the path
22665   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22666   # take no chances and rewrite it.
22667   # Note: m4 eats our [], so we need to use [ and ] instead.
22668   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22669   if test "x$has_forbidden_chars" != x; then
22670     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22671     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22672     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22673     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22674       # Going to short mode and back again did indeed matter. Since short mode is
22675       # case insensitive, let's make it lowercase to improve readability.
22676       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22677       # Now convert it back to Unix-stile (cygpath)
22678       input_path=`$CYGPATH -u "$shortmode_path"`
22679       new_path="$input_path"
22680     fi
22681   fi
22682 
22683   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22684   if test "x$test_cygdrive_prefix" = x; then
22685     # As a simple fix, exclude /usr/bin since it's not a real path.
22686     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22687       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22688       # a path prefixed by /cygdrive for fixpath to work.
22689       new_path="$CYGWIN_ROOT_PATH$input_path"
22690     fi
22691   fi
22692 
22693 
22694   if test "x$path" != "x$new_path"; then
22695     BOOT_JDK="$new_path"
22696     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22697 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22698   fi
22699 
22700   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22701 
22702   path="$BOOT_JDK"
22703   has_colon=`$ECHO $path | $GREP ^.:`
22704   new_path="$path"
22705   if test "x$has_colon" = x; then
22706     # Not in mixed or Windows style, start by that.
22707     new_path=`cmd //c echo $path`
22708   fi
22709 
22710 
22711   input_path="$new_path"
22712   # Check if we need to convert this using DOS-style short mode. If the path
22713   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22714   # take no chances and rewrite it.
22715   # Note: m4 eats our [], so we need to use [ and ] instead.
22716   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22717   if test "x$has_forbidden_chars" != x; then
22718     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22719     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22720   fi
22721 
22722 
22723   windows_path="$new_path"
22724   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22725     unix_path=`$CYGPATH -u "$windows_path"`
22726     new_path="$unix_path"
22727   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22728     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22729     new_path="$unix_path"
22730   fi
22731 
22732   if test "x$path" != "x$new_path"; then
22733     BOOT_JDK="$new_path"
22734     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22735 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22736   fi
22737 
22738   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22739   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22740 
22741   else
22742     # We're on a posix platform. Hooray! :)
22743     path="$BOOT_JDK"
22744     has_space=`$ECHO "$path" | $GREP " "`
22745     if test "x$has_space" != x; then
22746       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22747 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22748       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22749     fi
22750 
22751     # Use eval to expand a potential ~
22752     eval path="$path"
22753     if test ! -f "$path" && test ! -d "$path"; then
22754       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22755     fi
22756 
22757     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22758   fi
22759 
22760               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22761 $as_echo_n "checking for Boot JDK... " >&6; }
22762               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22763 $as_echo "$BOOT_JDK" >&6; }
22764               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22765 $as_echo_n "checking Boot JDK version... " >&6; }
22766               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22767               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22768 $as_echo "$BOOT_JDK_VERSION" >&6; }
22769             fi # end check jdk version
22770           fi # end check rt.jar
22771         fi # end check javac
22772       fi # end check java
22773     fi # end check boot jdk found
22774   fi
22775 
22776 
22777   if test "x$BOOT_JDK_FOUND" = xno; then
22778     # Now execute the test
22779 
22780   if test "x$ProgramFiles" != x; then
22781     VIRTUAL_DIR="$ProgramFiles/Java"
22782 
22783   windows_path="$VIRTUAL_DIR"
22784   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22785     unix_path=`$CYGPATH -u "$windows_path"`
22786     VIRTUAL_DIR="$unix_path"
22787   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22788     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22789     VIRTUAL_DIR="$unix_path"
22790   fi
22791 
22792 
22793   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22794   BOOT_JDK_SUFFIX=""
22795   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22796   if test "x$ALL_JDKS_FOUND" != x; then
22797     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22798 
22799   if test "x$BOOT_JDK_FOUND" = xno; then
22800     # Now execute the test
22801 
22802         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22803         if test -d "$BOOT_JDK"; then
22804           BOOT_JDK_FOUND=maybe
22805           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22806 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22807         fi
22808 
22809 
22810     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22811     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22812       # Do we have a bin/java?
22813       if test ! -x "$BOOT_JDK/bin/java"; then
22814         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22816         BOOT_JDK_FOUND=no
22817       else
22818         # Do we have a bin/javac?
22819         if test ! -x "$BOOT_JDK/bin/javac"; then
22820           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22822           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22823 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22824           BOOT_JDK_FOUND=no
22825         else
22826           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22827           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22828             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22829 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22830             BOOT_JDK_FOUND=no
22831           else
22832             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22833             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22834 
22835             # Extra M4 quote needed to protect [] in grep expression.
22836             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22837             if test "x$FOUND_CORRECT_VERSION" = x; then
22838               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22839 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22840               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22841 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22842               BOOT_JDK_FOUND=no
22843             else
22844               # We're done! :-)
22845               BOOT_JDK_FOUND=yes
22846 
22847   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22848 
22849   # Input might be given as Windows format, start by converting to
22850   # unix format.
22851   path="$BOOT_JDK"
22852   new_path=`$CYGPATH -u "$path"`
22853 
22854   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22855   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22856   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22857   # "foo.exe" is OK but "foo" is an error.
22858   #
22859   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22860   # It is also a way to make sure we got the proper file name for the real test later on.
22861   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22862   if test "x$test_shortpath" = x; then
22863     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22864 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22865     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22866   fi
22867 
22868   # Call helper function which possibly converts this using DOS-style short mode.
22869   # If so, the updated path is stored in $new_path.
22870 
22871   input_path="$new_path"
22872   # Check if we need to convert this using DOS-style short mode. If the path
22873   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22874   # take no chances and rewrite it.
22875   # Note: m4 eats our [], so we need to use [ and ] instead.
22876   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22877   if test "x$has_forbidden_chars" != x; then
22878     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22879     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22880     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22881     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22882       # Going to short mode and back again did indeed matter. Since short mode is
22883       # case insensitive, let's make it lowercase to improve readability.
22884       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22885       # Now convert it back to Unix-stile (cygpath)
22886       input_path=`$CYGPATH -u "$shortmode_path"`
22887       new_path="$input_path"
22888     fi
22889   fi
22890 
22891   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22892   if test "x$test_cygdrive_prefix" = x; then
22893     # As a simple fix, exclude /usr/bin since it's not a real path.
22894     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22895       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22896       # a path prefixed by /cygdrive for fixpath to work.
22897       new_path="$CYGWIN_ROOT_PATH$input_path"
22898     fi
22899   fi
22900 
22901 
22902   if test "x$path" != "x$new_path"; then
22903     BOOT_JDK="$new_path"
22904     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22905 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22906   fi
22907 
22908   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22909 
22910   path="$BOOT_JDK"
22911   has_colon=`$ECHO $path | $GREP ^.:`
22912   new_path="$path"
22913   if test "x$has_colon" = x; then
22914     # Not in mixed or Windows style, start by that.
22915     new_path=`cmd //c echo $path`
22916   fi
22917 
22918 
22919   input_path="$new_path"
22920   # Check if we need to convert this using DOS-style short mode. If the path
22921   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22922   # take no chances and rewrite it.
22923   # Note: m4 eats our [], so we need to use [ and ] instead.
22924   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22925   if test "x$has_forbidden_chars" != x; then
22926     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22927     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22928   fi
22929 
22930 
22931   windows_path="$new_path"
22932   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22933     unix_path=`$CYGPATH -u "$windows_path"`
22934     new_path="$unix_path"
22935   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22936     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22937     new_path="$unix_path"
22938   fi
22939 
22940   if test "x$path" != "x$new_path"; then
22941     BOOT_JDK="$new_path"
22942     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22944   fi
22945 
22946   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22947   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22948 
22949   else
22950     # We're on a posix platform. Hooray! :)
22951     path="$BOOT_JDK"
22952     has_space=`$ECHO "$path" | $GREP " "`
22953     if test "x$has_space" != x; then
22954       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22955 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22956       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22957     fi
22958 
22959     # Use eval to expand a potential ~
22960     eval path="$path"
22961     if test ! -f "$path" && test ! -d "$path"; then
22962       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22963     fi
22964 
22965     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22966   fi
22967 
22968               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22969 $as_echo_n "checking for Boot JDK... " >&6; }
22970               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22971 $as_echo "$BOOT_JDK" >&6; }
22972               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22973 $as_echo_n "checking Boot JDK version... " >&6; }
22974               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22975               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22976 $as_echo "$BOOT_JDK_VERSION" >&6; }
22977             fi # end check jdk version
22978           fi # end check rt.jar
22979         fi # end check javac
22980       fi # end check java
22981     fi # end check boot jdk found
22982   fi
22983 
22984     done
22985   fi
22986 
22987   fi
22988 
22989 
22990     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22991     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22992       # Do we have a bin/java?
22993       if test ! -x "$BOOT_JDK/bin/java"; then
22994         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22996         BOOT_JDK_FOUND=no
22997       else
22998         # Do we have a bin/javac?
22999         if test ! -x "$BOOT_JDK/bin/javac"; then
23000           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23001 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23002           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23003 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23004           BOOT_JDK_FOUND=no
23005         else
23006           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23007           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23008             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23010             BOOT_JDK_FOUND=no
23011           else
23012             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23013             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23014 
23015             # Extra M4 quote needed to protect [] in grep expression.
23016             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23017             if test "x$FOUND_CORRECT_VERSION" = x; then
23018               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23019 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23020               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23021 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23022               BOOT_JDK_FOUND=no
23023             else
23024               # We're done! :-)
23025               BOOT_JDK_FOUND=yes
23026 
23027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23028 
23029   # Input might be given as Windows format, start by converting to
23030   # unix format.
23031   path="$BOOT_JDK"
23032   new_path=`$CYGPATH -u "$path"`
23033 
23034   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23035   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23036   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23037   # "foo.exe" is OK but "foo" is an error.
23038   #
23039   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23040   # It is also a way to make sure we got the proper file name for the real test later on.
23041   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23042   if test "x$test_shortpath" = x; then
23043     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23044 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23045     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23046   fi
23047 
23048   # Call helper function which possibly converts this using DOS-style short mode.
23049   # If so, the updated path is stored in $new_path.
23050 
23051   input_path="$new_path"
23052   # Check if we need to convert this using DOS-style short mode. If the path
23053   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23054   # take no chances and rewrite it.
23055   # Note: m4 eats our [], so we need to use [ and ] instead.
23056   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23057   if test "x$has_forbidden_chars" != x; then
23058     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23059     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23060     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23061     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23062       # Going to short mode and back again did indeed matter. Since short mode is
23063       # case insensitive, let's make it lowercase to improve readability.
23064       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23065       # Now convert it back to Unix-stile (cygpath)
23066       input_path=`$CYGPATH -u "$shortmode_path"`
23067       new_path="$input_path"
23068     fi
23069   fi
23070 
23071   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23072   if test "x$test_cygdrive_prefix" = x; then
23073     # As a simple fix, exclude /usr/bin since it's not a real path.
23074     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23075       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23076       # a path prefixed by /cygdrive for fixpath to work.
23077       new_path="$CYGWIN_ROOT_PATH$input_path"
23078     fi
23079   fi
23080 
23081 
23082   if test "x$path" != "x$new_path"; then
23083     BOOT_JDK="$new_path"
23084     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23085 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23086   fi
23087 
23088   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23089 
23090   path="$BOOT_JDK"
23091   has_colon=`$ECHO $path | $GREP ^.:`
23092   new_path="$path"
23093   if test "x$has_colon" = x; then
23094     # Not in mixed or Windows style, start by that.
23095     new_path=`cmd //c echo $path`
23096   fi
23097 
23098 
23099   input_path="$new_path"
23100   # Check if we need to convert this using DOS-style short mode. If the path
23101   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23102   # take no chances and rewrite it.
23103   # Note: m4 eats our [], so we need to use [ and ] instead.
23104   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23105   if test "x$has_forbidden_chars" != x; then
23106     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23107     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23108   fi
23109 
23110 
23111   windows_path="$new_path"
23112   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23113     unix_path=`$CYGPATH -u "$windows_path"`
23114     new_path="$unix_path"
23115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23116     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23117     new_path="$unix_path"
23118   fi
23119 
23120   if test "x$path" != "x$new_path"; then
23121     BOOT_JDK="$new_path"
23122     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23124   fi
23125 
23126   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23127   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23128 
23129   else
23130     # We're on a posix platform. Hooray! :)
23131     path="$BOOT_JDK"
23132     has_space=`$ECHO "$path" | $GREP " "`
23133     if test "x$has_space" != x; then
23134       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23135 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23136       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23137     fi
23138 
23139     # Use eval to expand a potential ~
23140     eval path="$path"
23141     if test ! -f "$path" && test ! -d "$path"; then
23142       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23143     fi
23144 
23145     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23146   fi
23147 
23148               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23149 $as_echo_n "checking for Boot JDK... " >&6; }
23150               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23151 $as_echo "$BOOT_JDK" >&6; }
23152               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23153 $as_echo_n "checking Boot JDK version... " >&6; }
23154               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23155               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23156 $as_echo "$BOOT_JDK_VERSION" >&6; }
23157             fi # end check jdk version
23158           fi # end check rt.jar
23159         fi # end check javac
23160       fi # end check java
23161     fi # end check boot jdk found
23162   fi
23163 
23164 
23165   if test "x$BOOT_JDK_FOUND" = xno; then
23166     # Now execute the test
23167 
23168   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23169   BOOT_JDK_SUFFIX=""
23170   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23171   if test "x$ALL_JDKS_FOUND" != x; then
23172     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23173 
23174   if test "x$BOOT_JDK_FOUND" = xno; then
23175     # Now execute the test
23176 
23177         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23178         if test -d "$BOOT_JDK"; then
23179           BOOT_JDK_FOUND=maybe
23180           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23181 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23182         fi
23183 
23184 
23185     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23186     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23187       # Do we have a bin/java?
23188       if test ! -x "$BOOT_JDK/bin/java"; then
23189         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23190 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23191         BOOT_JDK_FOUND=no
23192       else
23193         # Do we have a bin/javac?
23194         if test ! -x "$BOOT_JDK/bin/javac"; then
23195           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23196 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23197           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23198 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23199           BOOT_JDK_FOUND=no
23200         else
23201           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23202           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23203             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23204 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23205             BOOT_JDK_FOUND=no
23206           else
23207             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23208             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23209 
23210             # Extra M4 quote needed to protect [] in grep expression.
23211             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23212             if test "x$FOUND_CORRECT_VERSION" = x; then
23213               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23214 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23215               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23216 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23217               BOOT_JDK_FOUND=no
23218             else
23219               # We're done! :-)
23220               BOOT_JDK_FOUND=yes
23221 
23222   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23223 
23224   # Input might be given as Windows format, start by converting to
23225   # unix format.
23226   path="$BOOT_JDK"
23227   new_path=`$CYGPATH -u "$path"`
23228 
23229   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23230   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23231   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23232   # "foo.exe" is OK but "foo" is an error.
23233   #
23234   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23235   # It is also a way to make sure we got the proper file name for the real test later on.
23236   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23237   if test "x$test_shortpath" = x; then
23238     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23239 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23240     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23241   fi
23242 
23243   # Call helper function which possibly converts this using DOS-style short mode.
23244   # If so, the updated path is stored in $new_path.
23245 
23246   input_path="$new_path"
23247   # Check if we need to convert this using DOS-style short mode. If the path
23248   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23249   # take no chances and rewrite it.
23250   # Note: m4 eats our [], so we need to use [ and ] instead.
23251   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23252   if test "x$has_forbidden_chars" != x; then
23253     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23254     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23255     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23256     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23257       # Going to short mode and back again did indeed matter. Since short mode is
23258       # case insensitive, let's make it lowercase to improve readability.
23259       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23260       # Now convert it back to Unix-stile (cygpath)
23261       input_path=`$CYGPATH -u "$shortmode_path"`
23262       new_path="$input_path"
23263     fi
23264   fi
23265 
23266   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23267   if test "x$test_cygdrive_prefix" = x; then
23268     # As a simple fix, exclude /usr/bin since it's not a real path.
23269     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23270       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23271       # a path prefixed by /cygdrive for fixpath to work.
23272       new_path="$CYGWIN_ROOT_PATH$input_path"
23273     fi
23274   fi
23275 
23276 
23277   if test "x$path" != "x$new_path"; then
23278     BOOT_JDK="$new_path"
23279     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23280 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23281   fi
23282 
23283   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23284 
23285   path="$BOOT_JDK"
23286   has_colon=`$ECHO $path | $GREP ^.:`
23287   new_path="$path"
23288   if test "x$has_colon" = x; then
23289     # Not in mixed or Windows style, start by that.
23290     new_path=`cmd //c echo $path`
23291   fi
23292 
23293 
23294   input_path="$new_path"
23295   # Check if we need to convert this using DOS-style short mode. If the path
23296   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23297   # take no chances and rewrite it.
23298   # Note: m4 eats our [], so we need to use [ and ] instead.
23299   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23300   if test "x$has_forbidden_chars" != x; then
23301     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23302     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23303   fi
23304 
23305 
23306   windows_path="$new_path"
23307   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23308     unix_path=`$CYGPATH -u "$windows_path"`
23309     new_path="$unix_path"
23310   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23311     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23312     new_path="$unix_path"
23313   fi
23314 
23315   if test "x$path" != "x$new_path"; then
23316     BOOT_JDK="$new_path"
23317     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23318 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23319   fi
23320 
23321   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23322   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23323 
23324   else
23325     # We're on a posix platform. Hooray! :)
23326     path="$BOOT_JDK"
23327     has_space=`$ECHO "$path" | $GREP " "`
23328     if test "x$has_space" != x; then
23329       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23330 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23331       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23332     fi
23333 
23334     # Use eval to expand a potential ~
23335     eval path="$path"
23336     if test ! -f "$path" && test ! -d "$path"; then
23337       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23338     fi
23339 
23340     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23341   fi
23342 
23343               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23344 $as_echo_n "checking for Boot JDK... " >&6; }
23345               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23346 $as_echo "$BOOT_JDK" >&6; }
23347               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23348 $as_echo_n "checking Boot JDK version... " >&6; }
23349               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23350               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23351 $as_echo "$BOOT_JDK_VERSION" >&6; }
23352             fi # end check jdk version
23353           fi # end check rt.jar
23354         fi # end check javac
23355       fi # end check java
23356     fi # end check boot jdk found
23357   fi
23358 
23359     done
23360   fi
23361 
23362 
23363     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23364     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23365       # Do we have a bin/java?
23366       if test ! -x "$BOOT_JDK/bin/java"; then
23367         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23368 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23369         BOOT_JDK_FOUND=no
23370       else
23371         # Do we have a bin/javac?
23372         if test ! -x "$BOOT_JDK/bin/javac"; then
23373           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23374 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23375           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23376 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23377           BOOT_JDK_FOUND=no
23378         else
23379           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23380           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23381             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23383             BOOT_JDK_FOUND=no
23384           else
23385             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23386             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23387 
23388             # Extra M4 quote needed to protect [] in grep expression.
23389             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23390             if test "x$FOUND_CORRECT_VERSION" = x; then
23391               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23393               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23394 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23395               BOOT_JDK_FOUND=no
23396             else
23397               # We're done! :-)
23398               BOOT_JDK_FOUND=yes
23399 
23400   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23401 
23402   # Input might be given as Windows format, start by converting to
23403   # unix format.
23404   path="$BOOT_JDK"
23405   new_path=`$CYGPATH -u "$path"`
23406 
23407   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23408   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23409   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23410   # "foo.exe" is OK but "foo" is an error.
23411   #
23412   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23413   # It is also a way to make sure we got the proper file name for the real test later on.
23414   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23415   if test "x$test_shortpath" = x; then
23416     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23417 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23418     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23419   fi
23420 
23421   # Call helper function which possibly converts this using DOS-style short mode.
23422   # If so, the updated path is stored in $new_path.
23423 
23424   input_path="$new_path"
23425   # Check if we need to convert this using DOS-style short mode. If the path
23426   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23427   # take no chances and rewrite it.
23428   # Note: m4 eats our [], so we need to use [ and ] instead.
23429   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23430   if test "x$has_forbidden_chars" != x; then
23431     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23432     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23433     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23434     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23435       # Going to short mode and back again did indeed matter. Since short mode is
23436       # case insensitive, let's make it lowercase to improve readability.
23437       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23438       # Now convert it back to Unix-stile (cygpath)
23439       input_path=`$CYGPATH -u "$shortmode_path"`
23440       new_path="$input_path"
23441     fi
23442   fi
23443 
23444   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23445   if test "x$test_cygdrive_prefix" = x; then
23446     # As a simple fix, exclude /usr/bin since it's not a real path.
23447     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23448       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23449       # a path prefixed by /cygdrive for fixpath to work.
23450       new_path="$CYGWIN_ROOT_PATH$input_path"
23451     fi
23452   fi
23453 
23454 
23455   if test "x$path" != "x$new_path"; then
23456     BOOT_JDK="$new_path"
23457     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23458 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23459   fi
23460 
23461   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23462 
23463   path="$BOOT_JDK"
23464   has_colon=`$ECHO $path | $GREP ^.:`
23465   new_path="$path"
23466   if test "x$has_colon" = x; then
23467     # Not in mixed or Windows style, start by that.
23468     new_path=`cmd //c echo $path`
23469   fi
23470 
23471 
23472   input_path="$new_path"
23473   # Check if we need to convert this using DOS-style short mode. If the path
23474   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23475   # take no chances and rewrite it.
23476   # Note: m4 eats our [], so we need to use [ and ] instead.
23477   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23478   if test "x$has_forbidden_chars" != x; then
23479     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23480     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23481   fi
23482 
23483 
23484   windows_path="$new_path"
23485   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23486     unix_path=`$CYGPATH -u "$windows_path"`
23487     new_path="$unix_path"
23488   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23489     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23490     new_path="$unix_path"
23491   fi
23492 
23493   if test "x$path" != "x$new_path"; then
23494     BOOT_JDK="$new_path"
23495     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23496 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23497   fi
23498 
23499   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23500   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23501 
23502   else
23503     # We're on a posix platform. Hooray! :)
23504     path="$BOOT_JDK"
23505     has_space=`$ECHO "$path" | $GREP " "`
23506     if test "x$has_space" != x; then
23507       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23508 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23509       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23510     fi
23511 
23512     # Use eval to expand a potential ~
23513     eval path="$path"
23514     if test ! -f "$path" && test ! -d "$path"; then
23515       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23516     fi
23517 
23518     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23519   fi
23520 
23521               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23522 $as_echo_n "checking for Boot JDK... " >&6; }
23523               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23524 $as_echo "$BOOT_JDK" >&6; }
23525               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23526 $as_echo_n "checking Boot JDK version... " >&6; }
23527               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23528               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23529 $as_echo "$BOOT_JDK_VERSION" >&6; }
23530             fi # end check jdk version
23531           fi # end check rt.jar
23532         fi # end check javac
23533       fi # end check java
23534     fi # end check boot jdk found
23535   fi
23536 
23537   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23538 
23539   if test "x$BOOT_JDK_FOUND" = xno; then
23540     # Now execute the test
23541 
23542   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23543   BOOT_JDK_SUFFIX="/Contents/Home"
23544   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23545   if test "x$ALL_JDKS_FOUND" != x; then
23546     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23547 
23548   if test "x$BOOT_JDK_FOUND" = xno; then
23549     # Now execute the test
23550 
23551         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23552         if test -d "$BOOT_JDK"; then
23553           BOOT_JDK_FOUND=maybe
23554           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23555 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23556         fi
23557 
23558 
23559     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23560     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23561       # Do we have a bin/java?
23562       if test ! -x "$BOOT_JDK/bin/java"; then
23563         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23564 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23565         BOOT_JDK_FOUND=no
23566       else
23567         # Do we have a bin/javac?
23568         if test ! -x "$BOOT_JDK/bin/javac"; then
23569           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23570 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23571           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23572 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23573           BOOT_JDK_FOUND=no
23574         else
23575           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23576           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23577             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23578 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23579             BOOT_JDK_FOUND=no
23580           else
23581             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23582             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23583 
23584             # Extra M4 quote needed to protect [] in grep expression.
23585             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23586             if test "x$FOUND_CORRECT_VERSION" = x; then
23587               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23588 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23589               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23590 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23591               BOOT_JDK_FOUND=no
23592             else
23593               # We're done! :-)
23594               BOOT_JDK_FOUND=yes
23595 
23596   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23597 
23598   # Input might be given as Windows format, start by converting to
23599   # unix format.
23600   path="$BOOT_JDK"
23601   new_path=`$CYGPATH -u "$path"`
23602 
23603   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23604   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23605   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23606   # "foo.exe" is OK but "foo" is an error.
23607   #
23608   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23609   # It is also a way to make sure we got the proper file name for the real test later on.
23610   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23611   if test "x$test_shortpath" = x; then
23612     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23613 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23614     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23615   fi
23616 
23617   # Call helper function which possibly converts this using DOS-style short mode.
23618   # If so, the updated path is stored in $new_path.
23619 
23620   input_path="$new_path"
23621   # Check if we need to convert this using DOS-style short mode. If the path
23622   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23623   # take no chances and rewrite it.
23624   # Note: m4 eats our [], so we need to use [ and ] instead.
23625   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23626   if test "x$has_forbidden_chars" != x; then
23627     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23628     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23629     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23630     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23631       # Going to short mode and back again did indeed matter. Since short mode is
23632       # case insensitive, let's make it lowercase to improve readability.
23633       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23634       # Now convert it back to Unix-stile (cygpath)
23635       input_path=`$CYGPATH -u "$shortmode_path"`
23636       new_path="$input_path"
23637     fi
23638   fi
23639 
23640   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23641   if test "x$test_cygdrive_prefix" = x; then
23642     # As a simple fix, exclude /usr/bin since it's not a real path.
23643     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23644       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23645       # a path prefixed by /cygdrive for fixpath to work.
23646       new_path="$CYGWIN_ROOT_PATH$input_path"
23647     fi
23648   fi
23649 
23650 
23651   if test "x$path" != "x$new_path"; then
23652     BOOT_JDK="$new_path"
23653     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23654 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23655   fi
23656 
23657   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23658 
23659   path="$BOOT_JDK"
23660   has_colon=`$ECHO $path | $GREP ^.:`
23661   new_path="$path"
23662   if test "x$has_colon" = x; then
23663     # Not in mixed or Windows style, start by that.
23664     new_path=`cmd //c echo $path`
23665   fi
23666 
23667 
23668   input_path="$new_path"
23669   # Check if we need to convert this using DOS-style short mode. If the path
23670   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23671   # take no chances and rewrite it.
23672   # Note: m4 eats our [], so we need to use [ and ] instead.
23673   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23674   if test "x$has_forbidden_chars" != x; then
23675     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23676     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23677   fi
23678 
23679 
23680   windows_path="$new_path"
23681   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23682     unix_path=`$CYGPATH -u "$windows_path"`
23683     new_path="$unix_path"
23684   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23685     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23686     new_path="$unix_path"
23687   fi
23688 
23689   if test "x$path" != "x$new_path"; then
23690     BOOT_JDK="$new_path"
23691     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23692 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23693   fi
23694 
23695   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23696   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23697 
23698   else
23699     # We're on a posix platform. Hooray! :)
23700     path="$BOOT_JDK"
23701     has_space=`$ECHO "$path" | $GREP " "`
23702     if test "x$has_space" != x; then
23703       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23704 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23705       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23706     fi
23707 
23708     # Use eval to expand a potential ~
23709     eval path="$path"
23710     if test ! -f "$path" && test ! -d "$path"; then
23711       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23712     fi
23713 
23714     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23715   fi
23716 
23717               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23718 $as_echo_n "checking for Boot JDK... " >&6; }
23719               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23720 $as_echo "$BOOT_JDK" >&6; }
23721               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23722 $as_echo_n "checking Boot JDK version... " >&6; }
23723               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23724               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23725 $as_echo "$BOOT_JDK_VERSION" >&6; }
23726             fi # end check jdk version
23727           fi # end check rt.jar
23728         fi # end check javac
23729       fi # end check java
23730     fi # end check boot jdk found
23731   fi
23732 
23733     done
23734   fi
23735 
23736 
23737     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23738     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23739       # Do we have a bin/java?
23740       if test ! -x "$BOOT_JDK/bin/java"; then
23741         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23742 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23743         BOOT_JDK_FOUND=no
23744       else
23745         # Do we have a bin/javac?
23746         if test ! -x "$BOOT_JDK/bin/javac"; then
23747           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23749           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23750 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23751           BOOT_JDK_FOUND=no
23752         else
23753           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23754           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23755             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23756 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23757             BOOT_JDK_FOUND=no
23758           else
23759             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23760             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23761 
23762             # Extra M4 quote needed to protect [] in grep expression.
23763             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23764             if test "x$FOUND_CORRECT_VERSION" = x; then
23765               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23767               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23768 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23769               BOOT_JDK_FOUND=no
23770             else
23771               # We're done! :-)
23772               BOOT_JDK_FOUND=yes
23773 
23774   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23775 
23776   # Input might be given as Windows format, start by converting to
23777   # unix format.
23778   path="$BOOT_JDK"
23779   new_path=`$CYGPATH -u "$path"`
23780 
23781   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23782   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23783   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23784   # "foo.exe" is OK but "foo" is an error.
23785   #
23786   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23787   # It is also a way to make sure we got the proper file name for the real test later on.
23788   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23789   if test "x$test_shortpath" = x; then
23790     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23791 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23792     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23793   fi
23794 
23795   # Call helper function which possibly converts this using DOS-style short mode.
23796   # If so, the updated path is stored in $new_path.
23797 
23798   input_path="$new_path"
23799   # Check if we need to convert this using DOS-style short mode. If the path
23800   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23801   # take no chances and rewrite it.
23802   # Note: m4 eats our [], so we need to use [ and ] instead.
23803   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23804   if test "x$has_forbidden_chars" != x; then
23805     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23806     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23807     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23808     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23809       # Going to short mode and back again did indeed matter. Since short mode is
23810       # case insensitive, let's make it lowercase to improve readability.
23811       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23812       # Now convert it back to Unix-stile (cygpath)
23813       input_path=`$CYGPATH -u "$shortmode_path"`
23814       new_path="$input_path"
23815     fi
23816   fi
23817 
23818   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23819   if test "x$test_cygdrive_prefix" = x; then
23820     # As a simple fix, exclude /usr/bin since it's not a real path.
23821     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23822       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23823       # a path prefixed by /cygdrive for fixpath to work.
23824       new_path="$CYGWIN_ROOT_PATH$input_path"
23825     fi
23826   fi
23827 
23828 
23829   if test "x$path" != "x$new_path"; then
23830     BOOT_JDK="$new_path"
23831     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23832 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23833   fi
23834 
23835   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23836 
23837   path="$BOOT_JDK"
23838   has_colon=`$ECHO $path | $GREP ^.:`
23839   new_path="$path"
23840   if test "x$has_colon" = x; then
23841     # Not in mixed or Windows style, start by that.
23842     new_path=`cmd //c echo $path`
23843   fi
23844 
23845 
23846   input_path="$new_path"
23847   # Check if we need to convert this using DOS-style short mode. If the path
23848   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23849   # take no chances and rewrite it.
23850   # Note: m4 eats our [], so we need to use [ and ] instead.
23851   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23852   if test "x$has_forbidden_chars" != x; then
23853     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23854     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23855   fi
23856 
23857 
23858   windows_path="$new_path"
23859   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23860     unix_path=`$CYGPATH -u "$windows_path"`
23861     new_path="$unix_path"
23862   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23863     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23864     new_path="$unix_path"
23865   fi
23866 
23867   if test "x$path" != "x$new_path"; then
23868     BOOT_JDK="$new_path"
23869     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23870 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23871   fi
23872 
23873   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23874   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23875 
23876   else
23877     # We're on a posix platform. Hooray! :)
23878     path="$BOOT_JDK"
23879     has_space=`$ECHO "$path" | $GREP " "`
23880     if test "x$has_space" != x; then
23881       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23882 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23883       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23884     fi
23885 
23886     # Use eval to expand a potential ~
23887     eval path="$path"
23888     if test ! -f "$path" && test ! -d "$path"; then
23889       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23890     fi
23891 
23892     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23893   fi
23894 
23895               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23896 $as_echo_n "checking for Boot JDK... " >&6; }
23897               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23898 $as_echo "$BOOT_JDK" >&6; }
23899               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23900 $as_echo_n "checking Boot JDK version... " >&6; }
23901               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23902               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23903 $as_echo "$BOOT_JDK_VERSION" >&6; }
23904             fi # end check jdk version
23905           fi # end check rt.jar
23906         fi # end check javac
23907       fi # end check java
23908     fi # end check boot jdk found
23909   fi
23910 
23911 
23912   if test "x$BOOT_JDK_FOUND" = xno; then
23913     # Now execute the test
23914 
23915   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23916   BOOT_JDK_SUFFIX="/Contents/Home"
23917   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23918   if test "x$ALL_JDKS_FOUND" != x; then
23919     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23920 
23921   if test "x$BOOT_JDK_FOUND" = xno; then
23922     # Now execute the test
23923 
23924         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23925         if test -d "$BOOT_JDK"; then
23926           BOOT_JDK_FOUND=maybe
23927           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23928 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23929         fi
23930 
23931 
23932     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23933     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23934       # Do we have a bin/java?
23935       if test ! -x "$BOOT_JDK/bin/java"; then
23936         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23938         BOOT_JDK_FOUND=no
23939       else
23940         # Do we have a bin/javac?
23941         if test ! -x "$BOOT_JDK/bin/javac"; then
23942           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23944           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23945 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23946           BOOT_JDK_FOUND=no
23947         else
23948           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23949           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23950             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23951 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23952             BOOT_JDK_FOUND=no
23953           else
23954             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23955             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23956 
23957             # Extra M4 quote needed to protect [] in grep expression.
23958             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23959             if test "x$FOUND_CORRECT_VERSION" = x; then
23960               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23962               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23963 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23964               BOOT_JDK_FOUND=no
23965             else
23966               # We're done! :-)
23967               BOOT_JDK_FOUND=yes
23968 
23969   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23970 
23971   # Input might be given as Windows format, start by converting to
23972   # unix format.
23973   path="$BOOT_JDK"
23974   new_path=`$CYGPATH -u "$path"`
23975 
23976   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23977   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23978   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23979   # "foo.exe" is OK but "foo" is an error.
23980   #
23981   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23982   # It is also a way to make sure we got the proper file name for the real test later on.
23983   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23984   if test "x$test_shortpath" = x; then
23985     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23986 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23987     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23988   fi
23989 
23990   # Call helper function which possibly converts this using DOS-style short mode.
23991   # If so, the updated path is stored in $new_path.
23992 
23993   input_path="$new_path"
23994   # Check if we need to convert this using DOS-style short mode. If the path
23995   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23996   # take no chances and rewrite it.
23997   # Note: m4 eats our [], so we need to use [ and ] instead.
23998   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23999   if test "x$has_forbidden_chars" != x; then
24000     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24001     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24002     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24003     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24004       # Going to short mode and back again did indeed matter. Since short mode is
24005       # case insensitive, let's make it lowercase to improve readability.
24006       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24007       # Now convert it back to Unix-stile (cygpath)
24008       input_path=`$CYGPATH -u "$shortmode_path"`
24009       new_path="$input_path"
24010     fi
24011   fi
24012 
24013   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24014   if test "x$test_cygdrive_prefix" = x; then
24015     # As a simple fix, exclude /usr/bin since it's not a real path.
24016     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24017       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24018       # a path prefixed by /cygdrive for fixpath to work.
24019       new_path="$CYGWIN_ROOT_PATH$input_path"
24020     fi
24021   fi
24022 
24023 
24024   if test "x$path" != "x$new_path"; then
24025     BOOT_JDK="$new_path"
24026     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24027 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24028   fi
24029 
24030   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24031 
24032   path="$BOOT_JDK"
24033   has_colon=`$ECHO $path | $GREP ^.:`
24034   new_path="$path"
24035   if test "x$has_colon" = x; then
24036     # Not in mixed or Windows style, start by that.
24037     new_path=`cmd //c echo $path`
24038   fi
24039 
24040 
24041   input_path="$new_path"
24042   # Check if we need to convert this using DOS-style short mode. If the path
24043   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24044   # take no chances and rewrite it.
24045   # Note: m4 eats our [], so we need to use [ and ] instead.
24046   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24047   if test "x$has_forbidden_chars" != x; then
24048     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24049     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24050   fi
24051 
24052 
24053   windows_path="$new_path"
24054   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24055     unix_path=`$CYGPATH -u "$windows_path"`
24056     new_path="$unix_path"
24057   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24058     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24059     new_path="$unix_path"
24060   fi
24061 
24062   if test "x$path" != "x$new_path"; then
24063     BOOT_JDK="$new_path"
24064     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24065 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24066   fi
24067 
24068   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24069   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24070 
24071   else
24072     # We're on a posix platform. Hooray! :)
24073     path="$BOOT_JDK"
24074     has_space=`$ECHO "$path" | $GREP " "`
24075     if test "x$has_space" != x; then
24076       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24077 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24078       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24079     fi
24080 
24081     # Use eval to expand a potential ~
24082     eval path="$path"
24083     if test ! -f "$path" && test ! -d "$path"; then
24084       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24085     fi
24086 
24087     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24088   fi
24089 
24090               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24091 $as_echo_n "checking for Boot JDK... " >&6; }
24092               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24093 $as_echo "$BOOT_JDK" >&6; }
24094               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24095 $as_echo_n "checking Boot JDK version... " >&6; }
24096               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24097               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24098 $as_echo "$BOOT_JDK_VERSION" >&6; }
24099             fi # end check jdk version
24100           fi # end check rt.jar
24101         fi # end check javac
24102       fi # end check java
24103     fi # end check boot jdk found
24104   fi
24105 
24106     done
24107   fi
24108 
24109 
24110     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24111     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24112       # Do we have a bin/java?
24113       if test ! -x "$BOOT_JDK/bin/java"; then
24114         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24116         BOOT_JDK_FOUND=no
24117       else
24118         # Do we have a bin/javac?
24119         if test ! -x "$BOOT_JDK/bin/javac"; then
24120           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24121 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24122           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24123 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24124           BOOT_JDK_FOUND=no
24125         else
24126           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24127           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24128             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24129 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24130             BOOT_JDK_FOUND=no
24131           else
24132             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24133             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24134 
24135             # Extra M4 quote needed to protect [] in grep expression.
24136             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24137             if test "x$FOUND_CORRECT_VERSION" = x; then
24138               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24140               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24141 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24142               BOOT_JDK_FOUND=no
24143             else
24144               # We're done! :-)
24145               BOOT_JDK_FOUND=yes
24146 
24147   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24148 
24149   # Input might be given as Windows format, start by converting to
24150   # unix format.
24151   path="$BOOT_JDK"
24152   new_path=`$CYGPATH -u "$path"`
24153 
24154   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24155   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24156   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24157   # "foo.exe" is OK but "foo" is an error.
24158   #
24159   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24160   # It is also a way to make sure we got the proper file name for the real test later on.
24161   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24162   if test "x$test_shortpath" = x; then
24163     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24164 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24165     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24166   fi
24167 
24168   # Call helper function which possibly converts this using DOS-style short mode.
24169   # If so, the updated path is stored in $new_path.
24170 
24171   input_path="$new_path"
24172   # Check if we need to convert this using DOS-style short mode. If the path
24173   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24174   # take no chances and rewrite it.
24175   # Note: m4 eats our [], so we need to use [ and ] instead.
24176   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24177   if test "x$has_forbidden_chars" != x; then
24178     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24179     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24180     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24181     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24182       # Going to short mode and back again did indeed matter. Since short mode is
24183       # case insensitive, let's make it lowercase to improve readability.
24184       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24185       # Now convert it back to Unix-stile (cygpath)
24186       input_path=`$CYGPATH -u "$shortmode_path"`
24187       new_path="$input_path"
24188     fi
24189   fi
24190 
24191   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24192   if test "x$test_cygdrive_prefix" = x; then
24193     # As a simple fix, exclude /usr/bin since it's not a real path.
24194     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24195       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24196       # a path prefixed by /cygdrive for fixpath to work.
24197       new_path="$CYGWIN_ROOT_PATH$input_path"
24198     fi
24199   fi
24200 
24201 
24202   if test "x$path" != "x$new_path"; then
24203     BOOT_JDK="$new_path"
24204     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24205 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24206   fi
24207 
24208   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24209 
24210   path="$BOOT_JDK"
24211   has_colon=`$ECHO $path | $GREP ^.:`
24212   new_path="$path"
24213   if test "x$has_colon" = x; then
24214     # Not in mixed or Windows style, start by that.
24215     new_path=`cmd //c echo $path`
24216   fi
24217 
24218 
24219   input_path="$new_path"
24220   # Check if we need to convert this using DOS-style short mode. If the path
24221   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24222   # take no chances and rewrite it.
24223   # Note: m4 eats our [], so we need to use [ and ] instead.
24224   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24225   if test "x$has_forbidden_chars" != x; then
24226     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24227     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24228   fi
24229 
24230 
24231   windows_path="$new_path"
24232   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24233     unix_path=`$CYGPATH -u "$windows_path"`
24234     new_path="$unix_path"
24235   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24236     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24237     new_path="$unix_path"
24238   fi
24239 
24240   if test "x$path" != "x$new_path"; then
24241     BOOT_JDK="$new_path"
24242     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24243 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24244   fi
24245 
24246   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24247   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24248 
24249   else
24250     # We're on a posix platform. Hooray! :)
24251     path="$BOOT_JDK"
24252     has_space=`$ECHO "$path" | $GREP " "`
24253     if test "x$has_space" != x; then
24254       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24255 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24256       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24257     fi
24258 
24259     # Use eval to expand a potential ~
24260     eval path="$path"
24261     if test ! -f "$path" && test ! -d "$path"; then
24262       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24263     fi
24264 
24265     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24266   fi
24267 
24268               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24269 $as_echo_n "checking for Boot JDK... " >&6; }
24270               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24271 $as_echo "$BOOT_JDK" >&6; }
24272               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24273 $as_echo_n "checking Boot JDK version... " >&6; }
24274               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24275               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24276 $as_echo "$BOOT_JDK_VERSION" >&6; }
24277             fi # end check jdk version
24278           fi # end check rt.jar
24279         fi # end check javac
24280       fi # end check java
24281     fi # end check boot jdk found
24282   fi
24283 
24284   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24285 
24286   if test "x$BOOT_JDK_FOUND" = xno; then
24287     # Now execute the test
24288 
24289   BOOT_JDK_PREFIX="/usr/lib/jvm"
24290   BOOT_JDK_SUFFIX=""
24291   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24292   if test "x$ALL_JDKS_FOUND" != x; then
24293     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24294 
24295   if test "x$BOOT_JDK_FOUND" = xno; then
24296     # Now execute the test
24297 
24298         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24299         if test -d "$BOOT_JDK"; then
24300           BOOT_JDK_FOUND=maybe
24301           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24302 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24303         fi
24304 
24305 
24306     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24307     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24308       # Do we have a bin/java?
24309       if test ! -x "$BOOT_JDK/bin/java"; then
24310         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24311 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24312         BOOT_JDK_FOUND=no
24313       else
24314         # Do we have a bin/javac?
24315         if test ! -x "$BOOT_JDK/bin/javac"; then
24316           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24317 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24318           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24319 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24320           BOOT_JDK_FOUND=no
24321         else
24322           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24323           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24324             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24325 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24326             BOOT_JDK_FOUND=no
24327           else
24328             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24329             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24330 
24331             # Extra M4 quote needed to protect [] in grep expression.
24332             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24333             if test "x$FOUND_CORRECT_VERSION" = x; then
24334               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24335 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24336               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24337 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24338               BOOT_JDK_FOUND=no
24339             else
24340               # We're done! :-)
24341               BOOT_JDK_FOUND=yes
24342 
24343   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24344 
24345   # Input might be given as Windows format, start by converting to
24346   # unix format.
24347   path="$BOOT_JDK"
24348   new_path=`$CYGPATH -u "$path"`
24349 
24350   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24351   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24352   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24353   # "foo.exe" is OK but "foo" is an error.
24354   #
24355   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24356   # It is also a way to make sure we got the proper file name for the real test later on.
24357   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24358   if test "x$test_shortpath" = x; then
24359     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24360 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24361     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24362   fi
24363 
24364   # Call helper function which possibly converts this using DOS-style short mode.
24365   # If so, the updated path is stored in $new_path.
24366 
24367   input_path="$new_path"
24368   # Check if we need to convert this using DOS-style short mode. If the path
24369   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24370   # take no chances and rewrite it.
24371   # Note: m4 eats our [], so we need to use [ and ] instead.
24372   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24373   if test "x$has_forbidden_chars" != x; then
24374     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24375     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24376     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24377     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24378       # Going to short mode and back again did indeed matter. Since short mode is
24379       # case insensitive, let's make it lowercase to improve readability.
24380       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24381       # Now convert it back to Unix-stile (cygpath)
24382       input_path=`$CYGPATH -u "$shortmode_path"`
24383       new_path="$input_path"
24384     fi
24385   fi
24386 
24387   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24388   if test "x$test_cygdrive_prefix" = x; then
24389     # As a simple fix, exclude /usr/bin since it's not a real path.
24390     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24391       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24392       # a path prefixed by /cygdrive for fixpath to work.
24393       new_path="$CYGWIN_ROOT_PATH$input_path"
24394     fi
24395   fi
24396 
24397 
24398   if test "x$path" != "x$new_path"; then
24399     BOOT_JDK="$new_path"
24400     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24401 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24402   fi
24403 
24404   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24405 
24406   path="$BOOT_JDK"
24407   has_colon=`$ECHO $path | $GREP ^.:`
24408   new_path="$path"
24409   if test "x$has_colon" = x; then
24410     # Not in mixed or Windows style, start by that.
24411     new_path=`cmd //c echo $path`
24412   fi
24413 
24414 
24415   input_path="$new_path"
24416   # Check if we need to convert this using DOS-style short mode. If the path
24417   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24418   # take no chances and rewrite it.
24419   # Note: m4 eats our [], so we need to use [ and ] instead.
24420   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24421   if test "x$has_forbidden_chars" != x; then
24422     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24423     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24424   fi
24425 
24426 
24427   windows_path="$new_path"
24428   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24429     unix_path=`$CYGPATH -u "$windows_path"`
24430     new_path="$unix_path"
24431   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24432     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24433     new_path="$unix_path"
24434   fi
24435 
24436   if test "x$path" != "x$new_path"; then
24437     BOOT_JDK="$new_path"
24438     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24439 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24440   fi
24441 
24442   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24443   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24444 
24445   else
24446     # We're on a posix platform. Hooray! :)
24447     path="$BOOT_JDK"
24448     has_space=`$ECHO "$path" | $GREP " "`
24449     if test "x$has_space" != x; then
24450       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24451 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24452       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24453     fi
24454 
24455     # Use eval to expand a potential ~
24456     eval path="$path"
24457     if test ! -f "$path" && test ! -d "$path"; then
24458       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24459     fi
24460 
24461     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24462   fi
24463 
24464               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24465 $as_echo_n "checking for Boot JDK... " >&6; }
24466               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24467 $as_echo "$BOOT_JDK" >&6; }
24468               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24469 $as_echo_n "checking Boot JDK version... " >&6; }
24470               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24471               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24472 $as_echo "$BOOT_JDK_VERSION" >&6; }
24473             fi # end check jdk version
24474           fi # end check rt.jar
24475         fi # end check javac
24476       fi # end check java
24477     fi # end check boot jdk found
24478   fi
24479 
24480     done
24481   fi
24482 
24483 
24484     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24485     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24486       # Do we have a bin/java?
24487       if test ! -x "$BOOT_JDK/bin/java"; then
24488         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24489 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24490         BOOT_JDK_FOUND=no
24491       else
24492         # Do we have a bin/javac?
24493         if test ! -x "$BOOT_JDK/bin/javac"; then
24494           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24495 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24496           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24497 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24498           BOOT_JDK_FOUND=no
24499         else
24500           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24501           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24502             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24503 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24504             BOOT_JDK_FOUND=no
24505           else
24506             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24507             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24508 
24509             # Extra M4 quote needed to protect [] in grep expression.
24510             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24511             if test "x$FOUND_CORRECT_VERSION" = x; then
24512               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24513 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24514               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24515 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24516               BOOT_JDK_FOUND=no
24517             else
24518               # We're done! :-)
24519               BOOT_JDK_FOUND=yes
24520 
24521   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24522 
24523   # Input might be given as Windows format, start by converting to
24524   # unix format.
24525   path="$BOOT_JDK"
24526   new_path=`$CYGPATH -u "$path"`
24527 
24528   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24529   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24530   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24531   # "foo.exe" is OK but "foo" is an error.
24532   #
24533   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24534   # It is also a way to make sure we got the proper file name for the real test later on.
24535   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24536   if test "x$test_shortpath" = x; then
24537     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24538 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24539     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24540   fi
24541 
24542   # Call helper function which possibly converts this using DOS-style short mode.
24543   # If so, the updated path is stored in $new_path.
24544 
24545   input_path="$new_path"
24546   # Check if we need to convert this using DOS-style short mode. If the path
24547   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24548   # take no chances and rewrite it.
24549   # Note: m4 eats our [], so we need to use [ and ] instead.
24550   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24551   if test "x$has_forbidden_chars" != x; then
24552     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24553     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24554     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24555     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24556       # Going to short mode and back again did indeed matter. Since short mode is
24557       # case insensitive, let's make it lowercase to improve readability.
24558       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24559       # Now convert it back to Unix-stile (cygpath)
24560       input_path=`$CYGPATH -u "$shortmode_path"`
24561       new_path="$input_path"
24562     fi
24563   fi
24564 
24565   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24566   if test "x$test_cygdrive_prefix" = x; then
24567     # As a simple fix, exclude /usr/bin since it's not a real path.
24568     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24569       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24570       # a path prefixed by /cygdrive for fixpath to work.
24571       new_path="$CYGWIN_ROOT_PATH$input_path"
24572     fi
24573   fi
24574 
24575 
24576   if test "x$path" != "x$new_path"; then
24577     BOOT_JDK="$new_path"
24578     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24579 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24580   fi
24581 
24582   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24583 
24584   path="$BOOT_JDK"
24585   has_colon=`$ECHO $path | $GREP ^.:`
24586   new_path="$path"
24587   if test "x$has_colon" = x; then
24588     # Not in mixed or Windows style, start by that.
24589     new_path=`cmd //c echo $path`
24590   fi
24591 
24592 
24593   input_path="$new_path"
24594   # Check if we need to convert this using DOS-style short mode. If the path
24595   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24596   # take no chances and rewrite it.
24597   # Note: m4 eats our [], so we need to use [ and ] instead.
24598   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24599   if test "x$has_forbidden_chars" != x; then
24600     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24601     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24602   fi
24603 
24604 
24605   windows_path="$new_path"
24606   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24607     unix_path=`$CYGPATH -u "$windows_path"`
24608     new_path="$unix_path"
24609   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24610     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24611     new_path="$unix_path"
24612   fi
24613 
24614   if test "x$path" != "x$new_path"; then
24615     BOOT_JDK="$new_path"
24616     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24617 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24618   fi
24619 
24620   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24621   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24622 
24623   else
24624     # We're on a posix platform. Hooray! :)
24625     path="$BOOT_JDK"
24626     has_space=`$ECHO "$path" | $GREP " "`
24627     if test "x$has_space" != x; then
24628       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24629 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24630       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24631     fi
24632 
24633     # Use eval to expand a potential ~
24634     eval path="$path"
24635     if test ! -f "$path" && test ! -d "$path"; then
24636       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24637     fi
24638 
24639     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24640   fi
24641 
24642               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24643 $as_echo_n "checking for Boot JDK... " >&6; }
24644               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24645 $as_echo "$BOOT_JDK" >&6; }
24646               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24647 $as_echo_n "checking Boot JDK version... " >&6; }
24648               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24649               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24650 $as_echo "$BOOT_JDK_VERSION" >&6; }
24651             fi # end check jdk version
24652           fi # end check rt.jar
24653         fi # end check javac
24654       fi # end check java
24655     fi # end check boot jdk found
24656   fi
24657 
24658   fi
24659 
24660 
24661     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24662     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24663       # Do we have a bin/java?
24664       if test ! -x "$BOOT_JDK/bin/java"; then
24665         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24666 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24667         BOOT_JDK_FOUND=no
24668       else
24669         # Do we have a bin/javac?
24670         if test ! -x "$BOOT_JDK/bin/javac"; then
24671           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24672 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24673           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24674 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24675           BOOT_JDK_FOUND=no
24676         else
24677           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24678           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24679             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24680 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24681             BOOT_JDK_FOUND=no
24682           else
24683             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24684             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24685 
24686             # Extra M4 quote needed to protect [] in grep expression.
24687             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24688             if test "x$FOUND_CORRECT_VERSION" = x; then
24689               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24690 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24691               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24692 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24693               BOOT_JDK_FOUND=no
24694             else
24695               # We're done! :-)
24696               BOOT_JDK_FOUND=yes
24697 
24698   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24699 
24700   # Input might be given as Windows format, start by converting to
24701   # unix format.
24702   path="$BOOT_JDK"
24703   new_path=`$CYGPATH -u "$path"`
24704 
24705   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24706   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24707   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24708   # "foo.exe" is OK but "foo" is an error.
24709   #
24710   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24711   # It is also a way to make sure we got the proper file name for the real test later on.
24712   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24713   if test "x$test_shortpath" = x; then
24714     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24715 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24716     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24717   fi
24718 
24719   # Call helper function which possibly converts this using DOS-style short mode.
24720   # If so, the updated path is stored in $new_path.
24721 
24722   input_path="$new_path"
24723   # Check if we need to convert this using DOS-style short mode. If the path
24724   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24725   # take no chances and rewrite it.
24726   # Note: m4 eats our [], so we need to use [ and ] instead.
24727   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24728   if test "x$has_forbidden_chars" != x; then
24729     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24730     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24731     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24732     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24733       # Going to short mode and back again did indeed matter. Since short mode is
24734       # case insensitive, let's make it lowercase to improve readability.
24735       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24736       # Now convert it back to Unix-stile (cygpath)
24737       input_path=`$CYGPATH -u "$shortmode_path"`
24738       new_path="$input_path"
24739     fi
24740   fi
24741 
24742   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24743   if test "x$test_cygdrive_prefix" = x; then
24744     # As a simple fix, exclude /usr/bin since it's not a real path.
24745     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24746       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24747       # a path prefixed by /cygdrive for fixpath to work.
24748       new_path="$CYGWIN_ROOT_PATH$input_path"
24749     fi
24750   fi
24751 
24752 
24753   if test "x$path" != "x$new_path"; then
24754     BOOT_JDK="$new_path"
24755     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24756 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24757   fi
24758 
24759   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24760 
24761   path="$BOOT_JDK"
24762   has_colon=`$ECHO $path | $GREP ^.:`
24763   new_path="$path"
24764   if test "x$has_colon" = x; then
24765     # Not in mixed or Windows style, start by that.
24766     new_path=`cmd //c echo $path`
24767   fi
24768 
24769 
24770   input_path="$new_path"
24771   # Check if we need to convert this using DOS-style short mode. If the path
24772   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24773   # take no chances and rewrite it.
24774   # Note: m4 eats our [], so we need to use [ and ] instead.
24775   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24776   if test "x$has_forbidden_chars" != x; then
24777     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24778     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24779   fi
24780 
24781 
24782   windows_path="$new_path"
24783   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24784     unix_path=`$CYGPATH -u "$windows_path"`
24785     new_path="$unix_path"
24786   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24787     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24788     new_path="$unix_path"
24789   fi
24790 
24791   if test "x$path" != "x$new_path"; then
24792     BOOT_JDK="$new_path"
24793     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24794 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24795   fi
24796 
24797   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24798   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24799 
24800   else
24801     # We're on a posix platform. Hooray! :)
24802     path="$BOOT_JDK"
24803     has_space=`$ECHO "$path" | $GREP " "`
24804     if test "x$has_space" != x; then
24805       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24806 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24807       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24808     fi
24809 
24810     # Use eval to expand a potential ~
24811     eval path="$path"
24812     if test ! -f "$path" && test ! -d "$path"; then
24813       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24814     fi
24815 
24816     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24817   fi
24818 
24819               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24820 $as_echo_n "checking for Boot JDK... " >&6; }
24821               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24822 $as_echo "$BOOT_JDK" >&6; }
24823               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24824 $as_echo_n "checking Boot JDK version... " >&6; }
24825               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24826               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24827 $as_echo "$BOOT_JDK_VERSION" >&6; }
24828             fi # end check jdk version
24829           fi # end check rt.jar
24830         fi # end check javac
24831       fi # end check java
24832     fi # end check boot jdk found
24833   fi
24834 
24835 
24836   # If we haven't found anything yet, we've truly lost. Give up.
24837   if test "x$BOOT_JDK_FOUND" = xno; then
24838 
24839   # Print a helpful message on how to acquire the necessary build dependency.
24840   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24841   MISSING_DEPENDENCY=openjdk
24842 
24843   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24844     cygwin_help $MISSING_DEPENDENCY
24845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24846     msys_help $MISSING_DEPENDENCY
24847   else
24848     PKGHANDLER_COMMAND=
24849 
24850     case $PKGHANDLER in
24851       apt-get)
24852         apt_help     $MISSING_DEPENDENCY ;;
24853       yum)
24854         yum_help     $MISSING_DEPENDENCY ;;
24855       port)
24856         port_help    $MISSING_DEPENDENCY ;;
24857       pkgutil)
24858         pkgutil_help $MISSING_DEPENDENCY ;;
24859       pkgadd)
24860         pkgadd_help  $MISSING_DEPENDENCY ;;
24861     esac
24862 
24863     if test "x$PKGHANDLER_COMMAND" != x; then
24864       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24865     fi
24866   fi
24867 
24868     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24869 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24870     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24871 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24872     as_fn_error $? "Cannot continue" "$LINENO" 5
24873   fi
24874 
24875   # Setup proper paths for what we found
24876   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24877   if test ! -f "$BOOT_RTJAR"; then
24878     # On MacOSX it is called classes.jar
24879     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24880     if test -f "$BOOT_RTJAR"; then
24881       # Remove the ..
24882       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24883     fi
24884   fi
24885   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24886   BOOT_JDK="$BOOT_JDK"
24887 
24888 
24889 
24890 
24891   # Setup tools from the Boot JDK.
24892 
24893   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
24894 
24895   # Publish this variable in the help.
24896 
24897 
24898   if test "x$JAVA" = x; then
24899     # The variable is not set by user, try to locate tool using the code snippet
24900 
24901       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24902 $as_echo_n "checking for java in Boot JDK... " >&6; }
24903       JAVA=$BOOT_JDK/bin/java
24904       if test ! -x $JAVA; then
24905         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24906 $as_echo "not found" >&6; }
24907         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24908 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24909         as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24910       fi
24911       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24912 $as_echo "ok" >&6; }
24913 
24914 
24915   else
24916     # The variable is set, but is it from the command line or the environment?
24917 
24918     # Try to remove the string !JAVA! from our list.
24919     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/}
24920     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
24921       # If it failed, the variable was not from the command line. Ignore it,
24922       # but warn the user (except for BASH, which is always set by the calling BASH).
24923       if test "xJAVA" != xBASH; then
24924         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5
24925 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;}
24926       fi
24927       # Try to locate tool using the code snippet
24928 
24929       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24930 $as_echo_n "checking for java in Boot JDK... " >&6; }
24931       JAVA=$BOOT_JDK/bin/java
24932       if test ! -x $JAVA; then
24933         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24934 $as_echo "not found" >&6; }
24935         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24936 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24937         as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24938       fi
24939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24940 $as_echo "ok" >&6; }
24941 
24942 
24943     else
24944       # If it succeeded, then it was overridden by the user. We will use it
24945       # for the tool.
24946 
24947       # First remove it from the list of overridden variables, so we can test
24948       # for unknown variables in the end.
24949       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
24950 
24951       # Check if the provided tool contains a complete path.
24952       tool_specified="$JAVA"
24953       tool_basename="${tool_specified##*/}"
24954       if test "x$tool_basename" = "x$tool_specified"; then
24955         # A command without a complete path is provided, search $PATH.
24956         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5
24957 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;}
24958         # Extract the first word of "$tool_basename", so it can be a program name with args.
24959 set dummy $tool_basename; ac_word=$2
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24961 $as_echo_n "checking for $ac_word... " >&6; }
24962 if ${ac_cv_path_JAVA+:} false; then :
24963   $as_echo_n "(cached) " >&6
24964 else
24965   case $JAVA in
24966   [\\/]* | ?:[\\/]*)
24967   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
24968   ;;
24969   *)
24970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24971 for as_dir in $PATH
24972 do
24973   IFS=$as_save_IFS
24974   test -z "$as_dir" && as_dir=.
24975     for ac_exec_ext in '' $ac_executable_extensions; do
24976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24977     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
24978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24979     break 2
24980   fi
24981 done
24982   done
24983 IFS=$as_save_IFS
24984 
24985   ;;
24986 esac
24987 fi
24988 JAVA=$ac_cv_path_JAVA
24989 if test -n "$JAVA"; then
24990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
24991 $as_echo "$JAVA" >&6; }
24992 else
24993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24994 $as_echo "no" >&6; }
24995 fi
24996 
24997 
24998         if test "x$JAVA" = x; then
24999           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25000         fi
25001       else
25002         # Otherwise we believe it is a complete path. Use it as it is.
25003         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5
25004 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;}
25005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5
25006 $as_echo_n "checking for JAVA... " >&6; }
25007         if test ! -x "$tool_specified"; then
25008           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25009 $as_echo "not found" >&6; }
25010           as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5
25011         fi
25012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25013 $as_echo "$tool_specified" >&6; }
25014       fi
25015     fi
25016   fi
25017 
25018 
25019 
25020   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25021 
25022   # Publish this variable in the help.
25023 
25024 
25025   if test "x$JAVAC" = x; then
25026     # The variable is not set by user, try to locate tool using the code snippet
25027 
25028       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
25029 $as_echo_n "checking for javac in Boot JDK... " >&6; }
25030       JAVAC=$BOOT_JDK/bin/javac
25031       if test ! -x $JAVAC; then
25032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25033 $as_echo "not found" >&6; }
25034         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25035 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25036         as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
25037       fi
25038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25039 $as_echo "ok" >&6; }
25040 
25041 
25042   else
25043     # The variable is set, but is it from the command line or the environment?
25044 
25045     # Try to remove the string !JAVAC! from our list.
25046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/}
25047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25048       # If it failed, the variable was not from the command line. Ignore it,
25049       # but warn the user (except for BASH, which is always set by the calling BASH).
25050       if test "xJAVAC" != xBASH; then
25051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5
25052 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;}
25053       fi
25054       # Try to locate tool using the code snippet
25055 
25056       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
25057 $as_echo_n "checking for javac in Boot JDK... " >&6; }
25058       JAVAC=$BOOT_JDK/bin/javac
25059       if test ! -x $JAVAC; then
25060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25061 $as_echo "not found" >&6; }
25062         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25063 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25064         as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
25065       fi
25066       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25067 $as_echo "ok" >&6; }
25068 
25069 
25070     else
25071       # If it succeeded, then it was overridden by the user. We will use it
25072       # for the tool.
25073 
25074       # First remove it from the list of overridden variables, so we can test
25075       # for unknown variables in the end.
25076       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25077 
25078       # Check if the provided tool contains a complete path.
25079       tool_specified="$JAVAC"
25080       tool_basename="${tool_specified##*/}"
25081       if test "x$tool_basename" = "x$tool_specified"; then
25082         # A command without a complete path is provided, search $PATH.
25083         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5
25084 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;}
25085         # Extract the first word of "$tool_basename", so it can be a program name with args.
25086 set dummy $tool_basename; ac_word=$2
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25088 $as_echo_n "checking for $ac_word... " >&6; }
25089 if ${ac_cv_path_JAVAC+:} false; then :
25090   $as_echo_n "(cached) " >&6
25091 else
25092   case $JAVAC in
25093   [\\/]* | ?:[\\/]*)
25094   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25095   ;;
25096   *)
25097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25098 for as_dir in $PATH
25099 do
25100   IFS=$as_save_IFS
25101   test -z "$as_dir" && as_dir=.
25102     for ac_exec_ext in '' $ac_executable_extensions; do
25103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25104     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25106     break 2
25107   fi
25108 done
25109   done
25110 IFS=$as_save_IFS
25111 
25112   ;;
25113 esac
25114 fi
25115 JAVAC=$ac_cv_path_JAVAC
25116 if test -n "$JAVAC"; then
25117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25118 $as_echo "$JAVAC" >&6; }
25119 else
25120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25121 $as_echo "no" >&6; }
25122 fi
25123 
25124 
25125         if test "x$JAVAC" = x; then
25126           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25127         fi
25128       else
25129         # Otherwise we believe it is a complete path. Use it as it is.
25130         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5
25131 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;}
25132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5
25133 $as_echo_n "checking for JAVAC... " >&6; }
25134         if test ! -x "$tool_specified"; then
25135           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25136 $as_echo "not found" >&6; }
25137           as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5
25138         fi
25139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25140 $as_echo "$tool_specified" >&6; }
25141       fi
25142     fi
25143   fi
25144 
25145 
25146 
25147   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25148 
25149   # Publish this variable in the help.
25150 
25151 
25152   if test "x$JAVAH" = x; then
25153     # The variable is not set by user, try to locate tool using the code snippet
25154 
25155       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
25156 $as_echo_n "checking for javah in Boot JDK... " >&6; }
25157       JAVAH=$BOOT_JDK/bin/javah
25158       if test ! -x $JAVAH; then
25159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25160 $as_echo "not found" >&6; }
25161         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25162 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25163         as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
25164       fi
25165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25166 $as_echo "ok" >&6; }
25167 
25168 
25169   else
25170     # The variable is set, but is it from the command line or the environment?
25171 
25172     # Try to remove the string !JAVAH! from our list.
25173     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/}
25174     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25175       # If it failed, the variable was not from the command line. Ignore it,
25176       # but warn the user (except for BASH, which is always set by the calling BASH).
25177       if test "xJAVAH" != xBASH; then
25178         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5
25179 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;}
25180       fi
25181       # Try to locate tool using the code snippet
25182 
25183       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
25184 $as_echo_n "checking for javah in Boot JDK... " >&6; }
25185       JAVAH=$BOOT_JDK/bin/javah
25186       if test ! -x $JAVAH; then
25187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25188 $as_echo "not found" >&6; }
25189         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25190 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25191         as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
25192       fi
25193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25194 $as_echo "ok" >&6; }
25195 
25196 
25197     else
25198       # If it succeeded, then it was overridden by the user. We will use it
25199       # for the tool.
25200 
25201       # First remove it from the list of overridden variables, so we can test
25202       # for unknown variables in the end.
25203       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25204 
25205       # Check if the provided tool contains a complete path.
25206       tool_specified="$JAVAH"
25207       tool_basename="${tool_specified##*/}"
25208       if test "x$tool_basename" = "x$tool_specified"; then
25209         # A command without a complete path is provided, search $PATH.
25210         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5
25211 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;}
25212         # Extract the first word of "$tool_basename", so it can be a program name with args.
25213 set dummy $tool_basename; ac_word=$2
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25215 $as_echo_n "checking for $ac_word... " >&6; }
25216 if ${ac_cv_path_JAVAH+:} false; then :
25217   $as_echo_n "(cached) " >&6
25218 else
25219   case $JAVAH in
25220   [\\/]* | ?:[\\/]*)
25221   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
25222   ;;
25223   *)
25224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25225 for as_dir in $PATH
25226 do
25227   IFS=$as_save_IFS
25228   test -z "$as_dir" && as_dir=.
25229     for ac_exec_ext in '' $ac_executable_extensions; do
25230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25231     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25233     break 2
25234   fi
25235 done
25236   done
25237 IFS=$as_save_IFS
25238 
25239   ;;
25240 esac
25241 fi
25242 JAVAH=$ac_cv_path_JAVAH
25243 if test -n "$JAVAH"; then
25244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
25245 $as_echo "$JAVAH" >&6; }
25246 else
25247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25248 $as_echo "no" >&6; }
25249 fi
25250 
25251 
25252         if test "x$JAVAH" = x; then
25253           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25254         fi
25255       else
25256         # Otherwise we believe it is a complete path. Use it as it is.
25257         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5
25258 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;}
25259         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5
25260 $as_echo_n "checking for JAVAH... " >&6; }
25261         if test ! -x "$tool_specified"; then
25262           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25263 $as_echo "not found" >&6; }
25264           as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5
25265         fi
25266         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25267 $as_echo "$tool_specified" >&6; }
25268       fi
25269     fi
25270   fi
25271 
25272 
25273 
25274   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25275 
25276   # Publish this variable in the help.
25277 
25278 
25279   if test "x$JAR" = x; then
25280     # The variable is not set by user, try to locate tool using the code snippet
25281 
25282       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
25283 $as_echo_n "checking for jar in Boot JDK... " >&6; }
25284       JAR=$BOOT_JDK/bin/jar
25285       if test ! -x $JAR; then
25286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25287 $as_echo "not found" >&6; }
25288         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25289 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25290         as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
25291       fi
25292       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25293 $as_echo "ok" >&6; }
25294 
25295 
25296   else
25297     # The variable is set, but is it from the command line or the environment?
25298 
25299     # Try to remove the string !JAR! from our list.
25300     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/}
25301     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25302       # If it failed, the variable was not from the command line. Ignore it,
25303       # but warn the user (except for BASH, which is always set by the calling BASH).
25304       if test "xJAR" != xBASH; then
25305         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5
25306 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;}
25307       fi
25308       # Try to locate tool using the code snippet
25309 
25310       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
25311 $as_echo_n "checking for jar in Boot JDK... " >&6; }
25312       JAR=$BOOT_JDK/bin/jar
25313       if test ! -x $JAR; then
25314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25315 $as_echo "not found" >&6; }
25316         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25317 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25318         as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
25319       fi
25320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25321 $as_echo "ok" >&6; }
25322 
25323 
25324     else
25325       # If it succeeded, then it was overridden by the user. We will use it
25326       # for the tool.
25327 
25328       # First remove it from the list of overridden variables, so we can test
25329       # for unknown variables in the end.
25330       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25331 
25332       # Check if the provided tool contains a complete path.
25333       tool_specified="$JAR"
25334       tool_basename="${tool_specified##*/}"
25335       if test "x$tool_basename" = "x$tool_specified"; then
25336         # A command without a complete path is provided, search $PATH.
25337         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5
25338 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;}
25339         # Extract the first word of "$tool_basename", so it can be a program name with args.
25340 set dummy $tool_basename; ac_word=$2
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25342 $as_echo_n "checking for $ac_word... " >&6; }
25343 if ${ac_cv_path_JAR+:} false; then :
25344   $as_echo_n "(cached) " >&6
25345 else
25346   case $JAR in
25347   [\\/]* | ?:[\\/]*)
25348   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25349   ;;
25350   *)
25351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25352 for as_dir in $PATH
25353 do
25354   IFS=$as_save_IFS
25355   test -z "$as_dir" && as_dir=.
25356     for ac_exec_ext in '' $ac_executable_extensions; do
25357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25358     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25360     break 2
25361   fi
25362 done
25363   done
25364 IFS=$as_save_IFS
25365 
25366   ;;
25367 esac
25368 fi
25369 JAR=$ac_cv_path_JAR
25370 if test -n "$JAR"; then
25371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
25372 $as_echo "$JAR" >&6; }
25373 else
25374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25375 $as_echo "no" >&6; }
25376 fi
25377 
25378 
25379         if test "x$JAR" = x; then
25380           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25381         fi
25382       else
25383         # Otherwise we believe it is a complete path. Use it as it is.
25384         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5
25385 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;}
25386         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5
25387 $as_echo_n "checking for JAR... " >&6; }
25388         if test ! -x "$tool_specified"; then
25389           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25390 $as_echo "not found" >&6; }
25391           as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5
25392         fi
25393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25394 $as_echo "$tool_specified" >&6; }
25395       fi
25396     fi
25397   fi
25398 
25399 
25400 
25401   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25402 
25403   # Publish this variable in the help.
25404 
25405 
25406   if test "x$NATIVE2ASCII" = x; then
25407     # The variable is not set by user, try to locate tool using the code snippet
25408 
25409       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
25410 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
25411       NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
25412       if test ! -x $NATIVE2ASCII; then
25413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25414 $as_echo "not found" >&6; }
25415         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25416 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25417         as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
25418       fi
25419       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25420 $as_echo "ok" >&6; }
25421 
25422 
25423   else
25424     # The variable is set, but is it from the command line or the environment?
25425 
25426     # Try to remove the string !NATIVE2ASCII! from our list.
25427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/}
25428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25429       # If it failed, the variable was not from the command line. Ignore it,
25430       # but warn the user (except for BASH, which is always set by the calling BASH).
25431       if test "xNATIVE2ASCII" != xBASH; then
25432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5
25433 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;}
25434       fi
25435       # Try to locate tool using the code snippet
25436 
25437       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
25438 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
25439       NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
25440       if test ! -x $NATIVE2ASCII; then
25441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25442 $as_echo "not found" >&6; }
25443         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25444 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25445         as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
25446       fi
25447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25448 $as_echo "ok" >&6; }
25449 
25450 
25451     else
25452       # If it succeeded, then it was overridden by the user. We will use it
25453       # for the tool.
25454 
25455       # First remove it from the list of overridden variables, so we can test
25456       # for unknown variables in the end.
25457       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25458 
25459       # Check if the provided tool contains a complete path.
25460       tool_specified="$NATIVE2ASCII"
25461       tool_basename="${tool_specified##*/}"
25462       if test "x$tool_basename" = "x$tool_specified"; then
25463         # A command without a complete path is provided, search $PATH.
25464         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5
25465 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;}
25466         # Extract the first word of "$tool_basename", so it can be a program name with args.
25467 set dummy $tool_basename; ac_word=$2
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25469 $as_echo_n "checking for $ac_word... " >&6; }
25470 if ${ac_cv_path_NATIVE2ASCII+:} false; then :
25471   $as_echo_n "(cached) " >&6
25472 else
25473   case $NATIVE2ASCII in
25474   [\\/]* | ?:[\\/]*)
25475   ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path.
25476   ;;
25477   *)
25478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25479 for as_dir in $PATH
25480 do
25481   IFS=$as_save_IFS
25482   test -z "$as_dir" && as_dir=.
25483     for ac_exec_ext in '' $ac_executable_extensions; do
25484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25485     ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext"
25486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25487     break 2
25488   fi
25489 done
25490   done
25491 IFS=$as_save_IFS
25492 
25493   ;;
25494 esac
25495 fi
25496 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII
25497 if test -n "$NATIVE2ASCII"; then
25498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5
25499 $as_echo "$NATIVE2ASCII" >&6; }
25500 else
25501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25502 $as_echo "no" >&6; }
25503 fi
25504 
25505 
25506         if test "x$NATIVE2ASCII" = x; then
25507           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25508         fi
25509       else
25510         # Otherwise we believe it is a complete path. Use it as it is.
25511         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5
25512 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;}
25513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5
25514 $as_echo_n "checking for NATIVE2ASCII... " >&6; }
25515         if test ! -x "$tool_specified"; then
25516           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25517 $as_echo "not found" >&6; }
25518           as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5
25519         fi
25520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25521 $as_echo "$tool_specified" >&6; }
25522       fi
25523     fi
25524   fi
25525 
25526 
25527 
25528   # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25529 
25530   # Publish this variable in the help.
25531 
25532 
25533   if test "x$JARSIGNER" = x; then
25534     # The variable is not set by user, try to locate tool using the code snippet
25535 
25536       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5
25537 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; }
25538       JARSIGNER=$BOOT_JDK/bin/jarsigner
25539       if test ! -x $JARSIGNER; then
25540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25541 $as_echo "not found" >&6; }
25542         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25543 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25544         as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5
25545       fi
25546       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25547 $as_echo "ok" >&6; }
25548 
25549 
25550   else
25551     # The variable is set, but is it from the command line or the environment?
25552 
25553     # Try to remove the string !JARSIGNER! from our list.
25554     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/}
25555     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25556       # If it failed, the variable was not from the command line. Ignore it,
25557       # but warn the user (except for BASH, which is always set by the calling BASH).
25558       if test "xJARSIGNER" != xBASH; then
25559         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5
25560 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;}
25561       fi
25562       # Try to locate tool using the code snippet
25563 
25564       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5
25565 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; }
25566       JARSIGNER=$BOOT_JDK/bin/jarsigner
25567       if test ! -x $JARSIGNER; then
25568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25569 $as_echo "not found" >&6; }
25570         { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25571 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25572         as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5
25573       fi
25574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25575 $as_echo "ok" >&6; }
25576 
25577 
25578     else
25579       # If it succeeded, then it was overridden by the user. We will use it
25580       # for the tool.
25581 
25582       # First remove it from the list of overridden variables, so we can test
25583       # for unknown variables in the end.
25584       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25585 
25586       # Check if the provided tool contains a complete path.
25587       tool_specified="$JARSIGNER"
25588       tool_basename="${tool_specified##*/}"
25589       if test "x$tool_basename" = "x$tool_specified"; then
25590         # A command without a complete path is provided, search $PATH.
25591         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5
25592 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;}
25593         # Extract the first word of "$tool_basename", so it can be a program name with args.
25594 set dummy $tool_basename; ac_word=$2
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25596 $as_echo_n "checking for $ac_word... " >&6; }
25597 if ${ac_cv_path_JARSIGNER+:} false; then :
25598   $as_echo_n "(cached) " >&6
25599 else
25600   case $JARSIGNER in
25601   [\\/]* | ?:[\\/]*)
25602   ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path.
25603   ;;
25604   *)
25605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25606 for as_dir in $PATH
25607 do
25608   IFS=$as_save_IFS
25609   test -z "$as_dir" && as_dir=.
25610     for ac_exec_ext in '' $ac_executable_extensions; do
25611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25612     ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext"
25613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25614     break 2
25615   fi
25616 done
25617   done
25618 IFS=$as_save_IFS
25619 
25620   ;;
25621 esac
25622 fi
25623 JARSIGNER=$ac_cv_path_JARSIGNER
25624 if test -n "$JARSIGNER"; then
25625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5
25626 $as_echo "$JARSIGNER" >&6; }
25627 else
25628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25629 $as_echo "no" >&6; }
25630 fi
25631 
25632 
25633         if test "x$JARSIGNER" = x; then
25634           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25635         fi
25636       else
25637         # Otherwise we believe it is a complete path. Use it as it is.
25638         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5
25639 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;}
25640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5
25641 $as_echo_n "checking for JARSIGNER... " >&6; }
25642         if test ! -x "$tool_specified"; then
25643           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25644 $as_echo "not found" >&6; }
25645           as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5
25646         fi
25647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25648 $as_echo "$tool_specified" >&6; }
25649       fi
25650     fi
25651   fi
25652 
25653 
25654 
25655   # Finally, set some other options...
25656 
25657   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
25658   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
25659 
25660 
25661 
25662 
25663   ##############################################################################
25664   #
25665   # Specify options for anything that is run with the Boot JDK.
25666   #
25667 
25668 # Check whether --with-boot-jdk-jvmargs was given.
25669 if test "${with_boot_jdk_jvmargs+set}" = set; then :
25670   withval=$with_boot_jdk_jvmargs;
25671 fi
25672 
25673 
25674   if test "x$with_boot_jdk_jvmargs" = x; then
25675     # Not all JVM:s accept the same arguments on the command line.
25676     # OpenJDK specific increase in thread stack for JDK build,
25677     # well more specifically, when running javac.
25678     if test "x$BUILD_NUM_BITS" = x32; then
25679       STACK_SIZE=768
25680     else
25681       # Running Javac on a JVM on a 64-bit machine, the stack takes more space
25682       # since 64-bit pointers are pushed on the stach. Apparently, we need
25683       # to increase the stack space when javacing the JDK....
25684       STACK_SIZE=1536
25685     fi
25686 
25687     # Minimum amount of heap memory.
25688 
25689   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
25690   $ECHO "Command: $JAVA -Xms64M -version" >&5
25691   OUTPUT=`$JAVA -Xms64M -version 2>&1`
25692   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25693   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25694   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25695     boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M"
25696     JVM_ARG_OK=true
25697   else
25698     $ECHO "Arg failed:" >&5
25699     $ECHO "$OUTPUT" >&5
25700     JVM_ARG_OK=false
25701   fi
25702 
25703     if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_CPU" = "xppc64" ; then
25704       # Why does macosx need more heap? Its the huge JDK batch.
25705 
25706   $ECHO "Check if jvm arg is ok: -Xmx1600M" >&5
25707   $ECHO "Command: $JAVA -Xmx1600M -version" >&5
25708   OUTPUT=`$JAVA -Xmx1600M -version 2>&1`
25709   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25710   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25711   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25712     boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M"
25713     JVM_ARG_OK=true
25714   else
25715     $ECHO "Arg failed:" >&5
25716     $ECHO "$OUTPUT" >&5
25717     JVM_ARG_OK=false
25718   fi
25719 
25720     else
25721 
25722   $ECHO "Check if jvm arg is ok: -Xmx1100M" >&5
25723   $ECHO "Command: $JAVA -Xmx1100M -version" >&5
25724   OUTPUT=`$JAVA -Xmx1100M -version 2>&1`
25725   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25726   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25727   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25728     boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M"
25729     JVM_ARG_OK=true
25730   else
25731     $ECHO "Arg failed:" >&5
25732     $ECHO "$OUTPUT" >&5
25733     JVM_ARG_OK=false
25734   fi
25735 
25736     fi
25737     # When is adding -client something that speeds up the JVM?
25738     # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA])
25739 
25740   $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5
25741   $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5
25742   OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1`
25743   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25744   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25745   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25746     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE"
25747     JVM_ARG_OK=true
25748   else
25749     $ECHO "Arg failed:" >&5
25750     $ECHO "$OUTPUT" >&5
25751     JVM_ARG_OK=false
25752   fi
25753 
25754     # Disable special log output when a debug build is used as Boot JDK...
25755 
25756   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
25757   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
25758   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
25759   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
25760   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
25761   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
25762     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
25763     JVM_ARG_OK=true
25764   else
25765     $ECHO "Arg failed:" >&5
25766     $ECHO "$OUTPUT" >&5
25767     JVM_ARG_OK=false
25768   fi
25769 
25770   fi
25771 
25772   BOOT_JDK_JVMARGS=$boot_jdk_jvmargs
25773 
25774 
25775 
25776 ###############################################################################
25777 #
25778 # Configure the sources to use. We can add or override individual directories.
25779 #
25780 ###############################################################################
25781 
25782 
25783   # Where are the sources. Any of these can be overridden
25784   # using --with-override-corba and the likes.
25785   LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
25786   CORBA_TOPDIR="$SRC_ROOT/corba"
25787   JAXP_TOPDIR="$SRC_ROOT/jaxp"
25788   JAXWS_TOPDIR="$SRC_ROOT/jaxws"
25789   HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
25790   NASHORN_TOPDIR="$SRC_ROOT/nashorn"
25791   JDK_TOPDIR="$SRC_ROOT/jdk"
25792 
25793 
25794 
25795 
25796 
25797 
25798 
25799 
25800 
25801 
25802   ###############################################################################
25803   #
25804   # Pickup additional source for a component from outside of the source root
25805   # or override source for a component.
25806   #
25807 
25808 # Check whether --with-add-source-root was given.
25809 if test "${with_add_source_root+set}" = set; then :
25810   withval=$with_add_source_root;
25811 fi
25812 
25813 
25814 
25815 # Check whether --with-override-source-root was given.
25816 if test "${with_override_source_root+set}" = set; then :
25817   withval=$with_override_source_root;
25818 fi
25819 
25820 
25821 
25822 # Check whether --with-adds-and-overrides was given.
25823 if test "${with_adds_and_overrides+set}" = set; then :
25824   withval=$with_adds_and_overrides;
25825 fi
25826 
25827 
25828   if test "x$with_adds_and_overrides" != x; then
25829     with_add_source_root="$with_adds_and_overrides/adds"
25830     with_override_source_root="$with_adds_and_overrides/overrides"
25831   fi
25832 
25833   if test "x$with_add_source_root" != x; then
25834     if ! test -d $with_add_source_root; then
25835       as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
25836     fi
25837     CURDIR="$PWD"
25838     cd "$with_add_source_root"
25839     ADD_SRC_ROOT="`pwd`"
25840     cd "$CURDIR"
25841     # Verify that the addon source root does not have any root makefiles.
25842     # If it does, then it is usually an error, prevent this.
25843     if test -f $with_add_source_root/langtools/make/Makefile; then
25844       as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5
25845     fi
25846     if test -f $with_add_source_root/corba/make/Makefile; then
25847       as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5
25848     fi
25849     if test -f $with_add_source_root/jaxp/make/Makefile; then
25850       as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5
25851     fi
25852     if test -f $with_add_source_root/jaxws/make/Makefile; then
25853       as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5
25854     fi
25855     if test -f $with_add_source_root/hotspot/make/Makefile; then
25856       as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5
25857     fi
25858     if test -f $with_add_source_root/nashorn/make/Makefile; then
25859       as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5
25860     fi
25861     if test -f $with_add_source_root/jdk/make/Makefile; then
25862       as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5
25863     fi
25864   fi
25865 
25866 
25867   if test "x$with_override_source_root" != x; then
25868     if ! test -d $with_override_source_root; then
25869       as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
25870     fi
25871     CURDIR="$PWD"
25872     cd "$with_override_source_root"
25873     OVERRIDE_SRC_ROOT="`pwd`"
25874     cd "$CURDIR"
25875     if test -f $with_override_source_root/langtools/make/Makefile; then
25876       as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5
25877     fi
25878     if test -f $with_override_source_root/corba/make/Makefile; then
25879       as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5
25880     fi
25881     if test -f $with_override_source_root/jaxp/make/Makefile; then
25882       as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5
25883     fi
25884     if test -f $with_override_source_root/jaxws/make/Makefile; then
25885       as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5
25886     fi
25887     if test -f $with_override_source_root/hotspot/make/Makefile; then
25888       as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5
25889     fi
25890     if test -f $with_override_source_root/nashorn/make/Makefile; then
25891       as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5
25892     fi
25893     if test -f $with_override_source_root/jdk/make/Makefile; then
25894       as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5
25895     fi
25896   fi
25897 
25898 
25899   ###############################################################################
25900   #
25901   # Override a repo completely, this is used for example when you have 3 small
25902   # development sandboxes of the langtools sources and want to avoid having 3 full
25903   # OpenJDK sources checked out on disk.
25904   #
25905   # Assuming that the 3 langtools sandboxes are located here:
25906   # /home/fredrik/sandbox1/langtools
25907   # /home/fredrik/sandbox2/langtools
25908   # /home/fredrik/sandbox3/langtools
25909   #
25910   # From the source root you create build subdirs manually:
25911   #     mkdir -p build1 build2 build3
25912   # in each build directory run:
25913   #     (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
25914   #     (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
25915   #     (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
25916   #
25917 
25918 
25919 # Check whether --with-override-langtools was given.
25920 if test "${with_override_langtools+set}" = set; then :
25921   withval=$with_override_langtools;
25922 fi
25923 
25924 
25925 
25926 # Check whether --with-override-corba was given.
25927 if test "${with_override_corba+set}" = set; then :
25928   withval=$with_override_corba;
25929 fi
25930 
25931 
25932 
25933 # Check whether --with-override-jaxp was given.
25934 if test "${with_override_jaxp+set}" = set; then :
25935   withval=$with_override_jaxp;
25936 fi
25937 
25938 
25939 
25940 # Check whether --with-override-jaxws was given.
25941 if test "${with_override_jaxws+set}" = set; then :
25942   withval=$with_override_jaxws;
25943 fi
25944 
25945 
25946 
25947 # Check whether --with-override-hotspot was given.
25948 if test "${with_override_hotspot+set}" = set; then :
25949   withval=$with_override_hotspot;
25950 fi
25951 
25952 
25953 
25954 # Check whether --with-override-nashorn was given.
25955 if test "${with_override_nashorn+set}" = set; then :
25956   withval=$with_override_nashorn;
25957 fi
25958 
25959 
25960 
25961 # Check whether --with-override-jdk was given.
25962 if test "${with_override_jdk+set}" = set; then :
25963   withval=$with_override_jdk;
25964 fi
25965 
25966 
25967   if test "x$with_override_langtools" != x; then
25968     CURDIR="$PWD"
25969     cd "$with_override_langtools"
25970     LANGTOOLS_TOPDIR="`pwd`"
25971     cd "$CURDIR"
25972     if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then
25973       as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
25974     fi
25975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
25976 $as_echo_n "checking if langtools should be overridden... " >&6; }
25977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
25978 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
25979   fi
25980   if test "x$with_override_corba" != x; then
25981     CURDIR="$PWD"
25982     cd "$with_override_corba"
25983     CORBA_TOPDIR="`pwd`"
25984     cd "$CURDIR"
25985     if ! test -f $CORBA_TOPDIR/make/Makefile; then
25986       as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
25987     fi
25988     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
25989 $as_echo_n "checking if corba should be overridden... " >&6; }
25990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
25991 $as_echo "yes with $CORBA_TOPDIR" >&6; }
25992   fi
25993   if test "x$with_override_jaxp" != x; then
25994     CURDIR="$PWD"
25995     cd "$with_override_jaxp"
25996     JAXP_TOPDIR="`pwd`"
25997     cd "$CURDIR"
25998     if ! test -f $JAXP_TOPDIR/make/Makefile; then
25999       as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
26000     fi
26001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
26002 $as_echo_n "checking if jaxp should be overridden... " >&6; }
26003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
26004 $as_echo "yes with $JAXP_TOPDIR" >&6; }
26005   fi
26006   if test "x$with_override_jaxws" != x; then
26007     CURDIR="$PWD"
26008     cd "$with_override_jaxws"
26009     JAXWS_TOPDIR="`pwd`"
26010     cd "$CURDIR"
26011     if ! test -f $JAXWS_TOPDIR/make/Makefile; then
26012       as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
26013     fi
26014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
26015 $as_echo_n "checking if jaxws should be overridden... " >&6; }
26016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
26017 $as_echo "yes with $JAXWS_TOPDIR" >&6; }
26018   fi
26019   if test "x$with_override_hotspot" != x; then
26020     CURDIR="$PWD"
26021     cd "$with_override_hotspot"
26022     HOTSPOT_TOPDIR="`pwd`"
26023     cd "$CURDIR"
26024     if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then
26025       as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
26026     fi
26027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
26028 $as_echo_n "checking if hotspot should be overridden... " >&6; }
26029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
26030 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
26031   fi
26032   if test "x$with_override_nashorn" != x; then
26033     CURDIR="$PWD"
26034     cd "$with_override_nashorn"
26035     NASHORN_TOPDIR="`pwd`"
26036     cd "$CURDIR"
26037     if ! test -f $NASHORN_TOPDIR/make/Makefile; then
26038       as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5
26039     fi
26040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5
26041 $as_echo_n "checking if nashorn should be overridden... " >&6; }
26042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5
26043 $as_echo "yes with $NASHORN_TOPDIR" >&6; }
26044   fi
26045   if test "x$with_override_jdk" != x; then
26046     CURDIR="$PWD"
26047     cd "$with_override_jdk"
26048     JDK_TOPDIR="`pwd`"
26049     cd "$CURDIR"
26050     if ! test -f $JDK_TOPDIR/make/Makefile; then
26051       as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
26052     fi
26053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
26054 $as_echo_n "checking if JDK should be overridden... " >&6; }
26055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
26056 $as_echo "yes with $JDK_TOPDIR" >&6; }
26057   fi
26058 
26059 
26060   BUILD_OUTPUT="$OUTPUT_ROOT"
26061 
26062 
26063   HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
26064   BUILD_HOTSPOT=true
26065 
26066 
26067 
26068 # Check whether --with-import-hotspot was given.
26069 if test "${with_import_hotspot+set}" = set; then :
26070   withval=$with_import_hotspot;
26071 fi
26072 
26073   if test "x$with_import_hotspot" != x; then
26074     CURDIR="$PWD"
26075     cd "$with_import_hotspot"
26076     HOTSPOT_DIST="`pwd`"
26077     cd "$CURDIR"
26078     if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then
26079       as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5
26080     fi
26081     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5
26082 $as_echo_n "checking if hotspot should be imported... " >&6; }
26083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5
26084 $as_echo "yes from $HOTSPOT_DIST" >&6; }
26085     BUILD_HOTSPOT=false
26086   fi
26087 
26088   JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
26089 
26090 
26091 ###############################################################################
26092 #
26093 # Setup the toolchain (compilers etc), i.e. the tools that need to be
26094 # cross-compilation aware.
26095 #
26096 ###############################################################################
26097 
26098 
26099   ###############################################################################
26100   #
26101   # Configure the development tool paths and potential sysroot.
26102   #
26103   ac_ext=cpp
26104 ac_cpp='$CXXCPP $CPPFLAGS'
26105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26108 
26109 
26110   # The option used to specify the target .o,.a or .so file.
26111   # When compiling, how to specify the to be created object file.
26112   CC_OUT_OPTION='-o$(SPACE)'
26113   # When linking, how to specify the to be created executable.
26114   EXE_OUT_OPTION='-o$(SPACE)'
26115   # When linking, how to specify the to be created dynamically linkable library.
26116   LD_OUT_OPTION='-o$(SPACE)'
26117   # When archiving, how to specify the to be create static archive for object files.
26118   AR_OUT_OPTION='rcs$(SPACE)'
26119 
26120 
26121 
26122 
26123 
26124 # Locate the actual tools
26125 
26126 
26127 # Check whether --with-jtreg was given.
26128 if test "${with_jtreg+set}" = set; then :
26129   withval=$with_jtreg;
26130 else
26131   with_jtreg=no
26132 fi
26133 
26134 
26135   if test "x$with_jtreg" = xno; then
26136     # jtreg disabled
26137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
26138 $as_echo_n "checking for jtreg... " >&6; }
26139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26140 $as_echo "no" >&6; }
26141   else
26142     if test "x$with_jtreg" != xyes; then
26143       # with path specified.
26144       JT_HOME="$with_jtreg"
26145     fi
26146 
26147     if test "x$JT_HOME" != x; then
26148       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
26149 $as_echo_n "checking for jtreg... " >&6; }
26150 
26151       # use JT_HOME enviroment var.
26152 
26153   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26154 
26155   # Input might be given as Windows format, start by converting to
26156   # unix format.
26157   path="$JT_HOME"
26158   new_path=`$CYGPATH -u "$path"`
26159 
26160   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26161   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26162   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26163   # "foo.exe" is OK but "foo" is an error.
26164   #
26165   # This test is therefore slightly more accurate than "test -f" to check for file precense.
26166   # It is also a way to make sure we got the proper file name for the real test later on.
26167   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
26168   if test "x$test_shortpath" = x; then
26169     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
26170 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
26171     as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5
26172   fi
26173 
26174   # Call helper function which possibly converts this using DOS-style short mode.
26175   # If so, the updated path is stored in $new_path.
26176 
26177   input_path="$new_path"
26178   # Check if we need to convert this using DOS-style short mode. If the path
26179   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26180   # take no chances and rewrite it.
26181   # Note: m4 eats our [], so we need to use [ and ] instead.
26182   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
26183   if test "x$has_forbidden_chars" != x; then
26184     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26185     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
26186     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
26187     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
26188       # Going to short mode and back again did indeed matter. Since short mode is
26189       # case insensitive, let's make it lowercase to improve readability.
26190       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26191       # Now convert it back to Unix-stile (cygpath)
26192       input_path=`$CYGPATH -u "$shortmode_path"`
26193       new_path="$input_path"
26194     fi
26195   fi
26196 
26197   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
26198   if test "x$test_cygdrive_prefix" = x; then
26199     # As a simple fix, exclude /usr/bin since it's not a real path.
26200     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
26201       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
26202       # a path prefixed by /cygdrive for fixpath to work.
26203       new_path="$CYGWIN_ROOT_PATH$input_path"
26204     fi
26205   fi
26206 
26207 
26208   if test "x$path" != "x$new_path"; then
26209     JT_HOME="$new_path"
26210     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
26211 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
26212   fi
26213 
26214   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26215 
26216   path="$JT_HOME"
26217   has_colon=`$ECHO $path | $GREP ^.:`
26218   new_path="$path"
26219   if test "x$has_colon" = x; then
26220     # Not in mixed or Windows style, start by that.
26221     new_path=`cmd //c echo $path`
26222   fi
26223 
26224 
26225   input_path="$new_path"
26226   # Check if we need to convert this using DOS-style short mode. If the path
26227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
26228   # take no chances and rewrite it.
26229   # Note: m4 eats our [], so we need to use [ and ] instead.
26230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
26231   if test "x$has_forbidden_chars" != x; then
26232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
26233     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
26234   fi
26235 
26236 
26237   windows_path="$new_path"
26238   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26239     unix_path=`$CYGPATH -u "$windows_path"`
26240     new_path="$unix_path"
26241   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26242     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26243     new_path="$unix_path"
26244   fi
26245 
26246   if test "x$path" != "x$new_path"; then
26247     JT_HOME="$new_path"
26248     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
26249 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
26250   fi
26251 
26252   # Save the first 10 bytes of this path to the storage, so fixpath can work.
26253   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
26254 
26255   else
26256     # We're on a posix platform. Hooray! :)
26257     path="$JT_HOME"
26258     has_space=`$ECHO "$path" | $GREP " "`
26259     if test "x$has_space" != x; then
26260       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
26261 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
26262       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
26263     fi
26264 
26265     # Use eval to expand a potential ~
26266     eval path="$path"
26267     if test ! -f "$path" && test ! -d "$path"; then
26268       as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5
26269     fi
26270 
26271     JT_HOME="`cd "$path"; $THEPWDCMD -L`"
26272   fi
26273 
26274 
26275       # jtreg win32 script works for everybody
26276       JTREGEXE="$JT_HOME/win32/bin/jtreg"
26277 
26278       if test ! -f "$JTREGEXE"; then
26279         as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
26280       fi
26281 
26282       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26283 $as_echo "$JTREGEXE" >&6; }
26284     else
26285       # try to find jtreg on path
26286 
26287 
26288 
26289   # Publish this variable in the help.
26290 
26291 
26292   if test "x$JTREGEXE" = x; then
26293     # The variable is not set by user, try to locate tool using the code snippet
26294     for ac_prog in jtreg
26295 do
26296   # Extract the first word of "$ac_prog", so it can be a program name with args.
26297 set dummy $ac_prog; ac_word=$2
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26299 $as_echo_n "checking for $ac_word... " >&6; }
26300 if ${ac_cv_path_JTREGEXE+:} false; then :
26301   $as_echo_n "(cached) " >&6
26302 else
26303   case $JTREGEXE in
26304   [\\/]* | ?:[\\/]*)
26305   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
26306   ;;
26307   *)
26308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26309 for as_dir in $PATH
26310 do
26311   IFS=$as_save_IFS
26312   test -z "$as_dir" && as_dir=.
26313     for ac_exec_ext in '' $ac_executable_extensions; do
26314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26315     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
26316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26317     break 2
26318   fi
26319 done
26320   done
26321 IFS=$as_save_IFS
26322 
26323   ;;
26324 esac
26325 fi
26326 JTREGEXE=$ac_cv_path_JTREGEXE
26327 if test -n "$JTREGEXE"; then
26328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26329 $as_echo "$JTREGEXE" >&6; }
26330 else
26331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26332 $as_echo "no" >&6; }
26333 fi
26334 
26335 
26336   test -n "$JTREGEXE" && break
26337 done
26338 
26339   else
26340     # The variable is set, but is it from the command line or the environment?
26341 
26342     # Try to remove the string !JTREGEXE! from our list.
26343     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/}
26344     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
26345       # If it failed, the variable was not from the command line. Ignore it,
26346       # but warn the user (except for BASH, which is always set by the calling BASH).
26347       if test "xJTREGEXE" != xBASH; then
26348         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5
26349 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;}
26350       fi
26351       # Try to locate tool using the code snippet
26352       for ac_prog in jtreg
26353 do
26354   # Extract the first word of "$ac_prog", so it can be a program name with args.
26355 set dummy $ac_prog; ac_word=$2
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26357 $as_echo_n "checking for $ac_word... " >&6; }
26358 if ${ac_cv_path_JTREGEXE+:} false; then :
26359   $as_echo_n "(cached) " >&6
26360 else
26361   case $JTREGEXE in
26362   [\\/]* | ?:[\\/]*)
26363   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
26364   ;;
26365   *)
26366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26367 for as_dir in $PATH
26368 do
26369   IFS=$as_save_IFS
26370   test -z "$as_dir" && as_dir=.
26371     for ac_exec_ext in '' $ac_executable_extensions; do
26372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26373     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
26374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26375     break 2
26376   fi
26377 done
26378   done
26379 IFS=$as_save_IFS
26380 
26381   ;;
26382 esac
26383 fi
26384 JTREGEXE=$ac_cv_path_JTREGEXE
26385 if test -n "$JTREGEXE"; then
26386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26387 $as_echo "$JTREGEXE" >&6; }
26388 else
26389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26390 $as_echo "no" >&6; }
26391 fi
26392 
26393 
26394   test -n "$JTREGEXE" && break
26395 done
26396 
26397     else
26398       # If it succeeded, then it was overridden by the user. We will use it
26399       # for the tool.
26400 
26401       # First remove it from the list of overridden variables, so we can test
26402       # for unknown variables in the end.
26403       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
26404 
26405       # Check if the provided tool contains a complete path.
26406       tool_specified="$JTREGEXE"
26407       tool_basename="${tool_specified##*/}"
26408       if test "x$tool_basename" = "x$tool_specified"; then
26409         # A command without a complete path is provided, search $PATH.
26410         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5
26411 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;}
26412         # Extract the first word of "$tool_basename", so it can be a program name with args.
26413 set dummy $tool_basename; ac_word=$2
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26415 $as_echo_n "checking for $ac_word... " >&6; }
26416 if ${ac_cv_path_JTREGEXE+:} false; then :
26417   $as_echo_n "(cached) " >&6
26418 else
26419   case $JTREGEXE in
26420   [\\/]* | ?:[\\/]*)
26421   ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
26422   ;;
26423   *)
26424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26425 for as_dir in $PATH
26426 do
26427   IFS=$as_save_IFS
26428   test -z "$as_dir" && as_dir=.
26429     for ac_exec_ext in '' $ac_executable_extensions; do
26430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26431     ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
26432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26433     break 2
26434   fi
26435 done
26436   done
26437 IFS=$as_save_IFS
26438 
26439   ;;
26440 esac
26441 fi
26442 JTREGEXE=$ac_cv_path_JTREGEXE
26443 if test -n "$JTREGEXE"; then
26444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
26445 $as_echo "$JTREGEXE" >&6; }
26446 else
26447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26448 $as_echo "no" >&6; }
26449 fi
26450 
26451 
26452         if test "x$JTREGEXE" = x; then
26453           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
26454         fi
26455       else
26456         # Otherwise we believe it is a complete path. Use it as it is.
26457         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5
26458 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;}
26459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5
26460 $as_echo_n "checking for JTREGEXE... " >&6; }
26461         if test ! -x "$tool_specified"; then
26462           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26463 $as_echo "not found" >&6; }
26464           as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
26465         fi
26466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
26467 $as_echo "$tool_specified" >&6; }
26468       fi
26469     fi
26470   fi
26471 
26472 
26473 
26474   if test "x$JTREGEXE" = x; then
26475     as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5
26476   fi
26477 
26478 
26479       JT_HOME="`$DIRNAME $JTREGEXE`"
26480     fi
26481   fi
26482 
26483 
26484 
26485 
26486 
26487   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
26488 
26489   # Store path to cygwin link.exe to help excluding it when searching for
26490   # VS linker. This must be done before changing the PATH when looking for VS.
26491   # Extract the first word of "link", so it can be a program name with args.
26492 set dummy link; ac_word=$2
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26494 $as_echo_n "checking for $ac_word... " >&6; }
26495 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
26496   $as_echo_n "(cached) " >&6
26497 else
26498   case $CYGWIN_LINK in
26499   [\\/]* | ?:[\\/]*)
26500   ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
26501   ;;
26502   *)
26503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26504 for as_dir in $PATH
26505 do
26506   IFS=$as_save_IFS
26507   test -z "$as_dir" && as_dir=.
26508     for ac_exec_ext in '' $ac_executable_extensions; do
26509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26510     ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
26511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26512     break 2
26513   fi
26514 done
26515   done
26516 IFS=$as_save_IFS
26517 
26518   ;;
26519 esac
26520 fi
26521 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
26522 if test -n "$CYGWIN_LINK"; then
26523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
26524 $as_echo "$CYGWIN_LINK" >&6; }
26525 else
26526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26527 $as_echo "no" >&6; }
26528 fi
26529 
26530 
26531   if test "x$CYGWIN_LINK" != x; then
26532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5
26533 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; }
26534     "$CYGWIN_LINK" --version > /dev/null
26535     if test $? -eq 0 ; then
26536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26537 $as_echo "yes" >&6; }
26538     else
26539       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26540 $as_echo "no" >&6; }
26541       # This might be the VS linker. Don't exclude it later on.
26542       CYGWIN_LINK=""
26543     fi
26544   fi
26545 
26546   # First-hand choice is to locate and run the vsvars bat file.
26547 
26548   if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26549     VCVARSFILE="vc/bin/vcvars32.bat"
26550   else
26551     VCVARSFILE="vc/bin/amd64/vcvars64.bat"
26552   fi
26553 
26554   VS_ENV_CMD=""
26555   VS_ENV_ARGS=""
26556   if test "x$with_toolsdir" != x; then
26557 
26558   if test "x$VS_ENV_CMD" = x; then
26559     VS100BASE="$with_toolsdir/../.."
26560     METHOD="--with-tools-dir"
26561 
26562   windows_path="$VS100BASE"
26563   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26564     unix_path=`$CYGPATH -u "$windows_path"`
26565     VS100BASE="$unix_path"
26566   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26567     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26568     VS100BASE="$unix_path"
26569   fi
26570 
26571     if test -d "$VS100BASE"; then
26572       if test -f "$VS100BASE/$VCVARSFILE"; then
26573         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26574 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26575         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26576       else
26577         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26578 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26579         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26580 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26581       fi
26582     fi
26583   fi
26584 
26585   fi
26586 
26587   if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then
26588     # Having specified an argument which is incorrect will produce an instant failure;
26589     # we should not go on looking
26590     { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5
26591 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;}
26592     { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5
26593 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;}
26594     as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5
26595   fi
26596 
26597   if test "x$VS100COMNTOOLS" != x; then
26598 
26599   if test "x$VS_ENV_CMD" = x; then
26600     VS100BASE="$VS100COMNTOOLS/../.."
26601     METHOD="VS100COMNTOOLS variable"
26602 
26603   windows_path="$VS100BASE"
26604   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26605     unix_path=`$CYGPATH -u "$windows_path"`
26606     VS100BASE="$unix_path"
26607   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26608     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26609     VS100BASE="$unix_path"
26610   fi
26611 
26612     if test -d "$VS100BASE"; then
26613       if test -f "$VS100BASE/$VCVARSFILE"; then
26614         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26615 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26616         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26617       else
26618         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26619 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26620         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26621 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26622       fi
26623     fi
26624   fi
26625 
26626   fi
26627   if test "x$PROGRAMFILES" != x; then
26628 
26629   if test "x$VS_ENV_CMD" = x; then
26630     VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0"
26631     METHOD="well-known name"
26632 
26633   windows_path="$VS100BASE"
26634   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26635     unix_path=`$CYGPATH -u "$windows_path"`
26636     VS100BASE="$unix_path"
26637   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26638     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26639     VS100BASE="$unix_path"
26640   fi
26641 
26642     if test -d "$VS100BASE"; then
26643       if test -f "$VS100BASE/$VCVARSFILE"; then
26644         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26645 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26646         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26647       else
26648         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26649 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26650         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26651 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26652       fi
26653     fi
26654   fi
26655 
26656   fi
26657 
26658   if test "x$VS_ENV_CMD" = x; then
26659     VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0"
26660     METHOD="well-known name"
26661 
26662   windows_path="$VS100BASE"
26663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26664     unix_path=`$CYGPATH -u "$windows_path"`
26665     VS100BASE="$unix_path"
26666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26668     VS100BASE="$unix_path"
26669   fi
26670 
26671     if test -d "$VS100BASE"; then
26672       if test -f "$VS100BASE/$VCVARSFILE"; then
26673         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26674 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26675         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26676       else
26677         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26678 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26679         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26680 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26681       fi
26682     fi
26683   fi
26684 
26685 
26686   if test "x$VS_ENV_CMD" = x; then
26687     VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0"
26688     METHOD="well-known name"
26689 
26690   windows_path="$VS100BASE"
26691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26692     unix_path=`$CYGPATH -u "$windows_path"`
26693     VS100BASE="$unix_path"
26694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26695     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26696     VS100BASE="$unix_path"
26697   fi
26698 
26699     if test -d "$VS100BASE"; then
26700       if test -f "$VS100BASE/$VCVARSFILE"; then
26701         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26702 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26703         VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26704       else
26705         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26706 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26707         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26708 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26709       fi
26710     fi
26711   fi
26712 
26713 
26714   if test "x$ProgramW6432" != x; then
26715 
26716   if test "x$VS_ENV_CMD" = x; then
26717     WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin"
26718     METHOD="well-known name"
26719 
26720   windows_path="$WIN_SDK_BASE"
26721   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26722     unix_path=`$CYGPATH -u "$windows_path"`
26723     WIN_SDK_BASE="$unix_path"
26724   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26725     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26726     WIN_SDK_BASE="$unix_path"
26727   fi
26728 
26729     if test -d "$WIN_SDK_BASE"; then
26730       # There have been cases of partial or broken SDK installations. A missing
26731       # lib dir is not going to work.
26732       if test ! -d "$WIN_SDK_BASE/../lib"; then
26733         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26734 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26735         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26736 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26737       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26738         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26739 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26740         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26741         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26742           VS_ENV_ARGS="/x86"
26743         else
26744           VS_ENV_ARGS="/x64"
26745         fi
26746       else
26747         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26748 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26749         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26750 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26751       fi
26752     fi
26753   fi
26754 
26755   fi
26756   if test "x$PROGRAMW6432" != x; then
26757 
26758   if test "x$VS_ENV_CMD" = x; then
26759     WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin"
26760     METHOD="well-known name"
26761 
26762   windows_path="$WIN_SDK_BASE"
26763   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26764     unix_path=`$CYGPATH -u "$windows_path"`
26765     WIN_SDK_BASE="$unix_path"
26766   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26767     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26768     WIN_SDK_BASE="$unix_path"
26769   fi
26770 
26771     if test -d "$WIN_SDK_BASE"; then
26772       # There have been cases of partial or broken SDK installations. A missing
26773       # lib dir is not going to work.
26774       if test ! -d "$WIN_SDK_BASE/../lib"; then
26775         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26776 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26777         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26778 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26779       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26780         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26781 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26782         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26783         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26784           VS_ENV_ARGS="/x86"
26785         else
26786           VS_ENV_ARGS="/x64"
26787         fi
26788       else
26789         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26790 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26791         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26792 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26793       fi
26794     fi
26795   fi
26796 
26797   fi
26798   if test "x$PROGRAMFILES" != x; then
26799 
26800   if test "x$VS_ENV_CMD" = x; then
26801     WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin"
26802     METHOD="well-known name"
26803 
26804   windows_path="$WIN_SDK_BASE"
26805   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26806     unix_path=`$CYGPATH -u "$windows_path"`
26807     WIN_SDK_BASE="$unix_path"
26808   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26809     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26810     WIN_SDK_BASE="$unix_path"
26811   fi
26812 
26813     if test -d "$WIN_SDK_BASE"; then
26814       # There have been cases of partial or broken SDK installations. A missing
26815       # lib dir is not going to work.
26816       if test ! -d "$WIN_SDK_BASE/../lib"; then
26817         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26818 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26819         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26820 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26821       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26822         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26823 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26824         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26825         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26826           VS_ENV_ARGS="/x86"
26827         else
26828           VS_ENV_ARGS="/x64"
26829         fi
26830       else
26831         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26832 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26833         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26834 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26835       fi
26836     fi
26837   fi
26838 
26839   fi
26840 
26841   if test "x$VS_ENV_CMD" = x; then
26842     WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin"
26843     METHOD="well-known name"
26844 
26845   windows_path="$WIN_SDK_BASE"
26846   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26847     unix_path=`$CYGPATH -u "$windows_path"`
26848     WIN_SDK_BASE="$unix_path"
26849   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26850     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26851     WIN_SDK_BASE="$unix_path"
26852   fi
26853 
26854     if test -d "$WIN_SDK_BASE"; then
26855       # There have been cases of partial or broken SDK installations. A missing
26856       # lib dir is not going to work.
26857       if test ! -d "$WIN_SDK_BASE/../lib"; then
26858         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26859 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26860         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26861 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26862       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26863         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26864 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26865         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26866         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26867           VS_ENV_ARGS="/x86"
26868         else
26869           VS_ENV_ARGS="/x64"
26870         fi
26871       else
26872         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26873 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26874         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26875 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26876       fi
26877     fi
26878   fi
26879 
26880 
26881   if test "x$VS_ENV_CMD" = x; then
26882     WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin"
26883     METHOD="well-known name"
26884 
26885   windows_path="$WIN_SDK_BASE"
26886   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26887     unix_path=`$CYGPATH -u "$windows_path"`
26888     WIN_SDK_BASE="$unix_path"
26889   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26890     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26891     WIN_SDK_BASE="$unix_path"
26892   fi
26893 
26894     if test -d "$WIN_SDK_BASE"; then
26895       # There have been cases of partial or broken SDK installations. A missing
26896       # lib dir is not going to work.
26897       if test ! -d "$WIN_SDK_BASE/../lib"; then
26898         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26899 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26900         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26901 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26902       elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26903         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26904 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26905         VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26906         if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26907           VS_ENV_ARGS="/x86"
26908         else
26909           VS_ENV_ARGS="/x64"
26910         fi
26911       else
26912         { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26913 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26914         { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26915 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26916       fi
26917     fi
26918   fi
26919 
26920 
26921   if test "x$VS_ENV_CMD" != x; then
26922     # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file.
26923 
26924   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26925 
26926   # First separate the path from the arguments. This will split at the first
26927   # space.
26928   complete="$VS_ENV_CMD"
26929   path="${complete%% *}"
26930   tmp="$complete EOL"
26931   arguments="${tmp#* }"
26932 
26933   # Input might be given as Windows format, start by converting to
26934   # unix format.
26935   new_path=`$CYGPATH -u "$path"`
26936 
26937   # Now try to locate executable using which
26938   new_path=`$WHICH "$new_path" 2> /dev/null`
26939   # bat and cmd files are not always considered executable in cygwin causing which
26940   # to not find them
26941   if test "x$new_path" = x \
26942       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26943       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26944     new_path=`$CYGPATH -u "$path"`
26945   fi
26946   if test "x$new_path" = x; then
26947     # Oops. Which didn't find the executable.
26948     # The splitting of arguments from the executable at a space might have been incorrect,
26949     # since paths with space are more likely in Windows. Give it another try with the whole
26950     # argument.
26951     path="$complete"
26952     arguments="EOL"
26953     new_path=`$CYGPATH -u "$path"`
26954     new_path=`$WHICH "$new_path" 2> /dev/null`
26955     # bat and cmd files are not always considered executable in cygwin causing which
26956     # to not find them
26957     if test "x$new_path" = x \
26958         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26959         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26960       new_path=`$CYGPATH -u "$path"`
26961     fi
26962     if test "x$new_path" = x; then
26963       # It's still not found. Now this is an unrecoverable error.
26964       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
26965 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
26966       has_space=`$ECHO "$complete" | $GREP " "`
26967       if test "x$has_space" != x; then
26968         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26969 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26970       fi
26971       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
26972     fi
26973   fi
26974 
26975   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26976   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26977   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26978   # "foo.exe" is OK but "foo" is an error.
26979   #
26980   # This test is therefore slightly more accurate than "test -f" to check for file presence.
26981   # It is also a way to make sure we got the proper file name for the real test later on.
26982   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
26983   if test "x$test_shortpath" = x; then
26984     # Short path failed, file does not exist as specified.
26985     # Try adding .exe or .cmd
26986     if test -f "${new_path}.exe"; then
26987       input_to_shortpath="${new_path}.exe"
26988     elif test -f "${new_path}.cmd"; then
26989       input_to_shortpath="${new_path}.cmd"
26990     else
26991       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5
26992 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;}
26993       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
26994 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
26995       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
26996     fi
26997   else
26998     input_to_shortpath="$new_path"
26999   fi
27000 
27001   # Call helper function which possibly converts this using DOS-style short mode.
27002   # If so, the updated path is stored in $new_path.
27003   new_path="$input_to_shortpath"
27004 
27005   input_path="$input_to_shortpath"
27006   # Check if we need to convert this using DOS-style short mode. If the path
27007   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27008   # take no chances and rewrite it.
27009   # Note: m4 eats our [], so we need to use [ and ] instead.
27010   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27011   if test "x$has_forbidden_chars" != x; then
27012     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27013     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27014     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27015     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27016       # Going to short mode and back again did indeed matter. Since short mode is
27017       # case insensitive, let's make it lowercase to improve readability.
27018       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27019       # Now convert it back to Unix-stile (cygpath)
27020       input_path=`$CYGPATH -u "$shortmode_path"`
27021       new_path="$input_path"
27022     fi
27023   fi
27024 
27025   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27026   if test "x$test_cygdrive_prefix" = x; then
27027     # As a simple fix, exclude /usr/bin since it's not a real path.
27028     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
27029       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27030       # a path prefixed by /cygdrive for fixpath to work.
27031       new_path="$CYGWIN_ROOT_PATH$input_path"
27032     fi
27033   fi
27034 
27035   # remove trailing .exe if any
27036   new_path="${new_path/%.exe/}"
27037 
27038   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27039 
27040   # First separate the path from the arguments. This will split at the first
27041   # space.
27042   complete="$VS_ENV_CMD"
27043   path="${complete%% *}"
27044   tmp="$complete EOL"
27045   arguments="${tmp#* }"
27046 
27047   # Input might be given as Windows format, start by converting to
27048   # unix format.
27049   new_path="$path"
27050 
27051   windows_path="$new_path"
27052   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27053     unix_path=`$CYGPATH -u "$windows_path"`
27054     new_path="$unix_path"
27055   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27056     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27057     new_path="$unix_path"
27058   fi
27059 
27060 
27061   # Now try to locate executable using which
27062   new_path=`$WHICH "$new_path" 2> /dev/null`
27063 
27064   if test "x$new_path" = x; then
27065     # Oops. Which didn't find the executable.
27066     # The splitting of arguments from the executable at a space might have been incorrect,
27067     # since paths with space are more likely in Windows. Give it another try with the whole
27068     # argument.
27069     path="$complete"
27070     arguments="EOL"
27071     new_path="$path"
27072 
27073   windows_path="$new_path"
27074   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27075     unix_path=`$CYGPATH -u "$windows_path"`
27076     new_path="$unix_path"
27077   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27078     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27079     new_path="$unix_path"
27080   fi
27081 
27082 
27083     new_path=`$WHICH "$new_path" 2> /dev/null`
27084 
27085     if test "x$new_path" = x; then
27086       # It's still not found. Now this is an unrecoverable error.
27087       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
27088 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
27089       has_space=`$ECHO "$complete" | $GREP " "`
27090       if test "x$has_space" != x; then
27091         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27092 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27093       fi
27094       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27095     fi
27096   fi
27097 
27098   # Now new_path has a complete unix path to the binary
27099   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
27100     # Keep paths in /bin as-is, but remove trailing .exe if any
27101     new_path="${new_path/%.exe/}"
27102     # Do not save /bin paths to all_fixpath_prefixes!
27103   else
27104     # Not in mixed or Windows style, start by that.
27105     new_path=`cmd //c echo $new_path`
27106 
27107   input_path="$new_path"
27108   # Check if we need to convert this using DOS-style short mode. If the path
27109   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27110   # take no chances and rewrite it.
27111   # Note: m4 eats our [], so we need to use [ and ] instead.
27112   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27113   if test "x$has_forbidden_chars" != x; then
27114     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27115     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27116   fi
27117 
27118     # Output is in $new_path
27119 
27120   windows_path="$new_path"
27121   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27122     unix_path=`$CYGPATH -u "$windows_path"`
27123     new_path="$unix_path"
27124   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27125     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27126     new_path="$unix_path"
27127   fi
27128 
27129     # remove trailing .exe if any
27130     new_path="${new_path/%.exe/}"
27131 
27132     # Save the first 10 bytes of this path to the storage, so fixpath can work.
27133     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27134   fi
27135 
27136   else
27137     # We're on a posix platform. Hooray! :)
27138     # First separate the path from the arguments. This will split at the first
27139     # space.
27140     complete="$VS_ENV_CMD"
27141     path="${complete%% *}"
27142     tmp="$complete EOL"
27143     arguments="${tmp#* }"
27144 
27145     # Cannot rely on the command "which" here since it doesn't always work.
27146     is_absolute_path=`$ECHO "$path" | $GREP ^/`
27147     if test -z "$is_absolute_path"; then
27148       # Path to executable is not absolute. Find it.
27149       IFS_save="$IFS"
27150       IFS=:
27151       for p in $PATH; do
27152         if test -f "$p/$path" && test -x "$p/$path"; then
27153           new_path="$p/$path"
27154           break
27155         fi
27156       done
27157       IFS="$IFS_save"
27158     else
27159       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&5
27160 $as_echo "$as_me: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&6;}
27161       new_path="$path"
27162     fi
27163 
27164     if test "x$new_path" = x; then
27165       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
27166 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
27167       has_space=`$ECHO "$complete" | $GREP " "`
27168       if test "x$has_space" != x; then
27169         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
27170 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27171       fi
27172       as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27173     fi
27174   fi
27175 
27176   # Now join together the path and the arguments once again
27177   if test "x$arguments" != xEOL; then
27178     new_complete="$new_path ${arguments% *}"
27179   else
27180     new_complete="$new_path"
27181   fi
27182 
27183   if test "x$complete" != "x$new_complete"; then
27184     VS_ENV_CMD="$new_complete"
27185     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5
27186 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;}
27187   fi
27188 
27189 
27190     # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
27191     { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5
27192 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;}
27193     cd $OUTPUT_ROOT
27194     # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted
27195     # to autoconf standards.
27196 
27197     #----
27198 
27199     # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment)
27200     # but calculate the difference in Cygwin environment before/after running it and then
27201     # apply the diff.
27202 
27203     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
27204       _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"`
27205       _dosvs10varsall=`cygpath -a -w -s $_vs10varsall`
27206       _dosbash=`cygpath -a -w -s \`which bash\`.*`
27207     else
27208       _dosvs10varsall=`cmd //c echo $VS_ENV_CMD`
27209       _dosbash=`cmd //c echo \`which bash\``
27210     fi
27211 
27212     # generate the set of exported vars before/after the vs10 setup
27213     $ECHO "@echo off"                                           >  localdevenvtmp.bat
27214     $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat
27215     $ECHO "call $_dosvs10varsall $VS_ENV_ARGS"                  >> localdevenvtmp.bat
27216     $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat
27217 
27218     # Now execute the newly created bat file.
27219     # The | cat is to stop SetEnv.Cmd to mess with system colors on msys
27220     cmd /c localdevenvtmp.bat | cat
27221 
27222     # apply the diff (less some non-vs10 vars named by "!")
27223     $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort
27224     $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort
27225     $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh
27226 
27227     # cleanup
27228     $RM localdevenvtmp*
27229     #----
27230     cd $CURDIR
27231     if test ! -s $OUTPUT_ROOT/localdevenv.sh; then
27232       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27233 $as_echo "no" >&6; }
27234       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5
27235 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;}
27236       { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27237 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27238       { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27239 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27240       as_fn_error $? "Cannot continue" "$LINENO" 5
27241     fi
27242 
27243     # Now set all paths and other env variables. This will allow the rest of
27244     # the configure script to find and run the compiler in the proper way.
27245     { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5
27246 $as_echo "$as_me: Setting extracted environment variables" >&6;}
27247     . $OUTPUT_ROOT/localdevenv.sh
27248   else
27249     # We did not find a vsvars bat file, let's hope we are run from a VS command prompt.
27250     { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5
27251 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;}
27252   fi
27253 
27254   # At this point, we should have corrent variables in the environment, or we can't continue.
27255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5
27256 $as_echo_n "checking for Visual Studio variables... " >&6; }
27257 
27258   if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then
27259     if test "x$INCLUDE" = x || test "x$LIB" = x; then
27260       { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5
27261 $as_echo "present but broken" >&6; }
27262       as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5
27263     else
27264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27265 $as_echo "ok" >&6; }
27266       # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
27267       VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
27268       VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
27269       # Remove any paths containing # (typically F#) as that messes up make
27270       PATH=`$ECHO "$PATH" | $SED 's/[^:#]*#[^:]*://g'`
27271       VS_PATH="$PATH"
27272 
27273 
27274 
27275     fi
27276   else
27277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27278 $as_echo "not found" >&6; }
27279 
27280     if test "x$VS_ENV_CMD" = x; then
27281       { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5
27282 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;}
27283       { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5
27284 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;}
27285     else
27286       { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5
27287 $as_echo "$as_me: Running the extraction script failed." >&6;}
27288     fi
27289     { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27290 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27291     { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27292 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27293     as_fn_error $? "Cannot continue" "$LINENO" 5
27294   fi
27295 
27296 
27297 
27298 # Check whether --with-msvcr-dll was given.
27299 if test "${with_msvcr_dll+set}" = set; then :
27300   withval=$with_msvcr_dll;
27301 fi
27302 
27303 
27304   if test "x$with_msvcr_dll" != x; then
27305     # If given explicitely by user, do not probe. If not present, fail directly.
27306 
27307   POSSIBLE_MSVCR_DLL="$with_msvcr_dll"
27308   METHOD="--with-msvcr-dll"
27309   if test -e "$POSSIBLE_MSVCR_DLL"; then
27310     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27311 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27312 
27313     # Need to check if the found msvcr is correct architecture
27314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27315 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27316     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27317     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27318       CORRECT_MSVCR_ARCH=386
27319     else
27320       CORRECT_MSVCR_ARCH=x86-64
27321     fi
27322     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27324 $as_echo "ok" >&6; }
27325       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27326       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27327 $as_echo_n "checking for msvcr100.dll... " >&6; }
27328       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27329 $as_echo "$MSVCR_DLL" >&6; }
27330     else
27331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27332 $as_echo "incorrect, ignoring" >&6; }
27333       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27334 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27335     fi
27336   fi
27337 
27338     if test "x$MSVCR_DLL" = x; then
27339       as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5
27340     fi
27341   fi
27342 
27343   if test "x$MSVCR_DLL" = x; then
27344     # Probe: Using well-known location from Visual Studio 10.0
27345     if test "x$VCINSTALLDIR" != x; then
27346       CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR"
27347 
27348   windows_path="$CYGWIN_VC_INSTALL_DIR"
27349   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27350     unix_path=`$CYGPATH -u "$windows_path"`
27351     CYGWIN_VC_INSTALL_DIR="$unix_path"
27352   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27353     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27354     CYGWIN_VC_INSTALL_DIR="$unix_path"
27355   fi
27356 
27357       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
27358         POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll"
27359       else
27360         POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll"
27361       fi
27362 
27363   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27364   METHOD="well-known location in VCINSTALLDIR"
27365   if test -e "$POSSIBLE_MSVCR_DLL"; then
27366     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27367 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27368 
27369     # Need to check if the found msvcr is correct architecture
27370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27371 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27372     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27373     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27374       CORRECT_MSVCR_ARCH=386
27375     else
27376       CORRECT_MSVCR_ARCH=x86-64
27377     fi
27378     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27379       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27380 $as_echo "ok" >&6; }
27381       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27382       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27383 $as_echo_n "checking for msvcr100.dll... " >&6; }
27384       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27385 $as_echo "$MSVCR_DLL" >&6; }
27386     else
27387       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27388 $as_echo "incorrect, ignoring" >&6; }
27389       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27390 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27391     fi
27392   fi
27393 
27394     fi
27395   fi
27396 
27397   if test "x$MSVCR_DLL" = x; then
27398     # Probe: Check in the Boot JDK directory.
27399     POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll"
27400 
27401   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27402   METHOD="well-known location in Boot JDK"
27403   if test -e "$POSSIBLE_MSVCR_DLL"; then
27404     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27405 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27406 
27407     # Need to check if the found msvcr is correct architecture
27408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27409 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27410     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27411     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27412       CORRECT_MSVCR_ARCH=386
27413     else
27414       CORRECT_MSVCR_ARCH=x86-64
27415     fi
27416     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27417       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27418 $as_echo "ok" >&6; }
27419       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27420       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27421 $as_echo_n "checking for msvcr100.dll... " >&6; }
27422       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27423 $as_echo "$MSVCR_DLL" >&6; }
27424     else
27425       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27426 $as_echo "incorrect, ignoring" >&6; }
27427       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27428 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27429     fi
27430   fi
27431 
27432   fi
27433 
27434   if test "x$MSVCR_DLL" = x; then
27435     # Probe: Look in the Windows system32 directory
27436     CYGWIN_SYSTEMROOT="$SYSTEMROOT"
27437 
27438   windows_path="$CYGWIN_SYSTEMROOT"
27439   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27440     unix_path=`$CYGPATH -u "$windows_path"`
27441     CYGWIN_SYSTEMROOT="$unix_path"
27442   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27443     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27444     CYGWIN_SYSTEMROOT="$unix_path"
27445   fi
27446 
27447     POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll"
27448 
27449   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27450   METHOD="well-known location in SYSTEMROOT"
27451   if test -e "$POSSIBLE_MSVCR_DLL"; then
27452     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27453 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27454 
27455     # Need to check if the found msvcr is correct architecture
27456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27457 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27458     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27459     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27460       CORRECT_MSVCR_ARCH=386
27461     else
27462       CORRECT_MSVCR_ARCH=x86-64
27463     fi
27464     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27466 $as_echo "ok" >&6; }
27467       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27469 $as_echo_n "checking for msvcr100.dll... " >&6; }
27470       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27471 $as_echo "$MSVCR_DLL" >&6; }
27472     else
27473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27474 $as_echo "incorrect, ignoring" >&6; }
27475       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27476 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27477     fi
27478   fi
27479 
27480   fi
27481 
27482   if test "x$MSVCR_DLL" = x; then
27483     # Probe: If Visual Studio Express is installed, there is usually one with the debugger
27484     if test "x$VS100COMNTOOLS" != x; then
27485       CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.."
27486 
27487   windows_path="$CYGWIN_VS_TOOLS_DIR"
27488   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27489     unix_path=`$CYGPATH -u "$windows_path"`
27490     CYGWIN_VS_TOOLS_DIR="$unix_path"
27491   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27492     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27493     CYGWIN_VS_TOOLS_DIR="$unix_path"
27494   fi
27495 
27496       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
27497         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1`
27498       else
27499         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1`
27500       fi
27501 
27502   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27503   METHOD="search of VS100COMNTOOLS"
27504   if test -e "$POSSIBLE_MSVCR_DLL"; then
27505     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27506 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27507 
27508     # Need to check if the found msvcr is correct architecture
27509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27510 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27511     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27512     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27513       CORRECT_MSVCR_ARCH=386
27514     else
27515       CORRECT_MSVCR_ARCH=x86-64
27516     fi
27517     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27518       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27519 $as_echo "ok" >&6; }
27520       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27521       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27522 $as_echo_n "checking for msvcr100.dll... " >&6; }
27523       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27524 $as_echo "$MSVCR_DLL" >&6; }
27525     else
27526       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27527 $as_echo "incorrect, ignoring" >&6; }
27528       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27529 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27530     fi
27531   fi
27532 
27533     fi
27534   fi
27535 
27536   if test "x$MSVCR_DLL" = x; then
27537     # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now.
27538     # (This was the original behaviour; kept since it might turn up something)
27539     if test "x$CYGWIN_VC_INSTALL_DIR" != x; then
27540       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
27541         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1`
27542       else
27543         POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1`
27544         if test "x$POSSIBLE_MSVCR_DLL" = x; then
27545           # We're grasping at straws now...
27546           POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1`
27547         fi
27548       fi
27549 
27550 
27551   POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27552   METHOD="search of VCINSTALLDIR"
27553   if test -e "$POSSIBLE_MSVCR_DLL"; then
27554     { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
27555 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
27556 
27557     # Need to check if the found msvcr is correct architecture
27558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
27559 $as_echo_n "checking found msvcr100.dll architecture... " >&6; }
27560     MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
27561     if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27562       CORRECT_MSVCR_ARCH=386
27563     else
27564       CORRECT_MSVCR_ARCH=x86-64
27565     fi
27566     if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
27567       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27568 $as_echo "ok" >&6; }
27569       MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
27570       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27571 $as_echo_n "checking for msvcr100.dll... " >&6; }
27572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
27573 $as_echo "$MSVCR_DLL" >&6; }
27574     else
27575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
27576 $as_echo "incorrect, ignoring" >&6; }
27577       { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
27578 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
27579     fi
27580   fi
27581 
27582     fi
27583   fi
27584 
27585   if test "x$MSVCR_DLL" = x; then
27586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
27587 $as_echo_n "checking for msvcr100.dll... " >&6; }
27588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27589 $as_echo "no" >&6; }
27590     as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5
27591   fi
27592 
27593 
27594   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27595 
27596   # Input might be given as Windows format, start by converting to
27597   # unix format.
27598   path="$MSVCR_DLL"
27599   new_path=`$CYGPATH -u "$path"`
27600 
27601   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27602   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27603   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27604   # "foo.exe" is OK but "foo" is an error.
27605   #
27606   # This test is therefore slightly more accurate than "test -f" to check for file precense.
27607   # It is also a way to make sure we got the proper file name for the real test later on.
27608   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
27609   if test "x$test_shortpath" = x; then
27610     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
27611 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
27612     as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5
27613   fi
27614 
27615   # Call helper function which possibly converts this using DOS-style short mode.
27616   # If so, the updated path is stored in $new_path.
27617 
27618   input_path="$new_path"
27619   # Check if we need to convert this using DOS-style short mode. If the path
27620   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27621   # take no chances and rewrite it.
27622   # Note: m4 eats our [], so we need to use [ and ] instead.
27623   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27624   if test "x$has_forbidden_chars" != x; then
27625     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27626     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27627     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27628     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27629       # Going to short mode and back again did indeed matter. Since short mode is
27630       # case insensitive, let's make it lowercase to improve readability.
27631       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27632       # Now convert it back to Unix-stile (cygpath)
27633       input_path=`$CYGPATH -u "$shortmode_path"`
27634       new_path="$input_path"
27635     fi
27636   fi
27637 
27638   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27639   if test "x$test_cygdrive_prefix" = x; then
27640     # As a simple fix, exclude /usr/bin since it's not a real path.
27641     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
27642       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27643       # a path prefixed by /cygdrive for fixpath to work.
27644       new_path="$CYGWIN_ROOT_PATH$input_path"
27645     fi
27646   fi
27647 
27648 
27649   if test "x$path" != "x$new_path"; then
27650     MSVCR_DLL="$new_path"
27651     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
27652 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
27653   fi
27654 
27655   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27656 
27657   path="$MSVCR_DLL"
27658   has_colon=`$ECHO $path | $GREP ^.:`
27659   new_path="$path"
27660   if test "x$has_colon" = x; then
27661     # Not in mixed or Windows style, start by that.
27662     new_path=`cmd //c echo $path`
27663   fi
27664 
27665 
27666   input_path="$new_path"
27667   # Check if we need to convert this using DOS-style short mode. If the path
27668   # contains just simple characters, use it. Otherwise (spaces, weird characters),
27669   # take no chances and rewrite it.
27670   # Note: m4 eats our [], so we need to use [ and ] instead.
27671   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27672   if test "x$has_forbidden_chars" != x; then
27673     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27674     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27675   fi
27676 
27677 
27678   windows_path="$new_path"
27679   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27680     unix_path=`$CYGPATH -u "$windows_path"`
27681     new_path="$unix_path"
27682   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27683     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27684     new_path="$unix_path"
27685   fi
27686 
27687   if test "x$path" != "x$new_path"; then
27688     MSVCR_DLL="$new_path"
27689     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
27690 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
27691   fi
27692 
27693   # Save the first 10 bytes of this path to the storage, so fixpath can work.
27694   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27695 
27696   else
27697     # We're on a posix platform. Hooray! :)
27698     path="$MSVCR_DLL"
27699     has_space=`$ECHO "$path" | $GREP " "`
27700     if test "x$has_space" != x; then
27701       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
27702 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
27703       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
27704     fi
27705 
27706     # Use eval to expand a potential ~
27707     eval path="$path"
27708     if test ! -f "$path" && test ! -d "$path"; then
27709       as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5
27710     fi
27711 
27712     MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`"
27713   fi
27714 
27715 
27716 
27717 
27718 # Check whether --with-dxsdk was given.
27719 if test "${with_dxsdk+set}" = set; then :
27720   withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5
27721 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;}
27722 fi
27723 
27724 
27725 
27726 
27727 # Check whether --with-dxsdk-lib was given.
27728 if test "${with_dxsdk_lib+set}" = set; then :
27729   withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5
27730 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;}
27731 fi
27732 
27733 
27734 
27735 
27736 # Check whether --with-dxsdk-include was given.
27737 if test "${with_dxsdk_include+set}" = set; then :
27738   withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5
27739 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;}
27740 fi
27741 
27742 
27743   fi
27744 
27745 
27746 
27747   # If --build AND --host is set, then the configure script will find any
27748   # cross compilation tools in the PATH. Cross compilation tools
27749   # follows the cross compilation standard where they are prefixed with ${host}.
27750   # For example the binary i686-sun-solaris2.10-gcc
27751   # will cross compile for i686-sun-solaris2.10
27752   # If neither of build and host is not set, then build=host and the
27753   # default compiler found in the path will be used.
27754   # Setting only --host, does not seem to be really supported.
27755   # Please set both --build and --host if you want to cross compile.
27756 
27757   if test "x$COMPILE_TYPE" = "xcross"; then
27758     # Now we to find a C/C++ compiler that can build executables for the build
27759     # platform. We can't use the AC_PROG_CC macro, since it can only be used
27760     # once. Also, we need to do this before adding a tools dir to the path,
27761     # otherwise we might pick up cross-compilers which don't use standard naming.
27762     # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
27763     # to wait until they are properly discovered.
27764 
27765 
27766   # Publish this variable in the help.
27767 
27768 
27769   if test "x$BUILD_CC" = x; then
27770     # The variable is not set by user, try to locate tool using the code snippet
27771     for ac_prog in cl cc gcc
27772 do
27773   # Extract the first word of "$ac_prog", so it can be a program name with args.
27774 set dummy $ac_prog; ac_word=$2
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27776 $as_echo_n "checking for $ac_word... " >&6; }
27777 if ${ac_cv_path_BUILD_CC+:} false; then :
27778   $as_echo_n "(cached) " >&6
27779 else
27780   case $BUILD_CC in
27781   [\\/]* | ?:[\\/]*)
27782   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
27783   ;;
27784   *)
27785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27786 for as_dir in $PATH
27787 do
27788   IFS=$as_save_IFS
27789   test -z "$as_dir" && as_dir=.
27790     for ac_exec_ext in '' $ac_executable_extensions; do
27791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27792     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
27793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27794     break 2
27795   fi
27796 done
27797   done
27798 IFS=$as_save_IFS
27799 
27800   ;;
27801 esac
27802 fi
27803 BUILD_CC=$ac_cv_path_BUILD_CC
27804 if test -n "$BUILD_CC"; then
27805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
27806 $as_echo "$BUILD_CC" >&6; }
27807 else
27808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27809 $as_echo "no" >&6; }
27810 fi
27811 
27812 
27813   test -n "$BUILD_CC" && break
27814 done
27815 
27816   else
27817     # The variable is set, but is it from the command line or the environment?
27818 
27819     # Try to remove the string !BUILD_CC! from our list.
27820     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/}
27821     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
27822       # If it failed, the variable was not from the command line. Ignore it,
27823       # but warn the user (except for BASH, which is always set by the calling BASH).
27824       if test "xBUILD_CC" != xBASH; then
27825         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5
27826 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;}
27827       fi
27828       # Try to locate tool using the code snippet
27829       for ac_prog in cl cc gcc
27830 do
27831   # Extract the first word of "$ac_prog", so it can be a program name with args.
27832 set dummy $ac_prog; ac_word=$2
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27834 $as_echo_n "checking for $ac_word... " >&6; }
27835 if ${ac_cv_path_BUILD_CC+:} false; then :
27836   $as_echo_n "(cached) " >&6
27837 else
27838   case $BUILD_CC in
27839   [\\/]* | ?:[\\/]*)
27840   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
27841   ;;
27842   *)
27843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27844 for as_dir in $PATH
27845 do
27846   IFS=$as_save_IFS
27847   test -z "$as_dir" && as_dir=.
27848     for ac_exec_ext in '' $ac_executable_extensions; do
27849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27850     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
27851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27852     break 2
27853   fi
27854 done
27855   done
27856 IFS=$as_save_IFS
27857 
27858   ;;
27859 esac
27860 fi
27861 BUILD_CC=$ac_cv_path_BUILD_CC
27862 if test -n "$BUILD_CC"; then
27863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
27864 $as_echo "$BUILD_CC" >&6; }
27865 else
27866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27867 $as_echo "no" >&6; }
27868 fi
27869 
27870 
27871   test -n "$BUILD_CC" && break
27872 done
27873 
27874     else
27875       # If it succeeded, then it was overridden by the user. We will use it
27876       # for the tool.
27877 
27878       # First remove it from the list of overridden variables, so we can test
27879       # for unknown variables in the end.
27880       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
27881 
27882       # Check if the provided tool contains a complete path.
27883       tool_specified="$BUILD_CC"
27884       tool_basename="${tool_specified##*/}"
27885       if test "x$tool_basename" = "x$tool_specified"; then
27886         # A command without a complete path is provided, search $PATH.
27887         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5
27888 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;}
27889         # Extract the first word of "$tool_basename", so it can be a program name with args.
27890 set dummy $tool_basename; ac_word=$2
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27892 $as_echo_n "checking for $ac_word... " >&6; }
27893 if ${ac_cv_path_BUILD_CC+:} false; then :
27894   $as_echo_n "(cached) " >&6
27895 else
27896   case $BUILD_CC in
27897   [\\/]* | ?:[\\/]*)
27898   ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
27899   ;;
27900   *)
27901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27902 for as_dir in $PATH
27903 do
27904   IFS=$as_save_IFS
27905   test -z "$as_dir" && as_dir=.
27906     for ac_exec_ext in '' $ac_executable_extensions; do
27907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27908     ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
27909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27910     break 2
27911   fi
27912 done
27913   done
27914 IFS=$as_save_IFS
27915 
27916   ;;
27917 esac
27918 fi
27919 BUILD_CC=$ac_cv_path_BUILD_CC
27920 if test -n "$BUILD_CC"; then
27921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
27922 $as_echo "$BUILD_CC" >&6; }
27923 else
27924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27925 $as_echo "no" >&6; }
27926 fi
27927 
27928 
27929         if test "x$BUILD_CC" = x; then
27930           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
27931         fi
27932       else
27933         # Otherwise we believe it is a complete path. Use it as it is.
27934         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5
27935 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;}
27936         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5
27937 $as_echo_n "checking for BUILD_CC... " >&6; }
27938         if test ! -x "$tool_specified"; then
27939           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27940 $as_echo "not found" >&6; }
27941           as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5
27942         fi
27943         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
27944 $as_echo "$tool_specified" >&6; }
27945       fi
27946     fi
27947   fi
27948 
27949 
27950 
27951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27952 
27953   # First separate the path from the arguments. This will split at the first
27954   # space.
27955   complete="$BUILD_CC"
27956   path="${complete%% *}"
27957   tmp="$complete EOL"
27958   arguments="${tmp#* }"
27959 
27960   # Input might be given as Windows format, start by converting to
27961   # unix format.
27962   new_path=`$CYGPATH -u "$path"`
27963 
27964   # Now try to locate executable using which
27965   new_path=`$WHICH "$new_path" 2> /dev/null`
27966   # bat and cmd files are not always considered executable in cygwin causing which
27967   # to not find them
27968   if test "x$new_path" = x \
27969       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27970       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27971     new_path=`$CYGPATH -u "$path"`
27972   fi
27973   if test "x$new_path" = x; then
27974     # Oops. Which didn't find the executable.
27975     # The splitting of arguments from the executable at a space might have been incorrect,
27976     # since paths with space are more likely in Windows. Give it another try with the whole
27977     # argument.
27978     path="$complete"
27979     arguments="EOL"
27980     new_path=`$CYGPATH -u "$path"`
27981     new_path=`$WHICH "$new_path" 2> /dev/null`
27982     # bat and cmd files are not always considered executable in cygwin causing which
27983     # to not find them
27984     if test "x$new_path" = x \
27985         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27986         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27987       new_path=`$CYGPATH -u "$path"`
27988     fi
27989     if test "x$new_path" = x; then
27990       # It's still not found. Now this is an unrecoverable error.
27991       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
27992 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
27993       has_space=`$ECHO "$complete" | $GREP " "`
27994       if test "x$has_space" != x; then
27995         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27996 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27997       fi
27998       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
27999     fi
28000   fi
28001 
28002   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28003   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28004   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28005   # "foo.exe" is OK but "foo" is an error.
28006   #
28007   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28008   # It is also a way to make sure we got the proper file name for the real test later on.
28009   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28010   if test "x$test_shortpath" = x; then
28011     # Short path failed, file does not exist as specified.
28012     # Try adding .exe or .cmd
28013     if test -f "${new_path}.exe"; then
28014       input_to_shortpath="${new_path}.exe"
28015     elif test -f "${new_path}.cmd"; then
28016       input_to_shortpath="${new_path}.cmd"
28017     else
28018       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5
28019 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;}
28020       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28021 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28022       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
28023     fi
28024   else
28025     input_to_shortpath="$new_path"
28026   fi
28027 
28028   # Call helper function which possibly converts this using DOS-style short mode.
28029   # If so, the updated path is stored in $new_path.
28030   new_path="$input_to_shortpath"
28031 
28032   input_path="$input_to_shortpath"
28033   # Check if we need to convert this using DOS-style short mode. If the path
28034   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28035   # take no chances and rewrite it.
28036   # Note: m4 eats our [], so we need to use [ and ] instead.
28037   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28038   if test "x$has_forbidden_chars" != x; then
28039     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28040     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28041     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28042     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28043       # Going to short mode and back again did indeed matter. Since short mode is
28044       # case insensitive, let's make it lowercase to improve readability.
28045       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28046       # Now convert it back to Unix-stile (cygpath)
28047       input_path=`$CYGPATH -u "$shortmode_path"`
28048       new_path="$input_path"
28049     fi
28050   fi
28051 
28052   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28053   if test "x$test_cygdrive_prefix" = x; then
28054     # As a simple fix, exclude /usr/bin since it's not a real path.
28055     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28056       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28057       # a path prefixed by /cygdrive for fixpath to work.
28058       new_path="$CYGWIN_ROOT_PATH$input_path"
28059     fi
28060   fi
28061 
28062   # remove trailing .exe if any
28063   new_path="${new_path/%.exe/}"
28064 
28065   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28066 
28067   # First separate the path from the arguments. This will split at the first
28068   # space.
28069   complete="$BUILD_CC"
28070   path="${complete%% *}"
28071   tmp="$complete EOL"
28072   arguments="${tmp#* }"
28073 
28074   # Input might be given as Windows format, start by converting to
28075   # unix format.
28076   new_path="$path"
28077 
28078   windows_path="$new_path"
28079   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28080     unix_path=`$CYGPATH -u "$windows_path"`
28081     new_path="$unix_path"
28082   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28083     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28084     new_path="$unix_path"
28085   fi
28086 
28087 
28088   # Now try to locate executable using which
28089   new_path=`$WHICH "$new_path" 2> /dev/null`
28090 
28091   if test "x$new_path" = x; then
28092     # Oops. Which didn't find the executable.
28093     # The splitting of arguments from the executable at a space might have been incorrect,
28094     # since paths with space are more likely in Windows. Give it another try with the whole
28095     # argument.
28096     path="$complete"
28097     arguments="EOL"
28098     new_path="$path"
28099 
28100   windows_path="$new_path"
28101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28102     unix_path=`$CYGPATH -u "$windows_path"`
28103     new_path="$unix_path"
28104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28105     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28106     new_path="$unix_path"
28107   fi
28108 
28109 
28110     new_path=`$WHICH "$new_path" 2> /dev/null`
28111 
28112     if test "x$new_path" = x; then
28113       # It's still not found. Now this is an unrecoverable error.
28114       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
28115 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
28116       has_space=`$ECHO "$complete" | $GREP " "`
28117       if test "x$has_space" != x; then
28118         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28119 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28120       fi
28121       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
28122     fi
28123   fi
28124 
28125   # Now new_path has a complete unix path to the binary
28126   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28127     # Keep paths in /bin as-is, but remove trailing .exe if any
28128     new_path="${new_path/%.exe/}"
28129     # Do not save /bin paths to all_fixpath_prefixes!
28130   else
28131     # Not in mixed or Windows style, start by that.
28132     new_path=`cmd //c echo $new_path`
28133 
28134   input_path="$new_path"
28135   # Check if we need to convert this using DOS-style short mode. If the path
28136   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28137   # take no chances and rewrite it.
28138   # Note: m4 eats our [], so we need to use [ and ] instead.
28139   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28140   if test "x$has_forbidden_chars" != x; then
28141     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28142     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28143   fi
28144 
28145     # Output is in $new_path
28146 
28147   windows_path="$new_path"
28148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28149     unix_path=`$CYGPATH -u "$windows_path"`
28150     new_path="$unix_path"
28151   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28152     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28153     new_path="$unix_path"
28154   fi
28155 
28156     # remove trailing .exe if any
28157     new_path="${new_path/%.exe/}"
28158 
28159     # Save the first 10 bytes of this path to the storage, so fixpath can work.
28160     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28161   fi
28162 
28163   else
28164     # We're on a posix platform. Hooray! :)
28165     # First separate the path from the arguments. This will split at the first
28166     # space.
28167     complete="$BUILD_CC"
28168     path="${complete%% *}"
28169     tmp="$complete EOL"
28170     arguments="${tmp#* }"
28171 
28172     # Cannot rely on the command "which" here since it doesn't always work.
28173     is_absolute_path=`$ECHO "$path" | $GREP ^/`
28174     if test -z "$is_absolute_path"; then
28175       # Path to executable is not absolute. Find it.
28176       IFS_save="$IFS"
28177       IFS=:
28178       for p in $PATH; do
28179         if test -f "$p/$path" && test -x "$p/$path"; then
28180           new_path="$p/$path"
28181           break
28182         fi
28183       done
28184       IFS="$IFS_save"
28185     else
28186       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CC (as $path) failed, using $path directly." >&5
28187 $as_echo "$as_me: Resolving BUILD_CC (as $path) failed, using $path directly." >&6;}
28188       new_path="$path"
28189     fi
28190 
28191     if test "x$new_path" = x; then
28192       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
28193 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
28194       has_space=`$ECHO "$complete" | $GREP " "`
28195       if test "x$has_space" != x; then
28196         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28197 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28198       fi
28199       as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
28200     fi
28201   fi
28202 
28203   # Now join together the path and the arguments once again
28204   if test "x$arguments" != xEOL; then
28205     new_complete="$new_path ${arguments% *}"
28206   else
28207     new_complete="$new_path"
28208   fi
28209 
28210   if test "x$complete" != "x$new_complete"; then
28211     BUILD_CC="$new_complete"
28212     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
28213 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
28214   fi
28215 
28216 
28217 
28218   # Publish this variable in the help.
28219 
28220 
28221   if test "x$BUILD_CXX" = x; then
28222     # The variable is not set by user, try to locate tool using the code snippet
28223     for ac_prog in cl CC g++
28224 do
28225   # Extract the first word of "$ac_prog", so it can be a program name with args.
28226 set dummy $ac_prog; ac_word=$2
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28228 $as_echo_n "checking for $ac_word... " >&6; }
28229 if ${ac_cv_path_BUILD_CXX+:} false; then :
28230   $as_echo_n "(cached) " >&6
28231 else
28232   case $BUILD_CXX in
28233   [\\/]* | ?:[\\/]*)
28234   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
28235   ;;
28236   *)
28237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28238 for as_dir in $PATH
28239 do
28240   IFS=$as_save_IFS
28241   test -z "$as_dir" && as_dir=.
28242     for ac_exec_ext in '' $ac_executable_extensions; do
28243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28244     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
28245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28246     break 2
28247   fi
28248 done
28249   done
28250 IFS=$as_save_IFS
28251 
28252   ;;
28253 esac
28254 fi
28255 BUILD_CXX=$ac_cv_path_BUILD_CXX
28256 if test -n "$BUILD_CXX"; then
28257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
28258 $as_echo "$BUILD_CXX" >&6; }
28259 else
28260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28261 $as_echo "no" >&6; }
28262 fi
28263 
28264 
28265   test -n "$BUILD_CXX" && break
28266 done
28267 
28268   else
28269     # The variable is set, but is it from the command line or the environment?
28270 
28271     # Try to remove the string !BUILD_CXX! from our list.
28272     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/}
28273     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
28274       # If it failed, the variable was not from the command line. Ignore it,
28275       # but warn the user (except for BASH, which is always set by the calling BASH).
28276       if test "xBUILD_CXX" != xBASH; then
28277         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5
28278 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;}
28279       fi
28280       # Try to locate tool using the code snippet
28281       for ac_prog in cl CC g++
28282 do
28283   # Extract the first word of "$ac_prog", so it can be a program name with args.
28284 set dummy $ac_prog; ac_word=$2
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28286 $as_echo_n "checking for $ac_word... " >&6; }
28287 if ${ac_cv_path_BUILD_CXX+:} false; then :
28288   $as_echo_n "(cached) " >&6
28289 else
28290   case $BUILD_CXX in
28291   [\\/]* | ?:[\\/]*)
28292   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
28293   ;;
28294   *)
28295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28296 for as_dir in $PATH
28297 do
28298   IFS=$as_save_IFS
28299   test -z "$as_dir" && as_dir=.
28300     for ac_exec_ext in '' $ac_executable_extensions; do
28301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28302     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
28303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28304     break 2
28305   fi
28306 done
28307   done
28308 IFS=$as_save_IFS
28309 
28310   ;;
28311 esac
28312 fi
28313 BUILD_CXX=$ac_cv_path_BUILD_CXX
28314 if test -n "$BUILD_CXX"; then
28315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
28316 $as_echo "$BUILD_CXX" >&6; }
28317 else
28318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28319 $as_echo "no" >&6; }
28320 fi
28321 
28322 
28323   test -n "$BUILD_CXX" && break
28324 done
28325 
28326     else
28327       # If it succeeded, then it was overridden by the user. We will use it
28328       # for the tool.
28329 
28330       # First remove it from the list of overridden variables, so we can test
28331       # for unknown variables in the end.
28332       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
28333 
28334       # Check if the provided tool contains a complete path.
28335       tool_specified="$BUILD_CXX"
28336       tool_basename="${tool_specified##*/}"
28337       if test "x$tool_basename" = "x$tool_specified"; then
28338         # A command without a complete path is provided, search $PATH.
28339         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5
28340 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;}
28341         # Extract the first word of "$tool_basename", so it can be a program name with args.
28342 set dummy $tool_basename; ac_word=$2
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28344 $as_echo_n "checking for $ac_word... " >&6; }
28345 if ${ac_cv_path_BUILD_CXX+:} false; then :
28346   $as_echo_n "(cached) " >&6
28347 else
28348   case $BUILD_CXX in
28349   [\\/]* | ?:[\\/]*)
28350   ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
28351   ;;
28352   *)
28353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28354 for as_dir in $PATH
28355 do
28356   IFS=$as_save_IFS
28357   test -z "$as_dir" && as_dir=.
28358     for ac_exec_ext in '' $ac_executable_extensions; do
28359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28360     ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
28361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28362     break 2
28363   fi
28364 done
28365   done
28366 IFS=$as_save_IFS
28367 
28368   ;;
28369 esac
28370 fi
28371 BUILD_CXX=$ac_cv_path_BUILD_CXX
28372 if test -n "$BUILD_CXX"; then
28373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
28374 $as_echo "$BUILD_CXX" >&6; }
28375 else
28376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28377 $as_echo "no" >&6; }
28378 fi
28379 
28380 
28381         if test "x$BUILD_CXX" = x; then
28382           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
28383         fi
28384       else
28385         # Otherwise we believe it is a complete path. Use it as it is.
28386         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5
28387 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;}
28388         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5
28389 $as_echo_n "checking for BUILD_CXX... " >&6; }
28390         if test ! -x "$tool_specified"; then
28391           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28392 $as_echo "not found" >&6; }
28393           as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5
28394         fi
28395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
28396 $as_echo "$tool_specified" >&6; }
28397       fi
28398     fi
28399   fi
28400 
28401 
28402 
28403   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28404 
28405   # First separate the path from the arguments. This will split at the first
28406   # space.
28407   complete="$BUILD_CXX"
28408   path="${complete%% *}"
28409   tmp="$complete EOL"
28410   arguments="${tmp#* }"
28411 
28412   # Input might be given as Windows format, start by converting to
28413   # unix format.
28414   new_path=`$CYGPATH -u "$path"`
28415 
28416   # Now try to locate executable using which
28417   new_path=`$WHICH "$new_path" 2> /dev/null`
28418   # bat and cmd files are not always considered executable in cygwin causing which
28419   # to not find them
28420   if test "x$new_path" = x \
28421       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28422       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28423     new_path=`$CYGPATH -u "$path"`
28424   fi
28425   if test "x$new_path" = x; then
28426     # Oops. Which didn't find the executable.
28427     # The splitting of arguments from the executable at a space might have been incorrect,
28428     # since paths with space are more likely in Windows. Give it another try with the whole
28429     # argument.
28430     path="$complete"
28431     arguments="EOL"
28432     new_path=`$CYGPATH -u "$path"`
28433     new_path=`$WHICH "$new_path" 2> /dev/null`
28434     # bat and cmd files are not always considered executable in cygwin causing which
28435     # to not find them
28436     if test "x$new_path" = x \
28437         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28438         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28439       new_path=`$CYGPATH -u "$path"`
28440     fi
28441     if test "x$new_path" = x; then
28442       # It's still not found. Now this is an unrecoverable error.
28443       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
28444 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
28445       has_space=`$ECHO "$complete" | $GREP " "`
28446       if test "x$has_space" != x; then
28447         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28448 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28449       fi
28450       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28451     fi
28452   fi
28453 
28454   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28455   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28456   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28457   # "foo.exe" is OK but "foo" is an error.
28458   #
28459   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28460   # It is also a way to make sure we got the proper file name for the real test later on.
28461   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28462   if test "x$test_shortpath" = x; then
28463     # Short path failed, file does not exist as specified.
28464     # Try adding .exe or .cmd
28465     if test -f "${new_path}.exe"; then
28466       input_to_shortpath="${new_path}.exe"
28467     elif test -f "${new_path}.cmd"; then
28468       input_to_shortpath="${new_path}.cmd"
28469     else
28470       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5
28471 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;}
28472       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28473 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28474       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28475     fi
28476   else
28477     input_to_shortpath="$new_path"
28478   fi
28479 
28480   # Call helper function which possibly converts this using DOS-style short mode.
28481   # If so, the updated path is stored in $new_path.
28482   new_path="$input_to_shortpath"
28483 
28484   input_path="$input_to_shortpath"
28485   # Check if we need to convert this using DOS-style short mode. If the path
28486   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28487   # take no chances and rewrite it.
28488   # Note: m4 eats our [], so we need to use [ and ] instead.
28489   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28490   if test "x$has_forbidden_chars" != x; then
28491     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28492     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28493     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28494     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28495       # Going to short mode and back again did indeed matter. Since short mode is
28496       # case insensitive, let's make it lowercase to improve readability.
28497       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28498       # Now convert it back to Unix-stile (cygpath)
28499       input_path=`$CYGPATH -u "$shortmode_path"`
28500       new_path="$input_path"
28501     fi
28502   fi
28503 
28504   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28505   if test "x$test_cygdrive_prefix" = x; then
28506     # As a simple fix, exclude /usr/bin since it's not a real path.
28507     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28508       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28509       # a path prefixed by /cygdrive for fixpath to work.
28510       new_path="$CYGWIN_ROOT_PATH$input_path"
28511     fi
28512   fi
28513 
28514   # remove trailing .exe if any
28515   new_path="${new_path/%.exe/}"
28516 
28517   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28518 
28519   # First separate the path from the arguments. This will split at the first
28520   # space.
28521   complete="$BUILD_CXX"
28522   path="${complete%% *}"
28523   tmp="$complete EOL"
28524   arguments="${tmp#* }"
28525 
28526   # Input might be given as Windows format, start by converting to
28527   # unix format.
28528   new_path="$path"
28529 
28530   windows_path="$new_path"
28531   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28532     unix_path=`$CYGPATH -u "$windows_path"`
28533     new_path="$unix_path"
28534   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28535     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28536     new_path="$unix_path"
28537   fi
28538 
28539 
28540   # Now try to locate executable using which
28541   new_path=`$WHICH "$new_path" 2> /dev/null`
28542 
28543   if test "x$new_path" = x; then
28544     # Oops. Which didn't find the executable.
28545     # The splitting of arguments from the executable at a space might have been incorrect,
28546     # since paths with space are more likely in Windows. Give it another try with the whole
28547     # argument.
28548     path="$complete"
28549     arguments="EOL"
28550     new_path="$path"
28551 
28552   windows_path="$new_path"
28553   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28554     unix_path=`$CYGPATH -u "$windows_path"`
28555     new_path="$unix_path"
28556   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28557     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28558     new_path="$unix_path"
28559   fi
28560 
28561 
28562     new_path=`$WHICH "$new_path" 2> /dev/null`
28563 
28564     if test "x$new_path" = x; then
28565       # It's still not found. Now this is an unrecoverable error.
28566       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
28567 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
28568       has_space=`$ECHO "$complete" | $GREP " "`
28569       if test "x$has_space" != x; then
28570         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28571 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28572       fi
28573       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28574     fi
28575   fi
28576 
28577   # Now new_path has a complete unix path to the binary
28578   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28579     # Keep paths in /bin as-is, but remove trailing .exe if any
28580     new_path="${new_path/%.exe/}"
28581     # Do not save /bin paths to all_fixpath_prefixes!
28582   else
28583     # Not in mixed or Windows style, start by that.
28584     new_path=`cmd //c echo $new_path`
28585 
28586   input_path="$new_path"
28587   # Check if we need to convert this using DOS-style short mode. If the path
28588   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28589   # take no chances and rewrite it.
28590   # Note: m4 eats our [], so we need to use [ and ] instead.
28591   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28592   if test "x$has_forbidden_chars" != x; then
28593     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28594     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28595   fi
28596 
28597     # Output is in $new_path
28598 
28599   windows_path="$new_path"
28600   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28601     unix_path=`$CYGPATH -u "$windows_path"`
28602     new_path="$unix_path"
28603   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28604     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28605     new_path="$unix_path"
28606   fi
28607 
28608     # remove trailing .exe if any
28609     new_path="${new_path/%.exe/}"
28610 
28611     # Save the first 10 bytes of this path to the storage, so fixpath can work.
28612     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28613   fi
28614 
28615   else
28616     # We're on a posix platform. Hooray! :)
28617     # First separate the path from the arguments. This will split at the first
28618     # space.
28619     complete="$BUILD_CXX"
28620     path="${complete%% *}"
28621     tmp="$complete EOL"
28622     arguments="${tmp#* }"
28623 
28624     # Cannot rely on the command "which" here since it doesn't always work.
28625     is_absolute_path=`$ECHO "$path" | $GREP ^/`
28626     if test -z "$is_absolute_path"; then
28627       # Path to executable is not absolute. Find it.
28628       IFS_save="$IFS"
28629       IFS=:
28630       for p in $PATH; do
28631         if test -f "$p/$path" && test -x "$p/$path"; then
28632           new_path="$p/$path"
28633           break
28634         fi
28635       done
28636       IFS="$IFS_save"
28637     else
28638       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CXX (as $path) failed, using $path directly." >&5
28639 $as_echo "$as_me: Resolving BUILD_CXX (as $path) failed, using $path directly." >&6;}
28640       new_path="$path"
28641     fi
28642 
28643     if test "x$new_path" = x; then
28644       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
28645 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
28646       has_space=`$ECHO "$complete" | $GREP " "`
28647       if test "x$has_space" != x; then
28648         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28649 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28650       fi
28651       as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
28652     fi
28653   fi
28654 
28655   # Now join together the path and the arguments once again
28656   if test "x$arguments" != xEOL; then
28657     new_complete="$new_path ${arguments% *}"
28658   else
28659     new_complete="$new_path"
28660   fi
28661 
28662   if test "x$complete" != "x$new_complete"; then
28663     BUILD_CXX="$new_complete"
28664     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
28665 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
28666   fi
28667 
28668 
28669 
28670   # Publish this variable in the help.
28671 
28672 
28673   if test "x$BUILD_LD" = x; then
28674     # The variable is not set by user, try to locate tool using the code snippet
28675     for ac_prog in ld
28676 do
28677   # Extract the first word of "$ac_prog", so it can be a program name with args.
28678 set dummy $ac_prog; ac_word=$2
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28680 $as_echo_n "checking for $ac_word... " >&6; }
28681 if ${ac_cv_path_BUILD_LD+:} false; then :
28682   $as_echo_n "(cached) " >&6
28683 else
28684   case $BUILD_LD in
28685   [\\/]* | ?:[\\/]*)
28686   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
28687   ;;
28688   *)
28689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28690 for as_dir in $PATH
28691 do
28692   IFS=$as_save_IFS
28693   test -z "$as_dir" && as_dir=.
28694     for ac_exec_ext in '' $ac_executable_extensions; do
28695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28696     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
28697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28698     break 2
28699   fi
28700 done
28701   done
28702 IFS=$as_save_IFS
28703 
28704   ;;
28705 esac
28706 fi
28707 BUILD_LD=$ac_cv_path_BUILD_LD
28708 if test -n "$BUILD_LD"; then
28709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
28710 $as_echo "$BUILD_LD" >&6; }
28711 else
28712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28713 $as_echo "no" >&6; }
28714 fi
28715 
28716 
28717   test -n "$BUILD_LD" && break
28718 done
28719 
28720   else
28721     # The variable is set, but is it from the command line or the environment?
28722 
28723     # Try to remove the string !BUILD_LD! from our list.
28724     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/}
28725     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
28726       # If it failed, the variable was not from the command line. Ignore it,
28727       # but warn the user (except for BASH, which is always set by the calling BASH).
28728       if test "xBUILD_LD" != xBASH; then
28729         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5
28730 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;}
28731       fi
28732       # Try to locate tool using the code snippet
28733       for ac_prog in ld
28734 do
28735   # Extract the first word of "$ac_prog", so it can be a program name with args.
28736 set dummy $ac_prog; ac_word=$2
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28738 $as_echo_n "checking for $ac_word... " >&6; }
28739 if ${ac_cv_path_BUILD_LD+:} false; then :
28740   $as_echo_n "(cached) " >&6
28741 else
28742   case $BUILD_LD in
28743   [\\/]* | ?:[\\/]*)
28744   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
28745   ;;
28746   *)
28747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28748 for as_dir in $PATH
28749 do
28750   IFS=$as_save_IFS
28751   test -z "$as_dir" && as_dir=.
28752     for ac_exec_ext in '' $ac_executable_extensions; do
28753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28754     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
28755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28756     break 2
28757   fi
28758 done
28759   done
28760 IFS=$as_save_IFS
28761 
28762   ;;
28763 esac
28764 fi
28765 BUILD_LD=$ac_cv_path_BUILD_LD
28766 if test -n "$BUILD_LD"; then
28767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
28768 $as_echo "$BUILD_LD" >&6; }
28769 else
28770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28771 $as_echo "no" >&6; }
28772 fi
28773 
28774 
28775   test -n "$BUILD_LD" && break
28776 done
28777 
28778     else
28779       # If it succeeded, then it was overridden by the user. We will use it
28780       # for the tool.
28781 
28782       # First remove it from the list of overridden variables, so we can test
28783       # for unknown variables in the end.
28784       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
28785 
28786       # Check if the provided tool contains a complete path.
28787       tool_specified="$BUILD_LD"
28788       tool_basename="${tool_specified##*/}"
28789       if test "x$tool_basename" = "x$tool_specified"; then
28790         # A command without a complete path is provided, search $PATH.
28791         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5
28792 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;}
28793         # Extract the first word of "$tool_basename", so it can be a program name with args.
28794 set dummy $tool_basename; ac_word=$2
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28796 $as_echo_n "checking for $ac_word... " >&6; }
28797 if ${ac_cv_path_BUILD_LD+:} false; then :
28798   $as_echo_n "(cached) " >&6
28799 else
28800   case $BUILD_LD in
28801   [\\/]* | ?:[\\/]*)
28802   ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
28803   ;;
28804   *)
28805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28806 for as_dir in $PATH
28807 do
28808   IFS=$as_save_IFS
28809   test -z "$as_dir" && as_dir=.
28810     for ac_exec_ext in '' $ac_executable_extensions; do
28811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28812     ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
28813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28814     break 2
28815   fi
28816 done
28817   done
28818 IFS=$as_save_IFS
28819 
28820   ;;
28821 esac
28822 fi
28823 BUILD_LD=$ac_cv_path_BUILD_LD
28824 if test -n "$BUILD_LD"; then
28825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
28826 $as_echo "$BUILD_LD" >&6; }
28827 else
28828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28829 $as_echo "no" >&6; }
28830 fi
28831 
28832 
28833         if test "x$BUILD_LD" = x; then
28834           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
28835         fi
28836       else
28837         # Otherwise we believe it is a complete path. Use it as it is.
28838         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5
28839 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;}
28840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5
28841 $as_echo_n "checking for BUILD_LD... " >&6; }
28842         if test ! -x "$tool_specified"; then
28843           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
28844 $as_echo "not found" >&6; }
28845           as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5
28846         fi
28847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
28848 $as_echo "$tool_specified" >&6; }
28849       fi
28850     fi
28851   fi
28852 
28853 
28854 
28855   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28856 
28857   # First separate the path from the arguments. This will split at the first
28858   # space.
28859   complete="$BUILD_LD"
28860   path="${complete%% *}"
28861   tmp="$complete EOL"
28862   arguments="${tmp#* }"
28863 
28864   # Input might be given as Windows format, start by converting to
28865   # unix format.
28866   new_path=`$CYGPATH -u "$path"`
28867 
28868   # Now try to locate executable using which
28869   new_path=`$WHICH "$new_path" 2> /dev/null`
28870   # bat and cmd files are not always considered executable in cygwin causing which
28871   # to not find them
28872   if test "x$new_path" = x \
28873       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28874       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28875     new_path=`$CYGPATH -u "$path"`
28876   fi
28877   if test "x$new_path" = x; then
28878     # Oops. Which didn't find the executable.
28879     # The splitting of arguments from the executable at a space might have been incorrect,
28880     # since paths with space are more likely in Windows. Give it another try with the whole
28881     # argument.
28882     path="$complete"
28883     arguments="EOL"
28884     new_path=`$CYGPATH -u "$path"`
28885     new_path=`$WHICH "$new_path" 2> /dev/null`
28886     # bat and cmd files are not always considered executable in cygwin causing which
28887     # to not find them
28888     if test "x$new_path" = x \
28889         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28890         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28891       new_path=`$CYGPATH -u "$path"`
28892     fi
28893     if test "x$new_path" = x; then
28894       # It's still not found. Now this is an unrecoverable error.
28895       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
28896 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
28897       has_space=`$ECHO "$complete" | $GREP " "`
28898       if test "x$has_space" != x; then
28899         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28900 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28901       fi
28902       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
28903     fi
28904   fi
28905 
28906   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28907   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28908   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28909   # "foo.exe" is OK but "foo" is an error.
28910   #
28911   # This test is therefore slightly more accurate than "test -f" to check for file presence.
28912   # It is also a way to make sure we got the proper file name for the real test later on.
28913   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28914   if test "x$test_shortpath" = x; then
28915     # Short path failed, file does not exist as specified.
28916     # Try adding .exe or .cmd
28917     if test -f "${new_path}.exe"; then
28918       input_to_shortpath="${new_path}.exe"
28919     elif test -f "${new_path}.cmd"; then
28920       input_to_shortpath="${new_path}.cmd"
28921     else
28922       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5
28923 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;}
28924       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28925 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28926       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
28927     fi
28928   else
28929     input_to_shortpath="$new_path"
28930   fi
28931 
28932   # Call helper function which possibly converts this using DOS-style short mode.
28933   # If so, the updated path is stored in $new_path.
28934   new_path="$input_to_shortpath"
28935 
28936   input_path="$input_to_shortpath"
28937   # Check if we need to convert this using DOS-style short mode. If the path
28938   # contains just simple characters, use it. Otherwise (spaces, weird characters),
28939   # take no chances and rewrite it.
28940   # Note: m4 eats our [], so we need to use [ and ] instead.
28941   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28942   if test "x$has_forbidden_chars" != x; then
28943     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28944     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28945     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28946     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28947       # Going to short mode and back again did indeed matter. Since short mode is
28948       # case insensitive, let's make it lowercase to improve readability.
28949       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28950       # Now convert it back to Unix-stile (cygpath)
28951       input_path=`$CYGPATH -u "$shortmode_path"`
28952       new_path="$input_path"
28953     fi
28954   fi
28955 
28956   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28957   if test "x$test_cygdrive_prefix" = x; then
28958     # As a simple fix, exclude /usr/bin since it's not a real path.
28959     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28960       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28961       # a path prefixed by /cygdrive for fixpath to work.
28962       new_path="$CYGWIN_ROOT_PATH$input_path"
28963     fi
28964   fi
28965 
28966   # remove trailing .exe if any
28967   new_path="${new_path/%.exe/}"
28968 
28969   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28970 
28971   # First separate the path from the arguments. This will split at the first
28972   # space.
28973   complete="$BUILD_LD"
28974   path="${complete%% *}"
28975   tmp="$complete EOL"
28976   arguments="${tmp#* }"
28977 
28978   # Input might be given as Windows format, start by converting to
28979   # unix format.
28980   new_path="$path"
28981 
28982   windows_path="$new_path"
28983   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28984     unix_path=`$CYGPATH -u "$windows_path"`
28985     new_path="$unix_path"
28986   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28987     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28988     new_path="$unix_path"
28989   fi
28990 
28991 
28992   # Now try to locate executable using which
28993   new_path=`$WHICH "$new_path" 2> /dev/null`
28994 
28995   if test "x$new_path" = x; then
28996     # Oops. Which didn't find the executable.
28997     # The splitting of arguments from the executable at a space might have been incorrect,
28998     # since paths with space are more likely in Windows. Give it another try with the whole
28999     # argument.
29000     path="$complete"
29001     arguments="EOL"
29002     new_path="$path"
29003 
29004   windows_path="$new_path"
29005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29006     unix_path=`$CYGPATH -u "$windows_path"`
29007     new_path="$unix_path"
29008   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29009     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29010     new_path="$unix_path"
29011   fi
29012 
29013 
29014     new_path=`$WHICH "$new_path" 2> /dev/null`
29015 
29016     if test "x$new_path" = x; then
29017       # It's still not found. Now this is an unrecoverable error.
29018       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
29019 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
29020       has_space=`$ECHO "$complete" | $GREP " "`
29021       if test "x$has_space" != x; then
29022         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29023 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29024       fi
29025       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
29026     fi
29027   fi
29028 
29029   # Now new_path has a complete unix path to the binary
29030   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
29031     # Keep paths in /bin as-is, but remove trailing .exe if any
29032     new_path="${new_path/%.exe/}"
29033     # Do not save /bin paths to all_fixpath_prefixes!
29034   else
29035     # Not in mixed or Windows style, start by that.
29036     new_path=`cmd //c echo $new_path`
29037 
29038   input_path="$new_path"
29039   # Check if we need to convert this using DOS-style short mode. If the path
29040   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29041   # take no chances and rewrite it.
29042   # Note: m4 eats our [], so we need to use [ and ] instead.
29043   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
29044   if test "x$has_forbidden_chars" != x; then
29045     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29046     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29047   fi
29048 
29049     # Output is in $new_path
29050 
29051   windows_path="$new_path"
29052   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29053     unix_path=`$CYGPATH -u "$windows_path"`
29054     new_path="$unix_path"
29055   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29056     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29057     new_path="$unix_path"
29058   fi
29059 
29060     # remove trailing .exe if any
29061     new_path="${new_path/%.exe/}"
29062 
29063     # Save the first 10 bytes of this path to the storage, so fixpath can work.
29064     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
29065   fi
29066 
29067   else
29068     # We're on a posix platform. Hooray! :)
29069     # First separate the path from the arguments. This will split at the first
29070     # space.
29071     complete="$BUILD_LD"
29072     path="${complete%% *}"
29073     tmp="$complete EOL"
29074     arguments="${tmp#* }"
29075 
29076     # Cannot rely on the command "which" here since it doesn't always work.
29077     is_absolute_path=`$ECHO "$path" | $GREP ^/`
29078     if test -z "$is_absolute_path"; then
29079       # Path to executable is not absolute. Find it.
29080       IFS_save="$IFS"
29081       IFS=:
29082       for p in $PATH; do
29083         if test -f "$p/$path" && test -x "$p/$path"; then
29084           new_path="$p/$path"
29085           break
29086         fi
29087       done
29088       IFS="$IFS_save"
29089     else
29090       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_LD (as $path) failed, using $path directly." >&5
29091 $as_echo "$as_me: Resolving BUILD_LD (as $path) failed, using $path directly." >&6;}
29092       new_path="$path"
29093     fi
29094 
29095     if test "x$new_path" = x; then
29096       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
29097 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
29098       has_space=`$ECHO "$complete" | $GREP " "`
29099       if test "x$has_space" != x; then
29100         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
29101 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
29102       fi
29103       as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
29104     fi
29105   fi
29106 
29107   # Now join together the path and the arguments once again
29108   if test "x$arguments" != xEOL; then
29109     new_complete="$new_path ${arguments% *}"
29110   else
29111     new_complete="$new_path"
29112   fi
29113 
29114   if test "x$complete" != "x$new_complete"; then
29115     BUILD_LD="$new_complete"
29116     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5
29117 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;}
29118   fi
29119 
29120   fi
29121 
29122 
29123 
29124 
29125   # If a devkit is found on the builddeps server, then prepend its path to the
29126   # PATH variable. If there are cross compilers available in the devkit, these
29127   # will be found by AC_PROG_CC et al.
29128   DEVKIT=
29129 
29130 
29131   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
29132     # Source the builddeps file again, to make sure it uses the latest variables!
29133     . $builddepsfile
29134     # Look for a target and build machine specific resource!
29135     eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
29136     if test "x$resource" = x; then
29137       # Ok, lets instead look for a target specific resource
29138       eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}}
29139     fi
29140     if test "x$resource" = x; then
29141       # Ok, lets instead look for a build specific resource
29142       eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}}
29143     fi
29144     if test "x$resource" = x; then
29145       # Ok, lets instead look for a generic resource
29146       # (The devkit comes from M4 and not the shell, thus no need for eval here.)
29147       resource=${builddep_devkit}
29148     fi
29149     if test "x$resource" != x; then
29150       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5
29151 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;}
29152       # If the resource in the builddeps.conf file is an existing directory,
29153       # for example /java/linux/cups
29154       if test -d ${resource}; then
29155         depdir=${resource}
29156       else
29157 
29158   # devkit is for example mymodule
29159   # $resource is for example libs/general/libmymod_1_2_3.zip
29160   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
29161   # $with_builddeps_dir is for example /localhome/builddeps
29162   # depdir is the name of the variable into which we store the depdir, eg MYMOD
29163   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
29164   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
29165   filename=`basename $resource`
29166   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
29167   filebase=${filename%%.*}
29168   extension=${filename#*.}
29169   installdir=$with_builddeps_dir/$filebase
29170   if test ! -f $installdir/$filename.unpacked; then
29171     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5
29172 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;}
29173     if test ! -d $installdir; then
29174       mkdir -p $installdir
29175     fi
29176     if test ! -d $installdir; then
29177       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
29178     fi
29179     tmpfile=`mktemp $installdir/devkit.XXXXXXXXX`
29180     touch $tmpfile
29181     if test ! -f $tmpfile; then
29182       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
29183     fi
29184 
29185   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
29186   # $tmpfile is the local file name for the downloaded file.
29187   VALID_TOOL=no
29188   if test "x$BDEPS_FTP" = xwget; then
29189     VALID_TOOL=yes
29190     wget -O $tmpfile $with_builddeps_server/$resource
29191   fi
29192   if test "x$BDEPS_FTP" = xlftp; then
29193     VALID_TOOL=yes
29194     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
29195   fi
29196   if test "x$BDEPS_FTP" = xftp; then
29197     VALID_TOOL=yes
29198     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
29199     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
29200     FTPUSERPWD=${FTPSERVER%%@*}
29201     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
29202       FTPUSER=${userpwd%%:*}
29203       FTPPWD=${userpwd#*@}
29204       FTPSERVER=${FTPSERVER#*@}
29205     else
29206       FTPUSER=ftp
29207       FTPPWD=ftp
29208     fi
29209     # the "pass" command does not work on some
29210     # ftp clients (read ftp.exe) but if it works,
29211     # passive mode is better!
29212     ( \
29213         echo "user $FTPUSER $FTPPWD"        ; \
29214         echo "pass"                         ; \
29215         echo "bin"                          ; \
29216         echo "get $FTPPATH $tmpfile"              ; \
29217     ) | ftp -in $FTPSERVER
29218   fi
29219   if test "x$VALID_TOOL" != xyes; then
29220     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
29221   fi
29222 
29223     mv $tmpfile $installdir/$filename
29224     if test ! -s $installdir/$filename; then
29225       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
29226     fi
29227     case "$extension" in
29228       zip)  echo "Unzipping $installdir/$filename..."
29229         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
29230         ;;
29231       tar.gz) echo "Untaring $installdir/$filename..."
29232         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
29233         ;;
29234       tgz) echo "Untaring $installdir/$filename..."
29235         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
29236         ;;
29237       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
29238         ;;
29239     esac
29240   fi
29241   if test -f $installdir/$filename.unpacked; then
29242     depdir=$installdir
29243   fi
29244 
29245       fi
29246       # Source the builddeps file again, because in the previous command, the depdir
29247       # was updated to point at the current build dependency install directory.
29248       . $builddepsfile
29249       # Now extract variables from the builddeps.conf files.
29250       theroot=${builddep_devkit_ROOT}
29251       thecflags=${builddep_devkit_CFLAGS}
29252       thelibs=${builddep_devkit_LIBS}
29253       if test "x$depdir" = x; then
29254         as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5
29255       fi
29256       DEVKIT=$depdir
29257       if test "x$theroot" != x; then
29258         DEVKIT="$theroot"
29259       fi
29260       if test "x$thecflags" != x; then
29261         DEVKIT_CFLAGS="$thecflags"
29262       fi
29263       if test "x$thelibs" != x; then
29264         DEVKIT_LIBS="$thelibs"
29265       fi
29266 
29267         # Found devkit
29268         PATH="$DEVKIT/bin:$PATH"
29269         SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root"
29270         if test "x$x_includes" = "xNONE"; then
29271           x_includes="$SYS_ROOT/usr/include/X11"
29272         fi
29273         if test "x$x_libraries" = "xNONE"; then
29274           x_libraries="$SYS_ROOT/usr/lib"
29275         fi
29276 
29277 
29278     fi
29279 
29280   fi
29281 
29282 
29283   # Store the CFLAGS etal passed to the configure script.
29284   ORG_CFLAGS="$CFLAGS"
29285   ORG_CXXFLAGS="$CXXFLAGS"
29286   ORG_OBJCFLAGS="$OBJCFLAGS"
29287 
29288   # autoconf magic only relies on PATH, so update it if tools dir is specified
29289   OLD_PATH="$PATH"
29290   if test "x$TOOLS_DIR" != x; then
29291     PATH=$TOOLS_DIR:$PATH
29292   fi
29293 
29294 
29295   ### Locate C compiler (CC)
29296 
29297   # On windows, only cl.exe is supported.
29298   # On Solaris, cc is preferred to gcc.
29299   # Elsewhere, gcc is preferred to cc.
29300 
29301   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
29302     COMPILER_CHECK_LIST="cl"
29303   elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
29304     COMPILER_CHECK_LIST="cc gcc"
29305   elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
29306     # Do not probe for cc on AIX.
29307     COMPILER_CHECK_LIST="xlc_r"
29308   else
29309     COMPILER_CHECK_LIST="gcc cc"
29310   fi
29311 
29312 
29313   COMPILER_NAME=C
29314   SEARCH_LIST="$COMPILER_CHECK_LIST"
29315 
29316   if test "x$CC" != x; then
29317     # User has supplied compiler name already, always let that override.
29318     { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5
29319 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;}
29320     if test "x`basename $CC`" = "x$CC"; then
29321       # A command without a complete path is provided, search $PATH.
29322 
29323       for ac_prog in $CC
29324 do
29325   # Extract the first word of "$ac_prog", so it can be a program name with args.
29326 set dummy $ac_prog; ac_word=$2
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29328 $as_echo_n "checking for $ac_word... " >&6; }
29329 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
29330   $as_echo_n "(cached) " >&6
29331 else
29332   case $POTENTIAL_CC in
29333   [\\/]* | ?:[\\/]*)
29334   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
29335   ;;
29336   *)
29337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29338 for as_dir in $PATH
29339 do
29340   IFS=$as_save_IFS
29341   test -z "$as_dir" && as_dir=.
29342     for ac_exec_ext in '' $ac_executable_extensions; do
29343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29344     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
29345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29346     break 2
29347   fi
29348 done
29349   done
29350 IFS=$as_save_IFS
29351 
29352   ;;
29353 esac
29354 fi
29355 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
29356 if test -n "$POTENTIAL_CC"; then
29357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
29358 $as_echo "$POTENTIAL_CC" >&6; }
29359 else
29360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29361 $as_echo "no" >&6; }
29362 fi
29363 
29364 
29365   test -n "$POTENTIAL_CC" && break
29366 done
29367 
29368       if test "x$POTENTIAL_CC" != x; then
29369         CC=$POTENTIAL_CC
29370       else
29371         as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5
29372       fi
29373     else
29374       # Otherwise it might already be a complete path
29375       if test ! -x "$CC"; then
29376         as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5
29377       fi
29378     fi
29379   else
29380     # No user supplied value. Locate compiler ourselves
29381     CC=
29382     # If TOOLS_DIR is set, check for all compiler names in there first
29383     # before checking the rest of the PATH.
29384     if test -n "$TOOLS_DIR"; then
29385       PATH_save="$PATH"
29386       PATH="$TOOLS_DIR"
29387       for ac_prog in $SEARCH_LIST
29388 do
29389   # Extract the first word of "$ac_prog", so it can be a program name with args.
29390 set dummy $ac_prog; ac_word=$2
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29392 $as_echo_n "checking for $ac_word... " >&6; }
29393 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
29394   $as_echo_n "(cached) " >&6
29395 else
29396   case $TOOLS_DIR_CC in
29397   [\\/]* | ?:[\\/]*)
29398   ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
29399   ;;
29400   *)
29401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29402 for as_dir in $PATH
29403 do
29404   IFS=$as_save_IFS
29405   test -z "$as_dir" && as_dir=.
29406     for ac_exec_ext in '' $ac_executable_extensions; do
29407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29408     ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
29409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29410     break 2
29411   fi
29412 done
29413   done
29414 IFS=$as_save_IFS
29415 
29416   ;;
29417 esac
29418 fi
29419 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC
29420 if test -n "$TOOLS_DIR_CC"; then
29421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5
29422 $as_echo "$TOOLS_DIR_CC" >&6; }
29423 else
29424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425 $as_echo "no" >&6; }
29426 fi
29427 
29428 
29429   test -n "$TOOLS_DIR_CC" && break
29430 done
29431 
29432       CC=$TOOLS_DIR_CC
29433       PATH="$PATH_save"
29434     fi
29435 
29436     # AC_PATH_PROGS can't be run multiple times with the same variable,
29437     # so create a new name for this run.
29438     if test "x$CC" = x; then
29439       for ac_prog in $SEARCH_LIST
29440 do
29441   # Extract the first word of "$ac_prog", so it can be a program name with args.
29442 set dummy $ac_prog; ac_word=$2
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29444 $as_echo_n "checking for $ac_word... " >&6; }
29445 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
29446   $as_echo_n "(cached) " >&6
29447 else
29448   case $POTENTIAL_CC in
29449   [\\/]* | ?:[\\/]*)
29450   ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
29451   ;;
29452   *)
29453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29454 for as_dir in $PATH
29455 do
29456   IFS=$as_save_IFS
29457   test -z "$as_dir" && as_dir=.
29458     for ac_exec_ext in '' $ac_executable_extensions; do
29459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29460     ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
29461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29462     break 2
29463   fi
29464 done
29465   done
29466 IFS=$as_save_IFS
29467 
29468   ;;
29469 esac
29470 fi
29471 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
29472 if test -n "$POTENTIAL_CC"; then
29473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
29474 $as_echo "$POTENTIAL_CC" >&6; }
29475 else
29476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29477 $as_echo "no" >&6; }
29478 fi
29479 
29480 
29481   test -n "$POTENTIAL_CC" && break
29482 done
29483 
29484       CC=$POTENTIAL_CC
29485     fi
29486 
29487     if test "x$CC" = x; then
29488 
29489   # Print a helpful message on how to acquire the necessary build dependency.
29490   # devkit is the help tag: freetype, cups, pulse, alsa etc
29491   MISSING_DEPENDENCY=devkit
29492 
29493   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29494     cygwin_help $MISSING_DEPENDENCY
29495   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29496     msys_help $MISSING_DEPENDENCY
29497   else
29498     PKGHANDLER_COMMAND=
29499 
29500     case $PKGHANDLER in
29501       apt-get)
29502         apt_help     $MISSING_DEPENDENCY ;;
29503       yum)
29504         yum_help     $MISSING_DEPENDENCY ;;
29505       port)
29506         port_help    $MISSING_DEPENDENCY ;;
29507       pkgutil)
29508         pkgutil_help $MISSING_DEPENDENCY ;;
29509       pkgadd)
29510         pkgadd_help  $MISSING_DEPENDENCY ;;
29511     esac
29512 
29513     if test "x$PKGHANDLER_COMMAND" != x; then
29514       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
29515     fi
29516   fi
29517 
29518       as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
29519     fi
29520   fi
29521 
29522   # Now we have a compiler binary in CC. Make sure it's okay.
29523 
29524   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29525 
29526   # First separate the path from the arguments. This will split at the first
29527   # space.
29528   complete="$CC"
29529   path="${complete%% *}"
29530   tmp="$complete EOL"
29531   arguments="${tmp#* }"
29532 
29533   # Input might be given as Windows format, start by converting to
29534   # unix format.
29535   new_path=`$CYGPATH -u "$path"`
29536 
29537   # Now try to locate executable using which
29538   new_path=`$WHICH "$new_path" 2> /dev/null`
29539   # bat and cmd files are not always considered executable in cygwin causing which
29540   # to not find them
29541   if test "x$new_path" = x \
29542       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29543       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29544     new_path=`$CYGPATH -u "$path"`
29545   fi
29546   if test "x$new_path" = x; then
29547     # Oops. Which didn't find the executable.
29548     # The splitting of arguments from the executable at a space might have been incorrect,
29549     # since paths with space are more likely in Windows. Give it another try with the whole
29550     # argument.
29551     path="$complete"
29552     arguments="EOL"
29553     new_path=`$CYGPATH -u "$path"`
29554     new_path=`$WHICH "$new_path" 2> /dev/null`
29555     # bat and cmd files are not always considered executable in cygwin causing which
29556     # to not find them
29557     if test "x$new_path" = x \
29558         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29559         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29560       new_path=`$CYGPATH -u "$path"`
29561     fi
29562     if test "x$new_path" = x; then
29563       # It's still not found. Now this is an unrecoverable error.
29564       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
29565 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
29566       has_space=`$ECHO "$complete" | $GREP " "`
29567       if test "x$has_space" != x; then
29568         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29569 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29570       fi
29571       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29572     fi
29573   fi
29574 
29575   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
29576   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
29577   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
29578   # "foo.exe" is OK but "foo" is an error.
29579   #
29580   # This test is therefore slightly more accurate than "test -f" to check for file presence.
29581   # It is also a way to make sure we got the proper file name for the real test later on.
29582   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
29583   if test "x$test_shortpath" = x; then
29584     # Short path failed, file does not exist as specified.
29585     # Try adding .exe or .cmd
29586     if test -f "${new_path}.exe"; then
29587       input_to_shortpath="${new_path}.exe"
29588     elif test -f "${new_path}.cmd"; then
29589       input_to_shortpath="${new_path}.cmd"
29590     else
29591       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5
29592 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;}
29593       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
29594 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
29595       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29596     fi
29597   else
29598     input_to_shortpath="$new_path"
29599   fi
29600 
29601   # Call helper function which possibly converts this using DOS-style short mode.
29602   # If so, the updated path is stored in $new_path.
29603   new_path="$input_to_shortpath"
29604 
29605   input_path="$input_to_shortpath"
29606   # Check if we need to convert this using DOS-style short mode. If the path
29607   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29608   # take no chances and rewrite it.
29609   # Note: m4 eats our [], so we need to use [ and ] instead.
29610   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
29611   if test "x$has_forbidden_chars" != x; then
29612     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29613     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
29614     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
29615     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
29616       # Going to short mode and back again did indeed matter. Since short mode is
29617       # case insensitive, let's make it lowercase to improve readability.
29618       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29619       # Now convert it back to Unix-stile (cygpath)
29620       input_path=`$CYGPATH -u "$shortmode_path"`
29621       new_path="$input_path"
29622     fi
29623   fi
29624 
29625   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
29626   if test "x$test_cygdrive_prefix" = x; then
29627     # As a simple fix, exclude /usr/bin since it's not a real path.
29628     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
29629       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
29630       # a path prefixed by /cygdrive for fixpath to work.
29631       new_path="$CYGWIN_ROOT_PATH$input_path"
29632     fi
29633   fi
29634 
29635   # remove trailing .exe if any
29636   new_path="${new_path/%.exe/}"
29637 
29638   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29639 
29640   # First separate the path from the arguments. This will split at the first
29641   # space.
29642   complete="$CC"
29643   path="${complete%% *}"
29644   tmp="$complete EOL"
29645   arguments="${tmp#* }"
29646 
29647   # Input might be given as Windows format, start by converting to
29648   # unix format.
29649   new_path="$path"
29650 
29651   windows_path="$new_path"
29652   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29653     unix_path=`$CYGPATH -u "$windows_path"`
29654     new_path="$unix_path"
29655   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29656     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29657     new_path="$unix_path"
29658   fi
29659 
29660 
29661   # Now try to locate executable using which
29662   new_path=`$WHICH "$new_path" 2> /dev/null`
29663 
29664   if test "x$new_path" = x; then
29665     # Oops. Which didn't find the executable.
29666     # The splitting of arguments from the executable at a space might have been incorrect,
29667     # since paths with space are more likely in Windows. Give it another try with the whole
29668     # argument.
29669     path="$complete"
29670     arguments="EOL"
29671     new_path="$path"
29672 
29673   windows_path="$new_path"
29674   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29675     unix_path=`$CYGPATH -u "$windows_path"`
29676     new_path="$unix_path"
29677   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29678     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29679     new_path="$unix_path"
29680   fi
29681 
29682 
29683     new_path=`$WHICH "$new_path" 2> /dev/null`
29684 
29685     if test "x$new_path" = x; then
29686       # It's still not found. Now this is an unrecoverable error.
29687       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
29688 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
29689       has_space=`$ECHO "$complete" | $GREP " "`
29690       if test "x$has_space" != x; then
29691         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29692 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29693       fi
29694       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29695     fi
29696   fi
29697 
29698   # Now new_path has a complete unix path to the binary
29699   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
29700     # Keep paths in /bin as-is, but remove trailing .exe if any
29701     new_path="${new_path/%.exe/}"
29702     # Do not save /bin paths to all_fixpath_prefixes!
29703   else
29704     # Not in mixed or Windows style, start by that.
29705     new_path=`cmd //c echo $new_path`
29706 
29707   input_path="$new_path"
29708   # Check if we need to convert this using DOS-style short mode. If the path
29709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
29710   # take no chances and rewrite it.
29711   # Note: m4 eats our [], so we need to use [ and ] instead.
29712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
29713   if test "x$has_forbidden_chars" != x; then
29714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29715     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29716   fi
29717 
29718     # Output is in $new_path
29719 
29720   windows_path="$new_path"
29721   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29722     unix_path=`$CYGPATH -u "$windows_path"`
29723     new_path="$unix_path"
29724   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29725     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29726     new_path="$unix_path"
29727   fi
29728 
29729     # remove trailing .exe if any
29730     new_path="${new_path/%.exe/}"
29731 
29732     # Save the first 10 bytes of this path to the storage, so fixpath can work.
29733     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
29734   fi
29735 
29736   else
29737     # We're on a posix platform. Hooray! :)
29738     # First separate the path from the arguments. This will split at the first
29739     # space.
29740     complete="$CC"
29741     path="${complete%% *}"
29742     tmp="$complete EOL"
29743     arguments="${tmp#* }"
29744 
29745     # Cannot rely on the command "which" here since it doesn't always work.
29746     is_absolute_path=`$ECHO "$path" | $GREP ^/`
29747     if test -z "$is_absolute_path"; then
29748       # Path to executable is not absolute. Find it.
29749       IFS_save="$IFS"
29750       IFS=:
29751       for p in $PATH; do
29752         if test -f "$p/$path" && test -x "$p/$path"; then
29753           new_path="$p/$path"
29754           break
29755         fi
29756       done
29757       IFS="$IFS_save"
29758     else
29759       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CC (as $path) failed, using $path directly." >&5
29760 $as_echo "$as_me: Resolving CC (as $path) failed, using $path directly." >&6;}
29761       new_path="$path"
29762     fi
29763 
29764     if test "x$new_path" = x; then
29765       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
29766 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
29767       has_space=`$ECHO "$complete" | $GREP " "`
29768       if test "x$has_space" != x; then
29769         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
29770 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
29771       fi
29772       as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
29773     fi
29774   fi
29775 
29776   # Now join together the path and the arguments once again
29777   if test "x$arguments" != xEOL; then
29778     new_complete="$new_path ${arguments% *}"
29779   else
29780     new_complete="$new_path"
29781   fi
29782 
29783   if test "x$complete" != "x$new_complete"; then
29784     CC="$new_complete"
29785     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
29786 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
29787   fi
29788 
29789   TEST_COMPILER="$CC"
29790   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
29791   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
29792   if test "x$OPENJDK_BUILD_OS" != xaix; then
29793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
29794 $as_echo_n "checking resolved symbolic links for CC... " >&6; }
29795 
29796   if test "x$OPENJDK_BUILD_OS" != xwindows; then
29797     # Follow a chain of symbolic links. Use readlink
29798     # where it exists, else fall back to horribly
29799     # complicated shell code.
29800     if test "x$READLINK_TESTED" != yes; then
29801       # On MacOSX there is a readlink tool with a different
29802       # purpose than the GNU readlink tool. Check the found readlink.
29803       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
29804       if test "x$ISGNU" = x; then
29805         # A readlink that we do not know how to use.
29806         # Are there other non-GNU readlinks out there?
29807         READLINK_TESTED=yes
29808         READLINK=
29809       fi
29810     fi
29811 
29812     if test "x$READLINK" != x; then
29813       TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
29814     else
29815       # Save the current directory for restoring afterwards
29816       STARTDIR=$PWD
29817       COUNTER=0
29818       sym_link_dir=`$DIRNAME $TEST_COMPILER`
29819       sym_link_file=`$BASENAME $TEST_COMPILER`
29820       cd $sym_link_dir
29821       # Use -P flag to resolve symlinks in directories.
29822       cd `$THEPWDCMD -P`
29823       sym_link_dir=`$THEPWDCMD -P`
29824       # Resolve file symlinks
29825       while test $COUNTER -lt 20; do
29826         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
29827         if test "x$ISLINK" == x; then
29828           # This is not a symbolic link! We are done!
29829           break
29830         fi
29831         # Again resolve directory symlinks since the target of the just found
29832         # link could be in a different directory
29833         cd `$DIRNAME $ISLINK`
29834         sym_link_dir=`$THEPWDCMD -P`
29835         sym_link_file=`$BASENAME $ISLINK`
29836         let COUNTER=COUNTER+1
29837       done
29838       cd $STARTDIR
29839       TEST_COMPILER=$sym_link_dir/$sym_link_file
29840     fi
29841   fi
29842 
29843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
29844 $as_echo "$TEST_COMPILER" >&6; }
29845   fi
29846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
29847 $as_echo_n "checking if CC is disguised ccache... " >&6; }
29848 
29849   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
29850   if test "x$COMPILER_BASENAME" = "xccache"; then
29851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
29852 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
29853     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
29854     # We want to control ccache invocation ourselves, so ignore this cc and try
29855     # searching again.
29856 
29857     # Remove the path to the fake ccache cc from the PATH
29858     RETRY_COMPILER_SAVED_PATH="$PATH"
29859     COMPILER_DIRNAME=`$DIRNAME $CC`
29860     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
29861 
29862     # Try again looking for our compiler
29863     if test -n "$ac_tool_prefix"; then
29864   for ac_prog in $COMPILER_CHECK_LIST
29865   do
29866     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29869 $as_echo_n "checking for $ac_word... " >&6; }
29870 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
29871   $as_echo_n "(cached) " >&6
29872 else
29873   if test -n "$PROPER_COMPILER_CC"; then
29874   ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
29875 else
29876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29877 for as_dir in $PATH
29878 do
29879   IFS=$as_save_IFS
29880   test -z "$as_dir" && as_dir=.
29881     for ac_exec_ext in '' $ac_executable_extensions; do
29882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29883     ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
29884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29885     break 2
29886   fi
29887 done
29888   done
29889 IFS=$as_save_IFS
29890 
29891 fi
29892 fi
29893 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
29894 if test -n "$PROPER_COMPILER_CC"; then
29895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
29896 $as_echo "$PROPER_COMPILER_CC" >&6; }
29897 else
29898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29899 $as_echo "no" >&6; }
29900 fi
29901 
29902 
29903     test -n "$PROPER_COMPILER_CC" && break
29904   done
29905 fi
29906 if test -z "$PROPER_COMPILER_CC"; then
29907   ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
29908   for ac_prog in $COMPILER_CHECK_LIST
29909 do
29910   # Extract the first word of "$ac_prog", so it can be a program name with args.
29911 set dummy $ac_prog; ac_word=$2
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29913 $as_echo_n "checking for $ac_word... " >&6; }
29914 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
29915   $as_echo_n "(cached) " >&6
29916 else
29917   if test -n "$ac_ct_PROPER_COMPILER_CC"; then
29918   ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
29919 else
29920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29921 for as_dir in $PATH
29922 do
29923   IFS=$as_save_IFS
29924   test -z "$as_dir" && as_dir=.
29925     for ac_exec_ext in '' $ac_executable_extensions; do
29926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29927     ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
29928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29929     break 2
29930   fi
29931 done
29932   done
29933 IFS=$as_save_IFS
29934 
29935 fi
29936 fi
29937 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
29938 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
29939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
29940 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
29941 else
29942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29943 $as_echo "no" >&6; }
29944 fi
29945 
29946 
29947   test -n "$ac_ct_PROPER_COMPILER_CC" && break
29948 done
29949 
29950   if test "x$ac_ct_PROPER_COMPILER_CC" = x; then
29951     PROPER_COMPILER_CC=""
29952   else
29953     case $cross_compiling:$ac_tool_warned in
29954 yes:)
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29957 ac_tool_warned=yes ;;
29958 esac
29959     PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC
29960   fi
29961 fi
29962 
29963 
29964   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29965 
29966   # First separate the path from the arguments. This will split at the first
29967   # space.
29968   complete="$PROPER_COMPILER_CC"
29969   path="${complete%% *}"
29970   tmp="$complete EOL"
29971   arguments="${tmp#* }"
29972 
29973   # Input might be given as Windows format, start by converting to
29974   # unix format.
29975   new_path=`$CYGPATH -u "$path"`
29976 
29977   # Now try to locate executable using which
29978   new_path=`$WHICH "$new_path" 2> /dev/null`
29979   # bat and cmd files are not always considered executable in cygwin causing which
29980   # to not find them
29981   if test "x$new_path" = x \
29982       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29983       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29984     new_path=`$CYGPATH -u "$path"`
29985   fi
29986   if test "x$new_path" = x; then
29987     # Oops. Which didn't find the executable.
29988     # The splitting of arguments from the executable at a space might have been incorrect,
29989     # since paths with space are more likely in Windows. Give it another try with the whole
29990     # argument.
29991     path="$complete"
29992     arguments="EOL"
29993     new_path=`$CYGPATH -u "$path"`
29994     new_path=`$WHICH "$new_path" 2> /dev/null`
29995     # bat and cmd files are not always considered executable in cygwin causing which
29996     # to not find them
29997     if test "x$new_path" = x \
29998         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29999         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
30000       new_path=`$CYGPATH -u "$path"`
30001     fi
30002     if test "x$new_path" = x; then
30003       # It's still not found. Now this is an unrecoverable error.
30004       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
30005 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
30006       has_space=`$ECHO "$complete" | $GREP " "`
30007       if test "x$has_space" != x; then
30008         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30009 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30010       fi
30011       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30012     fi
30013   fi
30014 
30015   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
30016   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
30017   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
30018   # "foo.exe" is OK but "foo" is an error.
30019   #
30020   # This test is therefore slightly more accurate than "test -f" to check for file presence.
30021   # It is also a way to make sure we got the proper file name for the real test later on.
30022   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
30023   if test "x$test_shortpath" = x; then
30024     # Short path failed, file does not exist as specified.
30025     # Try adding .exe or .cmd
30026     if test -f "${new_path}.exe"; then
30027       input_to_shortpath="${new_path}.exe"
30028     elif test -f "${new_path}.cmd"; then
30029       input_to_shortpath="${new_path}.cmd"
30030     else
30031       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5
30032 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;}
30033       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
30034 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
30035       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30036     fi
30037   else
30038     input_to_shortpath="$new_path"
30039   fi
30040 
30041   # Call helper function which possibly converts this using DOS-style short mode.
30042   # If so, the updated path is stored in $new_path.
30043   new_path="$input_to_shortpath"
30044 
30045   input_path="$input_to_shortpath"
30046   # Check if we need to convert this using DOS-style short mode. If the path
30047   # contains just simple characters, use it. Otherwise (spaces, weird characters),
30048   # take no chances and rewrite it.
30049   # Note: m4 eats our [], so we need to use [ and ] instead.
30050   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
30051   if test "x$has_forbidden_chars" != x; then
30052     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30053     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
30054     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
30055     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
30056       # Going to short mode and back again did indeed matter. Since short mode is
30057       # case insensitive, let's make it lowercase to improve readability.
30058       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30059       # Now convert it back to Unix-stile (cygpath)
30060       input_path=`$CYGPATH -u "$shortmode_path"`
30061       new_path="$input_path"
30062     fi
30063   fi
30064 
30065   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
30066   if test "x$test_cygdrive_prefix" = x; then
30067     # As a simple fix, exclude /usr/bin since it's not a real path.
30068     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
30069       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
30070       # a path prefixed by /cygdrive for fixpath to work.
30071       new_path="$CYGWIN_ROOT_PATH$input_path"
30072     fi
30073   fi
30074 
30075   # remove trailing .exe if any
30076   new_path="${new_path/%.exe/}"
30077 
30078   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30079 
30080   # First separate the path from the arguments. This will split at the first
30081   # space.
30082   complete="$PROPER_COMPILER_CC"
30083   path="${complete%% *}"
30084   tmp="$complete EOL"
30085   arguments="${tmp#* }"
30086 
30087   # Input might be given as Windows format, start by converting to
30088   # unix format.
30089   new_path="$path"
30090 
30091   windows_path="$new_path"
30092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30093     unix_path=`$CYGPATH -u "$windows_path"`
30094     new_path="$unix_path"
30095   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30096     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30097     new_path="$unix_path"
30098   fi
30099 
30100 
30101   # Now try to locate executable using which
30102   new_path=`$WHICH "$new_path" 2> /dev/null`
30103 
30104   if test "x$new_path" = x; then
30105     # Oops. Which didn't find the executable.
30106     # The splitting of arguments from the executable at a space might have been incorrect,
30107     # since paths with space are more likely in Windows. Give it another try with the whole
30108     # argument.
30109     path="$complete"
30110     arguments="EOL"
30111     new_path="$path"
30112 
30113   windows_path="$new_path"
30114   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30115     unix_path=`$CYGPATH -u "$windows_path"`
30116     new_path="$unix_path"
30117   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30118     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30119     new_path="$unix_path"
30120   fi
30121 
30122 
30123     new_path=`$WHICH "$new_path" 2> /dev/null`
30124 
30125     if test "x$new_path" = x; then
30126       # It's still not found. Now this is an unrecoverable error.
30127       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
30128 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
30129       has_space=`$ECHO "$complete" | $GREP " "`
30130       if test "x$has_space" != x; then
30131         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30132 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30133       fi
30134       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30135     fi
30136   fi
30137 
30138   # Now new_path has a complete unix path to the binary
30139   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
30140     # Keep paths in /bin as-is, but remove trailing .exe if any
30141     new_path="${new_path/%.exe/}"
30142     # Do not save /bin paths to all_fixpath_prefixes!
30143   else
30144     # Not in mixed or Windows style, start by that.
30145     new_path=`cmd //c echo $new_path`
30146 
30147   input_path="$new_path"
30148   # Check if we need to convert this using DOS-style short mode. If the path
30149   # contains just simple characters, use it. Otherwise (spaces, weird characters),
30150   # take no chances and rewrite it.
30151   # Note: m4 eats our [], so we need to use [ and ] instead.
30152   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
30153   if test "x$has_forbidden_chars" != x; then
30154     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30155     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30156   fi
30157 
30158     # Output is in $new_path
30159 
30160   windows_path="$new_path"
30161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30162     unix_path=`$CYGPATH -u "$windows_path"`
30163     new_path="$unix_path"
30164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30165     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30166     new_path="$unix_path"
30167   fi
30168 
30169     # remove trailing .exe if any
30170     new_path="${new_path/%.exe/}"
30171 
30172     # Save the first 10 bytes of this path to the storage, so fixpath can work.
30173     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
30174   fi
30175 
30176   else
30177     # We're on a posix platform. Hooray! :)
30178     # First separate the path from the arguments. This will split at the first
30179     # space.
30180     complete="$PROPER_COMPILER_CC"
30181     path="${complete%% *}"
30182     tmp="$complete EOL"
30183     arguments="${tmp#* }"
30184 
30185     # Cannot rely on the command "which" here since it doesn't always work.
30186     is_absolute_path=`$ECHO "$path" | $GREP ^/`
30187     if test -z "$is_absolute_path"; then
30188       # Path to executable is not absolute. Find it.
30189       IFS_save="$IFS"
30190       IFS=:
30191       for p in $PATH; do
30192         if test -f "$p/$path" && test -x "$p/$path"; then
30193           new_path="$p/$path"
30194           break
30195         fi
30196       done
30197       IFS="$IFS_save"
30198     else
30199       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&5
30200 $as_echo "$as_me: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&6;}
30201       new_path="$path"
30202     fi
30203 
30204     if test "x$new_path" = x; then
30205       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
30206 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
30207       has_space=`$ECHO "$complete" | $GREP " "`
30208       if test "x$has_space" != x; then
30209         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
30210 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
30211       fi
30212       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
30213     fi
30214   fi
30215 
30216   # Now join together the path and the arguments once again
30217   if test "x$arguments" != xEOL; then
30218     new_complete="$new_path ${arguments% *}"
30219   else
30220     new_complete="$new_path"
30221   fi
30222 
30223   if test "x$complete" != "x$new_complete"; then
30224     PROPER_COMPILER_CC="$new_complete"
30225     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5
30226 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;}
30227   fi
30228 
30229     PATH="$RETRY_COMPILER_SAVED_PATH"
30230 
30231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5
30232 $as_echo_n "checking for resolved symbolic links for CC... " >&6; }
30233 
30234   if test "x$OPENJDK_BUILD_OS" != xwindows; then
30235     # Follow a chain of symbolic links. Use readlink
30236     # where it exists, else fall back to horribly
30237     # complicated shell code.
30238     if test "x$READLINK_TESTED" != yes; then
30239       # On MacOSX there is a readlink tool with a different
30240       # purpose than the GNU readlink tool. Check the found readlink.
30241       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
30242       if test "x$ISGNU" = x; then
30243         # A readlink that we do not know how to use.
30244         # Are there other non-GNU readlinks out there?
30245         READLINK_TESTED=yes
30246         READLINK=
30247       fi
30248     fi
30249 
30250     if test "x$READLINK" != x; then
30251       PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC`
30252     else
30253       # Save the current directory for restoring afterwards
30254       STARTDIR=$PWD
30255       COUNTER=0
30256       sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC`
30257       sym_link_file=`$BASENAME $PROPER_COMPILER_CC`
30258       cd $sym_link_dir
30259       # Use -P flag to resolve symlinks in directories.
30260       cd `$THEPWDCMD -P`
30261       sym_link_dir=`$THEPWDCMD -P`
30262       # Resolve file symlinks
30263       while test $COUNTER -lt 20; do
30264         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
30265         if test "x$ISLINK" == x; then
30266           # This is not a symbolic link! We are done!
30267           break
30268         fi
30269         # Again resolve directory symlinks since the target of the just found
30270         # link could be in a different directory
30271         cd `$DIRNAME $ISLINK`
30272         sym_link_dir=`$THEPWDCMD -P`
30273         sym_link_file=`$BASENAME $ISLINK`
30274         let COUNTER=COUNTER+1
30275       done
30276       cd $STARTDIR
30277       PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file
30278     fi
30279   fi
30280 
30281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
30282 $as_echo "$PROPER_COMPILER_CC" >&6; }
30283     CC="$PROPER_COMPILER_CC"
30284   else
30285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5
30286 $as_echo "no, keeping CC" >&6; }
30287   fi
30288 
30289 
30290   COMPILER=$CC
30291   COMPILER_NAME=$COMPILER_NAME
30292 
30293   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
30294     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
30295     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
30296     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
30297     if test $? -ne 0; then
30298       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
30299 
30300       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
30301 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
30302       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
30303 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
30304       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30305     else
30306       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
30307       COMPILER_VENDOR="Sun Studio"
30308     fi
30309   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
30310       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
30311       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
30312       if test $? -ne 0; then
30313         as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
30314       else
30315         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
30316         COMPILER_VENDOR='IBM'
30317       fi
30318   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
30319     # First line typically looks something like:
30320     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
30321     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
30322     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
30323     COMPILER_VENDOR="Microsoft CL.EXE"
30324     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
30325     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
30326       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
30327         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
30328       fi
30329     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
30330       if test "x$COMPILER_CPU_TEST" != "xx64"; then
30331         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
30332       fi
30333     fi
30334   else
30335     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
30336     # Check that this is likely to be GCC.
30337     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
30338     if test $? -ne 0; then
30339       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5
30340 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;}
30341       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5
30342 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;}
30343       as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30344     fi
30345 
30346     # First line typically looks something like:
30347     # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
30348     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"`
30349     COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"`
30350   fi
30351   # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker)
30352   CC_VERSION="$COMPILER_VERSION"
30353   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
30354   CC_VENDOR="$COMPILER_VENDOR"
30355 
30356   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
30357 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
30358 
30359 
30360   # Now that we have resolved CC ourself, let autoconf have its go at it
30361   ac_ext=c
30362 ac_cpp='$CPP $CPPFLAGS'
30363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30366 if test -n "$ac_tool_prefix"; then
30367   for ac_prog in $CC
30368   do
30369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30372 $as_echo_n "checking for $ac_word... " >&6; }
30373 if ${ac_cv_prog_CC+:} false; then :
30374   $as_echo_n "(cached) " >&6
30375 else
30376   if test -n "$CC"; then
30377   ac_cv_prog_CC="$CC" # Let the user override the test.
30378 else
30379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30380 for as_dir in $PATH
30381 do
30382   IFS=$as_save_IFS
30383   test -z "$as_dir" && as_dir=.
30384     for ac_exec_ext in '' $ac_executable_extensions; do
30385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30388     break 2
30389   fi
30390 done
30391   done
30392 IFS=$as_save_IFS
30393 
30394 fi
30395 fi
30396 CC=$ac_cv_prog_CC
30397 if test -n "$CC"; then
30398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30399 $as_echo "$CC" >&6; }
30400 else
30401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402 $as_echo "no" >&6; }
30403 fi
30404 
30405 
30406     test -n "$CC" && break
30407   done
30408 fi
30409 if test -z "$CC"; then
30410   ac_ct_CC=$CC
30411   for ac_prog in $CC
30412 do
30413   # Extract the first word of "$ac_prog", so it can be a program name with args.
30414 set dummy $ac_prog; ac_word=$2
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30416 $as_echo_n "checking for $ac_word... " >&6; }
30417 if ${ac_cv_prog_ac_ct_CC+:} false; then :
30418   $as_echo_n "(cached) " >&6
30419 else
30420   if test -n "$ac_ct_CC"; then
30421   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30422 else
30423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30424 for as_dir in $PATH
30425 do
30426   IFS=$as_save_IFS
30427   test -z "$as_dir" && as_dir=.
30428     for ac_exec_ext in '' $ac_executable_extensions; do
30429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30430     ac_cv_prog_ac_ct_CC="$ac_prog"
30431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30432     break 2
30433   fi
30434 done
30435   done
30436 IFS=$as_save_IFS
30437 
30438 fi
30439 fi
30440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30441 if test -n "$ac_ct_CC"; then
30442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30443 $as_echo "$ac_ct_CC" >&6; }
30444 else
30445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30446 $as_echo "no" >&6; }
30447 fi
30448 
30449 
30450   test -n "$ac_ct_CC" && break
30451 done
30452 
30453   if test "x$ac_ct_CC" = x; then
30454     CC=""
30455   else
30456     case $cross_compiling:$ac_tool_warned in
30457 yes:)
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30460 ac_tool_warned=yes ;;
30461 esac
30462     CC=$ac_ct_CC
30463   fi
30464 fi
30465 
30466 
30467 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30469 as_fn_error $? "no acceptable C compiler found in \$PATH
30470 See \`config.log' for more details" "$LINENO" 5; }
30471 
30472 # Provide some information about the compiler.
30473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30474 set X $ac_compile
30475 ac_compiler=$2
30476 for ac_option in --version -v -V -qversion; do
30477   { { ac_try="$ac_compiler $ac_option >&5"
30478 case "(($ac_try" in
30479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480   *) ac_try_echo=$ac_try;;
30481 esac
30482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30483 $as_echo "$ac_try_echo"; } >&5
30484   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30485   ac_status=$?
30486   if test -s conftest.err; then
30487     sed '10a\
30488 ... rest of stderr output deleted ...
30489          10q' conftest.err >conftest.er1
30490     cat conftest.er1 >&5
30491   fi
30492   rm -f conftest.er1 conftest.err
30493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30494   test $ac_status = 0; }
30495 done
30496 
30497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30498 /* end confdefs.h.  */
30499 
30500 int
30501 main ()
30502 {
30503 
30504   ;
30505   return 0;
30506 }
30507 _ACEOF
30508 ac_clean_files_save=$ac_clean_files
30509 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
30510 # Try to create an executable without -o first, disregard a.out.
30511 # It will help us diagnose broken compilers, and finding out an intuition
30512 # of exeext.
30513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
30514 $as_echo_n "checking whether the C compiler works... " >&6; }
30515 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
30516 
30517 # The possible output files:
30518 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
30519 
30520 ac_rmfiles=
30521 for ac_file in $ac_files
30522 do
30523   case $ac_file in
30524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30525     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
30526   esac
30527 done
30528 rm -f $ac_rmfiles
30529 
30530 if { { ac_try="$ac_link_default"
30531 case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30536 $as_echo "$ac_try_echo"; } >&5
30537   (eval "$ac_link_default") 2>&5
30538   ac_status=$?
30539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30540   test $ac_status = 0; }; then :
30541   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
30542 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
30543 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
30544 # so that the user can short-circuit this test for compilers unknown to
30545 # Autoconf.
30546 for ac_file in $ac_files ''
30547 do
30548   test -f "$ac_file" || continue
30549   case $ac_file in
30550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
30551         ;;
30552     [ab].out )
30553         # We found the default executable, but exeext='' is most
30554         # certainly right.
30555         break;;
30556     *.* )
30557         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
30558         then :; else
30559            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30560         fi
30561         # We set ac_cv_exeext here because the later test for it is not
30562         # safe: cross compilers may not add the suffix if given an `-o'
30563         # argument, so we may need to know it at that point already.
30564         # Even if this section looks crufty: it has the advantage of
30565         # actually working.
30566         break;;
30567     * )
30568         break;;
30569   esac
30570 done
30571 test "$ac_cv_exeext" = no && ac_cv_exeext=
30572 
30573 else
30574   ac_file=''
30575 fi
30576 if test -z "$ac_file"; then :
30577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30578 $as_echo "no" >&6; }
30579 $as_echo "$as_me: failed program was:" >&5
30580 sed 's/^/| /' conftest.$ac_ext >&5
30581 
30582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30584 as_fn_error 77 "C compiler cannot create executables
30585 See \`config.log' for more details" "$LINENO" 5; }
30586 else
30587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30588 $as_echo "yes" >&6; }
30589 fi
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
30591 $as_echo_n "checking for C compiler default output file name... " >&6; }
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
30593 $as_echo "$ac_file" >&6; }
30594 ac_exeext=$ac_cv_exeext
30595 
30596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
30597 ac_clean_files=$ac_clean_files_save
30598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
30599 $as_echo_n "checking for suffix of executables... " >&6; }
30600 if { { ac_try="$ac_link"
30601 case "(($ac_try" in
30602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603   *) ac_try_echo=$ac_try;;
30604 esac
30605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30606 $as_echo "$ac_try_echo"; } >&5
30607   (eval "$ac_link") 2>&5
30608   ac_status=$?
30609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30610   test $ac_status = 0; }; then :
30611   # If both `conftest.exe' and `conftest' are `present' (well, observable)
30612 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
30613 # work properly (i.e., refer to `conftest.exe'), while it won't with
30614 # `rm'.
30615 for ac_file in conftest.exe conftest conftest.*; do
30616   test -f "$ac_file" || continue
30617   case $ac_file in
30618     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30619     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30620           break;;
30621     * ) break;;
30622   esac
30623 done
30624 else
30625   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30627 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
30628 See \`config.log' for more details" "$LINENO" 5; }
30629 fi
30630 rm -f conftest conftest$ac_cv_exeext
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
30632 $as_echo "$ac_cv_exeext" >&6; }
30633 
30634 rm -f conftest.$ac_ext
30635 EXEEXT=$ac_cv_exeext
30636 ac_exeext=$EXEEXT
30637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30638 /* end confdefs.h.  */
30639 #include <stdio.h>
30640 int
30641 main ()
30642 {
30643 FILE *f = fopen ("conftest.out", "w");
30644  return ferror (f) || fclose (f) != 0;
30645 
30646   ;
30647   return 0;
30648 }
30649 _ACEOF
30650 ac_clean_files="$ac_clean_files conftest.out"
30651 # Check that the compiler produces executables we can run.  If not, either
30652 # the compiler is broken, or we cross compile.
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
30654 $as_echo_n "checking whether we are cross compiling... " >&6; }
30655 if test "$cross_compiling" != yes; then
30656   { { ac_try="$ac_link"
30657 case "(($ac_try" in
30658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659   *) ac_try_echo=$ac_try;;
30660 esac
30661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30662 $as_echo "$ac_try_echo"; } >&5
30663   (eval "$ac_link") 2>&5
30664   ac_status=$?
30665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30666   test $ac_status = 0; }
30667   if { ac_try='./conftest$ac_cv_exeext'
30668   { { case "(($ac_try" in
30669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670   *) ac_try_echo=$ac_try;;
30671 esac
30672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30673 $as_echo "$ac_try_echo"; } >&5
30674   (eval "$ac_try") 2>&5
30675   ac_status=$?
30676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30677   test $ac_status = 0; }; }; then
30678     cross_compiling=no
30679   else
30680     if test "$cross_compiling" = maybe; then
30681         cross_compiling=yes
30682     else
30683         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30685 as_fn_error $? "cannot run C compiled programs.
30686 If you meant to cross compile, use \`--host'.
30687 See \`config.log' for more details" "$LINENO" 5; }
30688     fi
30689   fi
30690 fi
30691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
30692 $as_echo "$cross_compiling" >&6; }
30693 
30694 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
30695 ac_clean_files=$ac_clean_files_save
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
30697 $as_echo_n "checking for suffix of object files... " >&6; }
30698 if ${ac_cv_objext+:} false; then :
30699   $as_echo_n "(cached) " >&6
30700 else
30701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30702 /* end confdefs.h.  */
30703 
30704 int
30705 main ()
30706 {
30707 
30708   ;
30709   return 0;
30710 }
30711 _ACEOF
30712 rm -f conftest.o conftest.obj
30713 if { { ac_try="$ac_compile"
30714 case "(($ac_try" in
30715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716   *) ac_try_echo=$ac_try;;
30717 esac
30718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30719 $as_echo "$ac_try_echo"; } >&5
30720   (eval "$ac_compile") 2>&5
30721   ac_status=$?
30722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30723   test $ac_status = 0; }; then :
30724   for ac_file in conftest.o conftest.obj conftest.*; do
30725   test -f "$ac_file" || continue;
30726   case $ac_file in
30727     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30728     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30729        break;;
30730   esac
30731 done
30732 else
30733   $as_echo "$as_me: failed program was:" >&5
30734 sed 's/^/| /' conftest.$ac_ext >&5
30735 
30736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30738 as_fn_error $? "cannot compute suffix of object files: cannot compile
30739 See \`config.log' for more details" "$LINENO" 5; }
30740 fi
30741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
30742 fi
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
30744 $as_echo "$ac_cv_objext" >&6; }
30745 OBJEXT=$ac_cv_objext
30746 ac_objext=$OBJEXT
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
30748 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30749 if ${ac_cv_c_compiler_gnu+:} false; then :
30750   $as_echo_n "(cached) " >&6
30751 else
30752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30753 /* end confdefs.h.  */
30754 
30755 int
30756 main ()
30757 {
30758 #ifndef __GNUC__
30759        choke me
30760 #endif
30761 
30762   ;
30763   return 0;
30764 }
30765 _ACEOF
30766 if ac_fn_c_try_compile "$LINENO"; then :
30767   ac_compiler_gnu=yes
30768 else
30769   ac_compiler_gnu=no
30770 fi
30771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
30773 
30774 fi
30775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
30776 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
30777 if test $ac_compiler_gnu = yes; then
30778   GCC=yes
30779 else
30780   GCC=
30781 fi
30782 ac_test_CFLAGS=${CFLAGS+set}
30783 ac_save_CFLAGS=$CFLAGS
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
30785 $as_echo_n "checking whether $CC accepts -g... " >&6; }
30786 if ${ac_cv_prog_cc_g+:} false; then :
30787   $as_echo_n "(cached) " >&6
30788 else
30789   ac_save_c_werror_flag=$ac_c_werror_flag
30790    ac_c_werror_flag=yes
30791    ac_cv_prog_cc_g=no
30792    CFLAGS="-g"
30793    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30794 /* end confdefs.h.  */
30795 
30796 int
30797 main ()
30798 {
30799 
30800   ;
30801   return 0;
30802 }
30803 _ACEOF
30804 if ac_fn_c_try_compile "$LINENO"; then :
30805   ac_cv_prog_cc_g=yes
30806 else
30807   CFLAGS=""
30808       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30809 /* end confdefs.h.  */
30810 
30811 int
30812 main ()
30813 {
30814 
30815   ;
30816   return 0;
30817 }
30818 _ACEOF
30819 if ac_fn_c_try_compile "$LINENO"; then :
30820 
30821 else
30822   ac_c_werror_flag=$ac_save_c_werror_flag
30823          CFLAGS="-g"
30824          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30825 /* end confdefs.h.  */
30826 
30827 int
30828 main ()
30829 {
30830 
30831   ;
30832   return 0;
30833 }
30834 _ACEOF
30835 if ac_fn_c_try_compile "$LINENO"; then :
30836   ac_cv_prog_cc_g=yes
30837 fi
30838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30839 fi
30840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30841 fi
30842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30843    ac_c_werror_flag=$ac_save_c_werror_flag
30844 fi
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
30846 $as_echo "$ac_cv_prog_cc_g" >&6; }
30847 if test "$ac_test_CFLAGS" = set; then
30848   CFLAGS=$ac_save_CFLAGS
30849 elif test $ac_cv_prog_cc_g = yes; then
30850   if test "$GCC" = yes; then
30851     CFLAGS="-g -O2"
30852   else
30853     CFLAGS="-g"
30854   fi
30855 else
30856   if test "$GCC" = yes; then
30857     CFLAGS="-O2"
30858   else
30859     CFLAGS=
30860   fi
30861 fi
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
30863 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
30864 if ${ac_cv_prog_cc_c89+:} false; then :
30865   $as_echo_n "(cached) " >&6
30866 else
30867   ac_cv_prog_cc_c89=no
30868 ac_save_CC=$CC
30869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30870 /* end confdefs.h.  */
30871 #include <stdarg.h>
30872 #include <stdio.h>
30873 struct stat;
30874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
30875 struct buf { int x; };
30876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
30877 static char *e (p, i)
30878      char **p;
30879      int i;
30880 {
30881   return p[i];
30882 }
30883 static char *f (char * (*g) (char **, int), char **p, ...)
30884 {
30885   char *s;
30886   va_list v;
30887   va_start (v,p);
30888   s = g (p, va_arg (v,int));
30889   va_end (v);
30890   return s;
30891 }
30892 
30893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
30894    function prototypes and stuff, but not '\xHH' hex character constants.
30895    These don't provoke an error unfortunately, instead are silently treated
30896    as 'x'.  The following induces an error, until -std is added to get
30897    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
30898    array size at least.  It's necessary to write '\x00'==0 to get something
30899    that's true only with -std.  */
30900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
30901 
30902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
30903    inside strings and character constants.  */
30904 #define FOO(x) 'x'
30905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
30906 
30907 int test (int i, double x);
30908 struct s1 {int (*f) (int a);};
30909 struct s2 {int (*f) (double a);};
30910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
30911 int argc;
30912 char **argv;
30913 int
30914 main ()
30915 {
30916 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
30917   ;
30918   return 0;
30919 }
30920 _ACEOF
30921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
30922         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
30923 do
30924   CC="$ac_save_CC $ac_arg"
30925   if ac_fn_c_try_compile "$LINENO"; then :
30926   ac_cv_prog_cc_c89=$ac_arg
30927 fi
30928 rm -f core conftest.err conftest.$ac_objext
30929   test "x$ac_cv_prog_cc_c89" != "xno" && break
30930 done
30931 rm -f conftest.$ac_ext
30932 CC=$ac_save_CC
30933 
30934 fi
30935 # AC_CACHE_VAL
30936 case "x$ac_cv_prog_cc_c89" in
30937   x)
30938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
30939 $as_echo "none needed" >&6; } ;;
30940   xno)
30941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
30942 $as_echo "unsupported" >&6; } ;;
30943   *)
30944     CC="$CC $ac_cv_prog_cc_c89"
30945     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
30946 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
30947 esac
30948 if test "x$ac_cv_prog_cc_c89" != xno; then :
30949 
30950 fi
30951 
30952 ac_ext=cpp
30953 ac_cpp='$CXXCPP $CPPFLAGS'
30954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30957 
30958 
30959   # Option used to tell the compiler whether to create 32- or 64-bit executables
30960   # Notice that CC contains the full compiler path at this point.
30961   case $CC in
30962     *xlc_r) COMPILER_TARGET_BITS_FLAG="-q";;
30963     *)      COMPILER_TARGET_BITS_FLAG="-m";;
30964   esac
30965 
30966 
30967   ### Locate C++ compiler (CXX)
30968 
30969   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
30970     COMPILER_CHECK_LIST="cl"
30971   elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
30972     COMPILER_CHECK_LIST="CC g++"
30973   elif test "x$OPENJDK_TARGET_OS" = "xaix"; then
30974     # Do not probe for CC on AIX .
30975     COMPILER_CHECK_LIST="xlC_r"
30976   else
30977     COMPILER_CHECK_LIST="g++ CC"
30978   fi
30979 
30980 
30981   COMPILER_NAME=C++
30982   SEARCH_LIST="$COMPILER_CHECK_LIST"
30983 
30984   if test "x$CXX" != x; then
30985     # User has supplied compiler name already, always let that override.
30986     { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5
30987 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;}
30988     if test "x`basename $CXX`" = "x$CXX"; then
30989       # A command without a complete path is provided, search $PATH.
30990 
30991       for ac_prog in $CXX
30992 do
30993   # Extract the first word of "$ac_prog", so it can be a program name with args.
30994 set dummy $ac_prog; ac_word=$2
30995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30996 $as_echo_n "checking for $ac_word... " >&6; }
30997 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
30998   $as_echo_n "(cached) " >&6
30999 else
31000   case $POTENTIAL_CXX in
31001   [\\/]* | ?:[\\/]*)
31002   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
31003   ;;
31004   *)
31005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31006 for as_dir in $PATH
31007 do
31008   IFS=$as_save_IFS
31009   test -z "$as_dir" && as_dir=.
31010     for ac_exec_ext in '' $ac_executable_extensions; do
31011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31012     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
31013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31014     break 2
31015   fi
31016 done
31017   done
31018 IFS=$as_save_IFS
31019 
31020   ;;
31021 esac
31022 fi
31023 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
31024 if test -n "$POTENTIAL_CXX"; then
31025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
31026 $as_echo "$POTENTIAL_CXX" >&6; }
31027 else
31028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31029 $as_echo "no" >&6; }
31030 fi
31031 
31032 
31033   test -n "$POTENTIAL_CXX" && break
31034 done
31035 
31036       if test "x$POTENTIAL_CXX" != x; then
31037         CXX=$POTENTIAL_CXX
31038       else
31039         as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5
31040       fi
31041     else
31042       # Otherwise it might already be a complete path
31043       if test ! -x "$CXX"; then
31044         as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5
31045       fi
31046     fi
31047   else
31048     # No user supplied value. Locate compiler ourselves
31049     CXX=
31050     # If TOOLS_DIR is set, check for all compiler names in there first
31051     # before checking the rest of the PATH.
31052     if test -n "$TOOLS_DIR"; then
31053       PATH_save="$PATH"
31054       PATH="$TOOLS_DIR"
31055       for ac_prog in $SEARCH_LIST
31056 do
31057   # Extract the first word of "$ac_prog", so it can be a program name with args.
31058 set dummy $ac_prog; ac_word=$2
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31060 $as_echo_n "checking for $ac_word... " >&6; }
31061 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
31062   $as_echo_n "(cached) " >&6
31063 else
31064   case $TOOLS_DIR_CXX in
31065   [\\/]* | ?:[\\/]*)
31066   ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
31067   ;;
31068   *)
31069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31070 for as_dir in $PATH
31071 do
31072   IFS=$as_save_IFS
31073   test -z "$as_dir" && as_dir=.
31074     for ac_exec_ext in '' $ac_executable_extensions; do
31075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31076     ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
31077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31078     break 2
31079   fi
31080 done
31081   done
31082 IFS=$as_save_IFS
31083 
31084   ;;
31085 esac
31086 fi
31087 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX
31088 if test -n "$TOOLS_DIR_CXX"; then
31089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5
31090 $as_echo "$TOOLS_DIR_CXX" >&6; }
31091 else
31092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31093 $as_echo "no" >&6; }
31094 fi
31095 
31096 
31097   test -n "$TOOLS_DIR_CXX" && break
31098 done
31099 
31100       CXX=$TOOLS_DIR_CXX
31101       PATH="$PATH_save"
31102     fi
31103 
31104     # AC_PATH_PROGS can't be run multiple times with the same variable,
31105     # so create a new name for this run.
31106     if test "x$CXX" = x; then
31107       for ac_prog in $SEARCH_LIST
31108 do
31109   # Extract the first word of "$ac_prog", so it can be a program name with args.
31110 set dummy $ac_prog; ac_word=$2
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31112 $as_echo_n "checking for $ac_word... " >&6; }
31113 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
31114   $as_echo_n "(cached) " >&6
31115 else
31116   case $POTENTIAL_CXX in
31117   [\\/]* | ?:[\\/]*)
31118   ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
31119   ;;
31120   *)
31121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31122 for as_dir in $PATH
31123 do
31124   IFS=$as_save_IFS
31125   test -z "$as_dir" && as_dir=.
31126     for ac_exec_ext in '' $ac_executable_extensions; do
31127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31128     ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
31129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31130     break 2
31131   fi
31132 done
31133   done
31134 IFS=$as_save_IFS
31135 
31136   ;;
31137 esac
31138 fi
31139 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
31140 if test -n "$POTENTIAL_CXX"; then
31141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
31142 $as_echo "$POTENTIAL_CXX" >&6; }
31143 else
31144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31145 $as_echo "no" >&6; }
31146 fi
31147 
31148 
31149   test -n "$POTENTIAL_CXX" && break
31150 done
31151 
31152       CXX=$POTENTIAL_CXX
31153     fi
31154 
31155     if test "x$CXX" = x; then
31156 
31157   # Print a helpful message on how to acquire the necessary build dependency.
31158   # devkit is the help tag: freetype, cups, pulse, alsa etc
31159   MISSING_DEPENDENCY=devkit
31160 
31161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31162     cygwin_help $MISSING_DEPENDENCY
31163   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31164     msys_help $MISSING_DEPENDENCY
31165   else
31166     PKGHANDLER_COMMAND=
31167 
31168     case $PKGHANDLER in
31169       apt-get)
31170         apt_help     $MISSING_DEPENDENCY ;;
31171       yum)
31172         yum_help     $MISSING_DEPENDENCY ;;
31173       port)
31174         port_help    $MISSING_DEPENDENCY ;;
31175       pkgutil)
31176         pkgutil_help $MISSING_DEPENDENCY ;;
31177       pkgadd)
31178         pkgadd_help  $MISSING_DEPENDENCY ;;
31179     esac
31180 
31181     if test "x$PKGHANDLER_COMMAND" != x; then
31182       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
31183     fi
31184   fi
31185 
31186       as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
31187     fi
31188   fi
31189 
31190   # Now we have a compiler binary in CXX. Make sure it's okay.
31191 
31192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31193 
31194   # First separate the path from the arguments. This will split at the first
31195   # space.
31196   complete="$CXX"
31197   path="${complete%% *}"
31198   tmp="$complete EOL"
31199   arguments="${tmp#* }"
31200 
31201   # Input might be given as Windows format, start by converting to
31202   # unix format.
31203   new_path=`$CYGPATH -u "$path"`
31204 
31205   # Now try to locate executable using which
31206   new_path=`$WHICH "$new_path" 2> /dev/null`
31207   # bat and cmd files are not always considered executable in cygwin causing which
31208   # to not find them
31209   if test "x$new_path" = x \
31210       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31211       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31212     new_path=`$CYGPATH -u "$path"`
31213   fi
31214   if test "x$new_path" = x; then
31215     # Oops. Which didn't find the executable.
31216     # The splitting of arguments from the executable at a space might have been incorrect,
31217     # since paths with space are more likely in Windows. Give it another try with the whole
31218     # argument.
31219     path="$complete"
31220     arguments="EOL"
31221     new_path=`$CYGPATH -u "$path"`
31222     new_path=`$WHICH "$new_path" 2> /dev/null`
31223     # bat and cmd files are not always considered executable in cygwin causing which
31224     # to not find them
31225     if test "x$new_path" = x \
31226         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31227         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31228       new_path=`$CYGPATH -u "$path"`
31229     fi
31230     if test "x$new_path" = x; then
31231       # It's still not found. Now this is an unrecoverable error.
31232       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
31233 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
31234       has_space=`$ECHO "$complete" | $GREP " "`
31235       if test "x$has_space" != x; then
31236         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31238       fi
31239       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31240     fi
31241   fi
31242 
31243   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31244   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31245   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31246   # "foo.exe" is OK but "foo" is an error.
31247   #
31248   # This test is therefore slightly more accurate than "test -f" to check for file presence.
31249   # It is also a way to make sure we got the proper file name for the real test later on.
31250   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31251   if test "x$test_shortpath" = x; then
31252     # Short path failed, file does not exist as specified.
31253     # Try adding .exe or .cmd
31254     if test -f "${new_path}.exe"; then
31255       input_to_shortpath="${new_path}.exe"
31256     elif test -f "${new_path}.cmd"; then
31257       input_to_shortpath="${new_path}.cmd"
31258     else
31259       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5
31260 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;}
31261       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31262 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31263       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31264     fi
31265   else
31266     input_to_shortpath="$new_path"
31267   fi
31268 
31269   # Call helper function which possibly converts this using DOS-style short mode.
31270   # If so, the updated path is stored in $new_path.
31271   new_path="$input_to_shortpath"
31272 
31273   input_path="$input_to_shortpath"
31274   # Check if we need to convert this using DOS-style short mode. If the path
31275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31276   # take no chances and rewrite it.
31277   # Note: m4 eats our [], so we need to use [ and ] instead.
31278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31279   if test "x$has_forbidden_chars" != x; then
31280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31281     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31282     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31283     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31284       # Going to short mode and back again did indeed matter. Since short mode is
31285       # case insensitive, let's make it lowercase to improve readability.
31286       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31287       # Now convert it back to Unix-stile (cygpath)
31288       input_path=`$CYGPATH -u "$shortmode_path"`
31289       new_path="$input_path"
31290     fi
31291   fi
31292 
31293   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31294   if test "x$test_cygdrive_prefix" = x; then
31295     # As a simple fix, exclude /usr/bin since it's not a real path.
31296     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31297       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31298       # a path prefixed by /cygdrive for fixpath to work.
31299       new_path="$CYGWIN_ROOT_PATH$input_path"
31300     fi
31301   fi
31302 
31303   # remove trailing .exe if any
31304   new_path="${new_path/%.exe/}"
31305 
31306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31307 
31308   # First separate the path from the arguments. This will split at the first
31309   # space.
31310   complete="$CXX"
31311   path="${complete%% *}"
31312   tmp="$complete EOL"
31313   arguments="${tmp#* }"
31314 
31315   # Input might be given as Windows format, start by converting to
31316   # unix format.
31317   new_path="$path"
31318 
31319   windows_path="$new_path"
31320   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31321     unix_path=`$CYGPATH -u "$windows_path"`
31322     new_path="$unix_path"
31323   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31324     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31325     new_path="$unix_path"
31326   fi
31327 
31328 
31329   # Now try to locate executable using which
31330   new_path=`$WHICH "$new_path" 2> /dev/null`
31331 
31332   if test "x$new_path" = x; then
31333     # Oops. Which didn't find the executable.
31334     # The splitting of arguments from the executable at a space might have been incorrect,
31335     # since paths with space are more likely in Windows. Give it another try with the whole
31336     # argument.
31337     path="$complete"
31338     arguments="EOL"
31339     new_path="$path"
31340 
31341   windows_path="$new_path"
31342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31343     unix_path=`$CYGPATH -u "$windows_path"`
31344     new_path="$unix_path"
31345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31347     new_path="$unix_path"
31348   fi
31349 
31350 
31351     new_path=`$WHICH "$new_path" 2> /dev/null`
31352 
31353     if test "x$new_path" = x; then
31354       # It's still not found. Now this is an unrecoverable error.
31355       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
31356 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
31357       has_space=`$ECHO "$complete" | $GREP " "`
31358       if test "x$has_space" != x; then
31359         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31361       fi
31362       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31363     fi
31364   fi
31365 
31366   # Now new_path has a complete unix path to the binary
31367   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31368     # Keep paths in /bin as-is, but remove trailing .exe if any
31369     new_path="${new_path/%.exe/}"
31370     # Do not save /bin paths to all_fixpath_prefixes!
31371   else
31372     # Not in mixed or Windows style, start by that.
31373     new_path=`cmd //c echo $new_path`
31374 
31375   input_path="$new_path"
31376   # Check if we need to convert this using DOS-style short mode. If the path
31377   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31378   # take no chances and rewrite it.
31379   # Note: m4 eats our [], so we need to use [ and ] instead.
31380   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31381   if test "x$has_forbidden_chars" != x; then
31382     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31383     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31384   fi
31385 
31386     # Output is in $new_path
31387 
31388   windows_path="$new_path"
31389   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31390     unix_path=`$CYGPATH -u "$windows_path"`
31391     new_path="$unix_path"
31392   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31393     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31394     new_path="$unix_path"
31395   fi
31396 
31397     # remove trailing .exe if any
31398     new_path="${new_path/%.exe/}"
31399 
31400     # Save the first 10 bytes of this path to the storage, so fixpath can work.
31401     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31402   fi
31403 
31404   else
31405     # We're on a posix platform. Hooray! :)
31406     # First separate the path from the arguments. This will split at the first
31407     # space.
31408     complete="$CXX"
31409     path="${complete%% *}"
31410     tmp="$complete EOL"
31411     arguments="${tmp#* }"
31412 
31413     # Cannot rely on the command "which" here since it doesn't always work.
31414     is_absolute_path=`$ECHO "$path" | $GREP ^/`
31415     if test -z "$is_absolute_path"; then
31416       # Path to executable is not absolute. Find it.
31417       IFS_save="$IFS"
31418       IFS=:
31419       for p in $PATH; do
31420         if test -f "$p/$path" && test -x "$p/$path"; then
31421           new_path="$p/$path"
31422           break
31423         fi
31424       done
31425       IFS="$IFS_save"
31426     else
31427       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXX (as $path) failed, using $path directly." >&5
31428 $as_echo "$as_me: Resolving CXX (as $path) failed, using $path directly." >&6;}
31429       new_path="$path"
31430     fi
31431 
31432     if test "x$new_path" = x; then
31433       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
31434 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
31435       has_space=`$ECHO "$complete" | $GREP " "`
31436       if test "x$has_space" != x; then
31437         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31438 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31439       fi
31440       as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
31441     fi
31442   fi
31443 
31444   # Now join together the path and the arguments once again
31445   if test "x$arguments" != xEOL; then
31446     new_complete="$new_path ${arguments% *}"
31447   else
31448     new_complete="$new_path"
31449   fi
31450 
31451   if test "x$complete" != "x$new_complete"; then
31452     CXX="$new_complete"
31453     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
31454 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
31455   fi
31456 
31457   TEST_COMPILER="$CXX"
31458   # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
31459   # to 'xlc' but it is crucial that we invoke the compiler with the right name!
31460   if test "x$OPENJDK_BUILD_OS" != xaix; then
31461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
31462 $as_echo_n "checking resolved symbolic links for CXX... " >&6; }
31463 
31464   if test "x$OPENJDK_BUILD_OS" != xwindows; then
31465     # Follow a chain of symbolic links. Use readlink
31466     # where it exists, else fall back to horribly
31467     # complicated shell code.
31468     if test "x$READLINK_TESTED" != yes; then
31469       # On MacOSX there is a readlink tool with a different
31470       # purpose than the GNU readlink tool. Check the found readlink.
31471       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
31472       if test "x$ISGNU" = x; then
31473         # A readlink that we do not know how to use.
31474         # Are there other non-GNU readlinks out there?
31475         READLINK_TESTED=yes
31476         READLINK=
31477       fi
31478     fi
31479 
31480     if test "x$READLINK" != x; then
31481       TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
31482     else
31483       # Save the current directory for restoring afterwards
31484       STARTDIR=$PWD
31485       COUNTER=0
31486       sym_link_dir=`$DIRNAME $TEST_COMPILER`
31487       sym_link_file=`$BASENAME $TEST_COMPILER`
31488       cd $sym_link_dir
31489       # Use -P flag to resolve symlinks in directories.
31490       cd `$THEPWDCMD -P`
31491       sym_link_dir=`$THEPWDCMD -P`
31492       # Resolve file symlinks
31493       while test $COUNTER -lt 20; do
31494         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
31495         if test "x$ISLINK" == x; then
31496           # This is not a symbolic link! We are done!
31497           break
31498         fi
31499         # Again resolve directory symlinks since the target of the just found
31500         # link could be in a different directory
31501         cd `$DIRNAME $ISLINK`
31502         sym_link_dir=`$THEPWDCMD -P`
31503         sym_link_file=`$BASENAME $ISLINK`
31504         let COUNTER=COUNTER+1
31505       done
31506       cd $STARTDIR
31507       TEST_COMPILER=$sym_link_dir/$sym_link_file
31508     fi
31509   fi
31510 
31511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
31512 $as_echo "$TEST_COMPILER" >&6; }
31513   fi
31514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
31515 $as_echo_n "checking if CXX is disguised ccache... " >&6; }
31516 
31517   COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
31518   if test "x$COMPILER_BASENAME" = "xccache"; then
31519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
31520 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
31521     # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
31522     # We want to control ccache invocation ourselves, so ignore this cc and try
31523     # searching again.
31524 
31525     # Remove the path to the fake ccache cc from the PATH
31526     RETRY_COMPILER_SAVED_PATH="$PATH"
31527     COMPILER_DIRNAME=`$DIRNAME $CXX`
31528     PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
31529 
31530     # Try again looking for our compiler
31531     if test -n "$ac_tool_prefix"; then
31532   for ac_prog in $COMPILER_CHECK_LIST
31533   do
31534     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31537 $as_echo_n "checking for $ac_word... " >&6; }
31538 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
31539   $as_echo_n "(cached) " >&6
31540 else
31541   if test -n "$PROPER_COMPILER_CXX"; then
31542   ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
31543 else
31544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31545 for as_dir in $PATH
31546 do
31547   IFS=$as_save_IFS
31548   test -z "$as_dir" && as_dir=.
31549     for ac_exec_ext in '' $ac_executable_extensions; do
31550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31551     ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
31552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31553     break 2
31554   fi
31555 done
31556   done
31557 IFS=$as_save_IFS
31558 
31559 fi
31560 fi
31561 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
31562 if test -n "$PROPER_COMPILER_CXX"; then
31563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
31564 $as_echo "$PROPER_COMPILER_CXX" >&6; }
31565 else
31566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31567 $as_echo "no" >&6; }
31568 fi
31569 
31570 
31571     test -n "$PROPER_COMPILER_CXX" && break
31572   done
31573 fi
31574 if test -z "$PROPER_COMPILER_CXX"; then
31575   ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
31576   for ac_prog in $COMPILER_CHECK_LIST
31577 do
31578   # Extract the first word of "$ac_prog", so it can be a program name with args.
31579 set dummy $ac_prog; ac_word=$2
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31581 $as_echo_n "checking for $ac_word... " >&6; }
31582 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
31583   $as_echo_n "(cached) " >&6
31584 else
31585   if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
31586   ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
31587 else
31588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31589 for as_dir in $PATH
31590 do
31591   IFS=$as_save_IFS
31592   test -z "$as_dir" && as_dir=.
31593     for ac_exec_ext in '' $ac_executable_extensions; do
31594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31595     ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
31596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31597     break 2
31598   fi
31599 done
31600   done
31601 IFS=$as_save_IFS
31602 
31603 fi
31604 fi
31605 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
31606 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
31607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
31608 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
31609 else
31610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31611 $as_echo "no" >&6; }
31612 fi
31613 
31614 
31615   test -n "$ac_ct_PROPER_COMPILER_CXX" && break
31616 done
31617 
31618   if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then
31619     PROPER_COMPILER_CXX=""
31620   else
31621     case $cross_compiling:$ac_tool_warned in
31622 yes:)
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31625 ac_tool_warned=yes ;;
31626 esac
31627     PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX
31628   fi
31629 fi
31630 
31631 
31632   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31633 
31634   # First separate the path from the arguments. This will split at the first
31635   # space.
31636   complete="$PROPER_COMPILER_CXX"
31637   path="${complete%% *}"
31638   tmp="$complete EOL"
31639   arguments="${tmp#* }"
31640 
31641   # Input might be given as Windows format, start by converting to
31642   # unix format.
31643   new_path=`$CYGPATH -u "$path"`
31644 
31645   # Now try to locate executable using which
31646   new_path=`$WHICH "$new_path" 2> /dev/null`
31647   # bat and cmd files are not always considered executable in cygwin causing which
31648   # to not find them
31649   if test "x$new_path" = x \
31650       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31651       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31652     new_path=`$CYGPATH -u "$path"`
31653   fi
31654   if test "x$new_path" = x; then
31655     # Oops. Which didn't find the executable.
31656     # The splitting of arguments from the executable at a space might have been incorrect,
31657     # since paths with space are more likely in Windows. Give it another try with the whole
31658     # argument.
31659     path="$complete"
31660     arguments="EOL"
31661     new_path=`$CYGPATH -u "$path"`
31662     new_path=`$WHICH "$new_path" 2> /dev/null`
31663     # bat and cmd files are not always considered executable in cygwin causing which
31664     # to not find them
31665     if test "x$new_path" = x \
31666         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31667         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31668       new_path=`$CYGPATH -u "$path"`
31669     fi
31670     if test "x$new_path" = x; then
31671       # It's still not found. Now this is an unrecoverable error.
31672       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
31673 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
31674       has_space=`$ECHO "$complete" | $GREP " "`
31675       if test "x$has_space" != x; then
31676         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31678       fi
31679       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31680     fi
31681   fi
31682 
31683   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31684   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31685   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31686   # "foo.exe" is OK but "foo" is an error.
31687   #
31688   # This test is therefore slightly more accurate than "test -f" to check for file presence.
31689   # It is also a way to make sure we got the proper file name for the real test later on.
31690   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31691   if test "x$test_shortpath" = x; then
31692     # Short path failed, file does not exist as specified.
31693     # Try adding .exe or .cmd
31694     if test -f "${new_path}.exe"; then
31695       input_to_shortpath="${new_path}.exe"
31696     elif test -f "${new_path}.cmd"; then
31697       input_to_shortpath="${new_path}.cmd"
31698     else
31699       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5
31700 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;}
31701       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31702 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31703       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31704     fi
31705   else
31706     input_to_shortpath="$new_path"
31707   fi
31708 
31709   # Call helper function which possibly converts this using DOS-style short mode.
31710   # If so, the updated path is stored in $new_path.
31711   new_path="$input_to_shortpath"
31712 
31713   input_path="$input_to_shortpath"
31714   # Check if we need to convert this using DOS-style short mode. If the path
31715   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31716   # take no chances and rewrite it.
31717   # Note: m4 eats our [], so we need to use [ and ] instead.
31718   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31719   if test "x$has_forbidden_chars" != x; then
31720     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31721     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31722     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31723     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31724       # Going to short mode and back again did indeed matter. Since short mode is
31725       # case insensitive, let's make it lowercase to improve readability.
31726       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31727       # Now convert it back to Unix-stile (cygpath)
31728       input_path=`$CYGPATH -u "$shortmode_path"`
31729       new_path="$input_path"
31730     fi
31731   fi
31732 
31733   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31734   if test "x$test_cygdrive_prefix" = x; then
31735     # As a simple fix, exclude /usr/bin since it's not a real path.
31736     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31737       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31738       # a path prefixed by /cygdrive for fixpath to work.
31739       new_path="$CYGWIN_ROOT_PATH$input_path"
31740     fi
31741   fi
31742 
31743   # remove trailing .exe if any
31744   new_path="${new_path/%.exe/}"
31745 
31746   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31747 
31748   # First separate the path from the arguments. This will split at the first
31749   # space.
31750   complete="$PROPER_COMPILER_CXX"
31751   path="${complete%% *}"
31752   tmp="$complete EOL"
31753   arguments="${tmp#* }"
31754 
31755   # Input might be given as Windows format, start by converting to
31756   # unix format.
31757   new_path="$path"
31758 
31759   windows_path="$new_path"
31760   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31761     unix_path=`$CYGPATH -u "$windows_path"`
31762     new_path="$unix_path"
31763   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31764     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31765     new_path="$unix_path"
31766   fi
31767 
31768 
31769   # Now try to locate executable using which
31770   new_path=`$WHICH "$new_path" 2> /dev/null`
31771 
31772   if test "x$new_path" = x; then
31773     # Oops. Which didn't find the executable.
31774     # The splitting of arguments from the executable at a space might have been incorrect,
31775     # since paths with space are more likely in Windows. Give it another try with the whole
31776     # argument.
31777     path="$complete"
31778     arguments="EOL"
31779     new_path="$path"
31780 
31781   windows_path="$new_path"
31782   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31783     unix_path=`$CYGPATH -u "$windows_path"`
31784     new_path="$unix_path"
31785   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31786     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31787     new_path="$unix_path"
31788   fi
31789 
31790 
31791     new_path=`$WHICH "$new_path" 2> /dev/null`
31792 
31793     if test "x$new_path" = x; then
31794       # It's still not found. Now this is an unrecoverable error.
31795       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
31796 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
31797       has_space=`$ECHO "$complete" | $GREP " "`
31798       if test "x$has_space" != x; then
31799         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31800 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31801       fi
31802       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31803     fi
31804   fi
31805 
31806   # Now new_path has a complete unix path to the binary
31807   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31808     # Keep paths in /bin as-is, but remove trailing .exe if any
31809     new_path="${new_path/%.exe/}"
31810     # Do not save /bin paths to all_fixpath_prefixes!
31811   else
31812     # Not in mixed or Windows style, start by that.
31813     new_path=`cmd //c echo $new_path`
31814 
31815   input_path="$new_path"
31816   # Check if we need to convert this using DOS-style short mode. If the path
31817   # contains just simple characters, use it. Otherwise (spaces, weird characters),
31818   # take no chances and rewrite it.
31819   # Note: m4 eats our [], so we need to use [ and ] instead.
31820   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31821   if test "x$has_forbidden_chars" != x; then
31822     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31823     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31824   fi
31825 
31826     # Output is in $new_path
31827 
31828   windows_path="$new_path"
31829   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31830     unix_path=`$CYGPATH -u "$windows_path"`
31831     new_path="$unix_path"
31832   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31833     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31834     new_path="$unix_path"
31835   fi
31836 
31837     # remove trailing .exe if any
31838     new_path="${new_path/%.exe/}"
31839 
31840     # Save the first 10 bytes of this path to the storage, so fixpath can work.
31841     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31842   fi
31843 
31844   else
31845     # We're on a posix platform. Hooray! :)
31846     # First separate the path from the arguments. This will split at the first
31847     # space.
31848     complete="$PROPER_COMPILER_CXX"
31849     path="${complete%% *}"
31850     tmp="$complete EOL"
31851     arguments="${tmp#* }"
31852 
31853     # Cannot rely on the command "which" here since it doesn't always work.
31854     is_absolute_path=`$ECHO "$path" | $GREP ^/`
31855     if test -z "$is_absolute_path"; then
31856       # Path to executable is not absolute. Find it.
31857       IFS_save="$IFS"
31858       IFS=:
31859       for p in $PATH; do
31860         if test -f "$p/$path" && test -x "$p/$path"; then
31861           new_path="$p/$path"
31862           break
31863         fi
31864       done
31865       IFS="$IFS_save"
31866     else
31867       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&5
31868 $as_echo "$as_me: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&6;}
31869       new_path="$path"
31870     fi
31871 
31872     if test "x$new_path" = x; then
31873       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
31874 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
31875       has_space=`$ECHO "$complete" | $GREP " "`
31876       if test "x$has_space" != x; then
31877         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31878 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31879       fi
31880       as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
31881     fi
31882   fi
31883 
31884   # Now join together the path and the arguments once again
31885   if test "x$arguments" != xEOL; then
31886     new_complete="$new_path ${arguments% *}"
31887   else
31888     new_complete="$new_path"
31889   fi
31890 
31891   if test "x$complete" != "x$new_complete"; then
31892     PROPER_COMPILER_CXX="$new_complete"
31893     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5
31894 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;}
31895   fi
31896 
31897     PATH="$RETRY_COMPILER_SAVED_PATH"
31898 
31899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5
31900 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; }
31901 
31902   if test "x$OPENJDK_BUILD_OS" != xwindows; then
31903     # Follow a chain of symbolic links. Use readlink
31904     # where it exists, else fall back to horribly
31905     # complicated shell code.
31906     if test "x$READLINK_TESTED" != yes; then
31907       # On MacOSX there is a readlink tool with a different
31908       # purpose than the GNU readlink tool. Check the found readlink.
31909       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
31910       if test "x$ISGNU" = x; then
31911         # A readlink that we do not know how to use.
31912         # Are there other non-GNU readlinks out there?
31913         READLINK_TESTED=yes
31914         READLINK=
31915       fi
31916     fi
31917 
31918     if test "x$READLINK" != x; then
31919       PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX`
31920     else
31921       # Save the current directory for restoring afterwards
31922       STARTDIR=$PWD
31923       COUNTER=0
31924       sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX`
31925       sym_link_file=`$BASENAME $PROPER_COMPILER_CXX`
31926       cd $sym_link_dir
31927       # Use -P flag to resolve symlinks in directories.
31928       cd `$THEPWDCMD -P`
31929       sym_link_dir=`$THEPWDCMD -P`
31930       # Resolve file symlinks
31931       while test $COUNTER -lt 20; do
31932         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
31933         if test "x$ISLINK" == x; then
31934           # This is not a symbolic link! We are done!
31935           break
31936         fi
31937         # Again resolve directory symlinks since the target of the just found
31938         # link could be in a different directory
31939         cd `$DIRNAME $ISLINK`
31940         sym_link_dir=`$THEPWDCMD -P`
31941         sym_link_file=`$BASENAME $ISLINK`
31942         let COUNTER=COUNTER+1
31943       done
31944       cd $STARTDIR
31945       PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file
31946     fi
31947   fi
31948 
31949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
31950 $as_echo "$PROPER_COMPILER_CXX" >&6; }
31951     CXX="$PROPER_COMPILER_CXX"
31952   else
31953     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5
31954 $as_echo "no, keeping CXX" >&6; }
31955   fi
31956 
31957 
31958   COMPILER=$CXX
31959   COMPILER_NAME=$COMPILER_NAME
31960 
31961   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
31962     # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work
31963     COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1`
31964     $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
31965     if test $? -ne 0; then
31966       GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
31967 
31968       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5
31969 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;}
31970       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5
31971 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;}
31972       as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5
31973     else
31974       COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"`
31975       COMPILER_VENDOR="Sun Studio"
31976     fi
31977   elif test  "x$OPENJDK_TARGET_OS" = xaix; then
31978       COMPILER_VERSION_TEST=`$COMPILER -qversion  2>&1 | $TAIL -n 1`
31979       $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null
31980       if test $? -ne 0; then
31981         as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5
31982       else
31983         COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'`
31984         COMPILER_VENDOR='IBM'
31985       fi
31986   elif test  "x$OPENJDK_TARGET_OS" = xwindows; then
31987     # First line typically looks something like:
31988     # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
31989     COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
31990     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"`
31991     COMPILER_VENDOR="Microsoft CL.EXE"
31992     COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"`
31993     if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
31994       if test "x$COMPILER_CPU_TEST" != "x80x86"; then
31995         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
31996       fi
31997     elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
31998       if test "x$COMPILER_CPU_TEST" != "xx64"; then
31999         as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
32000       fi
32001     fi
32002   else
32003     COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1`
32004     # Check that this is likely to be GCC.
32005     $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null
32006     if test $? -ne 0; then
32007       { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5
32008 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;}
32009       { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5
32010 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;}
32011       as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5
32012     fi
32013 
32014     # First line typically looks something like:
32015     # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
32016     COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"`
32017     COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"`
32018   fi
32019   # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker)
32020   CXX_VERSION="$COMPILER_VERSION"
32021   # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
32022   CXX_VENDOR="$COMPILER_VENDOR"
32023 
32024   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
32025 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
32026 
32027 
32028   # Now that we have resolved CXX ourself, let autoconf have its go at it
32029   ac_ext=cpp
32030 ac_cpp='$CXXCPP $CPPFLAGS'
32031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32034 if test -z "$CXX"; then
32035   if test -n "$CCC"; then
32036     CXX=$CCC
32037   else
32038     if test -n "$ac_tool_prefix"; then
32039   for ac_prog in $CXX
32040   do
32041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32044 $as_echo_n "checking for $ac_word... " >&6; }
32045 if ${ac_cv_prog_CXX+:} false; then :
32046   $as_echo_n "(cached) " >&6
32047 else
32048   if test -n "$CXX"; then
32049   ac_cv_prog_CXX="$CXX" # Let the user override the test.
32050 else
32051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32052 for as_dir in $PATH
32053 do
32054   IFS=$as_save_IFS
32055   test -z "$as_dir" && as_dir=.
32056     for ac_exec_ext in '' $ac_executable_extensions; do
32057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32058     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
32059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32060     break 2
32061   fi
32062 done
32063   done
32064 IFS=$as_save_IFS
32065 
32066 fi
32067 fi
32068 CXX=$ac_cv_prog_CXX
32069 if test -n "$CXX"; then
32070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
32071 $as_echo "$CXX" >&6; }
32072 else
32073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32074 $as_echo "no" >&6; }
32075 fi
32076 
32077 
32078     test -n "$CXX" && break
32079   done
32080 fi
32081 if test -z "$CXX"; then
32082   ac_ct_CXX=$CXX
32083   for ac_prog in $CXX
32084 do
32085   # Extract the first word of "$ac_prog", so it can be a program name with args.
32086 set dummy $ac_prog; ac_word=$2
32087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32088 $as_echo_n "checking for $ac_word... " >&6; }
32089 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
32090   $as_echo_n "(cached) " >&6
32091 else
32092   if test -n "$ac_ct_CXX"; then
32093   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
32094 else
32095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32096 for as_dir in $PATH
32097 do
32098   IFS=$as_save_IFS
32099   test -z "$as_dir" && as_dir=.
32100     for ac_exec_ext in '' $ac_executable_extensions; do
32101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32102     ac_cv_prog_ac_ct_CXX="$ac_prog"
32103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32104     break 2
32105   fi
32106 done
32107   done
32108 IFS=$as_save_IFS
32109 
32110 fi
32111 fi
32112 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32113 if test -n "$ac_ct_CXX"; then
32114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
32115 $as_echo "$ac_ct_CXX" >&6; }
32116 else
32117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32118 $as_echo "no" >&6; }
32119 fi
32120 
32121 
32122   test -n "$ac_ct_CXX" && break
32123 done
32124 
32125   if test "x$ac_ct_CXX" = x; then
32126     CXX="g++"
32127   else
32128     case $cross_compiling:$ac_tool_warned in
32129 yes:)
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32132 ac_tool_warned=yes ;;
32133 esac
32134     CXX=$ac_ct_CXX
32135   fi
32136 fi
32137 
32138   fi
32139 fi
32140 # Provide some information about the compiler.
32141 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
32142 set X $ac_compile
32143 ac_compiler=$2
32144 for ac_option in --version -v -V -qversion; do
32145   { { ac_try="$ac_compiler $ac_option >&5"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32151 $as_echo "$ac_try_echo"; } >&5
32152   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32153   ac_status=$?
32154   if test -s conftest.err; then
32155     sed '10a\
32156 ... rest of stderr output deleted ...
32157          10q' conftest.err >conftest.er1
32158     cat conftest.er1 >&5
32159   fi
32160   rm -f conftest.er1 conftest.err
32161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32162   test $ac_status = 0; }
32163 done
32164 
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
32166 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
32167 if ${ac_cv_cxx_compiler_gnu+:} false; then :
32168   $as_echo_n "(cached) " >&6
32169 else
32170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32171 /* end confdefs.h.  */
32172 
32173 int
32174 main ()
32175 {
32176 #ifndef __GNUC__
32177        choke me
32178 #endif
32179 
32180   ;
32181   return 0;
32182 }
32183 _ACEOF
32184 if ac_fn_cxx_try_compile "$LINENO"; then :
32185   ac_compiler_gnu=yes
32186 else
32187   ac_compiler_gnu=no
32188 fi
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
32191 
32192 fi
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
32194 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
32195 if test $ac_compiler_gnu = yes; then
32196   GXX=yes
32197 else
32198   GXX=
32199 fi
32200 ac_test_CXXFLAGS=${CXXFLAGS+set}
32201 ac_save_CXXFLAGS=$CXXFLAGS
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
32203 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
32204 if ${ac_cv_prog_cxx_g+:} false; then :
32205   $as_echo_n "(cached) " >&6
32206 else
32207   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
32208    ac_cxx_werror_flag=yes
32209    ac_cv_prog_cxx_g=no
32210    CXXFLAGS="-g"
32211    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32212 /* end confdefs.h.  */
32213 
32214 int
32215 main ()
32216 {
32217 
32218   ;
32219   return 0;
32220 }
32221 _ACEOF
32222 if ac_fn_cxx_try_compile "$LINENO"; then :
32223   ac_cv_prog_cxx_g=yes
32224 else
32225   CXXFLAGS=""
32226       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32227 /* end confdefs.h.  */
32228 
32229 int
32230 main ()
32231 {
32232 
32233   ;
32234   return 0;
32235 }
32236 _ACEOF
32237 if ac_fn_cxx_try_compile "$LINENO"; then :
32238 
32239 else
32240   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32241          CXXFLAGS="-g"
32242          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32243 /* end confdefs.h.  */
32244 
32245 int
32246 main ()
32247 {
32248 
32249   ;
32250   return 0;
32251 }
32252 _ACEOF
32253 if ac_fn_cxx_try_compile "$LINENO"; then :
32254   ac_cv_prog_cxx_g=yes
32255 fi
32256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257 fi
32258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32259 fi
32260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32261    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32262 fi
32263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
32264 $as_echo "$ac_cv_prog_cxx_g" >&6; }
32265 if test "$ac_test_CXXFLAGS" = set; then
32266   CXXFLAGS=$ac_save_CXXFLAGS
32267 elif test $ac_cv_prog_cxx_g = yes; then
32268   if test "$GXX" = yes; then
32269     CXXFLAGS="-g -O2"
32270   else
32271     CXXFLAGS="-g"
32272   fi
32273 else
32274   if test "$GXX" = yes; then
32275     CXXFLAGS="-O2"
32276   else
32277     CXXFLAGS=
32278   fi
32279 fi
32280 ac_ext=cpp
32281 ac_cpp='$CXXCPP $CPPFLAGS'
32282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32285 
32286 
32287   ### Locate other tools
32288 
32289   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
32290     ac_ext=m
32291 ac_cpp='$OBJCPP $CPPFLAGS'
32292 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32293 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32294 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
32295 if test -n "$ac_tool_prefix"; then
32296   for ac_prog in gcc objcc objc cc CC
32297   do
32298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32301 $as_echo_n "checking for $ac_word... " >&6; }
32302 if ${ac_cv_prog_OBJC+:} false; then :
32303   $as_echo_n "(cached) " >&6
32304 else
32305   if test -n "$OBJC"; then
32306   ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
32307 else
32308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32309 for as_dir in $PATH
32310 do
32311   IFS=$as_save_IFS
32312   test -z "$as_dir" && as_dir=.
32313     for ac_exec_ext in '' $ac_executable_extensions; do
32314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32315     ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
32316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32317     break 2
32318   fi
32319 done
32320   done
32321 IFS=$as_save_IFS
32322 
32323 fi
32324 fi
32325 OBJC=$ac_cv_prog_OBJC
32326 if test -n "$OBJC"; then
32327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
32328 $as_echo "$OBJC" >&6; }
32329 else
32330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32331 $as_echo "no" >&6; }
32332 fi
32333 
32334 
32335     test -n "$OBJC" && break
32336   done
32337 fi
32338 if test -z "$OBJC"; then
32339   ac_ct_OBJC=$OBJC
32340   for ac_prog in gcc objcc objc cc CC
32341 do
32342   # Extract the first word of "$ac_prog", so it can be a program name with args.
32343 set dummy $ac_prog; ac_word=$2
32344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32345 $as_echo_n "checking for $ac_word... " >&6; }
32346 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
32347   $as_echo_n "(cached) " >&6
32348 else
32349   if test -n "$ac_ct_OBJC"; then
32350   ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
32351 else
32352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32353 for as_dir in $PATH
32354 do
32355   IFS=$as_save_IFS
32356   test -z "$as_dir" && as_dir=.
32357     for ac_exec_ext in '' $ac_executable_extensions; do
32358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32359     ac_cv_prog_ac_ct_OBJC="$ac_prog"
32360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32361     break 2
32362   fi
32363 done
32364   done
32365 IFS=$as_save_IFS
32366 
32367 fi
32368 fi
32369 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
32370 if test -n "$ac_ct_OBJC"; then
32371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
32372 $as_echo "$ac_ct_OBJC" >&6; }
32373 else
32374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32375 $as_echo "no" >&6; }
32376 fi
32377 
32378 
32379   test -n "$ac_ct_OBJC" && break
32380 done
32381 
32382   if test "x$ac_ct_OBJC" = x; then
32383     OBJC="gcc"
32384   else
32385     case $cross_compiling:$ac_tool_warned in
32386 yes:)
32387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32389 ac_tool_warned=yes ;;
32390 esac
32391     OBJC=$ac_ct_OBJC
32392   fi
32393 fi
32394 
32395 # Provide some information about the compiler.
32396 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
32397 set X $ac_compile
32398 ac_compiler=$2
32399 for ac_option in --version -v -V -qversion; do
32400   { { ac_try="$ac_compiler $ac_option >&5"
32401 case "(($ac_try" in
32402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32403   *) ac_try_echo=$ac_try;;
32404 esac
32405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32406 $as_echo "$ac_try_echo"; } >&5
32407   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32408   ac_status=$?
32409   if test -s conftest.err; then
32410     sed '10a\
32411 ... rest of stderr output deleted ...
32412          10q' conftest.err >conftest.er1
32413     cat conftest.er1 >&5
32414   fi
32415   rm -f conftest.er1 conftest.err
32416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32417   test $ac_status = 0; }
32418 done
32419 
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
32421 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
32422 if ${ac_cv_objc_compiler_gnu+:} false; then :
32423   $as_echo_n "(cached) " >&6
32424 else
32425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32426 /* end confdefs.h.  */
32427 
32428 int
32429 main ()
32430 {
32431 #ifndef __GNUC__
32432        choke me
32433 #endif
32434 
32435   ;
32436   return 0;
32437 }
32438 _ACEOF
32439 if ac_fn_objc_try_compile "$LINENO"; then :
32440   ac_compiler_gnu=yes
32441 else
32442   ac_compiler_gnu=no
32443 fi
32444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32445 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
32446 
32447 fi
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
32449 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
32450 if test $ac_compiler_gnu = yes; then
32451   GOBJC=yes
32452 else
32453   GOBJC=
32454 fi
32455 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
32456 ac_save_OBJCFLAGS=$OBJCFLAGS
32457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
32458 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
32459 if ${ac_cv_prog_objc_g+:} false; then :
32460   $as_echo_n "(cached) " >&6
32461 else
32462   ac_save_objc_werror_flag=$ac_objc_werror_flag
32463    ac_objc_werror_flag=yes
32464    ac_cv_prog_objc_g=no
32465    OBJCFLAGS="-g"
32466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32467 /* end confdefs.h.  */
32468 
32469 int
32470 main ()
32471 {
32472 
32473   ;
32474   return 0;
32475 }
32476 _ACEOF
32477 if ac_fn_objc_try_compile "$LINENO"; then :
32478   ac_cv_prog_objc_g=yes
32479 else
32480   OBJCFLAGS=""
32481       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32482 /* end confdefs.h.  */
32483 
32484 int
32485 main ()
32486 {
32487 
32488   ;
32489   return 0;
32490 }
32491 _ACEOF
32492 if ac_fn_objc_try_compile "$LINENO"; then :
32493 
32494 else
32495   ac_objc_werror_flag=$ac_save_objc_werror_flag
32496          OBJCFLAGS="-g"
32497          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32498 /* end confdefs.h.  */
32499 
32500 int
32501 main ()
32502 {
32503 
32504   ;
32505   return 0;
32506 }
32507 _ACEOF
32508 if ac_fn_objc_try_compile "$LINENO"; then :
32509   ac_cv_prog_objc_g=yes
32510 fi
32511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32512 fi
32513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32514 fi
32515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32516    ac_objc_werror_flag=$ac_save_objc_werror_flag
32517 fi
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
32519 $as_echo "$ac_cv_prog_objc_g" >&6; }
32520 if test "$ac_test_OBJCFLAGS" = set; then
32521   OBJCFLAGS=$ac_save_OBJCFLAGS
32522 elif test $ac_cv_prog_objc_g = yes; then
32523   if test "$GOBJC" = yes; then
32524     OBJCFLAGS="-g -O2"
32525   else
32526     OBJCFLAGS="-g"
32527   fi
32528 else
32529   if test "$GOBJC" = yes; then
32530     OBJCFLAGS="-O2"
32531   else
32532     OBJCFLAGS=
32533   fi
32534 fi
32535 ac_ext=cpp
32536 ac_cpp='$CXXCPP $CPPFLAGS'
32537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32540 
32541 
32542   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32543 
32544   # First separate the path from the arguments. This will split at the first
32545   # space.
32546   complete="$OBJC"
32547   path="${complete%% *}"
32548   tmp="$complete EOL"
32549   arguments="${tmp#* }"
32550 
32551   # Input might be given as Windows format, start by converting to
32552   # unix format.
32553   new_path=`$CYGPATH -u "$path"`
32554 
32555   # Now try to locate executable using which
32556   new_path=`$WHICH "$new_path" 2> /dev/null`
32557   # bat and cmd files are not always considered executable in cygwin causing which
32558   # to not find them
32559   if test "x$new_path" = x \
32560       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32561       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32562     new_path=`$CYGPATH -u "$path"`
32563   fi
32564   if test "x$new_path" = x; then
32565     # Oops. Which didn't find the executable.
32566     # The splitting of arguments from the executable at a space might have been incorrect,
32567     # since paths with space are more likely in Windows. Give it another try with the whole
32568     # argument.
32569     path="$complete"
32570     arguments="EOL"
32571     new_path=`$CYGPATH -u "$path"`
32572     new_path=`$WHICH "$new_path" 2> /dev/null`
32573     # bat and cmd files are not always considered executable in cygwin causing which
32574     # to not find them
32575     if test "x$new_path" = x \
32576         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32577         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32578       new_path=`$CYGPATH -u "$path"`
32579     fi
32580     if test "x$new_path" = x; then
32581       # It's still not found. Now this is an unrecoverable error.
32582       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
32583 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
32584       has_space=`$ECHO "$complete" | $GREP " "`
32585       if test "x$has_space" != x; then
32586         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32587 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32588       fi
32589       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32590     fi
32591   fi
32592 
32593   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
32594   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
32595   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
32596   # "foo.exe" is OK but "foo" is an error.
32597   #
32598   # This test is therefore slightly more accurate than "test -f" to check for file presence.
32599   # It is also a way to make sure we got the proper file name for the real test later on.
32600   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
32601   if test "x$test_shortpath" = x; then
32602     # Short path failed, file does not exist as specified.
32603     # Try adding .exe or .cmd
32604     if test -f "${new_path}.exe"; then
32605       input_to_shortpath="${new_path}.exe"
32606     elif test -f "${new_path}.cmd"; then
32607       input_to_shortpath="${new_path}.cmd"
32608     else
32609       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5
32610 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;}
32611       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
32612 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
32613       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32614     fi
32615   else
32616     input_to_shortpath="$new_path"
32617   fi
32618 
32619   # Call helper function which possibly converts this using DOS-style short mode.
32620   # If so, the updated path is stored in $new_path.
32621   new_path="$input_to_shortpath"
32622 
32623   input_path="$input_to_shortpath"
32624   # Check if we need to convert this using DOS-style short mode. If the path
32625   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32626   # take no chances and rewrite it.
32627   # Note: m4 eats our [], so we need to use [ and ] instead.
32628   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
32629   if test "x$has_forbidden_chars" != x; then
32630     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32631     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
32632     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
32633     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
32634       # Going to short mode and back again did indeed matter. Since short mode is
32635       # case insensitive, let's make it lowercase to improve readability.
32636       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32637       # Now convert it back to Unix-stile (cygpath)
32638       input_path=`$CYGPATH -u "$shortmode_path"`
32639       new_path="$input_path"
32640     fi
32641   fi
32642 
32643   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
32644   if test "x$test_cygdrive_prefix" = x; then
32645     # As a simple fix, exclude /usr/bin since it's not a real path.
32646     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
32647       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
32648       # a path prefixed by /cygdrive for fixpath to work.
32649       new_path="$CYGWIN_ROOT_PATH$input_path"
32650     fi
32651   fi
32652 
32653   # remove trailing .exe if any
32654   new_path="${new_path/%.exe/}"
32655 
32656   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32657 
32658   # First separate the path from the arguments. This will split at the first
32659   # space.
32660   complete="$OBJC"
32661   path="${complete%% *}"
32662   tmp="$complete EOL"
32663   arguments="${tmp#* }"
32664 
32665   # Input might be given as Windows format, start by converting to
32666   # unix format.
32667   new_path="$path"
32668 
32669   windows_path="$new_path"
32670   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32671     unix_path=`$CYGPATH -u "$windows_path"`
32672     new_path="$unix_path"
32673   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32674     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32675     new_path="$unix_path"
32676   fi
32677 
32678 
32679   # Now try to locate executable using which
32680   new_path=`$WHICH "$new_path" 2> /dev/null`
32681 
32682   if test "x$new_path" = x; then
32683     # Oops. Which didn't find the executable.
32684     # The splitting of arguments from the executable at a space might have been incorrect,
32685     # since paths with space are more likely in Windows. Give it another try with the whole
32686     # argument.
32687     path="$complete"
32688     arguments="EOL"
32689     new_path="$path"
32690 
32691   windows_path="$new_path"
32692   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32693     unix_path=`$CYGPATH -u "$windows_path"`
32694     new_path="$unix_path"
32695   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32696     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32697     new_path="$unix_path"
32698   fi
32699 
32700 
32701     new_path=`$WHICH "$new_path" 2> /dev/null`
32702 
32703     if test "x$new_path" = x; then
32704       # It's still not found. Now this is an unrecoverable error.
32705       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
32706 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
32707       has_space=`$ECHO "$complete" | $GREP " "`
32708       if test "x$has_space" != x; then
32709         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32710 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32711       fi
32712       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32713     fi
32714   fi
32715 
32716   # Now new_path has a complete unix path to the binary
32717   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
32718     # Keep paths in /bin as-is, but remove trailing .exe if any
32719     new_path="${new_path/%.exe/}"
32720     # Do not save /bin paths to all_fixpath_prefixes!
32721   else
32722     # Not in mixed or Windows style, start by that.
32723     new_path=`cmd //c echo $new_path`
32724 
32725   input_path="$new_path"
32726   # Check if we need to convert this using DOS-style short mode. If the path
32727   # contains just simple characters, use it. Otherwise (spaces, weird characters),
32728   # take no chances and rewrite it.
32729   # Note: m4 eats our [], so we need to use [ and ] instead.
32730   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
32731   if test "x$has_forbidden_chars" != x; then
32732     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32733     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32734   fi
32735 
32736     # Output is in $new_path
32737 
32738   windows_path="$new_path"
32739   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32740     unix_path=`$CYGPATH -u "$windows_path"`
32741     new_path="$unix_path"
32742   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32743     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32744     new_path="$unix_path"
32745   fi
32746 
32747     # remove trailing .exe if any
32748     new_path="${new_path/%.exe/}"
32749 
32750     # Save the first 10 bytes of this path to the storage, so fixpath can work.
32751     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
32752   fi
32753 
32754   else
32755     # We're on a posix platform. Hooray! :)
32756     # First separate the path from the arguments. This will split at the first
32757     # space.
32758     complete="$OBJC"
32759     path="${complete%% *}"
32760     tmp="$complete EOL"
32761     arguments="${tmp#* }"
32762 
32763     # Cannot rely on the command "which" here since it doesn't always work.
32764     is_absolute_path=`$ECHO "$path" | $GREP ^/`
32765     if test -z "$is_absolute_path"; then
32766       # Path to executable is not absolute. Find it.
32767       IFS_save="$IFS"
32768       IFS=:
32769       for p in $PATH; do
32770         if test -f "$p/$path" && test -x "$p/$path"; then
32771           new_path="$p/$path"
32772           break
32773         fi
32774       done
32775       IFS="$IFS_save"
32776     else
32777       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJC (as $path) failed, using $path directly." >&5
32778 $as_echo "$as_me: Resolving OBJC (as $path) failed, using $path directly." >&6;}
32779       new_path="$path"
32780     fi
32781 
32782     if test "x$new_path" = x; then
32783       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
32784 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
32785       has_space=`$ECHO "$complete" | $GREP " "`
32786       if test "x$has_space" != x; then
32787         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
32788 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
32789       fi
32790       as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
32791     fi
32792   fi
32793 
32794   # Now join together the path and the arguments once again
32795   if test "x$arguments" != xEOL; then
32796     new_complete="$new_path ${arguments% *}"
32797   else
32798     new_complete="$new_path"
32799   fi
32800 
32801   if test "x$complete" != "x$new_complete"; then
32802     OBJC="$new_complete"
32803     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5
32804 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;}
32805   fi
32806 
32807   else
32808     OBJC=
32809   fi
32810 
32811   # Restore the flags to the user specified values.
32812   # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
32813   CFLAGS="$ORG_CFLAGS"
32814   CXXFLAGS="$ORG_CXXFLAGS"
32815   OBJCFLAGS="$ORG_OBJCFLAGS"
32816 
32817   LD="$CC"
32818   LDEXE="$CC"
32819   LDCXX="$CXX"
32820   LDEXECXX="$CXX"
32821 
32822   # LDEXE is the linker to use, when creating executables.
32823 
32824   # Linking C++ libraries.
32825 
32826   # Linking C++ executables.
32827 
32828 
32829   if test "x$OPENJDK_TARGET_OS" != xwindows; then
32830 
32831 
32832   # Publish this variable in the help.
32833 
32834 
32835   if test "x$AR" = x; then
32836     # The variable is not set by user, try to locate tool using the code snippet
32837     if test -n "$ac_tool_prefix"; then
32838   for ac_prog in ar
32839   do
32840     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32843 $as_echo_n "checking for $ac_word... " >&6; }
32844 if ${ac_cv_prog_AR+:} false; then :
32845   $as_echo_n "(cached) " >&6
32846 else
32847   if test -n "$AR"; then
32848   ac_cv_prog_AR="$AR" # Let the user override the test.
32849 else
32850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32851 for as_dir in $PATH
32852 do
32853   IFS=$as_save_IFS
32854   test -z "$as_dir" && as_dir=.
32855     for ac_exec_ext in '' $ac_executable_extensions; do
32856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32857     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32859     break 2
32860   fi
32861 done
32862   done
32863 IFS=$as_save_IFS
32864 
32865 fi
32866 fi
32867 AR=$ac_cv_prog_AR
32868 if test -n "$AR"; then
32869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32870 $as_echo "$AR" >&6; }
32871 else
32872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32873 $as_echo "no" >&6; }
32874 fi
32875 
32876 
32877     test -n "$AR" && break
32878   done
32879 fi
32880 if test -z "$AR"; then
32881   ac_ct_AR=$AR
32882   for ac_prog in ar
32883 do
32884   # Extract the first word of "$ac_prog", so it can be a program name with args.
32885 set dummy $ac_prog; ac_word=$2
32886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32887 $as_echo_n "checking for $ac_word... " >&6; }
32888 if ${ac_cv_prog_ac_ct_AR+:} false; then :
32889   $as_echo_n "(cached) " >&6
32890 else
32891   if test -n "$ac_ct_AR"; then
32892   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
32893 else
32894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32895 for as_dir in $PATH
32896 do
32897   IFS=$as_save_IFS
32898   test -z "$as_dir" && as_dir=.
32899     for ac_exec_ext in '' $ac_executable_extensions; do
32900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32901     ac_cv_prog_ac_ct_AR="$ac_prog"
32902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32903     break 2
32904   fi
32905 done
32906   done
32907 IFS=$as_save_IFS
32908 
32909 fi
32910 fi
32911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
32912 if test -n "$ac_ct_AR"; then
32913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
32914 $as_echo "$ac_ct_AR" >&6; }
32915 else
32916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32917 $as_echo "no" >&6; }
32918 fi
32919 
32920 
32921   test -n "$ac_ct_AR" && break
32922 done
32923 
32924   if test "x$ac_ct_AR" = x; then
32925     AR=""
32926   else
32927     case $cross_compiling:$ac_tool_warned in
32928 yes:)
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32931 ac_tool_warned=yes ;;
32932 esac
32933     AR=$ac_ct_AR
32934   fi
32935 fi
32936 
32937   else
32938     # The variable is set, but is it from the command line or the environment?
32939 
32940     # Try to remove the string !AR! from our list.
32941     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/}
32942     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
32943       # If it failed, the variable was not from the command line. Ignore it,
32944       # but warn the user (except for BASH, which is always set by the calling BASH).
32945       if test "xAR" != xBASH; then
32946         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5
32947 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;}
32948       fi
32949       # Try to locate tool using the code snippet
32950       if test -n "$ac_tool_prefix"; then
32951   for ac_prog in ar
32952   do
32953     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32956 $as_echo_n "checking for $ac_word... " >&6; }
32957 if ${ac_cv_prog_AR+:} false; then :
32958   $as_echo_n "(cached) " >&6
32959 else
32960   if test -n "$AR"; then
32961   ac_cv_prog_AR="$AR" # Let the user override the test.
32962 else
32963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32964 for as_dir in $PATH
32965 do
32966   IFS=$as_save_IFS
32967   test -z "$as_dir" && as_dir=.
32968     for ac_exec_ext in '' $ac_executable_extensions; do
32969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32970     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32972     break 2
32973   fi
32974 done
32975   done
32976 IFS=$as_save_IFS
32977 
32978 fi
32979 fi
32980 AR=$ac_cv_prog_AR
32981 if test -n "$AR"; then
32982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32983 $as_echo "$AR" >&6; }
32984 else
32985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32986 $as_echo "no" >&6; }
32987 fi
32988 
32989 
32990     test -n "$AR" && break
32991   done
32992 fi
32993 if test -z "$AR"; then
32994   ac_ct_AR=$AR
32995   for ac_prog in ar
32996 do
32997   # Extract the first word of "$ac_prog", so it can be a program name with args.
32998 set dummy $ac_prog; ac_word=$2
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33000 $as_echo_n "checking for $ac_word... " >&6; }
33001 if ${ac_cv_prog_ac_ct_AR+:} false; then :
33002   $as_echo_n "(cached) " >&6
33003 else
33004   if test -n "$ac_ct_AR"; then
33005   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
33006 else
33007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33008 for as_dir in $PATH
33009 do
33010   IFS=$as_save_IFS
33011   test -z "$as_dir" && as_dir=.
33012     for ac_exec_ext in '' $ac_executable_extensions; do
33013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33014     ac_cv_prog_ac_ct_AR="$ac_prog"
33015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33016     break 2
33017   fi
33018 done
33019   done
33020 IFS=$as_save_IFS
33021 
33022 fi
33023 fi
33024 ac_ct_AR=$ac_cv_prog_ac_ct_AR
33025 if test -n "$ac_ct_AR"; then
33026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
33027 $as_echo "$ac_ct_AR" >&6; }
33028 else
33029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030 $as_echo "no" >&6; }
33031 fi
33032 
33033 
33034   test -n "$ac_ct_AR" && break
33035 done
33036 
33037   if test "x$ac_ct_AR" = x; then
33038     AR=""
33039   else
33040     case $cross_compiling:$ac_tool_warned in
33041 yes:)
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33044 ac_tool_warned=yes ;;
33045 esac
33046     AR=$ac_ct_AR
33047   fi
33048 fi
33049 
33050     else
33051       # If it succeeded, then it was overridden by the user. We will use it
33052       # for the tool.
33053 
33054       # First remove it from the list of overridden variables, so we can test
33055       # for unknown variables in the end.
33056       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
33057 
33058       # Check if the provided tool contains a complete path.
33059       tool_specified="$AR"
33060       tool_basename="${tool_specified##*/}"
33061       if test "x$tool_basename" = "x$tool_specified"; then
33062         # A command without a complete path is provided, search $PATH.
33063         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5
33064 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;}
33065         # Extract the first word of "$tool_basename", so it can be a program name with args.
33066 set dummy $tool_basename; ac_word=$2
33067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33068 $as_echo_n "checking for $ac_word... " >&6; }
33069 if ${ac_cv_path_AR+:} false; then :
33070   $as_echo_n "(cached) " >&6
33071 else
33072   case $AR in
33073   [\\/]* | ?:[\\/]*)
33074   ac_cv_path_AR="$AR" # Let the user override the test with a path.
33075   ;;
33076   *)
33077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33078 for as_dir in $PATH
33079 do
33080   IFS=$as_save_IFS
33081   test -z "$as_dir" && as_dir=.
33082     for ac_exec_ext in '' $ac_executable_extensions; do
33083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33084     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
33085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33086     break 2
33087   fi
33088 done
33089   done
33090 IFS=$as_save_IFS
33091 
33092   ;;
33093 esac
33094 fi
33095 AR=$ac_cv_path_AR
33096 if test -n "$AR"; then
33097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
33098 $as_echo "$AR" >&6; }
33099 else
33100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33101 $as_echo "no" >&6; }
33102 fi
33103 
33104 
33105         if test "x$AR" = x; then
33106           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
33107         fi
33108       else
33109         # Otherwise we believe it is a complete path. Use it as it is.
33110         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5
33111 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;}
33112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5
33113 $as_echo_n "checking for AR... " >&6; }
33114         if test ! -x "$tool_specified"; then
33115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
33116 $as_echo "not found" >&6; }
33117           as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5
33118         fi
33119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
33120 $as_echo "$tool_specified" >&6; }
33121       fi
33122     fi
33123   fi
33124 
33125 
33126 
33127   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33128 
33129   # First separate the path from the arguments. This will split at the first
33130   # space.
33131   complete="$AR"
33132   path="${complete%% *}"
33133   tmp="$complete EOL"
33134   arguments="${tmp#* }"
33135 
33136   # Input might be given as Windows format, start by converting to
33137   # unix format.
33138   new_path=`$CYGPATH -u "$path"`
33139 
33140   # Now try to locate executable using which
33141   new_path=`$WHICH "$new_path" 2> /dev/null`
33142   # bat and cmd files are not always considered executable in cygwin causing which
33143   # to not find them
33144   if test "x$new_path" = x \
33145       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33146       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33147     new_path=`$CYGPATH -u "$path"`
33148   fi
33149   if test "x$new_path" = x; then
33150     # Oops. Which didn't find the executable.
33151     # The splitting of arguments from the executable at a space might have been incorrect,
33152     # since paths with space are more likely in Windows. Give it another try with the whole
33153     # argument.
33154     path="$complete"
33155     arguments="EOL"
33156     new_path=`$CYGPATH -u "$path"`
33157     new_path=`$WHICH "$new_path" 2> /dev/null`
33158     # bat and cmd files are not always considered executable in cygwin causing which
33159     # to not find them
33160     if test "x$new_path" = x \
33161         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33162         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33163       new_path=`$CYGPATH -u "$path"`
33164     fi
33165     if test "x$new_path" = x; then
33166       # It's still not found. Now this is an unrecoverable error.
33167       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
33168 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
33169       has_space=`$ECHO "$complete" | $GREP " "`
33170       if test "x$has_space" != x; then
33171         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33172 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33173       fi
33174       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33175     fi
33176   fi
33177 
33178   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33179   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33180   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33181   # "foo.exe" is OK but "foo" is an error.
33182   #
33183   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33184   # It is also a way to make sure we got the proper file name for the real test later on.
33185   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33186   if test "x$test_shortpath" = x; then
33187     # Short path failed, file does not exist as specified.
33188     # Try adding .exe or .cmd
33189     if test -f "${new_path}.exe"; then
33190       input_to_shortpath="${new_path}.exe"
33191     elif test -f "${new_path}.cmd"; then
33192       input_to_shortpath="${new_path}.cmd"
33193     else
33194       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5
33195 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;}
33196       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33197 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33198       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33199     fi
33200   else
33201     input_to_shortpath="$new_path"
33202   fi
33203 
33204   # Call helper function which possibly converts this using DOS-style short mode.
33205   # If so, the updated path is stored in $new_path.
33206   new_path="$input_to_shortpath"
33207 
33208   input_path="$input_to_shortpath"
33209   # Check if we need to convert this using DOS-style short mode. If the path
33210   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33211   # take no chances and rewrite it.
33212   # Note: m4 eats our [], so we need to use [ and ] instead.
33213   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33214   if test "x$has_forbidden_chars" != x; then
33215     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33216     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33217     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33218     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33219       # Going to short mode and back again did indeed matter. Since short mode is
33220       # case insensitive, let's make it lowercase to improve readability.
33221       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33222       # Now convert it back to Unix-stile (cygpath)
33223       input_path=`$CYGPATH -u "$shortmode_path"`
33224       new_path="$input_path"
33225     fi
33226   fi
33227 
33228   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33229   if test "x$test_cygdrive_prefix" = x; then
33230     # As a simple fix, exclude /usr/bin since it's not a real path.
33231     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33232       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33233       # a path prefixed by /cygdrive for fixpath to work.
33234       new_path="$CYGWIN_ROOT_PATH$input_path"
33235     fi
33236   fi
33237 
33238   # remove trailing .exe if any
33239   new_path="${new_path/%.exe/}"
33240 
33241   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33242 
33243   # First separate the path from the arguments. This will split at the first
33244   # space.
33245   complete="$AR"
33246   path="${complete%% *}"
33247   tmp="$complete EOL"
33248   arguments="${tmp#* }"
33249 
33250   # Input might be given as Windows format, start by converting to
33251   # unix format.
33252   new_path="$path"
33253 
33254   windows_path="$new_path"
33255   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33256     unix_path=`$CYGPATH -u "$windows_path"`
33257     new_path="$unix_path"
33258   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33259     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33260     new_path="$unix_path"
33261   fi
33262 
33263 
33264   # Now try to locate executable using which
33265   new_path=`$WHICH "$new_path" 2> /dev/null`
33266 
33267   if test "x$new_path" = x; then
33268     # Oops. Which didn't find the executable.
33269     # The splitting of arguments from the executable at a space might have been incorrect,
33270     # since paths with space are more likely in Windows. Give it another try with the whole
33271     # argument.
33272     path="$complete"
33273     arguments="EOL"
33274     new_path="$path"
33275 
33276   windows_path="$new_path"
33277   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33278     unix_path=`$CYGPATH -u "$windows_path"`
33279     new_path="$unix_path"
33280   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33281     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33282     new_path="$unix_path"
33283   fi
33284 
33285 
33286     new_path=`$WHICH "$new_path" 2> /dev/null`
33287 
33288     if test "x$new_path" = x; then
33289       # It's still not found. Now this is an unrecoverable error.
33290       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
33291 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
33292       has_space=`$ECHO "$complete" | $GREP " "`
33293       if test "x$has_space" != x; then
33294         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33295 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33296       fi
33297       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33298     fi
33299   fi
33300 
33301   # Now new_path has a complete unix path to the binary
33302   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33303     # Keep paths in /bin as-is, but remove trailing .exe if any
33304     new_path="${new_path/%.exe/}"
33305     # Do not save /bin paths to all_fixpath_prefixes!
33306   else
33307     # Not in mixed or Windows style, start by that.
33308     new_path=`cmd //c echo $new_path`
33309 
33310   input_path="$new_path"
33311   # Check if we need to convert this using DOS-style short mode. If the path
33312   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33313   # take no chances and rewrite it.
33314   # Note: m4 eats our [], so we need to use [ and ] instead.
33315   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33316   if test "x$has_forbidden_chars" != x; then
33317     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33318     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33319   fi
33320 
33321     # Output is in $new_path
33322 
33323   windows_path="$new_path"
33324   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33325     unix_path=`$CYGPATH -u "$windows_path"`
33326     new_path="$unix_path"
33327   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33328     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33329     new_path="$unix_path"
33330   fi
33331 
33332     # remove trailing .exe if any
33333     new_path="${new_path/%.exe/}"
33334 
33335     # Save the first 10 bytes of this path to the storage, so fixpath can work.
33336     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33337   fi
33338 
33339   else
33340     # We're on a posix platform. Hooray! :)
33341     # First separate the path from the arguments. This will split at the first
33342     # space.
33343     complete="$AR"
33344     path="${complete%% *}"
33345     tmp="$complete EOL"
33346     arguments="${tmp#* }"
33347 
33348     # Cannot rely on the command "which" here since it doesn't always work.
33349     is_absolute_path=`$ECHO "$path" | $GREP ^/`
33350     if test -z "$is_absolute_path"; then
33351       # Path to executable is not absolute. Find it.
33352       IFS_save="$IFS"
33353       IFS=:
33354       for p in $PATH; do
33355         if test -f "$p/$path" && test -x "$p/$path"; then
33356           new_path="$p/$path"
33357           break
33358         fi
33359       done
33360       IFS="$IFS_save"
33361     else
33362       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AR (as $path) failed, using $path directly." >&5
33363 $as_echo "$as_me: Resolving AR (as $path) failed, using $path directly." >&6;}
33364       new_path="$path"
33365     fi
33366 
33367     if test "x$new_path" = x; then
33368       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
33369 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
33370       has_space=`$ECHO "$complete" | $GREP " "`
33371       if test "x$has_space" != x; then
33372         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33373 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33374       fi
33375       as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
33376     fi
33377   fi
33378 
33379   # Now join together the path and the arguments once again
33380   if test "x$arguments" != xEOL; then
33381     new_complete="$new_path ${arguments% *}"
33382   else
33383     new_complete="$new_path"
33384   fi
33385 
33386   if test "x$complete" != "x$new_complete"; then
33387     AR="$new_complete"
33388     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
33389 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
33390   fi
33391 
33392   fi
33393   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
33394     ARFLAGS="-r"
33395   elif test "x$OPENJDK_TARGET_OS" = xaix; then
33396     ARFLAGS="-X64"
33397   else
33398     ARFLAGS=""
33399   fi
33400 
33401 
33402   # For hotspot, we need these in Windows mixed path; other platforms keep them the same
33403   HOTSPOT_CXX="$CXX"
33404   HOTSPOT_LD="$LD"
33405 
33406 
33407 
33408   COMPILER_NAME=gcc
33409   COMPILER_TYPE=CC
33410   if test "x$OPENJDK_TARGET_OS" = xwindows; then :
33411 
33412     # For now, assume that we are always compiling using cl.exe.
33413     CC_OUT_OPTION=-Fo
33414     EXE_OUT_OPTION=-out:
33415     LD_OUT_OPTION=-out:
33416     AR_OUT_OPTION=-out:
33417     # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
33418     # program for something completely different.
33419     # Extract the first word of "link", so it can be a program name with args.
33420 set dummy link; ac_word=$2
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33422 $as_echo_n "checking for $ac_word... " >&6; }
33423 if ${ac_cv_prog_WINLD+:} false; then :
33424   $as_echo_n "(cached) " >&6
33425 else
33426   if test -n "$WINLD"; then
33427   ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
33428 else
33429   ac_prog_rejected=no
33430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33431 for as_dir in $PATH
33432 do
33433   IFS=$as_save_IFS
33434   test -z "$as_dir" && as_dir=.
33435     for ac_exec_ext in '' $ac_executable_extensions; do
33436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33437     if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
33438        ac_prog_rejected=yes
33439        continue
33440      fi
33441     ac_cv_prog_WINLD="link"
33442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33443     break 2
33444   fi
33445 done
33446   done
33447 IFS=$as_save_IFS
33448 
33449 if test $ac_prog_rejected = yes; then
33450   # We found a bogon in the path, so make sure we never use it.
33451   set dummy $ac_cv_prog_WINLD
33452   shift
33453   if test $# != 0; then
33454     # We chose a different compiler from the bogus one.
33455     # However, it has the same basename, so the bogon will be chosen
33456     # first if we set WINLD to just the basename; use the full file name.
33457     shift
33458     ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@"
33459   fi
33460 fi
33461 fi
33462 fi
33463 WINLD=$ac_cv_prog_WINLD
33464 if test -n "$WINLD"; then
33465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5
33466 $as_echo "$WINLD" >&6; }
33467 else
33468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33469 $as_echo "no" >&6; }
33470 fi
33471 
33472 
33473     # Since we must ignore the first found link, WINLD will contain
33474     # the full path to the link.exe program.
33475 
33476   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33477 
33478   # First separate the path from the arguments. This will split at the first
33479   # space.
33480   complete="$WINLD"
33481   path="${complete%% *}"
33482   tmp="$complete EOL"
33483   arguments="${tmp#* }"
33484 
33485   # Input might be given as Windows format, start by converting to
33486   # unix format.
33487   new_path=`$CYGPATH -u "$path"`
33488 
33489   # Now try to locate executable using which
33490   new_path=`$WHICH "$new_path" 2> /dev/null`
33491   # bat and cmd files are not always considered executable in cygwin causing which
33492   # to not find them
33493   if test "x$new_path" = x \
33494       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33495       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33496     new_path=`$CYGPATH -u "$path"`
33497   fi
33498   if test "x$new_path" = x; then
33499     # Oops. Which didn't find the executable.
33500     # The splitting of arguments from the executable at a space might have been incorrect,
33501     # since paths with space are more likely in Windows. Give it another try with the whole
33502     # argument.
33503     path="$complete"
33504     arguments="EOL"
33505     new_path=`$CYGPATH -u "$path"`
33506     new_path=`$WHICH "$new_path" 2> /dev/null`
33507     # bat and cmd files are not always considered executable in cygwin causing which
33508     # to not find them
33509     if test "x$new_path" = x \
33510         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33511         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33512       new_path=`$CYGPATH -u "$path"`
33513     fi
33514     if test "x$new_path" = x; then
33515       # It's still not found. Now this is an unrecoverable error.
33516       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
33517 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
33518       has_space=`$ECHO "$complete" | $GREP " "`
33519       if test "x$has_space" != x; then
33520         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33521 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33522       fi
33523       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33524     fi
33525   fi
33526 
33527   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33528   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33529   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33530   # "foo.exe" is OK but "foo" is an error.
33531   #
33532   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33533   # It is also a way to make sure we got the proper file name for the real test later on.
33534   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33535   if test "x$test_shortpath" = x; then
33536     # Short path failed, file does not exist as specified.
33537     # Try adding .exe or .cmd
33538     if test -f "${new_path}.exe"; then
33539       input_to_shortpath="${new_path}.exe"
33540     elif test -f "${new_path}.cmd"; then
33541       input_to_shortpath="${new_path}.cmd"
33542     else
33543       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$new_path\", is invalid." >&5
33544 $as_echo "$as_me: The path of WINLD, which resolves as \"$new_path\", is invalid." >&6;}
33545       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33546 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33547       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33548     fi
33549   else
33550     input_to_shortpath="$new_path"
33551   fi
33552 
33553   # Call helper function which possibly converts this using DOS-style short mode.
33554   # If so, the updated path is stored in $new_path.
33555   new_path="$input_to_shortpath"
33556 
33557   input_path="$input_to_shortpath"
33558   # Check if we need to convert this using DOS-style short mode. If the path
33559   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33560   # take no chances and rewrite it.
33561   # Note: m4 eats our [], so we need to use [ and ] instead.
33562   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33563   if test "x$has_forbidden_chars" != x; then
33564     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33565     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33566     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33567     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33568       # Going to short mode and back again did indeed matter. Since short mode is
33569       # case insensitive, let's make it lowercase to improve readability.
33570       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33571       # Now convert it back to Unix-stile (cygpath)
33572       input_path=`$CYGPATH -u "$shortmode_path"`
33573       new_path="$input_path"
33574     fi
33575   fi
33576 
33577   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33578   if test "x$test_cygdrive_prefix" = x; then
33579     # As a simple fix, exclude /usr/bin since it's not a real path.
33580     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33581       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33582       # a path prefixed by /cygdrive for fixpath to work.
33583       new_path="$CYGWIN_ROOT_PATH$input_path"
33584     fi
33585   fi
33586 
33587   # remove trailing .exe if any
33588   new_path="${new_path/%.exe/}"
33589 
33590   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33591 
33592   # First separate the path from the arguments. This will split at the first
33593   # space.
33594   complete="$WINLD"
33595   path="${complete%% *}"
33596   tmp="$complete EOL"
33597   arguments="${tmp#* }"
33598 
33599   # Input might be given as Windows format, start by converting to
33600   # unix format.
33601   new_path="$path"
33602 
33603   windows_path="$new_path"
33604   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33605     unix_path=`$CYGPATH -u "$windows_path"`
33606     new_path="$unix_path"
33607   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33608     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33609     new_path="$unix_path"
33610   fi
33611 
33612 
33613   # Now try to locate executable using which
33614   new_path=`$WHICH "$new_path" 2> /dev/null`
33615 
33616   if test "x$new_path" = x; then
33617     # Oops. Which didn't find the executable.
33618     # The splitting of arguments from the executable at a space might have been incorrect,
33619     # since paths with space are more likely in Windows. Give it another try with the whole
33620     # argument.
33621     path="$complete"
33622     arguments="EOL"
33623     new_path="$path"
33624 
33625   windows_path="$new_path"
33626   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33627     unix_path=`$CYGPATH -u "$windows_path"`
33628     new_path="$unix_path"
33629   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33630     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33631     new_path="$unix_path"
33632   fi
33633 
33634 
33635     new_path=`$WHICH "$new_path" 2> /dev/null`
33636 
33637     if test "x$new_path" = x; then
33638       # It's still not found. Now this is an unrecoverable error.
33639       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
33640 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
33641       has_space=`$ECHO "$complete" | $GREP " "`
33642       if test "x$has_space" != x; then
33643         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33644 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33645       fi
33646       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33647     fi
33648   fi
33649 
33650   # Now new_path has a complete unix path to the binary
33651   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33652     # Keep paths in /bin as-is, but remove trailing .exe if any
33653     new_path="${new_path/%.exe/}"
33654     # Do not save /bin paths to all_fixpath_prefixes!
33655   else
33656     # Not in mixed or Windows style, start by that.
33657     new_path=`cmd //c echo $new_path`
33658 
33659   input_path="$new_path"
33660   # Check if we need to convert this using DOS-style short mode. If the path
33661   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33662   # take no chances and rewrite it.
33663   # Note: m4 eats our [], so we need to use [ and ] instead.
33664   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33665   if test "x$has_forbidden_chars" != x; then
33666     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33667     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33668   fi
33669 
33670     # Output is in $new_path
33671 
33672   windows_path="$new_path"
33673   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33674     unix_path=`$CYGPATH -u "$windows_path"`
33675     new_path="$unix_path"
33676   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33677     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33678     new_path="$unix_path"
33679   fi
33680 
33681     # remove trailing .exe if any
33682     new_path="${new_path/%.exe/}"
33683 
33684     # Save the first 10 bytes of this path to the storage, so fixpath can work.
33685     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33686   fi
33687 
33688   else
33689     # We're on a posix platform. Hooray! :)
33690     # First separate the path from the arguments. This will split at the first
33691     # space.
33692     complete="$WINLD"
33693     path="${complete%% *}"
33694     tmp="$complete EOL"
33695     arguments="${tmp#* }"
33696 
33697     # Cannot rely on the command "which" here since it doesn't always work.
33698     is_absolute_path=`$ECHO "$path" | $GREP ^/`
33699     if test -z "$is_absolute_path"; then
33700       # Path to executable is not absolute. Find it.
33701       IFS_save="$IFS"
33702       IFS=:
33703       for p in $PATH; do
33704         if test -f "$p/$path" && test -x "$p/$path"; then
33705           new_path="$p/$path"
33706           break
33707         fi
33708       done
33709       IFS="$IFS_save"
33710     else
33711       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINLD (as $path) failed, using $path directly." >&5
33712 $as_echo "$as_me: Resolving WINLD (as $path) failed, using $path directly." >&6;}
33713       new_path="$path"
33714     fi
33715 
33716     if test "x$new_path" = x; then
33717       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
33718 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
33719       has_space=`$ECHO "$complete" | $GREP " "`
33720       if test "x$has_space" != x; then
33721         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33722 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33723       fi
33724       as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
33725     fi
33726   fi
33727 
33728   # Now join together the path and the arguments once again
33729   if test "x$arguments" != xEOL; then
33730     new_complete="$new_path ${arguments% *}"
33731   else
33732     new_complete="$new_path"
33733   fi
33734 
33735   if test "x$complete" != "x$new_complete"; then
33736     WINLD="$new_complete"
33737     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINLD to \"$new_complete\"" >&5
33738 $as_echo "$as_me: Rewriting WINLD to \"$new_complete\"" >&6;}
33739   fi
33740 
33741     printf "Windows linker was found at $WINLD\n"
33742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
33743 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
33744     "$WINLD" --version > /dev/null
33745     if test $? -eq 0 ; then
33746       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33747 $as_echo "no" >&6; }
33748       as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
33749     else
33750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33751 $as_echo "yes" >&6; }
33752     fi
33753     LD="$WINLD"
33754     LDEXE="$WINLD"
33755     LDCXX="$WINLD"
33756     LDEXECXX="$WINLD"
33757 
33758     # Extract the first word of "mt", so it can be a program name with args.
33759 set dummy mt; ac_word=$2
33760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33761 $as_echo_n "checking for $ac_word... " >&6; }
33762 if ${ac_cv_prog_MT+:} false; then :
33763   $as_echo_n "(cached) " >&6
33764 else
33765   if test -n "$MT"; then
33766   ac_cv_prog_MT="$MT" # Let the user override the test.
33767 else
33768   ac_prog_rejected=no
33769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33770 for as_dir in $PATH
33771 do
33772   IFS=$as_save_IFS
33773   test -z "$as_dir" && as_dir=.
33774     for ac_exec_ext in '' $ac_executable_extensions; do
33775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33776     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
33777        ac_prog_rejected=yes
33778        continue
33779      fi
33780     ac_cv_prog_MT="mt"
33781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33782     break 2
33783   fi
33784 done
33785   done
33786 IFS=$as_save_IFS
33787 
33788 if test $ac_prog_rejected = yes; then
33789   # We found a bogon in the path, so make sure we never use it.
33790   set dummy $ac_cv_prog_MT
33791   shift
33792   if test $# != 0; then
33793     # We chose a different compiler from the bogus one.
33794     # However, it has the same basename, so the bogon will be chosen
33795     # first if we set MT to just the basename; use the full file name.
33796     shift
33797     ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
33798   fi
33799 fi
33800 fi
33801 fi
33802 MT=$ac_cv_prog_MT
33803 if test -n "$MT"; then
33804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
33805 $as_echo "$MT" >&6; }
33806 else
33807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33808 $as_echo "no" >&6; }
33809 fi
33810 
33811 
33812 
33813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33814 
33815   # First separate the path from the arguments. This will split at the first
33816   # space.
33817   complete="$MT"
33818   path="${complete%% *}"
33819   tmp="$complete EOL"
33820   arguments="${tmp#* }"
33821 
33822   # Input might be given as Windows format, start by converting to
33823   # unix format.
33824   new_path=`$CYGPATH -u "$path"`
33825 
33826   # Now try to locate executable using which
33827   new_path=`$WHICH "$new_path" 2> /dev/null`
33828   # bat and cmd files are not always considered executable in cygwin causing which
33829   # to not find them
33830   if test "x$new_path" = x \
33831       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33832       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33833     new_path=`$CYGPATH -u "$path"`
33834   fi
33835   if test "x$new_path" = x; then
33836     # Oops. Which didn't find the executable.
33837     # The splitting of arguments from the executable at a space might have been incorrect,
33838     # since paths with space are more likely in Windows. Give it another try with the whole
33839     # argument.
33840     path="$complete"
33841     arguments="EOL"
33842     new_path=`$CYGPATH -u "$path"`
33843     new_path=`$WHICH "$new_path" 2> /dev/null`
33844     # bat and cmd files are not always considered executable in cygwin causing which
33845     # to not find them
33846     if test "x$new_path" = x \
33847         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33848         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33849       new_path=`$CYGPATH -u "$path"`
33850     fi
33851     if test "x$new_path" = x; then
33852       # It's still not found. Now this is an unrecoverable error.
33853       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
33854 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
33855       has_space=`$ECHO "$complete" | $GREP " "`
33856       if test "x$has_space" != x; then
33857         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33858 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33859       fi
33860       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33861     fi
33862   fi
33863 
33864   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33865   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33866   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33867   # "foo.exe" is OK but "foo" is an error.
33868   #
33869   # This test is therefore slightly more accurate than "test -f" to check for file presence.
33870   # It is also a way to make sure we got the proper file name for the real test later on.
33871   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33872   if test "x$test_shortpath" = x; then
33873     # Short path failed, file does not exist as specified.
33874     # Try adding .exe or .cmd
33875     if test -f "${new_path}.exe"; then
33876       input_to_shortpath="${new_path}.exe"
33877     elif test -f "${new_path}.cmd"; then
33878       input_to_shortpath="${new_path}.cmd"
33879     else
33880       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5
33881 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;}
33882       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33883 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33884       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33885     fi
33886   else
33887     input_to_shortpath="$new_path"
33888   fi
33889 
33890   # Call helper function which possibly converts this using DOS-style short mode.
33891   # If so, the updated path is stored in $new_path.
33892   new_path="$input_to_shortpath"
33893 
33894   input_path="$input_to_shortpath"
33895   # Check if we need to convert this using DOS-style short mode. If the path
33896   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33897   # take no chances and rewrite it.
33898   # Note: m4 eats our [], so we need to use [ and ] instead.
33899   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33900   if test "x$has_forbidden_chars" != x; then
33901     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33902     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33903     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33904     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33905       # Going to short mode and back again did indeed matter. Since short mode is
33906       # case insensitive, let's make it lowercase to improve readability.
33907       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33908       # Now convert it back to Unix-stile (cygpath)
33909       input_path=`$CYGPATH -u "$shortmode_path"`
33910       new_path="$input_path"
33911     fi
33912   fi
33913 
33914   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33915   if test "x$test_cygdrive_prefix" = x; then
33916     # As a simple fix, exclude /usr/bin since it's not a real path.
33917     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33918       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33919       # a path prefixed by /cygdrive for fixpath to work.
33920       new_path="$CYGWIN_ROOT_PATH$input_path"
33921     fi
33922   fi
33923 
33924   # remove trailing .exe if any
33925   new_path="${new_path/%.exe/}"
33926 
33927   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33928 
33929   # First separate the path from the arguments. This will split at the first
33930   # space.
33931   complete="$MT"
33932   path="${complete%% *}"
33933   tmp="$complete EOL"
33934   arguments="${tmp#* }"
33935 
33936   # Input might be given as Windows format, start by converting to
33937   # unix format.
33938   new_path="$path"
33939 
33940   windows_path="$new_path"
33941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33942     unix_path=`$CYGPATH -u "$windows_path"`
33943     new_path="$unix_path"
33944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33945     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33946     new_path="$unix_path"
33947   fi
33948 
33949 
33950   # Now try to locate executable using which
33951   new_path=`$WHICH "$new_path" 2> /dev/null`
33952 
33953   if test "x$new_path" = x; then
33954     # Oops. Which didn't find the executable.
33955     # The splitting of arguments from the executable at a space might have been incorrect,
33956     # since paths with space are more likely in Windows. Give it another try with the whole
33957     # argument.
33958     path="$complete"
33959     arguments="EOL"
33960     new_path="$path"
33961 
33962   windows_path="$new_path"
33963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33964     unix_path=`$CYGPATH -u "$windows_path"`
33965     new_path="$unix_path"
33966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33967     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33968     new_path="$unix_path"
33969   fi
33970 
33971 
33972     new_path=`$WHICH "$new_path" 2> /dev/null`
33973 
33974     if test "x$new_path" = x; then
33975       # It's still not found. Now this is an unrecoverable error.
33976       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
33977 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
33978       has_space=`$ECHO "$complete" | $GREP " "`
33979       if test "x$has_space" != x; then
33980         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33981 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33982       fi
33983       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33984     fi
33985   fi
33986 
33987   # Now new_path has a complete unix path to the binary
33988   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33989     # Keep paths in /bin as-is, but remove trailing .exe if any
33990     new_path="${new_path/%.exe/}"
33991     # Do not save /bin paths to all_fixpath_prefixes!
33992   else
33993     # Not in mixed or Windows style, start by that.
33994     new_path=`cmd //c echo $new_path`
33995 
33996   input_path="$new_path"
33997   # Check if we need to convert this using DOS-style short mode. If the path
33998   # contains just simple characters, use it. Otherwise (spaces, weird characters),
33999   # take no chances and rewrite it.
34000   # Note: m4 eats our [], so we need to use [ and ] instead.
34001   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34002   if test "x$has_forbidden_chars" != x; then
34003     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34004     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34005   fi
34006 
34007     # Output is in $new_path
34008 
34009   windows_path="$new_path"
34010   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34011     unix_path=`$CYGPATH -u "$windows_path"`
34012     new_path="$unix_path"
34013   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34014     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34015     new_path="$unix_path"
34016   fi
34017 
34018     # remove trailing .exe if any
34019     new_path="${new_path/%.exe/}"
34020 
34021     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34022     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34023   fi
34024 
34025   else
34026     # We're on a posix platform. Hooray! :)
34027     # First separate the path from the arguments. This will split at the first
34028     # space.
34029     complete="$MT"
34030     path="${complete%% *}"
34031     tmp="$complete EOL"
34032     arguments="${tmp#* }"
34033 
34034     # Cannot rely on the command "which" here since it doesn't always work.
34035     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34036     if test -z "$is_absolute_path"; then
34037       # Path to executable is not absolute. Find it.
34038       IFS_save="$IFS"
34039       IFS=:
34040       for p in $PATH; do
34041         if test -f "$p/$path" && test -x "$p/$path"; then
34042           new_path="$p/$path"
34043           break
34044         fi
34045       done
34046       IFS="$IFS_save"
34047     else
34048       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MT (as $path) failed, using $path directly." >&5
34049 $as_echo "$as_me: Resolving MT (as $path) failed, using $path directly." >&6;}
34050       new_path="$path"
34051     fi
34052 
34053     if test "x$new_path" = x; then
34054       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
34055 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
34056       has_space=`$ECHO "$complete" | $GREP " "`
34057       if test "x$has_space" != x; then
34058         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34059 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34060       fi
34061       as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
34062     fi
34063   fi
34064 
34065   # Now join together the path and the arguments once again
34066   if test "x$arguments" != xEOL; then
34067     new_complete="$new_path ${arguments% *}"
34068   else
34069     new_complete="$new_path"
34070   fi
34071 
34072   if test "x$complete" != "x$new_complete"; then
34073     MT="$new_complete"
34074     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
34075 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
34076   fi
34077 
34078     # The resource compiler
34079     # Extract the first word of "rc", so it can be a program name with args.
34080 set dummy rc; ac_word=$2
34081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34082 $as_echo_n "checking for $ac_word... " >&6; }
34083 if ${ac_cv_prog_RC+:} false; then :
34084   $as_echo_n "(cached) " >&6
34085 else
34086   if test -n "$RC"; then
34087   ac_cv_prog_RC="$RC" # Let the user override the test.
34088 else
34089   ac_prog_rejected=no
34090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34091 for as_dir in $PATH
34092 do
34093   IFS=$as_save_IFS
34094   test -z "$as_dir" && as_dir=.
34095     for ac_exec_ext in '' $ac_executable_extensions; do
34096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34097     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
34098        ac_prog_rejected=yes
34099        continue
34100      fi
34101     ac_cv_prog_RC="rc"
34102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34103     break 2
34104   fi
34105 done
34106   done
34107 IFS=$as_save_IFS
34108 
34109 if test $ac_prog_rejected = yes; then
34110   # We found a bogon in the path, so make sure we never use it.
34111   set dummy $ac_cv_prog_RC
34112   shift
34113   if test $# != 0; then
34114     # We chose a different compiler from the bogus one.
34115     # However, it has the same basename, so the bogon will be chosen
34116     # first if we set RC to just the basename; use the full file name.
34117     shift
34118     ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
34119   fi
34120 fi
34121 fi
34122 fi
34123 RC=$ac_cv_prog_RC
34124 if test -n "$RC"; then
34125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
34126 $as_echo "$RC" >&6; }
34127 else
34128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34129 $as_echo "no" >&6; }
34130 fi
34131 
34132 
34133 
34134   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34135 
34136   # First separate the path from the arguments. This will split at the first
34137   # space.
34138   complete="$RC"
34139   path="${complete%% *}"
34140   tmp="$complete EOL"
34141   arguments="${tmp#* }"
34142 
34143   # Input might be given as Windows format, start by converting to
34144   # unix format.
34145   new_path=`$CYGPATH -u "$path"`
34146 
34147   # Now try to locate executable using which
34148   new_path=`$WHICH "$new_path" 2> /dev/null`
34149   # bat and cmd files are not always considered executable in cygwin causing which
34150   # to not find them
34151   if test "x$new_path" = x \
34152       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34153       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34154     new_path=`$CYGPATH -u "$path"`
34155   fi
34156   if test "x$new_path" = x; then
34157     # Oops. Which didn't find the executable.
34158     # The splitting of arguments from the executable at a space might have been incorrect,
34159     # since paths with space are more likely in Windows. Give it another try with the whole
34160     # argument.
34161     path="$complete"
34162     arguments="EOL"
34163     new_path=`$CYGPATH -u "$path"`
34164     new_path=`$WHICH "$new_path" 2> /dev/null`
34165     # bat and cmd files are not always considered executable in cygwin causing which
34166     # to not find them
34167     if test "x$new_path" = x \
34168         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34169         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34170       new_path=`$CYGPATH -u "$path"`
34171     fi
34172     if test "x$new_path" = x; then
34173       # It's still not found. Now this is an unrecoverable error.
34174       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34175 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34176       has_space=`$ECHO "$complete" | $GREP " "`
34177       if test "x$has_space" != x; then
34178         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34179 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34180       fi
34181       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34182     fi
34183   fi
34184 
34185   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34186   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34187   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34188   # "foo.exe" is OK but "foo" is an error.
34189   #
34190   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34191   # It is also a way to make sure we got the proper file name for the real test later on.
34192   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34193   if test "x$test_shortpath" = x; then
34194     # Short path failed, file does not exist as specified.
34195     # Try adding .exe or .cmd
34196     if test -f "${new_path}.exe"; then
34197       input_to_shortpath="${new_path}.exe"
34198     elif test -f "${new_path}.cmd"; then
34199       input_to_shortpath="${new_path}.cmd"
34200     else
34201       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5
34202 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;}
34203       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34204 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34205       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34206     fi
34207   else
34208     input_to_shortpath="$new_path"
34209   fi
34210 
34211   # Call helper function which possibly converts this using DOS-style short mode.
34212   # If so, the updated path is stored in $new_path.
34213   new_path="$input_to_shortpath"
34214 
34215   input_path="$input_to_shortpath"
34216   # Check if we need to convert this using DOS-style short mode. If the path
34217   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34218   # take no chances and rewrite it.
34219   # Note: m4 eats our [], so we need to use [ and ] instead.
34220   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34221   if test "x$has_forbidden_chars" != x; then
34222     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34223     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34224     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34225     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34226       # Going to short mode and back again did indeed matter. Since short mode is
34227       # case insensitive, let's make it lowercase to improve readability.
34228       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34229       # Now convert it back to Unix-stile (cygpath)
34230       input_path=`$CYGPATH -u "$shortmode_path"`
34231       new_path="$input_path"
34232     fi
34233   fi
34234 
34235   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34236   if test "x$test_cygdrive_prefix" = x; then
34237     # As a simple fix, exclude /usr/bin since it's not a real path.
34238     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34239       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34240       # a path prefixed by /cygdrive for fixpath to work.
34241       new_path="$CYGWIN_ROOT_PATH$input_path"
34242     fi
34243   fi
34244 
34245   # remove trailing .exe if any
34246   new_path="${new_path/%.exe/}"
34247 
34248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34249 
34250   # First separate the path from the arguments. This will split at the first
34251   # space.
34252   complete="$RC"
34253   path="${complete%% *}"
34254   tmp="$complete EOL"
34255   arguments="${tmp#* }"
34256 
34257   # Input might be given as Windows format, start by converting to
34258   # unix format.
34259   new_path="$path"
34260 
34261   windows_path="$new_path"
34262   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34263     unix_path=`$CYGPATH -u "$windows_path"`
34264     new_path="$unix_path"
34265   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34266     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34267     new_path="$unix_path"
34268   fi
34269 
34270 
34271   # Now try to locate executable using which
34272   new_path=`$WHICH "$new_path" 2> /dev/null`
34273 
34274   if test "x$new_path" = x; then
34275     # Oops. Which didn't find the executable.
34276     # The splitting of arguments from the executable at a space might have been incorrect,
34277     # since paths with space are more likely in Windows. Give it another try with the whole
34278     # argument.
34279     path="$complete"
34280     arguments="EOL"
34281     new_path="$path"
34282 
34283   windows_path="$new_path"
34284   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34285     unix_path=`$CYGPATH -u "$windows_path"`
34286     new_path="$unix_path"
34287   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34288     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34289     new_path="$unix_path"
34290   fi
34291 
34292 
34293     new_path=`$WHICH "$new_path" 2> /dev/null`
34294 
34295     if test "x$new_path" = x; then
34296       # It's still not found. Now this is an unrecoverable error.
34297       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34298 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34299       has_space=`$ECHO "$complete" | $GREP " "`
34300       if test "x$has_space" != x; then
34301         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34302 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34303       fi
34304       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34305     fi
34306   fi
34307 
34308   # Now new_path has a complete unix path to the binary
34309   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34310     # Keep paths in /bin as-is, but remove trailing .exe if any
34311     new_path="${new_path/%.exe/}"
34312     # Do not save /bin paths to all_fixpath_prefixes!
34313   else
34314     # Not in mixed or Windows style, start by that.
34315     new_path=`cmd //c echo $new_path`
34316 
34317   input_path="$new_path"
34318   # Check if we need to convert this using DOS-style short mode. If the path
34319   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34320   # take no chances and rewrite it.
34321   # Note: m4 eats our [], so we need to use [ and ] instead.
34322   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34323   if test "x$has_forbidden_chars" != x; then
34324     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34325     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34326   fi
34327 
34328     # Output is in $new_path
34329 
34330   windows_path="$new_path"
34331   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34332     unix_path=`$CYGPATH -u "$windows_path"`
34333     new_path="$unix_path"
34334   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34335     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34336     new_path="$unix_path"
34337   fi
34338 
34339     # remove trailing .exe if any
34340     new_path="${new_path/%.exe/}"
34341 
34342     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34343     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34344   fi
34345 
34346   else
34347     # We're on a posix platform. Hooray! :)
34348     # First separate the path from the arguments. This will split at the first
34349     # space.
34350     complete="$RC"
34351     path="${complete%% *}"
34352     tmp="$complete EOL"
34353     arguments="${tmp#* }"
34354 
34355     # Cannot rely on the command "which" here since it doesn't always work.
34356     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34357     if test -z "$is_absolute_path"; then
34358       # Path to executable is not absolute. Find it.
34359       IFS_save="$IFS"
34360       IFS=:
34361       for p in $PATH; do
34362         if test -f "$p/$path" && test -x "$p/$path"; then
34363           new_path="$p/$path"
34364           break
34365         fi
34366       done
34367       IFS="$IFS_save"
34368     else
34369       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving RC (as $path) failed, using $path directly." >&5
34370 $as_echo "$as_me: Resolving RC (as $path) failed, using $path directly." >&6;}
34371       new_path="$path"
34372     fi
34373 
34374     if test "x$new_path" = x; then
34375       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34376 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34377       has_space=`$ECHO "$complete" | $GREP " "`
34378       if test "x$has_space" != x; then
34379         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34380 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34381       fi
34382       as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34383     fi
34384   fi
34385 
34386   # Now join together the path and the arguments once again
34387   if test "x$arguments" != xEOL; then
34388     new_complete="$new_path ${arguments% *}"
34389   else
34390     new_complete="$new_path"
34391   fi
34392 
34393   if test "x$complete" != "x$new_complete"; then
34394     RC="$new_complete"
34395     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5
34396 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;}
34397   fi
34398 
34399 
34400     # For hotspot, we need these in Windows mixed path,
34401     # so rewrite them all. Need added .exe suffix.
34402     HOTSPOT_CXX="$CXX.exe"
34403     HOTSPOT_LD="$LD.exe"
34404     HOTSPOT_MT="$MT.exe"
34405     HOTSPOT_RC="$RC.exe"
34406 
34407   unix_path="$HOTSPOT_CXX"
34408   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34409     windows_path=`$CYGPATH -m "$unix_path"`
34410     HOTSPOT_CXX="$windows_path"
34411   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34412     windows_path=`cmd //c echo $unix_path`
34413     HOTSPOT_CXX="$windows_path"
34414   fi
34415 
34416 
34417   unix_path="$HOTSPOT_LD"
34418   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34419     windows_path=`$CYGPATH -m "$unix_path"`
34420     HOTSPOT_LD="$windows_path"
34421   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34422     windows_path=`cmd //c echo $unix_path`
34423     HOTSPOT_LD="$windows_path"
34424   fi
34425 
34426 
34427   unix_path="$HOTSPOT_MT"
34428   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34429     windows_path=`$CYGPATH -m "$unix_path"`
34430     HOTSPOT_MT="$windows_path"
34431   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34432     windows_path=`cmd //c echo $unix_path`
34433     HOTSPOT_MT="$windows_path"
34434   fi
34435 
34436 
34437   unix_path="$HOTSPOT_RC"
34438   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34439     windows_path=`$CYGPATH -m "$unix_path"`
34440     HOTSPOT_RC="$windows_path"
34441   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34442     windows_path=`cmd //c echo $unix_path`
34443     HOTSPOT_RC="$windows_path"
34444   fi
34445 
34446 
34447 
34448 
34449     RC_FLAGS="-nologo -l 0x409 -r"
34450     if test "x$VARIANT" = xOPT; then :
34451 
34452     RC_FLAGS="$RC_FLAGS -d NDEBUG"
34453 
34454 fi
34455 
34456   # The version variables used to create RC_FLAGS may be overridden
34457   # in a custom configure script, or possibly the command line.
34458   # Let those variables be expanded at make time in spec.gmk.
34459   # The \$ are escaped to the shell, and the $(...) variables
34460   # are evaluated by make.
34461   RC_FLAGS="$RC_FLAGS \
34462       -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
34463       -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
34464       -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
34465       -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
34466       -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
34467       -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
34468       -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
34469 
34470   # lib.exe is used to create static libraries.
34471   # Extract the first word of "lib", so it can be a program name with args.
34472 set dummy lib; ac_word=$2
34473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34474 $as_echo_n "checking for $ac_word... " >&6; }
34475 if ${ac_cv_prog_WINAR+:} false; then :
34476   $as_echo_n "(cached) " >&6
34477 else
34478   if test -n "$WINAR"; then
34479   ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
34480 else
34481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34482 for as_dir in $PATH
34483 do
34484   IFS=$as_save_IFS
34485   test -z "$as_dir" && as_dir=.
34486     for ac_exec_ext in '' $ac_executable_extensions; do
34487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34488     ac_cv_prog_WINAR="lib"
34489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34490     break 2
34491   fi
34492 done
34493   done
34494 IFS=$as_save_IFS
34495 
34496 fi
34497 fi
34498 WINAR=$ac_cv_prog_WINAR
34499 if test -n "$WINAR"; then
34500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
34501 $as_echo "$WINAR" >&6; }
34502 else
34503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34504 $as_echo "no" >&6; }
34505 fi
34506 
34507 
34508 
34509   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34510 
34511   # First separate the path from the arguments. This will split at the first
34512   # space.
34513   complete="$WINAR"
34514   path="${complete%% *}"
34515   tmp="$complete EOL"
34516   arguments="${tmp#* }"
34517 
34518   # Input might be given as Windows format, start by converting to
34519   # unix format.
34520   new_path=`$CYGPATH -u "$path"`
34521 
34522   # Now try to locate executable using which
34523   new_path=`$WHICH "$new_path" 2> /dev/null`
34524   # bat and cmd files are not always considered executable in cygwin causing which
34525   # to not find them
34526   if test "x$new_path" = x \
34527       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34528       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34529     new_path=`$CYGPATH -u "$path"`
34530   fi
34531   if test "x$new_path" = x; then
34532     # Oops. Which didn't find the executable.
34533     # The splitting of arguments from the executable at a space might have been incorrect,
34534     # since paths with space are more likely in Windows. Give it another try with the whole
34535     # argument.
34536     path="$complete"
34537     arguments="EOL"
34538     new_path=`$CYGPATH -u "$path"`
34539     new_path=`$WHICH "$new_path" 2> /dev/null`
34540     # bat and cmd files are not always considered executable in cygwin causing which
34541     # to not find them
34542     if test "x$new_path" = x \
34543         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34544         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34545       new_path=`$CYGPATH -u "$path"`
34546     fi
34547     if test "x$new_path" = x; then
34548       # It's still not found. Now this is an unrecoverable error.
34549       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
34550 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
34551       has_space=`$ECHO "$complete" | $GREP " "`
34552       if test "x$has_space" != x; then
34553         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34554 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34555       fi
34556       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34557     fi
34558   fi
34559 
34560   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34561   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34562   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34563   # "foo.exe" is OK but "foo" is an error.
34564   #
34565   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34566   # It is also a way to make sure we got the proper file name for the real test later on.
34567   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34568   if test "x$test_shortpath" = x; then
34569     # Short path failed, file does not exist as specified.
34570     # Try adding .exe or .cmd
34571     if test -f "${new_path}.exe"; then
34572       input_to_shortpath="${new_path}.exe"
34573     elif test -f "${new_path}.cmd"; then
34574       input_to_shortpath="${new_path}.cmd"
34575     else
34576       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$new_path\", is invalid." >&5
34577 $as_echo "$as_me: The path of WINAR, which resolves as \"$new_path\", is invalid." >&6;}
34578       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34579 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34580       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34581     fi
34582   else
34583     input_to_shortpath="$new_path"
34584   fi
34585 
34586   # Call helper function which possibly converts this using DOS-style short mode.
34587   # If so, the updated path is stored in $new_path.
34588   new_path="$input_to_shortpath"
34589 
34590   input_path="$input_to_shortpath"
34591   # Check if we need to convert this using DOS-style short mode. If the path
34592   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34593   # take no chances and rewrite it.
34594   # Note: m4 eats our [], so we need to use [ and ] instead.
34595   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34596   if test "x$has_forbidden_chars" != x; then
34597     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34598     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34599     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34600     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34601       # Going to short mode and back again did indeed matter. Since short mode is
34602       # case insensitive, let's make it lowercase to improve readability.
34603       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34604       # Now convert it back to Unix-stile (cygpath)
34605       input_path=`$CYGPATH -u "$shortmode_path"`
34606       new_path="$input_path"
34607     fi
34608   fi
34609 
34610   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34611   if test "x$test_cygdrive_prefix" = x; then
34612     # As a simple fix, exclude /usr/bin since it's not a real path.
34613     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34614       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34615       # a path prefixed by /cygdrive for fixpath to work.
34616       new_path="$CYGWIN_ROOT_PATH$input_path"
34617     fi
34618   fi
34619 
34620   # remove trailing .exe if any
34621   new_path="${new_path/%.exe/}"
34622 
34623   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34624 
34625   # First separate the path from the arguments. This will split at the first
34626   # space.
34627   complete="$WINAR"
34628   path="${complete%% *}"
34629   tmp="$complete EOL"
34630   arguments="${tmp#* }"
34631 
34632   # Input might be given as Windows format, start by converting to
34633   # unix format.
34634   new_path="$path"
34635 
34636   windows_path="$new_path"
34637   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34638     unix_path=`$CYGPATH -u "$windows_path"`
34639     new_path="$unix_path"
34640   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34641     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34642     new_path="$unix_path"
34643   fi
34644 
34645 
34646   # Now try to locate executable using which
34647   new_path=`$WHICH "$new_path" 2> /dev/null`
34648 
34649   if test "x$new_path" = x; then
34650     # Oops. Which didn't find the executable.
34651     # The splitting of arguments from the executable at a space might have been incorrect,
34652     # since paths with space are more likely in Windows. Give it another try with the whole
34653     # argument.
34654     path="$complete"
34655     arguments="EOL"
34656     new_path="$path"
34657 
34658   windows_path="$new_path"
34659   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34660     unix_path=`$CYGPATH -u "$windows_path"`
34661     new_path="$unix_path"
34662   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34663     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34664     new_path="$unix_path"
34665   fi
34666 
34667 
34668     new_path=`$WHICH "$new_path" 2> /dev/null`
34669 
34670     if test "x$new_path" = x; then
34671       # It's still not found. Now this is an unrecoverable error.
34672       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
34673 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
34674       has_space=`$ECHO "$complete" | $GREP " "`
34675       if test "x$has_space" != x; then
34676         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34678       fi
34679       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34680     fi
34681   fi
34682 
34683   # Now new_path has a complete unix path to the binary
34684   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34685     # Keep paths in /bin as-is, but remove trailing .exe if any
34686     new_path="${new_path/%.exe/}"
34687     # Do not save /bin paths to all_fixpath_prefixes!
34688   else
34689     # Not in mixed or Windows style, start by that.
34690     new_path=`cmd //c echo $new_path`
34691 
34692   input_path="$new_path"
34693   # Check if we need to convert this using DOS-style short mode. If the path
34694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34695   # take no chances and rewrite it.
34696   # Note: m4 eats our [], so we need to use [ and ] instead.
34697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34698   if test "x$has_forbidden_chars" != x; then
34699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34700     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34701   fi
34702 
34703     # Output is in $new_path
34704 
34705   windows_path="$new_path"
34706   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34707     unix_path=`$CYGPATH -u "$windows_path"`
34708     new_path="$unix_path"
34709   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34710     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34711     new_path="$unix_path"
34712   fi
34713 
34714     # remove trailing .exe if any
34715     new_path="${new_path/%.exe/}"
34716 
34717     # Save the first 10 bytes of this path to the storage, so fixpath can work.
34718     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34719   fi
34720 
34721   else
34722     # We're on a posix platform. Hooray! :)
34723     # First separate the path from the arguments. This will split at the first
34724     # space.
34725     complete="$WINAR"
34726     path="${complete%% *}"
34727     tmp="$complete EOL"
34728     arguments="${tmp#* }"
34729 
34730     # Cannot rely on the command "which" here since it doesn't always work.
34731     is_absolute_path=`$ECHO "$path" | $GREP ^/`
34732     if test -z "$is_absolute_path"; then
34733       # Path to executable is not absolute. Find it.
34734       IFS_save="$IFS"
34735       IFS=:
34736       for p in $PATH; do
34737         if test -f "$p/$path" && test -x "$p/$path"; then
34738           new_path="$p/$path"
34739           break
34740         fi
34741       done
34742       IFS="$IFS_save"
34743     else
34744       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINAR (as $path) failed, using $path directly." >&5
34745 $as_echo "$as_me: Resolving WINAR (as $path) failed, using $path directly." >&6;}
34746       new_path="$path"
34747     fi
34748 
34749     if test "x$new_path" = x; then
34750       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
34751 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
34752       has_space=`$ECHO "$complete" | $GREP " "`
34753       if test "x$has_space" != x; then
34754         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34755 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34756       fi
34757       as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
34758     fi
34759   fi
34760 
34761   # Now join together the path and the arguments once again
34762   if test "x$arguments" != xEOL; then
34763     new_complete="$new_path ${arguments% *}"
34764   else
34765     new_complete="$new_path"
34766   fi
34767 
34768   if test "x$complete" != "x$new_complete"; then
34769     WINAR="$new_complete"
34770     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
34771 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
34772   fi
34773 
34774   AR="$WINAR"
34775   ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
34776 
34777   # Extract the first word of "dumpbin", so it can be a program name with args.
34778 set dummy dumpbin; ac_word=$2
34779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34780 $as_echo_n "checking for $ac_word... " >&6; }
34781 if ${ac_cv_prog_DUMPBIN+:} false; then :
34782   $as_echo_n "(cached) " >&6
34783 else
34784   if test -n "$DUMPBIN"; then
34785   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
34786 else
34787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34788 for as_dir in $PATH
34789 do
34790   IFS=$as_save_IFS
34791   test -z "$as_dir" && as_dir=.
34792     for ac_exec_ext in '' $ac_executable_extensions; do
34793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34794     ac_cv_prog_DUMPBIN="dumpbin"
34795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34796     break 2
34797   fi
34798 done
34799   done
34800 IFS=$as_save_IFS
34801 
34802 fi
34803 fi
34804 DUMPBIN=$ac_cv_prog_DUMPBIN
34805 if test -n "$DUMPBIN"; then
34806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
34807 $as_echo "$DUMPBIN" >&6; }
34808 else
34809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34810 $as_echo "no" >&6; }
34811 fi
34812 
34813 
34814 
34815   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34816 
34817   # First separate the path from the arguments. This will split at the first
34818   # space.
34819   complete="$DUMPBIN"
34820   path="${complete%% *}"
34821   tmp="$complete EOL"
34822   arguments="${tmp#* }"
34823 
34824   # Input might be given as Windows format, start by converting to
34825   # unix format.
34826   new_path=`$CYGPATH -u "$path"`
34827 
34828   # Now try to locate executable using which
34829   new_path=`$WHICH "$new_path" 2> /dev/null`
34830   # bat and cmd files are not always considered executable in cygwin causing which
34831   # to not find them
34832   if test "x$new_path" = x \
34833       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34834       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34835     new_path=`$CYGPATH -u "$path"`
34836   fi
34837   if test "x$new_path" = x; then
34838     # Oops. Which didn't find the executable.
34839     # The splitting of arguments from the executable at a space might have been incorrect,
34840     # since paths with space are more likely in Windows. Give it another try with the whole
34841     # argument.
34842     path="$complete"
34843     arguments="EOL"
34844     new_path=`$CYGPATH -u "$path"`
34845     new_path=`$WHICH "$new_path" 2> /dev/null`
34846     # bat and cmd files are not always considered executable in cygwin causing which
34847     # to not find them
34848     if test "x$new_path" = x \
34849         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34850         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34851       new_path=`$CYGPATH -u "$path"`
34852     fi
34853     if test "x$new_path" = x; then
34854       # It's still not found. Now this is an unrecoverable error.
34855       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
34856 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
34857       has_space=`$ECHO "$complete" | $GREP " "`
34858       if test "x$has_space" != x; then
34859         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34860 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34861       fi
34862       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34863     fi
34864   fi
34865 
34866   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34867   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34868   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34869   # "foo.exe" is OK but "foo" is an error.
34870   #
34871   # This test is therefore slightly more accurate than "test -f" to check for file presence.
34872   # It is also a way to make sure we got the proper file name for the real test later on.
34873   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34874   if test "x$test_shortpath" = x; then
34875     # Short path failed, file does not exist as specified.
34876     # Try adding .exe or .cmd
34877     if test -f "${new_path}.exe"; then
34878       input_to_shortpath="${new_path}.exe"
34879     elif test -f "${new_path}.cmd"; then
34880       input_to_shortpath="${new_path}.cmd"
34881     else
34882       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5
34883 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;}
34884       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34885 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34886       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34887     fi
34888   else
34889     input_to_shortpath="$new_path"
34890   fi
34891 
34892   # Call helper function which possibly converts this using DOS-style short mode.
34893   # If so, the updated path is stored in $new_path.
34894   new_path="$input_to_shortpath"
34895 
34896   input_path="$input_to_shortpath"
34897   # Check if we need to convert this using DOS-style short mode. If the path
34898   # contains just simple characters, use it. Otherwise (spaces, weird characters),
34899   # take no chances and rewrite it.
34900   # Note: m4 eats our [], so we need to use [ and ] instead.
34901   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34902   if test "x$has_forbidden_chars" != x; then
34903     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34904     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34905     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34906     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34907       # Going to short mode and back again did indeed matter. Since short mode is
34908       # case insensitive, let's make it lowercase to improve readability.
34909       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34910       # Now convert it back to Unix-stile (cygpath)
34911       input_path=`$CYGPATH -u "$shortmode_path"`
34912       new_path="$input_path"
34913     fi
34914   fi
34915 
34916   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34917   if test "x$test_cygdrive_prefix" = x; then
34918     # As a simple fix, exclude /usr/bin since it's not a real path.
34919     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34920       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34921       # a path prefixed by /cygdrive for fixpath to work.
34922       new_path="$CYGWIN_ROOT_PATH$input_path"
34923     fi
34924   fi
34925 
34926   # remove trailing .exe if any
34927   new_path="${new_path/%.exe/}"
34928 
34929   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34930 
34931   # First separate the path from the arguments. This will split at the first
34932   # space.
34933   complete="$DUMPBIN"
34934   path="${complete%% *}"
34935   tmp="$complete EOL"
34936   arguments="${tmp#* }"
34937 
34938   # Input might be given as Windows format, start by converting to
34939   # unix format.
34940   new_path="$path"
34941 
34942   windows_path="$new_path"
34943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34944     unix_path=`$CYGPATH -u "$windows_path"`
34945     new_path="$unix_path"
34946   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34947     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34948     new_path="$unix_path"
34949   fi
34950 
34951 
34952   # Now try to locate executable using which
34953   new_path=`$WHICH "$new_path" 2> /dev/null`
34954 
34955   if test "x$new_path" = x; then
34956     # Oops. Which didn't find the executable.
34957     # The splitting of arguments from the executable at a space might have been incorrect,
34958     # since paths with space are more likely in Windows. Give it another try with the whole
34959     # argument.
34960     path="$complete"
34961     arguments="EOL"
34962     new_path="$path"
34963 
34964   windows_path="$new_path"
34965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34966     unix_path=`$CYGPATH -u "$windows_path"`
34967     new_path="$unix_path"
34968   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34969     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34970     new_path="$unix_path"
34971   fi
34972 
34973 
34974     new_path=`$WHICH "$new_path" 2> /dev/null`
34975 
34976     if test "x$new_path" = x; then
34977       # It's still not found. Now this is an unrecoverable error.
34978       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
34979 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
34980       has_space=`$ECHO "$complete" | $GREP " "`
34981       if test "x$has_space" != x; then
34982         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34983 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34984       fi
34985       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34986     fi
34987   fi
34988 
34989   # Now new_path has a complete unix path to the binary
34990   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34991     # Keep paths in /bin as-is, but remove trailing .exe if any
34992     new_path="${new_path/%.exe/}"
34993     # Do not save /bin paths to all_fixpath_prefixes!
34994   else
34995     # Not in mixed or Windows style, start by that.
34996     new_path=`cmd //c echo $new_path`
34997 
34998   input_path="$new_path"
34999   # Check if we need to convert this using DOS-style short mode. If the path
35000   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35001   # take no chances and rewrite it.
35002   # Note: m4 eats our [], so we need to use [ and ] instead.
35003   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35004   if test "x$has_forbidden_chars" != x; then
35005     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35006     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35007   fi
35008 
35009     # Output is in $new_path
35010 
35011   windows_path="$new_path"
35012   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35013     unix_path=`$CYGPATH -u "$windows_path"`
35014     new_path="$unix_path"
35015   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35016     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35017     new_path="$unix_path"
35018   fi
35019 
35020     # remove trailing .exe if any
35021     new_path="${new_path/%.exe/}"
35022 
35023     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35024     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35025   fi
35026 
35027   else
35028     # We're on a posix platform. Hooray! :)
35029     # First separate the path from the arguments. This will split at the first
35030     # space.
35031     complete="$DUMPBIN"
35032     path="${complete%% *}"
35033     tmp="$complete EOL"
35034     arguments="${tmp#* }"
35035 
35036     # Cannot rely on the command "which" here since it doesn't always work.
35037     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35038     if test -z "$is_absolute_path"; then
35039       # Path to executable is not absolute. Find it.
35040       IFS_save="$IFS"
35041       IFS=:
35042       for p in $PATH; do
35043         if test -f "$p/$path" && test -x "$p/$path"; then
35044           new_path="$p/$path"
35045           break
35046         fi
35047       done
35048       IFS="$IFS_save"
35049     else
35050       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving DUMPBIN (as $path) failed, using $path directly." >&5
35051 $as_echo "$as_me: Resolving DUMPBIN (as $path) failed, using $path directly." >&6;}
35052       new_path="$path"
35053     fi
35054 
35055     if test "x$new_path" = x; then
35056       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
35057 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
35058       has_space=`$ECHO "$complete" | $GREP " "`
35059       if test "x$has_space" != x; then
35060         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35061 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35062       fi
35063       as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
35064     fi
35065   fi
35066 
35067   # Now join together the path and the arguments once again
35068   if test "x$arguments" != xEOL; then
35069     new_complete="$new_path ${arguments% *}"
35070   else
35071     new_complete="$new_path"
35072   fi
35073 
35074   if test "x$complete" != "x$new_complete"; then
35075     DUMPBIN="$new_complete"
35076     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5
35077 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;}
35078   fi
35079 
35080 
35081       COMPILER_TYPE=CL
35082       CCXXFLAGS="$CCXXFLAGS -nologo"
35083 
35084 fi
35085 
35086 
35087 
35088   ac_ext=c
35089 ac_cpp='$CPP $CPPFLAGS'
35090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
35094 $as_echo_n "checking how to run the C preprocessor... " >&6; }
35095 # On Suns, sometimes $CPP names a directory.
35096 if test -n "$CPP" && test -d "$CPP"; then
35097   CPP=
35098 fi
35099 if test -z "$CPP"; then
35100   if ${ac_cv_prog_CPP+:} false; then :
35101   $as_echo_n "(cached) " >&6
35102 else
35103       # Double quotes because CPP needs to be expanded
35104     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
35105     do
35106       ac_preproc_ok=false
35107 for ac_c_preproc_warn_flag in '' yes
35108 do
35109   # Use a header file that comes with gcc, so configuring glibc
35110   # with a fresh cross-compiler works.
35111   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35112   # <limits.h> exists even on freestanding compilers.
35113   # On the NeXT, cc -E runs the code through the compiler's parser,
35114   # not just through cpp. "Syntax error" is here to catch this case.
35115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35116 /* end confdefs.h.  */
35117 #ifdef __STDC__
35118 # include <limits.h>
35119 #else
35120 # include <assert.h>
35121 #endif
35122                      Syntax error
35123 _ACEOF
35124 if ac_fn_c_try_cpp "$LINENO"; then :
35125 
35126 else
35127   # Broken: fails on valid input.
35128 continue
35129 fi
35130 rm -f conftest.err conftest.i conftest.$ac_ext
35131 
35132   # OK, works on sane cases.  Now check whether nonexistent headers
35133   # can be detected and how.
35134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35135 /* end confdefs.h.  */
35136 #include <ac_nonexistent.h>
35137 _ACEOF
35138 if ac_fn_c_try_cpp "$LINENO"; then :
35139   # Broken: success on invalid input.
35140 continue
35141 else
35142   # Passes both tests.
35143 ac_preproc_ok=:
35144 break
35145 fi
35146 rm -f conftest.err conftest.i conftest.$ac_ext
35147 
35148 done
35149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35150 rm -f conftest.i conftest.err conftest.$ac_ext
35151 if $ac_preproc_ok; then :
35152   break
35153 fi
35154 
35155     done
35156     ac_cv_prog_CPP=$CPP
35157 
35158 fi
35159   CPP=$ac_cv_prog_CPP
35160 else
35161   ac_cv_prog_CPP=$CPP
35162 fi
35163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
35164 $as_echo "$CPP" >&6; }
35165 ac_preproc_ok=false
35166 for ac_c_preproc_warn_flag in '' yes
35167 do
35168   # Use a header file that comes with gcc, so configuring glibc
35169   # with a fresh cross-compiler works.
35170   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35171   # <limits.h> exists even on freestanding compilers.
35172   # On the NeXT, cc -E runs the code through the compiler's parser,
35173   # not just through cpp. "Syntax error" is here to catch this case.
35174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35175 /* end confdefs.h.  */
35176 #ifdef __STDC__
35177 # include <limits.h>
35178 #else
35179 # include <assert.h>
35180 #endif
35181                      Syntax error
35182 _ACEOF
35183 if ac_fn_c_try_cpp "$LINENO"; then :
35184 
35185 else
35186   # Broken: fails on valid input.
35187 continue
35188 fi
35189 rm -f conftest.err conftest.i conftest.$ac_ext
35190 
35191   # OK, works on sane cases.  Now check whether nonexistent headers
35192   # can be detected and how.
35193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35194 /* end confdefs.h.  */
35195 #include <ac_nonexistent.h>
35196 _ACEOF
35197 if ac_fn_c_try_cpp "$LINENO"; then :
35198   # Broken: success on invalid input.
35199 continue
35200 else
35201   # Passes both tests.
35202 ac_preproc_ok=:
35203 break
35204 fi
35205 rm -f conftest.err conftest.i conftest.$ac_ext
35206 
35207 done
35208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35209 rm -f conftest.i conftest.err conftest.$ac_ext
35210 if $ac_preproc_ok; then :
35211 
35212 else
35213   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35215 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
35216 See \`config.log' for more details" "$LINENO" 5; }
35217 fi
35218 
35219 ac_ext=cpp
35220 ac_cpp='$CXXCPP $CPPFLAGS'
35221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35224 
35225 
35226   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35227 
35228   # First separate the path from the arguments. This will split at the first
35229   # space.
35230   complete="$CPP"
35231   path="${complete%% *}"
35232   tmp="$complete EOL"
35233   arguments="${tmp#* }"
35234 
35235   # Input might be given as Windows format, start by converting to
35236   # unix format.
35237   new_path=`$CYGPATH -u "$path"`
35238 
35239   # Now try to locate executable using which
35240   new_path=`$WHICH "$new_path" 2> /dev/null`
35241   # bat and cmd files are not always considered executable in cygwin causing which
35242   # to not find them
35243   if test "x$new_path" = x \
35244       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35245       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35246     new_path=`$CYGPATH -u "$path"`
35247   fi
35248   if test "x$new_path" = x; then
35249     # Oops. Which didn't find the executable.
35250     # The splitting of arguments from the executable at a space might have been incorrect,
35251     # since paths with space are more likely in Windows. Give it another try with the whole
35252     # argument.
35253     path="$complete"
35254     arguments="EOL"
35255     new_path=`$CYGPATH -u "$path"`
35256     new_path=`$WHICH "$new_path" 2> /dev/null`
35257     # bat and cmd files are not always considered executable in cygwin causing which
35258     # to not find them
35259     if test "x$new_path" = x \
35260         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35261         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35262       new_path=`$CYGPATH -u "$path"`
35263     fi
35264     if test "x$new_path" = x; then
35265       # It's still not found. Now this is an unrecoverable error.
35266       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
35267 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
35268       has_space=`$ECHO "$complete" | $GREP " "`
35269       if test "x$has_space" != x; then
35270         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35271 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35272       fi
35273       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35274     fi
35275   fi
35276 
35277   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35278   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35279   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35280   # "foo.exe" is OK but "foo" is an error.
35281   #
35282   # This test is therefore slightly more accurate than "test -f" to check for file presence.
35283   # It is also a way to make sure we got the proper file name for the real test later on.
35284   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35285   if test "x$test_shortpath" = x; then
35286     # Short path failed, file does not exist as specified.
35287     # Try adding .exe or .cmd
35288     if test -f "${new_path}.exe"; then
35289       input_to_shortpath="${new_path}.exe"
35290     elif test -f "${new_path}.cmd"; then
35291       input_to_shortpath="${new_path}.cmd"
35292     else
35293       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5
35294 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;}
35295       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35296 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35297       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35298     fi
35299   else
35300     input_to_shortpath="$new_path"
35301   fi
35302 
35303   # Call helper function which possibly converts this using DOS-style short mode.
35304   # If so, the updated path is stored in $new_path.
35305   new_path="$input_to_shortpath"
35306 
35307   input_path="$input_to_shortpath"
35308   # Check if we need to convert this using DOS-style short mode. If the path
35309   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35310   # take no chances and rewrite it.
35311   # Note: m4 eats our [], so we need to use [ and ] instead.
35312   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35313   if test "x$has_forbidden_chars" != x; then
35314     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35315     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35316     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35317     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35318       # Going to short mode and back again did indeed matter. Since short mode is
35319       # case insensitive, let's make it lowercase to improve readability.
35320       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35321       # Now convert it back to Unix-stile (cygpath)
35322       input_path=`$CYGPATH -u "$shortmode_path"`
35323       new_path="$input_path"
35324     fi
35325   fi
35326 
35327   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35328   if test "x$test_cygdrive_prefix" = x; then
35329     # As a simple fix, exclude /usr/bin since it's not a real path.
35330     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35331       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35332       # a path prefixed by /cygdrive for fixpath to work.
35333       new_path="$CYGWIN_ROOT_PATH$input_path"
35334     fi
35335   fi
35336 
35337   # remove trailing .exe if any
35338   new_path="${new_path/%.exe/}"
35339 
35340   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35341 
35342   # First separate the path from the arguments. This will split at the first
35343   # space.
35344   complete="$CPP"
35345   path="${complete%% *}"
35346   tmp="$complete EOL"
35347   arguments="${tmp#* }"
35348 
35349   # Input might be given as Windows format, start by converting to
35350   # unix format.
35351   new_path="$path"
35352 
35353   windows_path="$new_path"
35354   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35355     unix_path=`$CYGPATH -u "$windows_path"`
35356     new_path="$unix_path"
35357   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35358     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35359     new_path="$unix_path"
35360   fi
35361 
35362 
35363   # Now try to locate executable using which
35364   new_path=`$WHICH "$new_path" 2> /dev/null`
35365 
35366   if test "x$new_path" = x; then
35367     # Oops. Which didn't find the executable.
35368     # The splitting of arguments from the executable at a space might have been incorrect,
35369     # since paths with space are more likely in Windows. Give it another try with the whole
35370     # argument.
35371     path="$complete"
35372     arguments="EOL"
35373     new_path="$path"
35374 
35375   windows_path="$new_path"
35376   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35377     unix_path=`$CYGPATH -u "$windows_path"`
35378     new_path="$unix_path"
35379   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35380     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35381     new_path="$unix_path"
35382   fi
35383 
35384 
35385     new_path=`$WHICH "$new_path" 2> /dev/null`
35386 
35387     if test "x$new_path" = x; then
35388       # It's still not found. Now this is an unrecoverable error.
35389       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
35390 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
35391       has_space=`$ECHO "$complete" | $GREP " "`
35392       if test "x$has_space" != x; then
35393         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35394 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35395       fi
35396       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35397     fi
35398   fi
35399 
35400   # Now new_path has a complete unix path to the binary
35401   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35402     # Keep paths in /bin as-is, but remove trailing .exe if any
35403     new_path="${new_path/%.exe/}"
35404     # Do not save /bin paths to all_fixpath_prefixes!
35405   else
35406     # Not in mixed or Windows style, start by that.
35407     new_path=`cmd //c echo $new_path`
35408 
35409   input_path="$new_path"
35410   # Check if we need to convert this using DOS-style short mode. If the path
35411   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35412   # take no chances and rewrite it.
35413   # Note: m4 eats our [], so we need to use [ and ] instead.
35414   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35415   if test "x$has_forbidden_chars" != x; then
35416     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35417     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35418   fi
35419 
35420     # Output is in $new_path
35421 
35422   windows_path="$new_path"
35423   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35424     unix_path=`$CYGPATH -u "$windows_path"`
35425     new_path="$unix_path"
35426   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35427     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35428     new_path="$unix_path"
35429   fi
35430 
35431     # remove trailing .exe if any
35432     new_path="${new_path/%.exe/}"
35433 
35434     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35435     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35436   fi
35437 
35438   else
35439     # We're on a posix platform. Hooray! :)
35440     # First separate the path from the arguments. This will split at the first
35441     # space.
35442     complete="$CPP"
35443     path="${complete%% *}"
35444     tmp="$complete EOL"
35445     arguments="${tmp#* }"
35446 
35447     # Cannot rely on the command "which" here since it doesn't always work.
35448     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35449     if test -z "$is_absolute_path"; then
35450       # Path to executable is not absolute. Find it.
35451       IFS_save="$IFS"
35452       IFS=:
35453       for p in $PATH; do
35454         if test -f "$p/$path" && test -x "$p/$path"; then
35455           new_path="$p/$path"
35456           break
35457         fi
35458       done
35459       IFS="$IFS_save"
35460     else
35461       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CPP (as $path) failed, using $path directly." >&5
35462 $as_echo "$as_me: Resolving CPP (as $path) failed, using $path directly." >&6;}
35463       new_path="$path"
35464     fi
35465 
35466     if test "x$new_path" = x; then
35467       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
35468 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
35469       has_space=`$ECHO "$complete" | $GREP " "`
35470       if test "x$has_space" != x; then
35471         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35472 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35473       fi
35474       as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
35475     fi
35476   fi
35477 
35478   # Now join together the path and the arguments once again
35479   if test "x$arguments" != xEOL; then
35480     new_complete="$new_path ${arguments% *}"
35481   else
35482     new_complete="$new_path"
35483   fi
35484 
35485   if test "x$complete" != "x$new_complete"; then
35486     CPP="$new_complete"
35487     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
35488 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
35489   fi
35490 
35491 
35492   ac_ext=cpp
35493 ac_cpp='$CXXCPP $CPPFLAGS'
35494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
35498 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
35499 if test -z "$CXXCPP"; then
35500   if ${ac_cv_prog_CXXCPP+:} false; then :
35501   $as_echo_n "(cached) " >&6
35502 else
35503       # Double quotes because CXXCPP needs to be expanded
35504     for CXXCPP in "$CXX -E" "/lib/cpp"
35505     do
35506       ac_preproc_ok=false
35507 for ac_cxx_preproc_warn_flag in '' yes
35508 do
35509   # Use a header file that comes with gcc, so configuring glibc
35510   # with a fresh cross-compiler works.
35511   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35512   # <limits.h> exists even on freestanding compilers.
35513   # On the NeXT, cc -E runs the code through the compiler's parser,
35514   # not just through cpp. "Syntax error" is here to catch this case.
35515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35516 /* end confdefs.h.  */
35517 #ifdef __STDC__
35518 # include <limits.h>
35519 #else
35520 # include <assert.h>
35521 #endif
35522                      Syntax error
35523 _ACEOF
35524 if ac_fn_cxx_try_cpp "$LINENO"; then :
35525 
35526 else
35527   # Broken: fails on valid input.
35528 continue
35529 fi
35530 rm -f conftest.err conftest.i conftest.$ac_ext
35531 
35532   # OK, works on sane cases.  Now check whether nonexistent headers
35533   # can be detected and how.
35534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35535 /* end confdefs.h.  */
35536 #include <ac_nonexistent.h>
35537 _ACEOF
35538 if ac_fn_cxx_try_cpp "$LINENO"; then :
35539   # Broken: success on invalid input.
35540 continue
35541 else
35542   # Passes both tests.
35543 ac_preproc_ok=:
35544 break
35545 fi
35546 rm -f conftest.err conftest.i conftest.$ac_ext
35547 
35548 done
35549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35550 rm -f conftest.i conftest.err conftest.$ac_ext
35551 if $ac_preproc_ok; then :
35552   break
35553 fi
35554 
35555     done
35556     ac_cv_prog_CXXCPP=$CXXCPP
35557 
35558 fi
35559   CXXCPP=$ac_cv_prog_CXXCPP
35560 else
35561   ac_cv_prog_CXXCPP=$CXXCPP
35562 fi
35563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
35564 $as_echo "$CXXCPP" >&6; }
35565 ac_preproc_ok=false
35566 for ac_cxx_preproc_warn_flag in '' yes
35567 do
35568   # Use a header file that comes with gcc, so configuring glibc
35569   # with a fresh cross-compiler works.
35570   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35571   # <limits.h> exists even on freestanding compilers.
35572   # On the NeXT, cc -E runs the code through the compiler's parser,
35573   # not just through cpp. "Syntax error" is here to catch this case.
35574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35575 /* end confdefs.h.  */
35576 #ifdef __STDC__
35577 # include <limits.h>
35578 #else
35579 # include <assert.h>
35580 #endif
35581                      Syntax error
35582 _ACEOF
35583 if ac_fn_cxx_try_cpp "$LINENO"; then :
35584 
35585 else
35586   # Broken: fails on valid input.
35587 continue
35588 fi
35589 rm -f conftest.err conftest.i conftest.$ac_ext
35590 
35591   # OK, works on sane cases.  Now check whether nonexistent headers
35592   # can be detected and how.
35593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35594 /* end confdefs.h.  */
35595 #include <ac_nonexistent.h>
35596 _ACEOF
35597 if ac_fn_cxx_try_cpp "$LINENO"; then :
35598   # Broken: success on invalid input.
35599 continue
35600 else
35601   # Passes both tests.
35602 ac_preproc_ok=:
35603 break
35604 fi
35605 rm -f conftest.err conftest.i conftest.$ac_ext
35606 
35607 done
35608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
35609 rm -f conftest.i conftest.err conftest.$ac_ext
35610 if $ac_preproc_ok; then :
35611 
35612 else
35613   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35615 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
35616 See \`config.log' for more details" "$LINENO" 5; }
35617 fi
35618 
35619 ac_ext=cpp
35620 ac_cpp='$CXXCPP $CPPFLAGS'
35621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35624 
35625 
35626   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35627 
35628   # First separate the path from the arguments. This will split at the first
35629   # space.
35630   complete="$CXXCPP"
35631   path="${complete%% *}"
35632   tmp="$complete EOL"
35633   arguments="${tmp#* }"
35634 
35635   # Input might be given as Windows format, start by converting to
35636   # unix format.
35637   new_path=`$CYGPATH -u "$path"`
35638 
35639   # Now try to locate executable using which
35640   new_path=`$WHICH "$new_path" 2> /dev/null`
35641   # bat and cmd files are not always considered executable in cygwin causing which
35642   # to not find them
35643   if test "x$new_path" = x \
35644       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35645       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35646     new_path=`$CYGPATH -u "$path"`
35647   fi
35648   if test "x$new_path" = x; then
35649     # Oops. Which didn't find the executable.
35650     # The splitting of arguments from the executable at a space might have been incorrect,
35651     # since paths with space are more likely in Windows. Give it another try with the whole
35652     # argument.
35653     path="$complete"
35654     arguments="EOL"
35655     new_path=`$CYGPATH -u "$path"`
35656     new_path=`$WHICH "$new_path" 2> /dev/null`
35657     # bat and cmd files are not always considered executable in cygwin causing which
35658     # to not find them
35659     if test "x$new_path" = x \
35660         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35661         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35662       new_path=`$CYGPATH -u "$path"`
35663     fi
35664     if test "x$new_path" = x; then
35665       # It's still not found. Now this is an unrecoverable error.
35666       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
35667 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
35668       has_space=`$ECHO "$complete" | $GREP " "`
35669       if test "x$has_space" != x; then
35670         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35672       fi
35673       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35674     fi
35675   fi
35676 
35677   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35678   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35679   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35680   # "foo.exe" is OK but "foo" is an error.
35681   #
35682   # This test is therefore slightly more accurate than "test -f" to check for file presence.
35683   # It is also a way to make sure we got the proper file name for the real test later on.
35684   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35685   if test "x$test_shortpath" = x; then
35686     # Short path failed, file does not exist as specified.
35687     # Try adding .exe or .cmd
35688     if test -f "${new_path}.exe"; then
35689       input_to_shortpath="${new_path}.exe"
35690     elif test -f "${new_path}.cmd"; then
35691       input_to_shortpath="${new_path}.cmd"
35692     else
35693       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5
35694 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;}
35695       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35696 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35697       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35698     fi
35699   else
35700     input_to_shortpath="$new_path"
35701   fi
35702 
35703   # Call helper function which possibly converts this using DOS-style short mode.
35704   # If so, the updated path is stored in $new_path.
35705   new_path="$input_to_shortpath"
35706 
35707   input_path="$input_to_shortpath"
35708   # Check if we need to convert this using DOS-style short mode. If the path
35709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35710   # take no chances and rewrite it.
35711   # Note: m4 eats our [], so we need to use [ and ] instead.
35712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35713   if test "x$has_forbidden_chars" != x; then
35714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35715     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35716     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35717     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35718       # Going to short mode and back again did indeed matter. Since short mode is
35719       # case insensitive, let's make it lowercase to improve readability.
35720       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35721       # Now convert it back to Unix-stile (cygpath)
35722       input_path=`$CYGPATH -u "$shortmode_path"`
35723       new_path="$input_path"
35724     fi
35725   fi
35726 
35727   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35728   if test "x$test_cygdrive_prefix" = x; then
35729     # As a simple fix, exclude /usr/bin since it's not a real path.
35730     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35731       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35732       # a path prefixed by /cygdrive for fixpath to work.
35733       new_path="$CYGWIN_ROOT_PATH$input_path"
35734     fi
35735   fi
35736 
35737   # remove trailing .exe if any
35738   new_path="${new_path/%.exe/}"
35739 
35740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35741 
35742   # First separate the path from the arguments. This will split at the first
35743   # space.
35744   complete="$CXXCPP"
35745   path="${complete%% *}"
35746   tmp="$complete EOL"
35747   arguments="${tmp#* }"
35748 
35749   # Input might be given as Windows format, start by converting to
35750   # unix format.
35751   new_path="$path"
35752 
35753   windows_path="$new_path"
35754   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35755     unix_path=`$CYGPATH -u "$windows_path"`
35756     new_path="$unix_path"
35757   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35758     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35759     new_path="$unix_path"
35760   fi
35761 
35762 
35763   # Now try to locate executable using which
35764   new_path=`$WHICH "$new_path" 2> /dev/null`
35765 
35766   if test "x$new_path" = x; then
35767     # Oops. Which didn't find the executable.
35768     # The splitting of arguments from the executable at a space might have been incorrect,
35769     # since paths with space are more likely in Windows. Give it another try with the whole
35770     # argument.
35771     path="$complete"
35772     arguments="EOL"
35773     new_path="$path"
35774 
35775   windows_path="$new_path"
35776   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35777     unix_path=`$CYGPATH -u "$windows_path"`
35778     new_path="$unix_path"
35779   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35780     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35781     new_path="$unix_path"
35782   fi
35783 
35784 
35785     new_path=`$WHICH "$new_path" 2> /dev/null`
35786 
35787     if test "x$new_path" = x; then
35788       # It's still not found. Now this is an unrecoverable error.
35789       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
35790 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
35791       has_space=`$ECHO "$complete" | $GREP " "`
35792       if test "x$has_space" != x; then
35793         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35794 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35795       fi
35796       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35797     fi
35798   fi
35799 
35800   # Now new_path has a complete unix path to the binary
35801   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35802     # Keep paths in /bin as-is, but remove trailing .exe if any
35803     new_path="${new_path/%.exe/}"
35804     # Do not save /bin paths to all_fixpath_prefixes!
35805   else
35806     # Not in mixed or Windows style, start by that.
35807     new_path=`cmd //c echo $new_path`
35808 
35809   input_path="$new_path"
35810   # Check if we need to convert this using DOS-style short mode. If the path
35811   # contains just simple characters, use it. Otherwise (spaces, weird characters),
35812   # take no chances and rewrite it.
35813   # Note: m4 eats our [], so we need to use [ and ] instead.
35814   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35815   if test "x$has_forbidden_chars" != x; then
35816     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35817     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35818   fi
35819 
35820     # Output is in $new_path
35821 
35822   windows_path="$new_path"
35823   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35824     unix_path=`$CYGPATH -u "$windows_path"`
35825     new_path="$unix_path"
35826   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35827     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35828     new_path="$unix_path"
35829   fi
35830 
35831     # remove trailing .exe if any
35832     new_path="${new_path/%.exe/}"
35833 
35834     # Save the first 10 bytes of this path to the storage, so fixpath can work.
35835     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35836   fi
35837 
35838   else
35839     # We're on a posix platform. Hooray! :)
35840     # First separate the path from the arguments. This will split at the first
35841     # space.
35842     complete="$CXXCPP"
35843     path="${complete%% *}"
35844     tmp="$complete EOL"
35845     arguments="${tmp#* }"
35846 
35847     # Cannot rely on the command "which" here since it doesn't always work.
35848     is_absolute_path=`$ECHO "$path" | $GREP ^/`
35849     if test -z "$is_absolute_path"; then
35850       # Path to executable is not absolute. Find it.
35851       IFS_save="$IFS"
35852       IFS=:
35853       for p in $PATH; do
35854         if test -f "$p/$path" && test -x "$p/$path"; then
35855           new_path="$p/$path"
35856           break
35857         fi
35858       done
35859       IFS="$IFS_save"
35860     else
35861       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXXCPP (as $path) failed, using $path directly." >&5
35862 $as_echo "$as_me: Resolving CXXCPP (as $path) failed, using $path directly." >&6;}
35863       new_path="$path"
35864     fi
35865 
35866     if test "x$new_path" = x; then
35867       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
35868 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
35869       has_space=`$ECHO "$complete" | $GREP " "`
35870       if test "x$has_space" != x; then
35871         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35872 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35873       fi
35874       as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
35875     fi
35876   fi
35877 
35878   # Now join together the path and the arguments once again
35879   if test "x$arguments" != xEOL; then
35880     new_complete="$new_path ${arguments% *}"
35881   else
35882     new_complete="$new_path"
35883   fi
35884 
35885   if test "x$complete" != "x$new_complete"; then
35886     CXXCPP="$new_complete"
35887     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5
35888 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;}
35889   fi
35890 
35891 
35892   if test "x$COMPILE_TYPE" != "xcross"; then
35893     # If we are not cross compiling, use the same compilers for
35894     # building the build platform executables. The cross-compilation
35895     # case needed to be done earlier, but this can only be done after
35896     # the native tools have been localized.
35897     BUILD_CC="$CC"
35898     BUILD_CXX="$CXX"
35899     BUILD_LD="$LD"
35900   fi
35901 
35902   # for solaris we really need solaris tools, and not gnu equivalent
35903   #   these seems to normally reside in /usr/ccs/bin so add that to path before
35904   #   starting to probe
35905   #
35906   #   NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
35907   #         so that it can be overriden --with-tools-dir
35908   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
35909     PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
35910   fi
35911 
35912   # Find the right assembler.
35913   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
35914 
35915 
35916   # Publish this variable in the help.
35917 
35918 
35919   if test "x$AS" = x; then
35920     # The variable is not set by user, try to locate tool using the code snippet
35921     for ac_prog in as
35922 do
35923   # Extract the first word of "$ac_prog", so it can be a program name with args.
35924 set dummy $ac_prog; ac_word=$2
35925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35926 $as_echo_n "checking for $ac_word... " >&6; }
35927 if ${ac_cv_path_AS+:} false; then :
35928   $as_echo_n "(cached) " >&6
35929 else
35930   case $AS in
35931   [\\/]* | ?:[\\/]*)
35932   ac_cv_path_AS="$AS" # Let the user override the test with a path.
35933   ;;
35934   *)
35935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35936 for as_dir in $PATH
35937 do
35938   IFS=$as_save_IFS
35939   test -z "$as_dir" && as_dir=.
35940     for ac_exec_ext in '' $ac_executable_extensions; do
35941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35942     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
35943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35944     break 2
35945   fi
35946 done
35947   done
35948 IFS=$as_save_IFS
35949 
35950   ;;
35951 esac
35952 fi
35953 AS=$ac_cv_path_AS
35954 if test -n "$AS"; then
35955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
35956 $as_echo "$AS" >&6; }
35957 else
35958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35959 $as_echo "no" >&6; }
35960 fi
35961 
35962 
35963   test -n "$AS" && break
35964 done
35965 
35966   else
35967     # The variable is set, but is it from the command line or the environment?
35968 
35969     # Try to remove the string !AS! from our list.
35970     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/}
35971     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
35972       # If it failed, the variable was not from the command line. Ignore it,
35973       # but warn the user (except for BASH, which is always set by the calling BASH).
35974       if test "xAS" != xBASH; then
35975         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5
35976 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;}
35977       fi
35978       # Try to locate tool using the code snippet
35979       for ac_prog in as
35980 do
35981   # Extract the first word of "$ac_prog", so it can be a program name with args.
35982 set dummy $ac_prog; ac_word=$2
35983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35984 $as_echo_n "checking for $ac_word... " >&6; }
35985 if ${ac_cv_path_AS+:} false; then :
35986   $as_echo_n "(cached) " >&6
35987 else
35988   case $AS in
35989   [\\/]* | ?:[\\/]*)
35990   ac_cv_path_AS="$AS" # Let the user override the test with a path.
35991   ;;
35992   *)
35993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35994 for as_dir in $PATH
35995 do
35996   IFS=$as_save_IFS
35997   test -z "$as_dir" && as_dir=.
35998     for ac_exec_ext in '' $ac_executable_extensions; do
35999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36000     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
36001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36002     break 2
36003   fi
36004 done
36005   done
36006 IFS=$as_save_IFS
36007 
36008   ;;
36009 esac
36010 fi
36011 AS=$ac_cv_path_AS
36012 if test -n "$AS"; then
36013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
36014 $as_echo "$AS" >&6; }
36015 else
36016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36017 $as_echo "no" >&6; }
36018 fi
36019 
36020 
36021   test -n "$AS" && break
36022 done
36023 
36024     else
36025       # If it succeeded, then it was overridden by the user. We will use it
36026       # for the tool.
36027 
36028       # First remove it from the list of overridden variables, so we can test
36029       # for unknown variables in the end.
36030       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36031 
36032       # Check if the provided tool contains a complete path.
36033       tool_specified="$AS"
36034       tool_basename="${tool_specified##*/}"
36035       if test "x$tool_basename" = "x$tool_specified"; then
36036         # A command without a complete path is provided, search $PATH.
36037         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5
36038 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;}
36039         # Extract the first word of "$tool_basename", so it can be a program name with args.
36040 set dummy $tool_basename; ac_word=$2
36041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36042 $as_echo_n "checking for $ac_word... " >&6; }
36043 if ${ac_cv_path_AS+:} false; then :
36044   $as_echo_n "(cached) " >&6
36045 else
36046   case $AS in
36047   [\\/]* | ?:[\\/]*)
36048   ac_cv_path_AS="$AS" # Let the user override the test with a path.
36049   ;;
36050   *)
36051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36052 for as_dir in $PATH
36053 do
36054   IFS=$as_save_IFS
36055   test -z "$as_dir" && as_dir=.
36056     for ac_exec_ext in '' $ac_executable_extensions; do
36057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36058     ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
36059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36060     break 2
36061   fi
36062 done
36063   done
36064 IFS=$as_save_IFS
36065 
36066   ;;
36067 esac
36068 fi
36069 AS=$ac_cv_path_AS
36070 if test -n "$AS"; then
36071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
36072 $as_echo "$AS" >&6; }
36073 else
36074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36075 $as_echo "no" >&6; }
36076 fi
36077 
36078 
36079         if test "x$AS" = x; then
36080           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36081         fi
36082       else
36083         # Otherwise we believe it is a complete path. Use it as it is.
36084         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5
36085 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;}
36086         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5
36087 $as_echo_n "checking for AS... " >&6; }
36088         if test ! -x "$tool_specified"; then
36089           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36090 $as_echo "not found" >&6; }
36091           as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5
36092         fi
36093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36094 $as_echo "$tool_specified" >&6; }
36095       fi
36096     fi
36097   fi
36098 
36099 
36100 
36101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36102 
36103   # First separate the path from the arguments. This will split at the first
36104   # space.
36105   complete="$AS"
36106   path="${complete%% *}"
36107   tmp="$complete EOL"
36108   arguments="${tmp#* }"
36109 
36110   # Input might be given as Windows format, start by converting to
36111   # unix format.
36112   new_path=`$CYGPATH -u "$path"`
36113 
36114   # Now try to locate executable using which
36115   new_path=`$WHICH "$new_path" 2> /dev/null`
36116   # bat and cmd files are not always considered executable in cygwin causing which
36117   # to not find them
36118   if test "x$new_path" = x \
36119       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36120       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36121     new_path=`$CYGPATH -u "$path"`
36122   fi
36123   if test "x$new_path" = x; then
36124     # Oops. Which didn't find the executable.
36125     # The splitting of arguments from the executable at a space might have been incorrect,
36126     # since paths with space are more likely in Windows. Give it another try with the whole
36127     # argument.
36128     path="$complete"
36129     arguments="EOL"
36130     new_path=`$CYGPATH -u "$path"`
36131     new_path=`$WHICH "$new_path" 2> /dev/null`
36132     # bat and cmd files are not always considered executable in cygwin causing which
36133     # to not find them
36134     if test "x$new_path" = x \
36135         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36136         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36137       new_path=`$CYGPATH -u "$path"`
36138     fi
36139     if test "x$new_path" = x; then
36140       # It's still not found. Now this is an unrecoverable error.
36141       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
36142 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
36143       has_space=`$ECHO "$complete" | $GREP " "`
36144       if test "x$has_space" != x; then
36145         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36146 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36147       fi
36148       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36149     fi
36150   fi
36151 
36152   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36153   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36154   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36155   # "foo.exe" is OK but "foo" is an error.
36156   #
36157   # This test is therefore slightly more accurate than "test -f" to check for file presence.
36158   # It is also a way to make sure we got the proper file name for the real test later on.
36159   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36160   if test "x$test_shortpath" = x; then
36161     # Short path failed, file does not exist as specified.
36162     # Try adding .exe or .cmd
36163     if test -f "${new_path}.exe"; then
36164       input_to_shortpath="${new_path}.exe"
36165     elif test -f "${new_path}.cmd"; then
36166       input_to_shortpath="${new_path}.cmd"
36167     else
36168       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5
36169 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;}
36170       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36171 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36172       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36173     fi
36174   else
36175     input_to_shortpath="$new_path"
36176   fi
36177 
36178   # Call helper function which possibly converts this using DOS-style short mode.
36179   # If so, the updated path is stored in $new_path.
36180   new_path="$input_to_shortpath"
36181 
36182   input_path="$input_to_shortpath"
36183   # Check if we need to convert this using DOS-style short mode. If the path
36184   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36185   # take no chances and rewrite it.
36186   # Note: m4 eats our [], so we need to use [ and ] instead.
36187   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36188   if test "x$has_forbidden_chars" != x; then
36189     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36190     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36191     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36192     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36193       # Going to short mode and back again did indeed matter. Since short mode is
36194       # case insensitive, let's make it lowercase to improve readability.
36195       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36196       # Now convert it back to Unix-stile (cygpath)
36197       input_path=`$CYGPATH -u "$shortmode_path"`
36198       new_path="$input_path"
36199     fi
36200   fi
36201 
36202   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36203   if test "x$test_cygdrive_prefix" = x; then
36204     # As a simple fix, exclude /usr/bin since it's not a real path.
36205     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36206       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36207       # a path prefixed by /cygdrive for fixpath to work.
36208       new_path="$CYGWIN_ROOT_PATH$input_path"
36209     fi
36210   fi
36211 
36212   # remove trailing .exe if any
36213   new_path="${new_path/%.exe/}"
36214 
36215   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36216 
36217   # First separate the path from the arguments. This will split at the first
36218   # space.
36219   complete="$AS"
36220   path="${complete%% *}"
36221   tmp="$complete EOL"
36222   arguments="${tmp#* }"
36223 
36224   # Input might be given as Windows format, start by converting to
36225   # unix format.
36226   new_path="$path"
36227 
36228   windows_path="$new_path"
36229   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36230     unix_path=`$CYGPATH -u "$windows_path"`
36231     new_path="$unix_path"
36232   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36233     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36234     new_path="$unix_path"
36235   fi
36236 
36237 
36238   # Now try to locate executable using which
36239   new_path=`$WHICH "$new_path" 2> /dev/null`
36240 
36241   if test "x$new_path" = x; then
36242     # Oops. Which didn't find the executable.
36243     # The splitting of arguments from the executable at a space might have been incorrect,
36244     # since paths with space are more likely in Windows. Give it another try with the whole
36245     # argument.
36246     path="$complete"
36247     arguments="EOL"
36248     new_path="$path"
36249 
36250   windows_path="$new_path"
36251   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36252     unix_path=`$CYGPATH -u "$windows_path"`
36253     new_path="$unix_path"
36254   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36255     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36256     new_path="$unix_path"
36257   fi
36258 
36259 
36260     new_path=`$WHICH "$new_path" 2> /dev/null`
36261 
36262     if test "x$new_path" = x; then
36263       # It's still not found. Now this is an unrecoverable error.
36264       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
36265 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
36266       has_space=`$ECHO "$complete" | $GREP " "`
36267       if test "x$has_space" != x; then
36268         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36269 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36270       fi
36271       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36272     fi
36273   fi
36274 
36275   # Now new_path has a complete unix path to the binary
36276   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36277     # Keep paths in /bin as-is, but remove trailing .exe if any
36278     new_path="${new_path/%.exe/}"
36279     # Do not save /bin paths to all_fixpath_prefixes!
36280   else
36281     # Not in mixed or Windows style, start by that.
36282     new_path=`cmd //c echo $new_path`
36283 
36284   input_path="$new_path"
36285   # Check if we need to convert this using DOS-style short mode. If the path
36286   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36287   # take no chances and rewrite it.
36288   # Note: m4 eats our [], so we need to use [ and ] instead.
36289   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
36290   if test "x$has_forbidden_chars" != x; then
36291     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36292     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36293   fi
36294 
36295     # Output is in $new_path
36296 
36297   windows_path="$new_path"
36298   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36299     unix_path=`$CYGPATH -u "$windows_path"`
36300     new_path="$unix_path"
36301   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36302     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36303     new_path="$unix_path"
36304   fi
36305 
36306     # remove trailing .exe if any
36307     new_path="${new_path/%.exe/}"
36308 
36309     # Save the first 10 bytes of this path to the storage, so fixpath can work.
36310     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36311   fi
36312 
36313   else
36314     # We're on a posix platform. Hooray! :)
36315     # First separate the path from the arguments. This will split at the first
36316     # space.
36317     complete="$AS"
36318     path="${complete%% *}"
36319     tmp="$complete EOL"
36320     arguments="${tmp#* }"
36321 
36322     # Cannot rely on the command "which" here since it doesn't always work.
36323     is_absolute_path=`$ECHO "$path" | $GREP ^/`
36324     if test -z "$is_absolute_path"; then
36325       # Path to executable is not absolute. Find it.
36326       IFS_save="$IFS"
36327       IFS=:
36328       for p in $PATH; do
36329         if test -f "$p/$path" && test -x "$p/$path"; then
36330           new_path="$p/$path"
36331           break
36332         fi
36333       done
36334       IFS="$IFS_save"
36335     else
36336       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AS (as $path) failed, using $path directly." >&5
36337 $as_echo "$as_me: Resolving AS (as $path) failed, using $path directly." >&6;}
36338       new_path="$path"
36339     fi
36340 
36341     if test "x$new_path" = x; then
36342       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
36343 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
36344       has_space=`$ECHO "$complete" | $GREP " "`
36345       if test "x$has_space" != x; then
36346         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36347 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36348       fi
36349       as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
36350     fi
36351   fi
36352 
36353   # Now join together the path and the arguments once again
36354   if test "x$arguments" != xEOL; then
36355     new_complete="$new_path ${arguments% *}"
36356   else
36357     new_complete="$new_path"
36358   fi
36359 
36360   if test "x$complete" != "x$new_complete"; then
36361     AS="$new_complete"
36362     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
36363 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
36364   fi
36365 
36366   else
36367     AS="$CC -c"
36368   fi
36369 
36370 
36371   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
36372 
36373 
36374   # Publish this variable in the help.
36375 
36376 
36377   if test "x$NM" = x; then
36378     # The variable is not set by user, try to locate tool using the code snippet
36379     for ac_prog in nm
36380 do
36381   # Extract the first word of "$ac_prog", so it can be a program name with args.
36382 set dummy $ac_prog; ac_word=$2
36383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36384 $as_echo_n "checking for $ac_word... " >&6; }
36385 if ${ac_cv_path_NM+:} false; then :
36386   $as_echo_n "(cached) " >&6
36387 else
36388   case $NM in
36389   [\\/]* | ?:[\\/]*)
36390   ac_cv_path_NM="$NM" # Let the user override the test with a path.
36391   ;;
36392   *)
36393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36394 for as_dir in $PATH
36395 do
36396   IFS=$as_save_IFS
36397   test -z "$as_dir" && as_dir=.
36398     for ac_exec_ext in '' $ac_executable_extensions; do
36399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36400     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
36401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36402     break 2
36403   fi
36404 done
36405   done
36406 IFS=$as_save_IFS
36407 
36408   ;;
36409 esac
36410 fi
36411 NM=$ac_cv_path_NM
36412 if test -n "$NM"; then
36413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36414 $as_echo "$NM" >&6; }
36415 else
36416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36417 $as_echo "no" >&6; }
36418 fi
36419 
36420 
36421   test -n "$NM" && break
36422 done
36423 
36424   else
36425     # The variable is set, but is it from the command line or the environment?
36426 
36427     # Try to remove the string !NM! from our list.
36428     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
36429     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36430       # If it failed, the variable was not from the command line. Ignore it,
36431       # but warn the user (except for BASH, which is always set by the calling BASH).
36432       if test "xNM" != xBASH; then
36433         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
36434 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
36435       fi
36436       # Try to locate tool using the code snippet
36437       for ac_prog in nm
36438 do
36439   # Extract the first word of "$ac_prog", so it can be a program name with args.
36440 set dummy $ac_prog; ac_word=$2
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36442 $as_echo_n "checking for $ac_word... " >&6; }
36443 if ${ac_cv_path_NM+:} false; then :
36444   $as_echo_n "(cached) " >&6
36445 else
36446   case $NM in
36447   [\\/]* | ?:[\\/]*)
36448   ac_cv_path_NM="$NM" # Let the user override the test with a path.
36449   ;;
36450   *)
36451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36452 for as_dir in $PATH
36453 do
36454   IFS=$as_save_IFS
36455   test -z "$as_dir" && as_dir=.
36456     for ac_exec_ext in '' $ac_executable_extensions; do
36457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36458     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
36459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36460     break 2
36461   fi
36462 done
36463   done
36464 IFS=$as_save_IFS
36465 
36466   ;;
36467 esac
36468 fi
36469 NM=$ac_cv_path_NM
36470 if test -n "$NM"; then
36471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36472 $as_echo "$NM" >&6; }
36473 else
36474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36475 $as_echo "no" >&6; }
36476 fi
36477 
36478 
36479   test -n "$NM" && break
36480 done
36481 
36482     else
36483       # If it succeeded, then it was overridden by the user. We will use it
36484       # for the tool.
36485 
36486       # First remove it from the list of overridden variables, so we can test
36487       # for unknown variables in the end.
36488       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36489 
36490       # Check if the provided tool contains a complete path.
36491       tool_specified="$NM"
36492       tool_basename="${tool_specified##*/}"
36493       if test "x$tool_basename" = "x$tool_specified"; then
36494         # A command without a complete path is provided, search $PATH.
36495         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
36496 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
36497         # Extract the first word of "$tool_basename", so it can be a program name with args.
36498 set dummy $tool_basename; ac_word=$2
36499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36500 $as_echo_n "checking for $ac_word... " >&6; }
36501 if ${ac_cv_path_NM+:} false; then :
36502   $as_echo_n "(cached) " >&6
36503 else
36504   case $NM in
36505   [\\/]* | ?:[\\/]*)
36506   ac_cv_path_NM="$NM" # Let the user override the test with a path.
36507   ;;
36508   *)
36509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36510 for as_dir in $PATH
36511 do
36512   IFS=$as_save_IFS
36513   test -z "$as_dir" && as_dir=.
36514     for ac_exec_ext in '' $ac_executable_extensions; do
36515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36516     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
36517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36518     break 2
36519   fi
36520 done
36521   done
36522 IFS=$as_save_IFS
36523 
36524   ;;
36525 esac
36526 fi
36527 NM=$ac_cv_path_NM
36528 if test -n "$NM"; then
36529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
36530 $as_echo "$NM" >&6; }
36531 else
36532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36533 $as_echo "no" >&6; }
36534 fi
36535 
36536 
36537         if test "x$NM" = x; then
36538           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36539         fi
36540       else
36541         # Otherwise we believe it is a complete path. Use it as it is.
36542         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
36543 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
36544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
36545 $as_echo_n "checking for NM... " >&6; }
36546         if test ! -x "$tool_specified"; then
36547           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36548 $as_echo "not found" >&6; }
36549           as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
36550         fi
36551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36552 $as_echo "$tool_specified" >&6; }
36553       fi
36554     fi
36555   fi
36556 
36557 
36558 
36559   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36560 
36561   # First separate the path from the arguments. This will split at the first
36562   # space.
36563   complete="$NM"
36564   path="${complete%% *}"
36565   tmp="$complete EOL"
36566   arguments="${tmp#* }"
36567 
36568   # Input might be given as Windows format, start by converting to
36569   # unix format.
36570   new_path=`$CYGPATH -u "$path"`
36571 
36572   # Now try to locate executable using which
36573   new_path=`$WHICH "$new_path" 2> /dev/null`
36574   # bat and cmd files are not always considered executable in cygwin causing which
36575   # to not find them
36576   if test "x$new_path" = x \
36577       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36578       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36579     new_path=`$CYGPATH -u "$path"`
36580   fi
36581   if test "x$new_path" = x; then
36582     # Oops. Which didn't find the executable.
36583     # The splitting of arguments from the executable at a space might have been incorrect,
36584     # since paths with space are more likely in Windows. Give it another try with the whole
36585     # argument.
36586     path="$complete"
36587     arguments="EOL"
36588     new_path=`$CYGPATH -u "$path"`
36589     new_path=`$WHICH "$new_path" 2> /dev/null`
36590     # bat and cmd files are not always considered executable in cygwin causing which
36591     # to not find them
36592     if test "x$new_path" = x \
36593         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36594         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36595       new_path=`$CYGPATH -u "$path"`
36596     fi
36597     if test "x$new_path" = x; then
36598       # It's still not found. Now this is an unrecoverable error.
36599       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
36600 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
36601       has_space=`$ECHO "$complete" | $GREP " "`
36602       if test "x$has_space" != x; then
36603         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36604 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36605       fi
36606       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36607     fi
36608   fi
36609 
36610   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36611   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36612   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36613   # "foo.exe" is OK but "foo" is an error.
36614   #
36615   # This test is therefore slightly more accurate than "test -f" to check for file presence.
36616   # It is also a way to make sure we got the proper file name for the real test later on.
36617   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36618   if test "x$test_shortpath" = x; then
36619     # Short path failed, file does not exist as specified.
36620     # Try adding .exe or .cmd
36621     if test -f "${new_path}.exe"; then
36622       input_to_shortpath="${new_path}.exe"
36623     elif test -f "${new_path}.cmd"; then
36624       input_to_shortpath="${new_path}.cmd"
36625     else
36626       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
36627 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
36628       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36629 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36630       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36631     fi
36632   else
36633     input_to_shortpath="$new_path"
36634   fi
36635 
36636   # Call helper function which possibly converts this using DOS-style short mode.
36637   # If so, the updated path is stored in $new_path.
36638   new_path="$input_to_shortpath"
36639 
36640   input_path="$input_to_shortpath"
36641   # Check if we need to convert this using DOS-style short mode. If the path
36642   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36643   # take no chances and rewrite it.
36644   # Note: m4 eats our [], so we need to use [ and ] instead.
36645   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36646   if test "x$has_forbidden_chars" != x; then
36647     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36648     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36649     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36650     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36651       # Going to short mode and back again did indeed matter. Since short mode is
36652       # case insensitive, let's make it lowercase to improve readability.
36653       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36654       # Now convert it back to Unix-stile (cygpath)
36655       input_path=`$CYGPATH -u "$shortmode_path"`
36656       new_path="$input_path"
36657     fi
36658   fi
36659 
36660   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36661   if test "x$test_cygdrive_prefix" = x; then
36662     # As a simple fix, exclude /usr/bin since it's not a real path.
36663     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36664       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36665       # a path prefixed by /cygdrive for fixpath to work.
36666       new_path="$CYGWIN_ROOT_PATH$input_path"
36667     fi
36668   fi
36669 
36670   # remove trailing .exe if any
36671   new_path="${new_path/%.exe/}"
36672 
36673   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36674 
36675   # First separate the path from the arguments. This will split at the first
36676   # space.
36677   complete="$NM"
36678   path="${complete%% *}"
36679   tmp="$complete EOL"
36680   arguments="${tmp#* }"
36681 
36682   # Input might be given as Windows format, start by converting to
36683   # unix format.
36684   new_path="$path"
36685 
36686   windows_path="$new_path"
36687   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36688     unix_path=`$CYGPATH -u "$windows_path"`
36689     new_path="$unix_path"
36690   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36691     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36692     new_path="$unix_path"
36693   fi
36694 
36695 
36696   # Now try to locate executable using which
36697   new_path=`$WHICH "$new_path" 2> /dev/null`
36698 
36699   if test "x$new_path" = x; then
36700     # Oops. Which didn't find the executable.
36701     # The splitting of arguments from the executable at a space might have been incorrect,
36702     # since paths with space are more likely in Windows. Give it another try with the whole
36703     # argument.
36704     path="$complete"
36705     arguments="EOL"
36706     new_path="$path"
36707 
36708   windows_path="$new_path"
36709   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36710     unix_path=`$CYGPATH -u "$windows_path"`
36711     new_path="$unix_path"
36712   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36713     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36714     new_path="$unix_path"
36715   fi
36716 
36717 
36718     new_path=`$WHICH "$new_path" 2> /dev/null`
36719 
36720     if test "x$new_path" = x; then
36721       # It's still not found. Now this is an unrecoverable error.
36722       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
36723 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
36724       has_space=`$ECHO "$complete" | $GREP " "`
36725       if test "x$has_space" != x; then
36726         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36727 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36728       fi
36729       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36730     fi
36731   fi
36732 
36733   # Now new_path has a complete unix path to the binary
36734   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36735     # Keep paths in /bin as-is, but remove trailing .exe if any
36736     new_path="${new_path/%.exe/}"
36737     # Do not save /bin paths to all_fixpath_prefixes!
36738   else
36739     # Not in mixed or Windows style, start by that.
36740     new_path=`cmd //c echo $new_path`
36741 
36742   input_path="$new_path"
36743   # Check if we need to convert this using DOS-style short mode. If the path
36744   # contains just simple characters, use it. Otherwise (spaces, weird characters),
36745   # take no chances and rewrite it.
36746   # Note: m4 eats our [], so we need to use [ and ] instead.
36747   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
36748   if test "x$has_forbidden_chars" != x; then
36749     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36750     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36751   fi
36752 
36753     # Output is in $new_path
36754 
36755   windows_path="$new_path"
36756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36757     unix_path=`$CYGPATH -u "$windows_path"`
36758     new_path="$unix_path"
36759   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36760     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36761     new_path="$unix_path"
36762   fi
36763 
36764     # remove trailing .exe if any
36765     new_path="${new_path/%.exe/}"
36766 
36767     # Save the first 10 bytes of this path to the storage, so fixpath can work.
36768     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36769   fi
36770 
36771   else
36772     # We're on a posix platform. Hooray! :)
36773     # First separate the path from the arguments. This will split at the first
36774     # space.
36775     complete="$NM"
36776     path="${complete%% *}"
36777     tmp="$complete EOL"
36778     arguments="${tmp#* }"
36779 
36780     # Cannot rely on the command "which" here since it doesn't always work.
36781     is_absolute_path=`$ECHO "$path" | $GREP ^/`
36782     if test -z "$is_absolute_path"; then
36783       # Path to executable is not absolute. Find it.
36784       IFS_save="$IFS"
36785       IFS=:
36786       for p in $PATH; do
36787         if test -f "$p/$path" && test -x "$p/$path"; then
36788           new_path="$p/$path"
36789           break
36790         fi
36791       done
36792       IFS="$IFS_save"
36793     else
36794       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5
36795 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;}
36796       new_path="$path"
36797     fi
36798 
36799     if test "x$new_path" = x; then
36800       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
36801 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
36802       has_space=`$ECHO "$complete" | $GREP " "`
36803       if test "x$has_space" != x; then
36804         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36805 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36806       fi
36807       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
36808     fi
36809   fi
36810 
36811   # Now join together the path and the arguments once again
36812   if test "x$arguments" != xEOL; then
36813     new_complete="$new_path ${arguments% *}"
36814   else
36815     new_complete="$new_path"
36816   fi
36817 
36818   if test "x$complete" != "x$new_complete"; then
36819     NM="$new_complete"
36820     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
36821 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
36822   fi
36823 
36824 
36825 
36826   # Publish this variable in the help.
36827 
36828 
36829   if test "x$GNM" = x; then
36830     # The variable is not set by user, try to locate tool using the code snippet
36831     for ac_prog in gnm
36832 do
36833   # Extract the first word of "$ac_prog", so it can be a program name with args.
36834 set dummy $ac_prog; ac_word=$2
36835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36836 $as_echo_n "checking for $ac_word... " >&6; }
36837 if ${ac_cv_path_GNM+:} false; then :
36838   $as_echo_n "(cached) " >&6
36839 else
36840   case $GNM in
36841   [\\/]* | ?:[\\/]*)
36842   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
36843   ;;
36844   *)
36845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36846 for as_dir in $PATH
36847 do
36848   IFS=$as_save_IFS
36849   test -z "$as_dir" && as_dir=.
36850     for ac_exec_ext in '' $ac_executable_extensions; do
36851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36852     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
36853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36854     break 2
36855   fi
36856 done
36857   done
36858 IFS=$as_save_IFS
36859 
36860   ;;
36861 esac
36862 fi
36863 GNM=$ac_cv_path_GNM
36864 if test -n "$GNM"; then
36865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
36866 $as_echo "$GNM" >&6; }
36867 else
36868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36869 $as_echo "no" >&6; }
36870 fi
36871 
36872 
36873   test -n "$GNM" && break
36874 done
36875 
36876   else
36877     # The variable is set, but is it from the command line or the environment?
36878 
36879     # Try to remove the string !GNM! from our list.
36880     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/}
36881     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36882       # If it failed, the variable was not from the command line. Ignore it,
36883       # but warn the user (except for BASH, which is always set by the calling BASH).
36884       if test "xGNM" != xBASH; then
36885         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5
36886 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;}
36887       fi
36888       # Try to locate tool using the code snippet
36889       for ac_prog in gnm
36890 do
36891   # Extract the first word of "$ac_prog", so it can be a program name with args.
36892 set dummy $ac_prog; ac_word=$2
36893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36894 $as_echo_n "checking for $ac_word... " >&6; }
36895 if ${ac_cv_path_GNM+:} false; then :
36896   $as_echo_n "(cached) " >&6
36897 else
36898   case $GNM in
36899   [\\/]* | ?:[\\/]*)
36900   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
36901   ;;
36902   *)
36903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36904 for as_dir in $PATH
36905 do
36906   IFS=$as_save_IFS
36907   test -z "$as_dir" && as_dir=.
36908     for ac_exec_ext in '' $ac_executable_extensions; do
36909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36910     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
36911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36912     break 2
36913   fi
36914 done
36915   done
36916 IFS=$as_save_IFS
36917 
36918   ;;
36919 esac
36920 fi
36921 GNM=$ac_cv_path_GNM
36922 if test -n "$GNM"; then
36923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
36924 $as_echo "$GNM" >&6; }
36925 else
36926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36927 $as_echo "no" >&6; }
36928 fi
36929 
36930 
36931   test -n "$GNM" && break
36932 done
36933 
36934     else
36935       # If it succeeded, then it was overridden by the user. We will use it
36936       # for the tool.
36937 
36938       # First remove it from the list of overridden variables, so we can test
36939       # for unknown variables in the end.
36940       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36941 
36942       # Check if the provided tool contains a complete path.
36943       tool_specified="$GNM"
36944       tool_basename="${tool_specified##*/}"
36945       if test "x$tool_basename" = "x$tool_specified"; then
36946         # A command without a complete path is provided, search $PATH.
36947         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5
36948 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;}
36949         # Extract the first word of "$tool_basename", so it can be a program name with args.
36950 set dummy $tool_basename; ac_word=$2
36951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36952 $as_echo_n "checking for $ac_word... " >&6; }
36953 if ${ac_cv_path_GNM+:} false; then :
36954   $as_echo_n "(cached) " >&6
36955 else
36956   case $GNM in
36957   [\\/]* | ?:[\\/]*)
36958   ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
36959   ;;
36960   *)
36961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36962 for as_dir in $PATH
36963 do
36964   IFS=$as_save_IFS
36965   test -z "$as_dir" && as_dir=.
36966     for ac_exec_ext in '' $ac_executable_extensions; do
36967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36968     ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
36969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36970     break 2
36971   fi
36972 done
36973   done
36974 IFS=$as_save_IFS
36975 
36976   ;;
36977 esac
36978 fi
36979 GNM=$ac_cv_path_GNM
36980 if test -n "$GNM"; then
36981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
36982 $as_echo "$GNM" >&6; }
36983 else
36984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36985 $as_echo "no" >&6; }
36986 fi
36987 
36988 
36989         if test "x$GNM" = x; then
36990           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36991         fi
36992       else
36993         # Otherwise we believe it is a complete path. Use it as it is.
36994         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5
36995 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;}
36996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5
36997 $as_echo_n "checking for GNM... " >&6; }
36998         if test ! -x "$tool_specified"; then
36999           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37000 $as_echo "not found" >&6; }
37001           as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5
37002         fi
37003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37004 $as_echo "$tool_specified" >&6; }
37005       fi
37006     fi
37007   fi
37008 
37009 
37010 
37011   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37012 
37013   # First separate the path from the arguments. This will split at the first
37014   # space.
37015   complete="$GNM"
37016   path="${complete%% *}"
37017   tmp="$complete EOL"
37018   arguments="${tmp#* }"
37019 
37020   # Input might be given as Windows format, start by converting to
37021   # unix format.
37022   new_path=`$CYGPATH -u "$path"`
37023 
37024   # Now try to locate executable using which
37025   new_path=`$WHICH "$new_path" 2> /dev/null`
37026   # bat and cmd files are not always considered executable in cygwin causing which
37027   # to not find them
37028   if test "x$new_path" = x \
37029       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37030       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37031     new_path=`$CYGPATH -u "$path"`
37032   fi
37033   if test "x$new_path" = x; then
37034     # Oops. Which didn't find the executable.
37035     # The splitting of arguments from the executable at a space might have been incorrect,
37036     # since paths with space are more likely in Windows. Give it another try with the whole
37037     # argument.
37038     path="$complete"
37039     arguments="EOL"
37040     new_path=`$CYGPATH -u "$path"`
37041     new_path=`$WHICH "$new_path" 2> /dev/null`
37042     # bat and cmd files are not always considered executable in cygwin causing which
37043     # to not find them
37044     if test "x$new_path" = x \
37045         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37046         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37047       new_path=`$CYGPATH -u "$path"`
37048     fi
37049     if test "x$new_path" = x; then
37050       # It's still not found. Now this is an unrecoverable error.
37051       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
37052 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
37053       has_space=`$ECHO "$complete" | $GREP " "`
37054       if test "x$has_space" != x; then
37055         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37057       fi
37058       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37059     fi
37060   fi
37061 
37062   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37063   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37064   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37065   # "foo.exe" is OK but "foo" is an error.
37066   #
37067   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37068   # It is also a way to make sure we got the proper file name for the real test later on.
37069   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37070   if test "x$test_shortpath" = x; then
37071     # Short path failed, file does not exist as specified.
37072     # Try adding .exe or .cmd
37073     if test -f "${new_path}.exe"; then
37074       input_to_shortpath="${new_path}.exe"
37075     elif test -f "${new_path}.cmd"; then
37076       input_to_shortpath="${new_path}.cmd"
37077     else
37078       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5
37079 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;}
37080       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37081 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37082       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37083     fi
37084   else
37085     input_to_shortpath="$new_path"
37086   fi
37087 
37088   # Call helper function which possibly converts this using DOS-style short mode.
37089   # If so, the updated path is stored in $new_path.
37090   new_path="$input_to_shortpath"
37091 
37092   input_path="$input_to_shortpath"
37093   # Check if we need to convert this using DOS-style short mode. If the path
37094   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37095   # take no chances and rewrite it.
37096   # Note: m4 eats our [], so we need to use [ and ] instead.
37097   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37098   if test "x$has_forbidden_chars" != x; then
37099     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37100     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
37101     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
37102     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
37103       # Going to short mode and back again did indeed matter. Since short mode is
37104       # case insensitive, let's make it lowercase to improve readability.
37105       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37106       # Now convert it back to Unix-stile (cygpath)
37107       input_path=`$CYGPATH -u "$shortmode_path"`
37108       new_path="$input_path"
37109     fi
37110   fi
37111 
37112   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
37113   if test "x$test_cygdrive_prefix" = x; then
37114     # As a simple fix, exclude /usr/bin since it's not a real path.
37115     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
37116       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
37117       # a path prefixed by /cygdrive for fixpath to work.
37118       new_path="$CYGWIN_ROOT_PATH$input_path"
37119     fi
37120   fi
37121 
37122   # remove trailing .exe if any
37123   new_path="${new_path/%.exe/}"
37124 
37125   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37126 
37127   # First separate the path from the arguments. This will split at the first
37128   # space.
37129   complete="$GNM"
37130   path="${complete%% *}"
37131   tmp="$complete EOL"
37132   arguments="${tmp#* }"
37133 
37134   # Input might be given as Windows format, start by converting to
37135   # unix format.
37136   new_path="$path"
37137 
37138   windows_path="$new_path"
37139   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37140     unix_path=`$CYGPATH -u "$windows_path"`
37141     new_path="$unix_path"
37142   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37143     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37144     new_path="$unix_path"
37145   fi
37146 
37147 
37148   # Now try to locate executable using which
37149   new_path=`$WHICH "$new_path" 2> /dev/null`
37150 
37151   if test "x$new_path" = x; then
37152     # Oops. Which didn't find the executable.
37153     # The splitting of arguments from the executable at a space might have been incorrect,
37154     # since paths with space are more likely in Windows. Give it another try with the whole
37155     # argument.
37156     path="$complete"
37157     arguments="EOL"
37158     new_path="$path"
37159 
37160   windows_path="$new_path"
37161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37162     unix_path=`$CYGPATH -u "$windows_path"`
37163     new_path="$unix_path"
37164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37165     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37166     new_path="$unix_path"
37167   fi
37168 
37169 
37170     new_path=`$WHICH "$new_path" 2> /dev/null`
37171 
37172     if test "x$new_path" = x; then
37173       # It's still not found. Now this is an unrecoverable error.
37174       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
37175 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
37176       has_space=`$ECHO "$complete" | $GREP " "`
37177       if test "x$has_space" != x; then
37178         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37179 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37180       fi
37181       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37182     fi
37183   fi
37184 
37185   # Now new_path has a complete unix path to the binary
37186   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
37187     # Keep paths in /bin as-is, but remove trailing .exe if any
37188     new_path="${new_path/%.exe/}"
37189     # Do not save /bin paths to all_fixpath_prefixes!
37190   else
37191     # Not in mixed or Windows style, start by that.
37192     new_path=`cmd //c echo $new_path`
37193 
37194   input_path="$new_path"
37195   # Check if we need to convert this using DOS-style short mode. If the path
37196   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37197   # take no chances and rewrite it.
37198   # Note: m4 eats our [], so we need to use [ and ] instead.
37199   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37200   if test "x$has_forbidden_chars" != x; then
37201     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37202     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37203   fi
37204 
37205     # Output is in $new_path
37206 
37207   windows_path="$new_path"
37208   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37209     unix_path=`$CYGPATH -u "$windows_path"`
37210     new_path="$unix_path"
37211   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37212     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37213     new_path="$unix_path"
37214   fi
37215 
37216     # remove trailing .exe if any
37217     new_path="${new_path/%.exe/}"
37218 
37219     # Save the first 10 bytes of this path to the storage, so fixpath can work.
37220     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37221   fi
37222 
37223   else
37224     # We're on a posix platform. Hooray! :)
37225     # First separate the path from the arguments. This will split at the first
37226     # space.
37227     complete="$GNM"
37228     path="${complete%% *}"
37229     tmp="$complete EOL"
37230     arguments="${tmp#* }"
37231 
37232     # Cannot rely on the command "which" here since it doesn't always work.
37233     is_absolute_path=`$ECHO "$path" | $GREP ^/`
37234     if test -z "$is_absolute_path"; then
37235       # Path to executable is not absolute. Find it.
37236       IFS_save="$IFS"
37237       IFS=:
37238       for p in $PATH; do
37239         if test -f "$p/$path" && test -x "$p/$path"; then
37240           new_path="$p/$path"
37241           break
37242         fi
37243       done
37244       IFS="$IFS_save"
37245     else
37246       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving GNM (as $path) failed, using $path directly." >&5
37247 $as_echo "$as_me: Resolving GNM (as $path) failed, using $path directly." >&6;}
37248       new_path="$path"
37249     fi
37250 
37251     if test "x$new_path" = x; then
37252       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
37253 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
37254       has_space=`$ECHO "$complete" | $GREP " "`
37255       if test "x$has_space" != x; then
37256         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37257 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37258       fi
37259       as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
37260     fi
37261   fi
37262 
37263   # Now join together the path and the arguments once again
37264   if test "x$arguments" != xEOL; then
37265     new_complete="$new_path ${arguments% *}"
37266   else
37267     new_complete="$new_path"
37268   fi
37269 
37270   if test "x$complete" != "x$new_complete"; then
37271     GNM="$new_complete"
37272     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
37273 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
37274   fi
37275 
37276 
37277 
37278   # Publish this variable in the help.
37279 
37280 
37281   if test "x$STRIP" = x; then
37282     # The variable is not set by user, try to locate tool using the code snippet
37283     for ac_prog in strip
37284 do
37285   # Extract the first word of "$ac_prog", so it can be a program name with args.
37286 set dummy $ac_prog; ac_word=$2
37287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37288 $as_echo_n "checking for $ac_word... " >&6; }
37289 if ${ac_cv_path_STRIP+:} false; then :
37290   $as_echo_n "(cached) " >&6
37291 else
37292   case $STRIP in
37293   [\\/]* | ?:[\\/]*)
37294   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
37295   ;;
37296   *)
37297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37298 for as_dir in $PATH
37299 do
37300   IFS=$as_save_IFS
37301   test -z "$as_dir" && as_dir=.
37302     for ac_exec_ext in '' $ac_executable_extensions; do
37303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37304     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
37305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37306     break 2
37307   fi
37308 done
37309   done
37310 IFS=$as_save_IFS
37311 
37312   ;;
37313 esac
37314 fi
37315 STRIP=$ac_cv_path_STRIP
37316 if test -n "$STRIP"; then
37317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37318 $as_echo "$STRIP" >&6; }
37319 else
37320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37321 $as_echo "no" >&6; }
37322 fi
37323 
37324 
37325   test -n "$STRIP" && break
37326 done
37327 
37328   else
37329     # The variable is set, but is it from the command line or the environment?
37330 
37331     # Try to remove the string !STRIP! from our list.
37332     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
37333     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
37334       # If it failed, the variable was not from the command line. Ignore it,
37335       # but warn the user (except for BASH, which is always set by the calling BASH).
37336       if test "xSTRIP" != xBASH; then
37337         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
37338 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
37339       fi
37340       # Try to locate tool using the code snippet
37341       for ac_prog in strip
37342 do
37343   # Extract the first word of "$ac_prog", so it can be a program name with args.
37344 set dummy $ac_prog; ac_word=$2
37345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37346 $as_echo_n "checking for $ac_word... " >&6; }
37347 if ${ac_cv_path_STRIP+:} false; then :
37348   $as_echo_n "(cached) " >&6
37349 else
37350   case $STRIP in
37351   [\\/]* | ?:[\\/]*)
37352   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
37353   ;;
37354   *)
37355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37356 for as_dir in $PATH
37357 do
37358   IFS=$as_save_IFS
37359   test -z "$as_dir" && as_dir=.
37360     for ac_exec_ext in '' $ac_executable_extensions; do
37361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37362     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
37363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37364     break 2
37365   fi
37366 done
37367   done
37368 IFS=$as_save_IFS
37369 
37370   ;;
37371 esac
37372 fi
37373 STRIP=$ac_cv_path_STRIP
37374 if test -n "$STRIP"; then
37375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37376 $as_echo "$STRIP" >&6; }
37377 else
37378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37379 $as_echo "no" >&6; }
37380 fi
37381 
37382 
37383   test -n "$STRIP" && break
37384 done
37385 
37386     else
37387       # If it succeeded, then it was overridden by the user. We will use it
37388       # for the tool.
37389 
37390       # First remove it from the list of overridden variables, so we can test
37391       # for unknown variables in the end.
37392       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37393 
37394       # Check if the provided tool contains a complete path.
37395       tool_specified="$STRIP"
37396       tool_basename="${tool_specified##*/}"
37397       if test "x$tool_basename" = "x$tool_specified"; then
37398         # A command without a complete path is provided, search $PATH.
37399         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
37400 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
37401         # Extract the first word of "$tool_basename", so it can be a program name with args.
37402 set dummy $tool_basename; ac_word=$2
37403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37404 $as_echo_n "checking for $ac_word... " >&6; }
37405 if ${ac_cv_path_STRIP+:} false; then :
37406   $as_echo_n "(cached) " >&6
37407 else
37408   case $STRIP in
37409   [\\/]* | ?:[\\/]*)
37410   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
37411   ;;
37412   *)
37413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37414 for as_dir in $PATH
37415 do
37416   IFS=$as_save_IFS
37417   test -z "$as_dir" && as_dir=.
37418     for ac_exec_ext in '' $ac_executable_extensions; do
37419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37420     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
37421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37422     break 2
37423   fi
37424 done
37425   done
37426 IFS=$as_save_IFS
37427 
37428   ;;
37429 esac
37430 fi
37431 STRIP=$ac_cv_path_STRIP
37432 if test -n "$STRIP"; then
37433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37434 $as_echo "$STRIP" >&6; }
37435 else
37436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37437 $as_echo "no" >&6; }
37438 fi
37439 
37440 
37441         if test "x$STRIP" = x; then
37442           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37443         fi
37444       else
37445         # Otherwise we believe it is a complete path. Use it as it is.
37446         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
37447 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
37448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
37449 $as_echo_n "checking for STRIP... " >&6; }
37450         if test ! -x "$tool_specified"; then
37451           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37452 $as_echo "not found" >&6; }
37453           as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
37454         fi
37455         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37456 $as_echo "$tool_specified" >&6; }
37457       fi
37458     fi
37459   fi
37460 
37461 
37462 
37463   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37464 
37465   # First separate the path from the arguments. This will split at the first
37466   # space.
37467   complete="$STRIP"
37468   path="${complete%% *}"
37469   tmp="$complete EOL"
37470   arguments="${tmp#* }"
37471 
37472   # Input might be given as Windows format, start by converting to
37473   # unix format.
37474   new_path=`$CYGPATH -u "$path"`
37475 
37476   # Now try to locate executable using which
37477   new_path=`$WHICH "$new_path" 2> /dev/null`
37478   # bat and cmd files are not always considered executable in cygwin causing which
37479   # to not find them
37480   if test "x$new_path" = x \
37481       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37482       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37483     new_path=`$CYGPATH -u "$path"`
37484   fi
37485   if test "x$new_path" = x; then
37486     # Oops. Which didn't find the executable.
37487     # The splitting of arguments from the executable at a space might have been incorrect,
37488     # since paths with space are more likely in Windows. Give it another try with the whole
37489     # argument.
37490     path="$complete"
37491     arguments="EOL"
37492     new_path=`$CYGPATH -u "$path"`
37493     new_path=`$WHICH "$new_path" 2> /dev/null`
37494     # bat and cmd files are not always considered executable in cygwin causing which
37495     # to not find them
37496     if test "x$new_path" = x \
37497         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37498         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37499       new_path=`$CYGPATH -u "$path"`
37500     fi
37501     if test "x$new_path" = x; then
37502       # It's still not found. Now this is an unrecoverable error.
37503       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37504 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37505       has_space=`$ECHO "$complete" | $GREP " "`
37506       if test "x$has_space" != x; then
37507         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37508 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37509       fi
37510       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37511     fi
37512   fi
37513 
37514   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37515   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37516   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37517   # "foo.exe" is OK but "foo" is an error.
37518   #
37519   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37520   # It is also a way to make sure we got the proper file name for the real test later on.
37521   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37522   if test "x$test_shortpath" = x; then
37523     # Short path failed, file does not exist as specified.
37524     # Try adding .exe or .cmd
37525     if test -f "${new_path}.exe"; then
37526       input_to_shortpath="${new_path}.exe"
37527     elif test -f "${new_path}.cmd"; then
37528       input_to_shortpath="${new_path}.cmd"
37529     else
37530       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
37531 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
37532       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37533 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37534       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37535     fi
37536   else
37537     input_to_shortpath="$new_path"
37538   fi
37539 
37540   # Call helper function which possibly converts this using DOS-style short mode.
37541   # If so, the updated path is stored in $new_path.
37542   new_path="$input_to_shortpath"
37543 
37544   input_path="$input_to_shortpath"
37545   # Check if we need to convert this using DOS-style short mode. If the path
37546   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37547   # take no chances and rewrite it.
37548   # Note: m4 eats our [], so we need to use [ and ] instead.
37549   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37550   if test "x$has_forbidden_chars" != x; then
37551     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37552     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
37553     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
37554     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
37555       # Going to short mode and back again did indeed matter. Since short mode is
37556       # case insensitive, let's make it lowercase to improve readability.
37557       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37558       # Now convert it back to Unix-stile (cygpath)
37559       input_path=`$CYGPATH -u "$shortmode_path"`
37560       new_path="$input_path"
37561     fi
37562   fi
37563 
37564   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
37565   if test "x$test_cygdrive_prefix" = x; then
37566     # As a simple fix, exclude /usr/bin since it's not a real path.
37567     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
37568       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
37569       # a path prefixed by /cygdrive for fixpath to work.
37570       new_path="$CYGWIN_ROOT_PATH$input_path"
37571     fi
37572   fi
37573 
37574   # remove trailing .exe if any
37575   new_path="${new_path/%.exe/}"
37576 
37577   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37578 
37579   # First separate the path from the arguments. This will split at the first
37580   # space.
37581   complete="$STRIP"
37582   path="${complete%% *}"
37583   tmp="$complete EOL"
37584   arguments="${tmp#* }"
37585 
37586   # Input might be given as Windows format, start by converting to
37587   # unix format.
37588   new_path="$path"
37589 
37590   windows_path="$new_path"
37591   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37592     unix_path=`$CYGPATH -u "$windows_path"`
37593     new_path="$unix_path"
37594   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37595     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37596     new_path="$unix_path"
37597   fi
37598 
37599 
37600   # Now try to locate executable using which
37601   new_path=`$WHICH "$new_path" 2> /dev/null`
37602 
37603   if test "x$new_path" = x; then
37604     # Oops. Which didn't find the executable.
37605     # The splitting of arguments from the executable at a space might have been incorrect,
37606     # since paths with space are more likely in Windows. Give it another try with the whole
37607     # argument.
37608     path="$complete"
37609     arguments="EOL"
37610     new_path="$path"
37611 
37612   windows_path="$new_path"
37613   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37614     unix_path=`$CYGPATH -u "$windows_path"`
37615     new_path="$unix_path"
37616   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37617     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37618     new_path="$unix_path"
37619   fi
37620 
37621 
37622     new_path=`$WHICH "$new_path" 2> /dev/null`
37623 
37624     if test "x$new_path" = x; then
37625       # It's still not found. Now this is an unrecoverable error.
37626       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37627 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37628       has_space=`$ECHO "$complete" | $GREP " "`
37629       if test "x$has_space" != x; then
37630         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37631 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37632       fi
37633       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37634     fi
37635   fi
37636 
37637   # Now new_path has a complete unix path to the binary
37638   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
37639     # Keep paths in /bin as-is, but remove trailing .exe if any
37640     new_path="${new_path/%.exe/}"
37641     # Do not save /bin paths to all_fixpath_prefixes!
37642   else
37643     # Not in mixed or Windows style, start by that.
37644     new_path=`cmd //c echo $new_path`
37645 
37646   input_path="$new_path"
37647   # Check if we need to convert this using DOS-style short mode. If the path
37648   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37649   # take no chances and rewrite it.
37650   # Note: m4 eats our [], so we need to use [ and ] instead.
37651   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37652   if test "x$has_forbidden_chars" != x; then
37653     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37654     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37655   fi
37656 
37657     # Output is in $new_path
37658 
37659   windows_path="$new_path"
37660   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37661     unix_path=`$CYGPATH -u "$windows_path"`
37662     new_path="$unix_path"
37663   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37664     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37665     new_path="$unix_path"
37666   fi
37667 
37668     # remove trailing .exe if any
37669     new_path="${new_path/%.exe/}"
37670 
37671     # Save the first 10 bytes of this path to the storage, so fixpath can work.
37672     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37673   fi
37674 
37675   else
37676     # We're on a posix platform. Hooray! :)
37677     # First separate the path from the arguments. This will split at the first
37678     # space.
37679     complete="$STRIP"
37680     path="${complete%% *}"
37681     tmp="$complete EOL"
37682     arguments="${tmp#* }"
37683 
37684     # Cannot rely on the command "which" here since it doesn't always work.
37685     is_absolute_path=`$ECHO "$path" | $GREP ^/`
37686     if test -z "$is_absolute_path"; then
37687       # Path to executable is not absolute. Find it.
37688       IFS_save="$IFS"
37689       IFS=:
37690       for p in $PATH; do
37691         if test -f "$p/$path" && test -x "$p/$path"; then
37692           new_path="$p/$path"
37693           break
37694         fi
37695       done
37696       IFS="$IFS_save"
37697     else
37698       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5
37699 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;}
37700       new_path="$path"
37701     fi
37702 
37703     if test "x$new_path" = x; then
37704       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37705 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37706       has_space=`$ECHO "$complete" | $GREP " "`
37707       if test "x$has_space" != x; then
37708         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37709 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37710       fi
37711       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37712     fi
37713   fi
37714 
37715   # Now join together the path and the arguments once again
37716   if test "x$arguments" != xEOL; then
37717     new_complete="$new_path ${arguments% *}"
37718   else
37719     new_complete="$new_path"
37720   fi
37721 
37722   if test "x$complete" != "x$new_complete"; then
37723     STRIP="$new_complete"
37724     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
37725 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
37726   fi
37727 
37728 
37729 
37730   # Publish this variable in the help.
37731 
37732 
37733   if test "x$MCS" = x; then
37734     # The variable is not set by user, try to locate tool using the code snippet
37735     for ac_prog in mcs
37736 do
37737   # Extract the first word of "$ac_prog", so it can be a program name with args.
37738 set dummy $ac_prog; ac_word=$2
37739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37740 $as_echo_n "checking for $ac_word... " >&6; }
37741 if ${ac_cv_path_MCS+:} false; then :
37742   $as_echo_n "(cached) " >&6
37743 else
37744   case $MCS in
37745   [\\/]* | ?:[\\/]*)
37746   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
37747   ;;
37748   *)
37749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37750 for as_dir in $PATH
37751 do
37752   IFS=$as_save_IFS
37753   test -z "$as_dir" && as_dir=.
37754     for ac_exec_ext in '' $ac_executable_extensions; do
37755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37756     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
37757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37758     break 2
37759   fi
37760 done
37761   done
37762 IFS=$as_save_IFS
37763 
37764   ;;
37765 esac
37766 fi
37767 MCS=$ac_cv_path_MCS
37768 if test -n "$MCS"; then
37769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
37770 $as_echo "$MCS" >&6; }
37771 else
37772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37773 $as_echo "no" >&6; }
37774 fi
37775 
37776 
37777   test -n "$MCS" && break
37778 done
37779 
37780   else
37781     # The variable is set, but is it from the command line or the environment?
37782 
37783     # Try to remove the string !MCS! from our list.
37784     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/}
37785     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
37786       # If it failed, the variable was not from the command line. Ignore it,
37787       # but warn the user (except for BASH, which is always set by the calling BASH).
37788       if test "xMCS" != xBASH; then
37789         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5
37790 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;}
37791       fi
37792       # Try to locate tool using the code snippet
37793       for ac_prog in mcs
37794 do
37795   # Extract the first word of "$ac_prog", so it can be a program name with args.
37796 set dummy $ac_prog; ac_word=$2
37797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37798 $as_echo_n "checking for $ac_word... " >&6; }
37799 if ${ac_cv_path_MCS+:} false; then :
37800   $as_echo_n "(cached) " >&6
37801 else
37802   case $MCS in
37803   [\\/]* | ?:[\\/]*)
37804   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
37805   ;;
37806   *)
37807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37808 for as_dir in $PATH
37809 do
37810   IFS=$as_save_IFS
37811   test -z "$as_dir" && as_dir=.
37812     for ac_exec_ext in '' $ac_executable_extensions; do
37813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37814     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
37815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37816     break 2
37817   fi
37818 done
37819   done
37820 IFS=$as_save_IFS
37821 
37822   ;;
37823 esac
37824 fi
37825 MCS=$ac_cv_path_MCS
37826 if test -n "$MCS"; then
37827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
37828 $as_echo "$MCS" >&6; }
37829 else
37830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37831 $as_echo "no" >&6; }
37832 fi
37833 
37834 
37835   test -n "$MCS" && break
37836 done
37837 
37838     else
37839       # If it succeeded, then it was overridden by the user. We will use it
37840       # for the tool.
37841 
37842       # First remove it from the list of overridden variables, so we can test
37843       # for unknown variables in the end.
37844       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37845 
37846       # Check if the provided tool contains a complete path.
37847       tool_specified="$MCS"
37848       tool_basename="${tool_specified##*/}"
37849       if test "x$tool_basename" = "x$tool_specified"; then
37850         # A command without a complete path is provided, search $PATH.
37851         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5
37852 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;}
37853         # Extract the first word of "$tool_basename", so it can be a program name with args.
37854 set dummy $tool_basename; ac_word=$2
37855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37856 $as_echo_n "checking for $ac_word... " >&6; }
37857 if ${ac_cv_path_MCS+:} false; then :
37858   $as_echo_n "(cached) " >&6
37859 else
37860   case $MCS in
37861   [\\/]* | ?:[\\/]*)
37862   ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
37863   ;;
37864   *)
37865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37866 for as_dir in $PATH
37867 do
37868   IFS=$as_save_IFS
37869   test -z "$as_dir" && as_dir=.
37870     for ac_exec_ext in '' $ac_executable_extensions; do
37871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37872     ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
37873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37874     break 2
37875   fi
37876 done
37877   done
37878 IFS=$as_save_IFS
37879 
37880   ;;
37881 esac
37882 fi
37883 MCS=$ac_cv_path_MCS
37884 if test -n "$MCS"; then
37885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
37886 $as_echo "$MCS" >&6; }
37887 else
37888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37889 $as_echo "no" >&6; }
37890 fi
37891 
37892 
37893         if test "x$MCS" = x; then
37894           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37895         fi
37896       else
37897         # Otherwise we believe it is a complete path. Use it as it is.
37898         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5
37899 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;}
37900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5
37901 $as_echo_n "checking for MCS... " >&6; }
37902         if test ! -x "$tool_specified"; then
37903           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37904 $as_echo "not found" >&6; }
37905           as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5
37906         fi
37907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37908 $as_echo "$tool_specified" >&6; }
37909       fi
37910     fi
37911   fi
37912 
37913 
37914 
37915   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37916 
37917   # First separate the path from the arguments. This will split at the first
37918   # space.
37919   complete="$MCS"
37920   path="${complete%% *}"
37921   tmp="$complete EOL"
37922   arguments="${tmp#* }"
37923 
37924   # Input might be given as Windows format, start by converting to
37925   # unix format.
37926   new_path=`$CYGPATH -u "$path"`
37927 
37928   # Now try to locate executable using which
37929   new_path=`$WHICH "$new_path" 2> /dev/null`
37930   # bat and cmd files are not always considered executable in cygwin causing which
37931   # to not find them
37932   if test "x$new_path" = x \
37933       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37934       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37935     new_path=`$CYGPATH -u "$path"`
37936   fi
37937   if test "x$new_path" = x; then
37938     # Oops. Which didn't find the executable.
37939     # The splitting of arguments from the executable at a space might have been incorrect,
37940     # since paths with space are more likely in Windows. Give it another try with the whole
37941     # argument.
37942     path="$complete"
37943     arguments="EOL"
37944     new_path=`$CYGPATH -u "$path"`
37945     new_path=`$WHICH "$new_path" 2> /dev/null`
37946     # bat and cmd files are not always considered executable in cygwin causing which
37947     # to not find them
37948     if test "x$new_path" = x \
37949         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37950         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37951       new_path=`$CYGPATH -u "$path"`
37952     fi
37953     if test "x$new_path" = x; then
37954       # It's still not found. Now this is an unrecoverable error.
37955       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
37956 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
37957       has_space=`$ECHO "$complete" | $GREP " "`
37958       if test "x$has_space" != x; then
37959         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37960 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37961       fi
37962       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
37963     fi
37964   fi
37965 
37966   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37967   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37968   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37969   # "foo.exe" is OK but "foo" is an error.
37970   #
37971   # This test is therefore slightly more accurate than "test -f" to check for file presence.
37972   # It is also a way to make sure we got the proper file name for the real test later on.
37973   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37974   if test "x$test_shortpath" = x; then
37975     # Short path failed, file does not exist as specified.
37976     # Try adding .exe or .cmd
37977     if test -f "${new_path}.exe"; then
37978       input_to_shortpath="${new_path}.exe"
37979     elif test -f "${new_path}.cmd"; then
37980       input_to_shortpath="${new_path}.cmd"
37981     else
37982       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5
37983 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;}
37984       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37985 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37986       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
37987     fi
37988   else
37989     input_to_shortpath="$new_path"
37990   fi
37991 
37992   # Call helper function which possibly converts this using DOS-style short mode.
37993   # If so, the updated path is stored in $new_path.
37994   new_path="$input_to_shortpath"
37995 
37996   input_path="$input_to_shortpath"
37997   # Check if we need to convert this using DOS-style short mode. If the path
37998   # contains just simple characters, use it. Otherwise (spaces, weird characters),
37999   # take no chances and rewrite it.
38000   # Note: m4 eats our [], so we need to use [ and ] instead.
38001   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
38002   if test "x$has_forbidden_chars" != x; then
38003     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38004     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38005     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38006     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38007       # Going to short mode and back again did indeed matter. Since short mode is
38008       # case insensitive, let's make it lowercase to improve readability.
38009       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38010       # Now convert it back to Unix-stile (cygpath)
38011       input_path=`$CYGPATH -u "$shortmode_path"`
38012       new_path="$input_path"
38013     fi
38014   fi
38015 
38016   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38017   if test "x$test_cygdrive_prefix" = x; then
38018     # As a simple fix, exclude /usr/bin since it's not a real path.
38019     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38020       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38021       # a path prefixed by /cygdrive for fixpath to work.
38022       new_path="$CYGWIN_ROOT_PATH$input_path"
38023     fi
38024   fi
38025 
38026   # remove trailing .exe if any
38027   new_path="${new_path/%.exe/}"
38028 
38029   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38030 
38031   # First separate the path from the arguments. This will split at the first
38032   # space.
38033   complete="$MCS"
38034   path="${complete%% *}"
38035   tmp="$complete EOL"
38036   arguments="${tmp#* }"
38037 
38038   # Input might be given as Windows format, start by converting to
38039   # unix format.
38040   new_path="$path"
38041 
38042   windows_path="$new_path"
38043   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38044     unix_path=`$CYGPATH -u "$windows_path"`
38045     new_path="$unix_path"
38046   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38047     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38048     new_path="$unix_path"
38049   fi
38050 
38051 
38052   # Now try to locate executable using which
38053   new_path=`$WHICH "$new_path" 2> /dev/null`
38054 
38055   if test "x$new_path" = x; then
38056     # Oops. Which didn't find the executable.
38057     # The splitting of arguments from the executable at a space might have been incorrect,
38058     # since paths with space are more likely in Windows. Give it another try with the whole
38059     # argument.
38060     path="$complete"
38061     arguments="EOL"
38062     new_path="$path"
38063 
38064   windows_path="$new_path"
38065   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38066     unix_path=`$CYGPATH -u "$windows_path"`
38067     new_path="$unix_path"
38068   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38069     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38070     new_path="$unix_path"
38071   fi
38072 
38073 
38074     new_path=`$WHICH "$new_path" 2> /dev/null`
38075 
38076     if test "x$new_path" = x; then
38077       # It's still not found. Now this is an unrecoverable error.
38078       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
38079 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
38080       has_space=`$ECHO "$complete" | $GREP " "`
38081       if test "x$has_space" != x; then
38082         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38083 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38084       fi
38085       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
38086     fi
38087   fi
38088 
38089   # Now new_path has a complete unix path to the binary
38090   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38091     # Keep paths in /bin as-is, but remove trailing .exe if any
38092     new_path="${new_path/%.exe/}"
38093     # Do not save /bin paths to all_fixpath_prefixes!
38094   else
38095     # Not in mixed or Windows style, start by that.
38096     new_path=`cmd //c echo $new_path`
38097 
38098   input_path="$new_path"
38099   # Check if we need to convert this using DOS-style short mode. If the path
38100   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38101   # take no chances and rewrite it.
38102   # Note: m4 eats our [], so we need to use [ and ] instead.
38103   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38104   if test "x$has_forbidden_chars" != x; then
38105     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38106     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38107   fi
38108 
38109     # Output is in $new_path
38110 
38111   windows_path="$new_path"
38112   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38113     unix_path=`$CYGPATH -u "$windows_path"`
38114     new_path="$unix_path"
38115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38116     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38117     new_path="$unix_path"
38118   fi
38119 
38120     # remove trailing .exe if any
38121     new_path="${new_path/%.exe/}"
38122 
38123     # Save the first 10 bytes of this path to the storage, so fixpath can work.
38124     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
38125   fi
38126 
38127   else
38128     # We're on a posix platform. Hooray! :)
38129     # First separate the path from the arguments. This will split at the first
38130     # space.
38131     complete="$MCS"
38132     path="${complete%% *}"
38133     tmp="$complete EOL"
38134     arguments="${tmp#* }"
38135 
38136     # Cannot rely on the command "which" here since it doesn't always work.
38137     is_absolute_path=`$ECHO "$path" | $GREP ^/`
38138     if test -z "$is_absolute_path"; then
38139       # Path to executable is not absolute. Find it.
38140       IFS_save="$IFS"
38141       IFS=:
38142       for p in $PATH; do
38143         if test -f "$p/$path" && test -x "$p/$path"; then
38144           new_path="$p/$path"
38145           break
38146         fi
38147       done
38148       IFS="$IFS_save"
38149     else
38150       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MCS (as $path) failed, using $path directly." >&5
38151 $as_echo "$as_me: Resolving MCS (as $path) failed, using $path directly." >&6;}
38152       new_path="$path"
38153     fi
38154 
38155     if test "x$new_path" = x; then
38156       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
38157 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
38158       has_space=`$ECHO "$complete" | $GREP " "`
38159       if test "x$has_space" != x; then
38160         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
38161 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
38162       fi
38163       as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
38164     fi
38165   fi
38166 
38167   # Now join together the path and the arguments once again
38168   if test "x$arguments" != xEOL; then
38169     new_complete="$new_path ${arguments% *}"
38170   else
38171     new_complete="$new_path"
38172   fi
38173 
38174   if test "x$complete" != "x$new_complete"; then
38175     MCS="$new_complete"
38176     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
38177 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
38178   fi
38179 
38180   elif test "x$OPENJDK_TARGET_OS" != xwindows; then
38181 
38182 
38183   # Publish this variable in the help.
38184 
38185 
38186   if test "x$NM" = x; then
38187     # The variable is not set by user, try to locate tool using the code snippet
38188     if test -n "$ac_tool_prefix"; then
38189   for ac_prog in nm
38190   do
38191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38194 $as_echo_n "checking for $ac_word... " >&6; }
38195 if ${ac_cv_prog_NM+:} false; then :
38196   $as_echo_n "(cached) " >&6
38197 else
38198   if test -n "$NM"; then
38199   ac_cv_prog_NM="$NM" # Let the user override the test.
38200 else
38201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38202 for as_dir in $PATH
38203 do
38204   IFS=$as_save_IFS
38205   test -z "$as_dir" && as_dir=.
38206     for ac_exec_ext in '' $ac_executable_extensions; do
38207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38208     ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
38209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38210     break 2
38211   fi
38212 done
38213   done
38214 IFS=$as_save_IFS
38215 
38216 fi
38217 fi
38218 NM=$ac_cv_prog_NM
38219 if test -n "$NM"; then
38220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
38221 $as_echo "$NM" >&6; }
38222 else
38223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38224 $as_echo "no" >&6; }
38225 fi
38226 
38227 
38228     test -n "$NM" && break
38229   done
38230 fi
38231 if test -z "$NM"; then
38232   ac_ct_NM=$NM
38233   for ac_prog in nm
38234 do
38235   # Extract the first word of "$ac_prog", so it can be a program name with args.
38236 set dummy $ac_prog; ac_word=$2
38237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38238 $as_echo_n "checking for $ac_word... " >&6; }
38239 if ${ac_cv_prog_ac_ct_NM+:} false; then :
38240   $as_echo_n "(cached) " >&6
38241 else
38242   if test -n "$ac_ct_NM"; then
38243   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38244 else
38245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38246 for as_dir in $PATH
38247 do
38248   IFS=$as_save_IFS
38249   test -z "$as_dir" && as_dir=.
38250     for ac_exec_ext in '' $ac_executable_extensions; do
38251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38252     ac_cv_prog_ac_ct_NM="$ac_prog"
38253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38254     break 2
38255   fi
38256 done
38257   done
38258 IFS=$as_save_IFS
38259 
38260 fi
38261 fi
38262 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38263 if test -n "$ac_ct_NM"; then
38264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
38265 $as_echo "$ac_ct_NM" >&6; }
38266 else
38267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38268 $as_echo "no" >&6; }
38269 fi
38270 
38271 
38272   test -n "$ac_ct_NM" && break
38273 done
38274 
38275   if test "x$ac_ct_NM" = x; then
38276     NM=""
38277   else
38278     case $cross_compiling:$ac_tool_warned in
38279 yes:)
38280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38282 ac_tool_warned=yes ;;
38283 esac
38284     NM=$ac_ct_NM
38285   fi
38286 fi
38287 
38288   else
38289     # The variable is set, but is it from the command line or the environment?
38290 
38291     # Try to remove the string !NM! from our list.
38292     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
38293     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38294       # If it failed, the variable was not from the command line. Ignore it,
38295       # but warn the user (except for BASH, which is always set by the calling BASH).
38296       if test "xNM" != xBASH; then
38297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
38298 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
38299       fi
38300       # Try to locate tool using the code snippet
38301       if test -n "$ac_tool_prefix"; then
38302   for ac_prog in nm
38303   do
38304     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38307 $as_echo_n "checking for $ac_word... " >&6; }
38308 if ${ac_cv_prog_NM+:} false; then :
38309   $as_echo_n "(cached) " >&6
38310 else
38311   if test -n "$NM"; then
38312   ac_cv_prog_NM="$NM" # Let the user override the test.
38313 else
38314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38315 for as_dir in $PATH
38316 do
38317   IFS=$as_save_IFS
38318   test -z "$as_dir" && as_dir=.
38319     for ac_exec_ext in '' $ac_executable_extensions; do
38320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38321     ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
38322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38323     break 2
38324   fi
38325 done
38326   done
38327 IFS=$as_save_IFS
38328 
38329 fi
38330 fi
38331 NM=$ac_cv_prog_NM
38332 if test -n "$NM"; then
38333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
38334 $as_echo "$NM" >&6; }
38335 else
38336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38337 $as_echo "no" >&6; }
38338 fi
38339 
38340 
38341     test -n "$NM" && break
38342   done
38343 fi
38344 if test -z "$NM"; then
38345   ac_ct_NM=$NM
38346   for ac_prog in nm
38347 do
38348   # Extract the first word of "$ac_prog", so it can be a program name with args.
38349 set dummy $ac_prog; ac_word=$2
38350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38351 $as_echo_n "checking for $ac_word... " >&6; }
38352 if ${ac_cv_prog_ac_ct_NM+:} false; then :
38353   $as_echo_n "(cached) " >&6
38354 else
38355   if test -n "$ac_ct_NM"; then
38356   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38357 else
38358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38359 for as_dir in $PATH
38360 do
38361   IFS=$as_save_IFS
38362   test -z "$as_dir" && as_dir=.
38363     for ac_exec_ext in '' $ac_executable_extensions; do
38364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38365     ac_cv_prog_ac_ct_NM="$ac_prog"
38366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38367     break 2
38368   fi
38369 done
38370   done
38371 IFS=$as_save_IFS
38372 
38373 fi
38374 fi
38375 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38376 if test -n "$ac_ct_NM"; then
38377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
38378 $as_echo "$ac_ct_NM" >&6; }
38379 else
38380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38381 $as_echo "no" >&6; }
38382 fi
38383 
38384 
38385   test -n "$ac_ct_NM" && break
38386 done
38387 
38388   if test "x$ac_ct_NM" = x; then
38389     NM=""
38390   else
38391     case $cross_compiling:$ac_tool_warned in
38392 yes:)
38393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38395 ac_tool_warned=yes ;;
38396 esac
38397     NM=$ac_ct_NM
38398   fi
38399 fi
38400 
38401     else
38402       # If it succeeded, then it was overridden by the user. We will use it
38403       # for the tool.
38404 
38405       # First remove it from the list of overridden variables, so we can test
38406       # for unknown variables in the end.
38407       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38408 
38409       # Check if the provided tool contains a complete path.
38410       tool_specified="$NM"
38411       tool_basename="${tool_specified##*/}"
38412       if test "x$tool_basename" = "x$tool_specified"; then
38413         # A command without a complete path is provided, search $PATH.
38414         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
38415 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
38416         # Extract the first word of "$tool_basename", so it can be a program name with args.
38417 set dummy $tool_basename; ac_word=$2
38418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38419 $as_echo_n "checking for $ac_word... " >&6; }
38420 if ${ac_cv_path_NM+:} false; then :
38421   $as_echo_n "(cached) " >&6
38422 else
38423   case $NM in
38424   [\\/]* | ?:[\\/]*)
38425   ac_cv_path_NM="$NM" # Let the user override the test with a path.
38426   ;;
38427   *)
38428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38429 for as_dir in $PATH
38430 do
38431   IFS=$as_save_IFS
38432   test -z "$as_dir" && as_dir=.
38433     for ac_exec_ext in '' $ac_executable_extensions; do
38434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38435     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
38436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38437     break 2
38438   fi
38439 done
38440   done
38441 IFS=$as_save_IFS
38442 
38443   ;;
38444 esac
38445 fi
38446 NM=$ac_cv_path_NM
38447 if test -n "$NM"; then
38448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
38449 $as_echo "$NM" >&6; }
38450 else
38451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38452 $as_echo "no" >&6; }
38453 fi
38454 
38455 
38456         if test "x$NM" = x; then
38457           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
38458         fi
38459       else
38460         # Otherwise we believe it is a complete path. Use it as it is.
38461         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
38462 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
38463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
38464 $as_echo_n "checking for NM... " >&6; }
38465         if test ! -x "$tool_specified"; then
38466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
38467 $as_echo "not found" >&6; }
38468           as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
38469         fi
38470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
38471 $as_echo "$tool_specified" >&6; }
38472       fi
38473     fi
38474   fi
38475 
38476 
38477 
38478   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38479 
38480   # First separate the path from the arguments. This will split at the first
38481   # space.
38482   complete="$NM"
38483   path="${complete%% *}"
38484   tmp="$complete EOL"
38485   arguments="${tmp#* }"
38486 
38487   # Input might be given as Windows format, start by converting to
38488   # unix format.
38489   new_path=`$CYGPATH -u "$path"`
38490 
38491   # Now try to locate executable using which
38492   new_path=`$WHICH "$new_path" 2> /dev/null`
38493   # bat and cmd files are not always considered executable in cygwin causing which
38494   # to not find them
38495   if test "x$new_path" = x \
38496       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38497       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38498     new_path=`$CYGPATH -u "$path"`
38499   fi
38500   if test "x$new_path" = x; then
38501     # Oops. Which didn't find the executable.
38502     # The splitting of arguments from the executable at a space might have been incorrect,
38503     # since paths with space are more likely in Windows. Give it another try with the whole
38504     # argument.
38505     path="$complete"
38506     arguments="EOL"
38507     new_path=`$CYGPATH -u "$path"`
38508     new_path=`$WHICH "$new_path" 2> /dev/null`
38509     # bat and cmd files are not always considered executable in cygwin causing which
38510     # to not find them
38511     if test "x$new_path" = x \
38512         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38513         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38514       new_path=`$CYGPATH -u "$path"`
38515     fi
38516     if test "x$new_path" = x; then
38517       # It's still not found. Now this is an unrecoverable error.
38518       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
38519 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
38520       has_space=`$ECHO "$complete" | $GREP " "`
38521       if test "x$has_space" != x; then
38522         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38523 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38524       fi
38525       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38526     fi
38527   fi
38528 
38529   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
38530   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
38531   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
38532   # "foo.exe" is OK but "foo" is an error.
38533   #
38534   # This test is therefore slightly more accurate than "test -f" to check for file presence.
38535   # It is also a way to make sure we got the proper file name for the real test later on.
38536   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
38537   if test "x$test_shortpath" = x; then
38538     # Short path failed, file does not exist as specified.
38539     # Try adding .exe or .cmd
38540     if test -f "${new_path}.exe"; then
38541       input_to_shortpath="${new_path}.exe"
38542     elif test -f "${new_path}.cmd"; then
38543       input_to_shortpath="${new_path}.cmd"
38544     else
38545       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
38546 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
38547       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
38548 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
38549       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38550     fi
38551   else
38552     input_to_shortpath="$new_path"
38553   fi
38554 
38555   # Call helper function which possibly converts this using DOS-style short mode.
38556   # If so, the updated path is stored in $new_path.
38557   new_path="$input_to_shortpath"
38558 
38559   input_path="$input_to_shortpath"
38560   # Check if we need to convert this using DOS-style short mode. If the path
38561   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38562   # take no chances and rewrite it.
38563   # Note: m4 eats our [], so we need to use [ and ] instead.
38564   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
38565   if test "x$has_forbidden_chars" != x; then
38566     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38567     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38568     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38569     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38570       # Going to short mode and back again did indeed matter. Since short mode is
38571       # case insensitive, let's make it lowercase to improve readability.
38572       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38573       # Now convert it back to Unix-stile (cygpath)
38574       input_path=`$CYGPATH -u "$shortmode_path"`
38575       new_path="$input_path"
38576     fi
38577   fi
38578 
38579   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38580   if test "x$test_cygdrive_prefix" = x; then
38581     # As a simple fix, exclude /usr/bin since it's not a real path.
38582     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38583       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38584       # a path prefixed by /cygdrive for fixpath to work.
38585       new_path="$CYGWIN_ROOT_PATH$input_path"
38586     fi
38587   fi
38588 
38589   # remove trailing .exe if any
38590   new_path="${new_path/%.exe/}"
38591 
38592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38593 
38594   # First separate the path from the arguments. This will split at the first
38595   # space.
38596   complete="$NM"
38597   path="${complete%% *}"
38598   tmp="$complete EOL"
38599   arguments="${tmp#* }"
38600 
38601   # Input might be given as Windows format, start by converting to
38602   # unix format.
38603   new_path="$path"
38604 
38605   windows_path="$new_path"
38606   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38607     unix_path=`$CYGPATH -u "$windows_path"`
38608     new_path="$unix_path"
38609   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38610     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38611     new_path="$unix_path"
38612   fi
38613 
38614 
38615   # Now try to locate executable using which
38616   new_path=`$WHICH "$new_path" 2> /dev/null`
38617 
38618   if test "x$new_path" = x; then
38619     # Oops. Which didn't find the executable.
38620     # The splitting of arguments from the executable at a space might have been incorrect,
38621     # since paths with space are more likely in Windows. Give it another try with the whole
38622     # argument.
38623     path="$complete"
38624     arguments="EOL"
38625     new_path="$path"
38626 
38627   windows_path="$new_path"
38628   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38629     unix_path=`$CYGPATH -u "$windows_path"`
38630     new_path="$unix_path"
38631   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38632     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38633     new_path="$unix_path"
38634   fi
38635 
38636 
38637     new_path=`$WHICH "$new_path" 2> /dev/null`
38638 
38639     if test "x$new_path" = x; then
38640       # It's still not found. Now this is an unrecoverable error.
38641       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
38642 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
38643       has_space=`$ECHO "$complete" | $GREP " "`
38644       if test "x$has_space" != x; then
38645         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38647       fi
38648       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38649     fi
38650   fi
38651 
38652   # Now new_path has a complete unix path to the binary
38653   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38654     # Keep paths in /bin as-is, but remove trailing .exe if any
38655     new_path="${new_path/%.exe/}"
38656     # Do not save /bin paths to all_fixpath_prefixes!
38657   else
38658     # Not in mixed or Windows style, start by that.
38659     new_path=`cmd //c echo $new_path`
38660 
38661   input_path="$new_path"
38662   # Check if we need to convert this using DOS-style short mode. If the path
38663   # contains just simple characters, use it. Otherwise (spaces, weird characters),
38664   # take no chances and rewrite it.
38665   # Note: m4 eats our [], so we need to use [ and ] instead.
38666   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38667   if test "x$has_forbidden_chars" != x; then
38668     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38669     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38670   fi
38671 
38672     # Output is in $new_path
38673 
38674   windows_path="$new_path"
38675   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38676     unix_path=`$CYGPATH -u "$windows_path"`
38677     new_path="$unix_path"
38678   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38679     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38680     new_path="$unix_path"
38681   fi
38682 
38683     # remove trailing .exe if any
38684     new_path="${new_path/%.exe/}"
38685 
38686     # Save the first 10 bytes of this path to the storage, so fixpath can work.
38687     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
38688   fi
38689 
38690   else
38691     # We're on a posix platform. Hooray! :)
38692     # First separate the path from the arguments. This will split at the first
38693     # space.
38694     complete="$NM"
38695     path="${complete%% *}"
38696     tmp="$complete EOL"
38697     arguments="${tmp#* }"
38698 
38699     # Cannot rely on the command "which" here since it doesn't always work.
38700     is_absolute_path=`$ECHO "$path" | $GREP ^/`
38701     if test -z "$is_absolute_path"; then
38702       # Path to executable is not absolute. Find it.
38703       IFS_save="$IFS"
38704       IFS=:
38705       for p in $PATH; do
38706         if test -f "$p/$path" && test -x "$p/$path"; then
38707           new_path="$p/$path"
38708           break
38709         fi
38710       done
38711       IFS="$IFS_save"
38712     else
38713       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5
38714 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;}
38715       new_path="$path"
38716     fi
38717 
38718     if test "x$new_path" = x; then
38719       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
38720 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
38721       has_space=`$ECHO "$complete" | $GREP " "`
38722       if test "x$has_space" != x; then
38723         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
38724 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
38725       fi
38726       as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
38727     fi
38728   fi
38729 
38730   # Now join together the path and the arguments once again
38731   if test "x$arguments" != xEOL; then
38732     new_complete="$new_path ${arguments% *}"
38733   else
38734     new_complete="$new_path"
38735   fi
38736 
38737   if test "x$complete" != "x$new_complete"; then
38738     NM="$new_complete"
38739     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
38740 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
38741   fi
38742 
38743     GNM="$NM"
38744 
38745 
38746 
38747   # Publish this variable in the help.
38748 
38749 
38750   if test "x$STRIP" = x; then
38751     # The variable is not set by user, try to locate tool using the code snippet
38752     if test -n "$ac_tool_prefix"; then
38753   for ac_prog in strip
38754   do
38755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38758 $as_echo_n "checking for $ac_word... " >&6; }
38759 if ${ac_cv_prog_STRIP+:} false; then :
38760   $as_echo_n "(cached) " >&6
38761 else
38762   if test -n "$STRIP"; then
38763   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38764 else
38765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38766 for as_dir in $PATH
38767 do
38768   IFS=$as_save_IFS
38769   test -z "$as_dir" && as_dir=.
38770     for ac_exec_ext in '' $ac_executable_extensions; do
38771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38772     ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
38773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38774     break 2
38775   fi
38776 done
38777   done
38778 IFS=$as_save_IFS
38779 
38780 fi
38781 fi
38782 STRIP=$ac_cv_prog_STRIP
38783 if test -n "$STRIP"; then
38784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
38785 $as_echo "$STRIP" >&6; }
38786 else
38787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38788 $as_echo "no" >&6; }
38789 fi
38790 
38791 
38792     test -n "$STRIP" && break
38793   done
38794 fi
38795 if test -z "$STRIP"; then
38796   ac_ct_STRIP=$STRIP
38797   for ac_prog in strip
38798 do
38799   # Extract the first word of "$ac_prog", so it can be a program name with args.
38800 set dummy $ac_prog; ac_word=$2
38801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38802 $as_echo_n "checking for $ac_word... " >&6; }
38803 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
38804   $as_echo_n "(cached) " >&6
38805 else
38806   if test -n "$ac_ct_STRIP"; then
38807   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38808 else
38809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38810 for as_dir in $PATH
38811 do
38812   IFS=$as_save_IFS
38813   test -z "$as_dir" && as_dir=.
38814     for ac_exec_ext in '' $ac_executable_extensions; do
38815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38816     ac_cv_prog_ac_ct_STRIP="$ac_prog"
38817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38818     break 2
38819   fi
38820 done
38821   done
38822 IFS=$as_save_IFS
38823 
38824 fi
38825 fi
38826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38827 if test -n "$ac_ct_STRIP"; then
38828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
38829 $as_echo "$ac_ct_STRIP" >&6; }
38830 else
38831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38832 $as_echo "no" >&6; }
38833 fi
38834 
38835 
38836   test -n "$ac_ct_STRIP" && break
38837 done
38838 
38839   if test "x$ac_ct_STRIP" = x; then
38840     STRIP=""
38841   else
38842     case $cross_compiling:$ac_tool_warned in
38843 yes:)
38844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38846 ac_tool_warned=yes ;;
38847 esac
38848     STRIP=$ac_ct_STRIP
38849   fi
38850 fi
38851 
38852   else
38853     # The variable is set, but is it from the command line or the environment?
38854 
38855     # Try to remove the string !STRIP! from our list.
38856     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
38857     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38858       # If it failed, the variable was not from the command line. Ignore it,
38859       # but warn the user (except for BASH, which is always set by the calling BASH).
38860       if test "xSTRIP" != xBASH; then
38861         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
38862 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
38863       fi
38864       # Try to locate tool using the code snippet
38865       if test -n "$ac_tool_prefix"; then
38866   for ac_prog in strip
38867   do
38868     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38871 $as_echo_n "checking for $ac_word... " >&6; }
38872 if ${ac_cv_prog_STRIP+:} false; then :
38873   $as_echo_n "(cached) " >&6
38874 else
38875   if test -n "$STRIP"; then
38876   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38877 else
38878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38879 for as_dir in $PATH
38880 do
38881   IFS=$as_save_IFS
38882   test -z "$as_dir" && as_dir=.
38883     for ac_exec_ext in '' $ac_executable_extensions; do
38884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38885     ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
38886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38887     break 2
38888   fi
38889 done
38890   done
38891 IFS=$as_save_IFS
38892 
38893 fi
38894 fi
38895 STRIP=$ac_cv_prog_STRIP
38896 if test -n "$STRIP"; then
38897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
38898 $as_echo "$STRIP" >&6; }
38899 else
38900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38901 $as_echo "no" >&6; }
38902 fi
38903 
38904 
38905     test -n "$STRIP" && break
38906   done
38907 fi
38908 if test -z "$STRIP"; then
38909   ac_ct_STRIP=$STRIP
38910   for ac_prog in strip
38911 do
38912   # Extract the first word of "$ac_prog", so it can be a program name with args.
38913 set dummy $ac_prog; ac_word=$2
38914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38915 $as_echo_n "checking for $ac_word... " >&6; }
38916 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
38917   $as_echo_n "(cached) " >&6
38918 else
38919   if test -n "$ac_ct_STRIP"; then
38920   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38921 else
38922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38923 for as_dir in $PATH
38924 do
38925   IFS=$as_save_IFS
38926   test -z "$as_dir" && as_dir=.
38927     for ac_exec_ext in '' $ac_executable_extensions; do
38928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38929     ac_cv_prog_ac_ct_STRIP="$ac_prog"
38930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38931     break 2
38932   fi
38933 done
38934   done
38935 IFS=$as_save_IFS
38936 
38937 fi
38938 fi
38939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38940 if test -n "$ac_ct_STRIP"; then
38941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
38942 $as_echo "$ac_ct_STRIP" >&6; }
38943 else
38944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38945 $as_echo "no" >&6; }
38946 fi
38947 
38948 
38949   test -n "$ac_ct_STRIP" && break
38950 done
38951 
38952   if test "x$ac_ct_STRIP" = x; then
38953     STRIP=""
38954   else
38955     case $cross_compiling:$ac_tool_warned in
38956 yes:)
38957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38959 ac_tool_warned=yes ;;
38960 esac
38961     STRIP=$ac_ct_STRIP
38962   fi
38963 fi
38964 
38965     else
38966       # If it succeeded, then it was overridden by the user. We will use it
38967       # for the tool.
38968 
38969       # First remove it from the list of overridden variables, so we can test
38970       # for unknown variables in the end.
38971       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38972 
38973       # Check if the provided tool contains a complete path.
38974       tool_specified="$STRIP"
38975       tool_basename="${tool_specified##*/}"
38976       if test "x$tool_basename" = "x$tool_specified"; then
38977         # A command without a complete path is provided, search $PATH.
38978         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
38979 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
38980         # Extract the first word of "$tool_basename", so it can be a program name with args.
38981 set dummy $tool_basename; ac_word=$2
38982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38983 $as_echo_n "checking for $ac_word... " >&6; }
38984 if ${ac_cv_path_STRIP+:} false; then :
38985   $as_echo_n "(cached) " >&6
38986 else
38987   case $STRIP in
38988   [\\/]* | ?:[\\/]*)
38989   ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
38990   ;;
38991   *)
38992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38993 for as_dir in $PATH
38994 do
38995   IFS=$as_save_IFS
38996   test -z "$as_dir" && as_dir=.
38997     for ac_exec_ext in '' $ac_executable_extensions; do
38998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38999     ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
39000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39001     break 2
39002   fi
39003 done
39004   done
39005 IFS=$as_save_IFS
39006 
39007   ;;
39008 esac
39009 fi
39010 STRIP=$ac_cv_path_STRIP
39011 if test -n "$STRIP"; then
39012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
39013 $as_echo "$STRIP" >&6; }
39014 else
39015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39016 $as_echo "no" >&6; }
39017 fi
39018 
39019 
39020         if test "x$STRIP" = x; then
39021           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
39022         fi
39023       else
39024         # Otherwise we believe it is a complete path. Use it as it is.
39025         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
39026 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
39027         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
39028 $as_echo_n "checking for STRIP... " >&6; }
39029         if test ! -x "$tool_specified"; then
39030           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
39031 $as_echo "not found" >&6; }
39032           as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
39033         fi
39034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
39035 $as_echo "$tool_specified" >&6; }
39036       fi
39037     fi
39038   fi
39039 
39040 
39041 
39042   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39043 
39044   # First separate the path from the arguments. This will split at the first
39045   # space.
39046   complete="$STRIP"
39047   path="${complete%% *}"
39048   tmp="$complete EOL"
39049   arguments="${tmp#* }"
39050 
39051   # Input might be given as Windows format, start by converting to
39052   # unix format.
39053   new_path=`$CYGPATH -u "$path"`
39054 
39055   # Now try to locate executable using which
39056   new_path=`$WHICH "$new_path" 2> /dev/null`
39057   # bat and cmd files are not always considered executable in cygwin causing which
39058   # to not find them
39059   if test "x$new_path" = x \
39060       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39061       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39062     new_path=`$CYGPATH -u "$path"`
39063   fi
39064   if test "x$new_path" = x; then
39065     # Oops. Which didn't find the executable.
39066     # The splitting of arguments from the executable at a space might have been incorrect,
39067     # since paths with space are more likely in Windows. Give it another try with the whole
39068     # argument.
39069     path="$complete"
39070     arguments="EOL"
39071     new_path=`$CYGPATH -u "$path"`
39072     new_path=`$WHICH "$new_path" 2> /dev/null`
39073     # bat and cmd files are not always considered executable in cygwin causing which
39074     # to not find them
39075     if test "x$new_path" = x \
39076         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39077         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39078       new_path=`$CYGPATH -u "$path"`
39079     fi
39080     if test "x$new_path" = x; then
39081       # It's still not found. Now this is an unrecoverable error.
39082       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
39083 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
39084       has_space=`$ECHO "$complete" | $GREP " "`
39085       if test "x$has_space" != x; then
39086         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39088       fi
39089       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39090     fi
39091   fi
39092 
39093   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
39094   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
39095   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
39096   # "foo.exe" is OK but "foo" is an error.
39097   #
39098   # This test is therefore slightly more accurate than "test -f" to check for file presence.
39099   # It is also a way to make sure we got the proper file name for the real test later on.
39100   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
39101   if test "x$test_shortpath" = x; then
39102     # Short path failed, file does not exist as specified.
39103     # Try adding .exe or .cmd
39104     if test -f "${new_path}.exe"; then
39105       input_to_shortpath="${new_path}.exe"
39106     elif test -f "${new_path}.cmd"; then
39107       input_to_shortpath="${new_path}.cmd"
39108     else
39109       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
39110 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
39111       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
39112 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
39113       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39114     fi
39115   else
39116     input_to_shortpath="$new_path"
39117   fi
39118 
39119   # Call helper function which possibly converts this using DOS-style short mode.
39120   # If so, the updated path is stored in $new_path.
39121   new_path="$input_to_shortpath"
39122 
39123   input_path="$input_to_shortpath"
39124   # Check if we need to convert this using DOS-style short mode. If the path
39125   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39126   # take no chances and rewrite it.
39127   # Note: m4 eats our [], so we need to use [ and ] instead.
39128   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
39129   if test "x$has_forbidden_chars" != x; then
39130     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39131     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
39132     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
39133     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
39134       # Going to short mode and back again did indeed matter. Since short mode is
39135       # case insensitive, let's make it lowercase to improve readability.
39136       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39137       # Now convert it back to Unix-stile (cygpath)
39138       input_path=`$CYGPATH -u "$shortmode_path"`
39139       new_path="$input_path"
39140     fi
39141   fi
39142 
39143   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
39144   if test "x$test_cygdrive_prefix" = x; then
39145     # As a simple fix, exclude /usr/bin since it's not a real path.
39146     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
39147       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
39148       # a path prefixed by /cygdrive for fixpath to work.
39149       new_path="$CYGWIN_ROOT_PATH$input_path"
39150     fi
39151   fi
39152 
39153   # remove trailing .exe if any
39154   new_path="${new_path/%.exe/}"
39155 
39156   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39157 
39158   # First separate the path from the arguments. This will split at the first
39159   # space.
39160   complete="$STRIP"
39161   path="${complete%% *}"
39162   tmp="$complete EOL"
39163   arguments="${tmp#* }"
39164 
39165   # Input might be given as Windows format, start by converting to
39166   # unix format.
39167   new_path="$path"
39168 
39169   windows_path="$new_path"
39170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39171     unix_path=`$CYGPATH -u "$windows_path"`
39172     new_path="$unix_path"
39173   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39174     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39175     new_path="$unix_path"
39176   fi
39177 
39178 
39179   # Now try to locate executable using which
39180   new_path=`$WHICH "$new_path" 2> /dev/null`
39181 
39182   if test "x$new_path" = x; then
39183     # Oops. Which didn't find the executable.
39184     # The splitting of arguments from the executable at a space might have been incorrect,
39185     # since paths with space are more likely in Windows. Give it another try with the whole
39186     # argument.
39187     path="$complete"
39188     arguments="EOL"
39189     new_path="$path"
39190 
39191   windows_path="$new_path"
39192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39193     unix_path=`$CYGPATH -u "$windows_path"`
39194     new_path="$unix_path"
39195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39196     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39197     new_path="$unix_path"
39198   fi
39199 
39200 
39201     new_path=`$WHICH "$new_path" 2> /dev/null`
39202 
39203     if test "x$new_path" = x; then
39204       # It's still not found. Now this is an unrecoverable error.
39205       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
39206 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
39207       has_space=`$ECHO "$complete" | $GREP " "`
39208       if test "x$has_space" != x; then
39209         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39211       fi
39212       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39213     fi
39214   fi
39215 
39216   # Now new_path has a complete unix path to the binary
39217   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
39218     # Keep paths in /bin as-is, but remove trailing .exe if any
39219     new_path="${new_path/%.exe/}"
39220     # Do not save /bin paths to all_fixpath_prefixes!
39221   else
39222     # Not in mixed or Windows style, start by that.
39223     new_path=`cmd //c echo $new_path`
39224 
39225   input_path="$new_path"
39226   # Check if we need to convert this using DOS-style short mode. If the path
39227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39228   # take no chances and rewrite it.
39229   # Note: m4 eats our [], so we need to use [ and ] instead.
39230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
39231   if test "x$has_forbidden_chars" != x; then
39232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39233     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39234   fi
39235 
39236     # Output is in $new_path
39237 
39238   windows_path="$new_path"
39239   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39240     unix_path=`$CYGPATH -u "$windows_path"`
39241     new_path="$unix_path"
39242   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39243     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39244     new_path="$unix_path"
39245   fi
39246 
39247     # remove trailing .exe if any
39248     new_path="${new_path/%.exe/}"
39249 
39250     # Save the first 10 bytes of this path to the storage, so fixpath can work.
39251     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
39252   fi
39253 
39254   else
39255     # We're on a posix platform. Hooray! :)
39256     # First separate the path from the arguments. This will split at the first
39257     # space.
39258     complete="$STRIP"
39259     path="${complete%% *}"
39260     tmp="$complete EOL"
39261     arguments="${tmp#* }"
39262 
39263     # Cannot rely on the command "which" here since it doesn't always work.
39264     is_absolute_path=`$ECHO "$path" | $GREP ^/`
39265     if test -z "$is_absolute_path"; then
39266       # Path to executable is not absolute. Find it.
39267       IFS_save="$IFS"
39268       IFS=:
39269       for p in $PATH; do
39270         if test -f "$p/$path" && test -x "$p/$path"; then
39271           new_path="$p/$path"
39272           break
39273         fi
39274       done
39275       IFS="$IFS_save"
39276     else
39277       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5
39278 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;}
39279       new_path="$path"
39280     fi
39281 
39282     if test "x$new_path" = x; then
39283       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
39284 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
39285       has_space=`$ECHO "$complete" | $GREP " "`
39286       if test "x$has_space" != x; then
39287         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
39288 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
39289       fi
39290       as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
39291     fi
39292   fi
39293 
39294   # Now join together the path and the arguments once again
39295   if test "x$arguments" != xEOL; then
39296     new_complete="$new_path ${arguments% *}"
39297   else
39298     new_complete="$new_path"
39299   fi
39300 
39301   if test "x$complete" != "x$new_complete"; then
39302     STRIP="$new_complete"
39303     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
39304 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
39305   fi
39306 
39307   fi
39308 
39309   # objcopy is used for moving debug symbols to separate files when
39310   # full debug symbols are enabled.
39311   if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
39312 
39313 
39314   # Publish this variable in the help.
39315 
39316 
39317   if test "x$OBJCOPY" = x; then
39318     # The variable is not set by user, try to locate tool using the code snippet
39319     if test -n "$ac_tool_prefix"; then
39320   for ac_prog in gobjcopy objcopy
39321   do
39322     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
39324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39325 $as_echo_n "checking for $ac_word... " >&6; }
39326 if ${ac_cv_prog_OBJCOPY+:} false; then :
39327   $as_echo_n "(cached) " >&6
39328 else
39329   if test -n "$OBJCOPY"; then
39330   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
39331 else
39332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39333 for as_dir in $PATH
39334 do
39335   IFS=$as_save_IFS
39336   test -z "$as_dir" && as_dir=.
39337     for ac_exec_ext in '' $ac_executable_extensions; do
39338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39339     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
39340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39341     break 2
39342   fi
39343 done
39344   done
39345 IFS=$as_save_IFS
39346 
39347 fi
39348 fi
39349 OBJCOPY=$ac_cv_prog_OBJCOPY
39350 if test -n "$OBJCOPY"; then
39351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
39352 $as_echo "$OBJCOPY" >&6; }
39353 else
39354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39355 $as_echo "no" >&6; }
39356 fi
39357 
39358 
39359     test -n "$OBJCOPY" && break
39360   done
39361 fi
39362 if test -z "$OBJCOPY"; then
39363   ac_ct_OBJCOPY=$OBJCOPY
39364   for ac_prog in gobjcopy objcopy
39365 do
39366   # Extract the first word of "$ac_prog", so it can be a program name with args.
39367 set dummy $ac_prog; ac_word=$2
39368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39369 $as_echo_n "checking for $ac_word... " >&6; }
39370 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
39371   $as_echo_n "(cached) " >&6
39372 else
39373   if test -n "$ac_ct_OBJCOPY"; then
39374   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
39375 else
39376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39377 for as_dir in $PATH
39378 do
39379   IFS=$as_save_IFS
39380   test -z "$as_dir" && as_dir=.
39381     for ac_exec_ext in '' $ac_executable_extensions; do
39382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39383     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
39384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39385     break 2
39386   fi
39387 done
39388   done
39389 IFS=$as_save_IFS
39390 
39391 fi
39392 fi
39393 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
39394 if test -n "$ac_ct_OBJCOPY"; then
39395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
39396 $as_echo "$ac_ct_OBJCOPY" >&6; }
39397 else
39398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39399 $as_echo "no" >&6; }
39400 fi
39401 
39402 
39403   test -n "$ac_ct_OBJCOPY" && break
39404 done
39405 
39406   if test "x$ac_ct_OBJCOPY" = x; then
39407     OBJCOPY=""
39408   else
39409     case $cross_compiling:$ac_tool_warned in
39410 yes:)
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39413 ac_tool_warned=yes ;;
39414 esac
39415     OBJCOPY=$ac_ct_OBJCOPY
39416   fi
39417 fi
39418 
39419   else
39420     # The variable is set, but is it from the command line or the environment?
39421 
39422     # Try to remove the string !OBJCOPY! from our list.
39423     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/}
39424     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
39425       # If it failed, the variable was not from the command line. Ignore it,
39426       # but warn the user (except for BASH, which is always set by the calling BASH).
39427       if test "xOBJCOPY" != xBASH; then
39428         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5
39429 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;}
39430       fi
39431       # Try to locate tool using the code snippet
39432       if test -n "$ac_tool_prefix"; then
39433   for ac_prog in gobjcopy objcopy
39434   do
39435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
39437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39438 $as_echo_n "checking for $ac_word... " >&6; }
39439 if ${ac_cv_prog_OBJCOPY+:} false; then :
39440   $as_echo_n "(cached) " >&6
39441 else
39442   if test -n "$OBJCOPY"; then
39443   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
39444 else
39445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39446 for as_dir in $PATH
39447 do
39448   IFS=$as_save_IFS
39449   test -z "$as_dir" && as_dir=.
39450     for ac_exec_ext in '' $ac_executable_extensions; do
39451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39452     ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
39453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39454     break 2
39455   fi
39456 done
39457   done
39458 IFS=$as_save_IFS
39459 
39460 fi
39461 fi
39462 OBJCOPY=$ac_cv_prog_OBJCOPY
39463 if test -n "$OBJCOPY"; then
39464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
39465 $as_echo "$OBJCOPY" >&6; }
39466 else
39467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39468 $as_echo "no" >&6; }
39469 fi
39470 
39471 
39472     test -n "$OBJCOPY" && break
39473   done
39474 fi
39475 if test -z "$OBJCOPY"; then
39476   ac_ct_OBJCOPY=$OBJCOPY
39477   for ac_prog in gobjcopy objcopy
39478 do
39479   # Extract the first word of "$ac_prog", so it can be a program name with args.
39480 set dummy $ac_prog; ac_word=$2
39481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39482 $as_echo_n "checking for $ac_word... " >&6; }
39483 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
39484   $as_echo_n "(cached) " >&6
39485 else
39486   if test -n "$ac_ct_OBJCOPY"; then
39487   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
39488 else
39489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39490 for as_dir in $PATH
39491 do
39492   IFS=$as_save_IFS
39493   test -z "$as_dir" && as_dir=.
39494     for ac_exec_ext in '' $ac_executable_extensions; do
39495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39496     ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
39497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39498     break 2
39499   fi
39500 done
39501   done
39502 IFS=$as_save_IFS
39503 
39504 fi
39505 fi
39506 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
39507 if test -n "$ac_ct_OBJCOPY"; then
39508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
39509 $as_echo "$ac_ct_OBJCOPY" >&6; }
39510 else
39511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39512 $as_echo "no" >&6; }
39513 fi
39514 
39515 
39516   test -n "$ac_ct_OBJCOPY" && break
39517 done
39518 
39519   if test "x$ac_ct_OBJCOPY" = x; then
39520     OBJCOPY=""
39521   else
39522     case $cross_compiling:$ac_tool_warned in
39523 yes:)
39524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39526 ac_tool_warned=yes ;;
39527 esac
39528     OBJCOPY=$ac_ct_OBJCOPY
39529   fi
39530 fi
39531 
39532     else
39533       # If it succeeded, then it was overridden by the user. We will use it
39534       # for the tool.
39535 
39536       # First remove it from the list of overridden variables, so we can test
39537       # for unknown variables in the end.
39538       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
39539 
39540       # Check if the provided tool contains a complete path.
39541       tool_specified="$OBJCOPY"
39542       tool_basename="${tool_specified##*/}"
39543       if test "x$tool_basename" = "x$tool_specified"; then
39544         # A command without a complete path is provided, search $PATH.
39545         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5
39546 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;}
39547         # Extract the first word of "$tool_basename", so it can be a program name with args.
39548 set dummy $tool_basename; ac_word=$2
39549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39550 $as_echo_n "checking for $ac_word... " >&6; }
39551 if ${ac_cv_path_OBJCOPY+:} false; then :
39552   $as_echo_n "(cached) " >&6
39553 else
39554   case $OBJCOPY in
39555   [\\/]* | ?:[\\/]*)
39556   ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
39557   ;;
39558   *)
39559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39560 for as_dir in $PATH
39561 do
39562   IFS=$as_save_IFS
39563   test -z "$as_dir" && as_dir=.
39564     for ac_exec_ext in '' $ac_executable_extensions; do
39565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39566     ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
39567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39568     break 2
39569   fi
39570 done
39571   done
39572 IFS=$as_save_IFS
39573 
39574   ;;
39575 esac
39576 fi
39577 OBJCOPY=$ac_cv_path_OBJCOPY
39578 if test -n "$OBJCOPY"; then
39579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
39580 $as_echo "$OBJCOPY" >&6; }
39581 else
39582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39583 $as_echo "no" >&6; }
39584 fi
39585 
39586 
39587         if test "x$OBJCOPY" = x; then
39588           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
39589         fi
39590       else
39591         # Otherwise we believe it is a complete path. Use it as it is.
39592         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5
39593 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;}
39594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5
39595 $as_echo_n "checking for OBJCOPY... " >&6; }
39596         if test ! -x "$tool_specified"; then
39597           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
39598 $as_echo "not found" >&6; }
39599           as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5
39600         fi
39601         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
39602 $as_echo "$tool_specified" >&6; }
39603       fi
39604     fi
39605   fi
39606 
39607 
39608     # Only call fixup if objcopy was found.
39609     if test -n "$OBJCOPY"; then
39610 
39611   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39612 
39613   # First separate the path from the arguments. This will split at the first
39614   # space.
39615   complete="$OBJCOPY"
39616   path="${complete%% *}"
39617   tmp="$complete EOL"
39618   arguments="${tmp#* }"
39619 
39620   # Input might be given as Windows format, start by converting to
39621   # unix format.
39622   new_path=`$CYGPATH -u "$path"`
39623 
39624   # Now try to locate executable using which
39625   new_path=`$WHICH "$new_path" 2> /dev/null`
39626   # bat and cmd files are not always considered executable in cygwin causing which
39627   # to not find them
39628   if test "x$new_path" = x \
39629       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39630       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39631     new_path=`$CYGPATH -u "$path"`
39632   fi
39633   if test "x$new_path" = x; then
39634     # Oops. Which didn't find the executable.
39635     # The splitting of arguments from the executable at a space might have been incorrect,
39636     # since paths with space are more likely in Windows. Give it another try with the whole
39637     # argument.
39638     path="$complete"
39639     arguments="EOL"
39640     new_path=`$CYGPATH -u "$path"`
39641     new_path=`$WHICH "$new_path" 2> /dev/null`
39642     # bat and cmd files are not always considered executable in cygwin causing which
39643     # to not find them
39644     if test "x$new_path" = x \
39645         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39646         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39647       new_path=`$CYGPATH -u "$path"`
39648     fi
39649     if test "x$new_path" = x; then
39650       # It's still not found. Now this is an unrecoverable error.
39651       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
39652 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
39653       has_space=`$ECHO "$complete" | $GREP " "`
39654       if test "x$has_space" != x; then
39655         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39656 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39657       fi
39658       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39659     fi
39660   fi
39661 
39662   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
39663   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
39664   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
39665   # "foo.exe" is OK but "foo" is an error.
39666   #
39667   # This test is therefore slightly more accurate than "test -f" to check for file presence.
39668   # It is also a way to make sure we got the proper file name for the real test later on.
39669   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
39670   if test "x$test_shortpath" = x; then
39671     # Short path failed, file does not exist as specified.
39672     # Try adding .exe or .cmd
39673     if test -f "${new_path}.exe"; then
39674       input_to_shortpath="${new_path}.exe"
39675     elif test -f "${new_path}.cmd"; then
39676       input_to_shortpath="${new_path}.cmd"
39677     else
39678       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5
39679 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;}
39680       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
39681 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
39682       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39683     fi
39684   else
39685     input_to_shortpath="$new_path"
39686   fi
39687 
39688   # Call helper function which possibly converts this using DOS-style short mode.
39689   # If so, the updated path is stored in $new_path.
39690   new_path="$input_to_shortpath"
39691 
39692   input_path="$input_to_shortpath"
39693   # Check if we need to convert this using DOS-style short mode. If the path
39694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39695   # take no chances and rewrite it.
39696   # Note: m4 eats our [], so we need to use [ and ] instead.
39697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
39698   if test "x$has_forbidden_chars" != x; then
39699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39700     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
39701     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
39702     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
39703       # Going to short mode and back again did indeed matter. Since short mode is
39704       # case insensitive, let's make it lowercase to improve readability.
39705       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39706       # Now convert it back to Unix-stile (cygpath)
39707       input_path=`$CYGPATH -u "$shortmode_path"`
39708       new_path="$input_path"
39709     fi
39710   fi
39711 
39712   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
39713   if test "x$test_cygdrive_prefix" = x; then
39714     # As a simple fix, exclude /usr/bin since it's not a real path.
39715     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
39716       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
39717       # a path prefixed by /cygdrive for fixpath to work.
39718       new_path="$CYGWIN_ROOT_PATH$input_path"
39719     fi
39720   fi
39721 
39722   # remove trailing .exe if any
39723   new_path="${new_path/%.exe/}"
39724 
39725   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39726 
39727   # First separate the path from the arguments. This will split at the first
39728   # space.
39729   complete="$OBJCOPY"
39730   path="${complete%% *}"
39731   tmp="$complete EOL"
39732   arguments="${tmp#* }"
39733 
39734   # Input might be given as Windows format, start by converting to
39735   # unix format.
39736   new_path="$path"
39737 
39738   windows_path="$new_path"
39739   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39740     unix_path=`$CYGPATH -u "$windows_path"`
39741     new_path="$unix_path"
39742   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39743     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39744     new_path="$unix_path"
39745   fi
39746 
39747 
39748   # Now try to locate executable using which
39749   new_path=`$WHICH "$new_path" 2> /dev/null`
39750 
39751   if test "x$new_path" = x; then
39752     # Oops. Which didn't find the executable.
39753     # The splitting of arguments from the executable at a space might have been incorrect,
39754     # since paths with space are more likely in Windows. Give it another try with the whole
39755     # argument.
39756     path="$complete"
39757     arguments="EOL"
39758     new_path="$path"
39759 
39760   windows_path="$new_path"
39761   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39762     unix_path=`$CYGPATH -u "$windows_path"`
39763     new_path="$unix_path"
39764   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39765     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39766     new_path="$unix_path"
39767   fi
39768 
39769 
39770     new_path=`$WHICH "$new_path" 2> /dev/null`
39771 
39772     if test "x$new_path" = x; then
39773       # It's still not found. Now this is an unrecoverable error.
39774       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
39775 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
39776       has_space=`$ECHO "$complete" | $GREP " "`
39777       if test "x$has_space" != x; then
39778         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39779 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39780       fi
39781       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39782     fi
39783   fi
39784 
39785   # Now new_path has a complete unix path to the binary
39786   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
39787     # Keep paths in /bin as-is, but remove trailing .exe if any
39788     new_path="${new_path/%.exe/}"
39789     # Do not save /bin paths to all_fixpath_prefixes!
39790   else
39791     # Not in mixed or Windows style, start by that.
39792     new_path=`cmd //c echo $new_path`
39793 
39794   input_path="$new_path"
39795   # Check if we need to convert this using DOS-style short mode. If the path
39796   # contains just simple characters, use it. Otherwise (spaces, weird characters),
39797   # take no chances and rewrite it.
39798   # Note: m4 eats our [], so we need to use [ and ] instead.
39799   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
39800   if test "x$has_forbidden_chars" != x; then
39801     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39802     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39803   fi
39804 
39805     # Output is in $new_path
39806 
39807   windows_path="$new_path"
39808   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39809     unix_path=`$CYGPATH -u "$windows_path"`
39810     new_path="$unix_path"
39811   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39812     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39813     new_path="$unix_path"
39814   fi
39815 
39816     # remove trailing .exe if any
39817     new_path="${new_path/%.exe/}"
39818 
39819     # Save the first 10 bytes of this path to the storage, so fixpath can work.
39820     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
39821   fi
39822 
39823   else
39824     # We're on a posix platform. Hooray! :)
39825     # First separate the path from the arguments. This will split at the first
39826     # space.
39827     complete="$OBJCOPY"
39828     path="${complete%% *}"
39829     tmp="$complete EOL"
39830     arguments="${tmp#* }"
39831 
39832     # Cannot rely on the command "which" here since it doesn't always work.
39833     is_absolute_path=`$ECHO "$path" | $GREP ^/`
39834     if test -z "$is_absolute_path"; then
39835       # Path to executable is not absolute. Find it.
39836       IFS_save="$IFS"
39837       IFS=:
39838       for p in $PATH; do
39839         if test -f "$p/$path" && test -x "$p/$path"; then
39840           new_path="$p/$path"
39841           break
39842         fi
39843       done
39844       IFS="$IFS_save"
39845     else
39846       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJCOPY (as $path) failed, using $path directly." >&5
39847 $as_echo "$as_me: Resolving OBJCOPY (as $path) failed, using $path directly." >&6;}
39848       new_path="$path"
39849     fi
39850 
39851     if test "x$new_path" = x; then
39852       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
39853 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
39854       has_space=`$ECHO "$complete" | $GREP " "`
39855       if test "x$has_space" != x; then
39856         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
39857 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
39858       fi
39859       as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
39860     fi
39861   fi
39862 
39863   # Now join together the path and the arguments once again
39864   if test "x$arguments" != xEOL; then
39865     new_complete="$new_path ${arguments% *}"
39866   else
39867     new_complete="$new_path"
39868   fi
39869 
39870   if test "x$complete" != "x$new_complete"; then
39871     OBJCOPY="$new_complete"
39872     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
39873 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
39874   fi
39875 
39876     fi
39877   fi
39878 
39879 
39880 
39881   # Publish this variable in the help.
39882 
39883 
39884   if test "x$OBJDUMP" = x; then
39885     # The variable is not set by user, try to locate tool using the code snippet
39886     if test -n "$ac_tool_prefix"; then
39887   for ac_prog in gobjdump objdump
39888   do
39889     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
39890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
39891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39892 $as_echo_n "checking for $ac_word... " >&6; }
39893 if ${ac_cv_prog_OBJDUMP+:} false; then :
39894   $as_echo_n "(cached) " >&6
39895 else
39896   if test -n "$OBJDUMP"; then
39897   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
39898 else
39899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39900 for as_dir in $PATH
39901 do
39902   IFS=$as_save_IFS
39903   test -z "$as_dir" && as_dir=.
39904     for ac_exec_ext in '' $ac_executable_extensions; do
39905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39906     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
39907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39908     break 2
39909   fi
39910 done
39911   done
39912 IFS=$as_save_IFS
39913 
39914 fi
39915 fi
39916 OBJDUMP=$ac_cv_prog_OBJDUMP
39917 if test -n "$OBJDUMP"; then
39918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
39919 $as_echo "$OBJDUMP" >&6; }
39920 else
39921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39922 $as_echo "no" >&6; }
39923 fi
39924 
39925 
39926     test -n "$OBJDUMP" && break
39927   done
39928 fi
39929 if test -z "$OBJDUMP"; then
39930   ac_ct_OBJDUMP=$OBJDUMP
39931   for ac_prog in gobjdump objdump
39932 do
39933   # Extract the first word of "$ac_prog", so it can be a program name with args.
39934 set dummy $ac_prog; ac_word=$2
39935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39936 $as_echo_n "checking for $ac_word... " >&6; }
39937 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
39938   $as_echo_n "(cached) " >&6
39939 else
39940   if test -n "$ac_ct_OBJDUMP"; then
39941   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
39942 else
39943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39944 for as_dir in $PATH
39945 do
39946   IFS=$as_save_IFS
39947   test -z "$as_dir" && as_dir=.
39948     for ac_exec_ext in '' $ac_executable_extensions; do
39949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39950     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
39951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39952     break 2
39953   fi
39954 done
39955   done
39956 IFS=$as_save_IFS
39957 
39958 fi
39959 fi
39960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
39961 if test -n "$ac_ct_OBJDUMP"; then
39962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
39963 $as_echo "$ac_ct_OBJDUMP" >&6; }
39964 else
39965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39966 $as_echo "no" >&6; }
39967 fi
39968 
39969 
39970   test -n "$ac_ct_OBJDUMP" && break
39971 done
39972 
39973   if test "x$ac_ct_OBJDUMP" = x; then
39974     OBJDUMP=""
39975   else
39976     case $cross_compiling:$ac_tool_warned in
39977 yes:)
39978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39980 ac_tool_warned=yes ;;
39981 esac
39982     OBJDUMP=$ac_ct_OBJDUMP
39983   fi
39984 fi
39985 
39986   else
39987     # The variable is set, but is it from the command line or the environment?
39988 
39989     # Try to remove the string !OBJDUMP! from our list.
39990     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/}
39991     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
39992       # If it failed, the variable was not from the command line. Ignore it,
39993       # but warn the user (except for BASH, which is always set by the calling BASH).
39994       if test "xOBJDUMP" != xBASH; then
39995         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5
39996 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;}
39997       fi
39998       # Try to locate tool using the code snippet
39999       if test -n "$ac_tool_prefix"; then
40000   for ac_prog in gobjdump objdump
40001   do
40002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
40003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
40004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40005 $as_echo_n "checking for $ac_word... " >&6; }
40006 if ${ac_cv_prog_OBJDUMP+:} false; then :
40007   $as_echo_n "(cached) " >&6
40008 else
40009   if test -n "$OBJDUMP"; then
40010   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
40011 else
40012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40013 for as_dir in $PATH
40014 do
40015   IFS=$as_save_IFS
40016   test -z "$as_dir" && as_dir=.
40017     for ac_exec_ext in '' $ac_executable_extensions; do
40018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40019     ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
40020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40021     break 2
40022   fi
40023 done
40024   done
40025 IFS=$as_save_IFS
40026 
40027 fi
40028 fi
40029 OBJDUMP=$ac_cv_prog_OBJDUMP
40030 if test -n "$OBJDUMP"; then
40031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
40032 $as_echo "$OBJDUMP" >&6; }
40033 else
40034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40035 $as_echo "no" >&6; }
40036 fi
40037 
40038 
40039     test -n "$OBJDUMP" && break
40040   done
40041 fi
40042 if test -z "$OBJDUMP"; then
40043   ac_ct_OBJDUMP=$OBJDUMP
40044   for ac_prog in gobjdump objdump
40045 do
40046   # Extract the first word of "$ac_prog", so it can be a program name with args.
40047 set dummy $ac_prog; ac_word=$2
40048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40049 $as_echo_n "checking for $ac_word... " >&6; }
40050 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
40051   $as_echo_n "(cached) " >&6
40052 else
40053   if test -n "$ac_ct_OBJDUMP"; then
40054   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
40055 else
40056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40057 for as_dir in $PATH
40058 do
40059   IFS=$as_save_IFS
40060   test -z "$as_dir" && as_dir=.
40061     for ac_exec_ext in '' $ac_executable_extensions; do
40062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40063     ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
40064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40065     break 2
40066   fi
40067 done
40068   done
40069 IFS=$as_save_IFS
40070 
40071 fi
40072 fi
40073 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
40074 if test -n "$ac_ct_OBJDUMP"; then
40075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
40076 $as_echo "$ac_ct_OBJDUMP" >&6; }
40077 else
40078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40079 $as_echo "no" >&6; }
40080 fi
40081 
40082 
40083   test -n "$ac_ct_OBJDUMP" && break
40084 done
40085 
40086   if test "x$ac_ct_OBJDUMP" = x; then
40087     OBJDUMP=""
40088   else
40089     case $cross_compiling:$ac_tool_warned in
40090 yes:)
40091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40093 ac_tool_warned=yes ;;
40094 esac
40095     OBJDUMP=$ac_ct_OBJDUMP
40096   fi
40097 fi
40098 
40099     else
40100       # If it succeeded, then it was overridden by the user. We will use it
40101       # for the tool.
40102 
40103       # First remove it from the list of overridden variables, so we can test
40104       # for unknown variables in the end.
40105       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
40106 
40107       # Check if the provided tool contains a complete path.
40108       tool_specified="$OBJDUMP"
40109       tool_basename="${tool_specified##*/}"
40110       if test "x$tool_basename" = "x$tool_specified"; then
40111         # A command without a complete path is provided, search $PATH.
40112         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5
40113 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;}
40114         # Extract the first word of "$tool_basename", so it can be a program name with args.
40115 set dummy $tool_basename; ac_word=$2
40116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40117 $as_echo_n "checking for $ac_word... " >&6; }
40118 if ${ac_cv_path_OBJDUMP+:} false; then :
40119   $as_echo_n "(cached) " >&6
40120 else
40121   case $OBJDUMP in
40122   [\\/]* | ?:[\\/]*)
40123   ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path.
40124   ;;
40125   *)
40126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40127 for as_dir in $PATH
40128 do
40129   IFS=$as_save_IFS
40130   test -z "$as_dir" && as_dir=.
40131     for ac_exec_ext in '' $ac_executable_extensions; do
40132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40133     ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext"
40134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40135     break 2
40136   fi
40137 done
40138   done
40139 IFS=$as_save_IFS
40140 
40141   ;;
40142 esac
40143 fi
40144 OBJDUMP=$ac_cv_path_OBJDUMP
40145 if test -n "$OBJDUMP"; then
40146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
40147 $as_echo "$OBJDUMP" >&6; }
40148 else
40149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40150 $as_echo "no" >&6; }
40151 fi
40152 
40153 
40154         if test "x$OBJDUMP" = x; then
40155           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
40156         fi
40157       else
40158         # Otherwise we believe it is a complete path. Use it as it is.
40159         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5
40160 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;}
40161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5
40162 $as_echo_n "checking for OBJDUMP... " >&6; }
40163         if test ! -x "$tool_specified"; then
40164           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
40165 $as_echo "not found" >&6; }
40166           as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5
40167         fi
40168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
40169 $as_echo "$tool_specified" >&6; }
40170       fi
40171     fi
40172   fi
40173 
40174 
40175   if test "x$OBJDUMP" != x; then
40176     # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing.
40177 
40178   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40179 
40180   # First separate the path from the arguments. This will split at the first
40181   # space.
40182   complete="$OBJDUMP"
40183   path="${complete%% *}"
40184   tmp="$complete EOL"
40185   arguments="${tmp#* }"
40186 
40187   # Input might be given as Windows format, start by converting to
40188   # unix format.
40189   new_path=`$CYGPATH -u "$path"`
40190 
40191   # Now try to locate executable using which
40192   new_path=`$WHICH "$new_path" 2> /dev/null`
40193   # bat and cmd files are not always considered executable in cygwin causing which
40194   # to not find them
40195   if test "x$new_path" = x \
40196       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40197       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40198     new_path=`$CYGPATH -u "$path"`
40199   fi
40200   if test "x$new_path" = x; then
40201     # Oops. Which didn't find the executable.
40202     # The splitting of arguments from the executable at a space might have been incorrect,
40203     # since paths with space are more likely in Windows. Give it another try with the whole
40204     # argument.
40205     path="$complete"
40206     arguments="EOL"
40207     new_path=`$CYGPATH -u "$path"`
40208     new_path=`$WHICH "$new_path" 2> /dev/null`
40209     # bat and cmd files are not always considered executable in cygwin causing which
40210     # to not find them
40211     if test "x$new_path" = x \
40212         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40213         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40214       new_path=`$CYGPATH -u "$path"`
40215     fi
40216     if test "x$new_path" = x; then
40217       # It's still not found. Now this is an unrecoverable error.
40218       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
40219 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
40220       has_space=`$ECHO "$complete" | $GREP " "`
40221       if test "x$has_space" != x; then
40222         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40223 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40224       fi
40225       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40226     fi
40227   fi
40228 
40229   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
40230   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
40231   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
40232   # "foo.exe" is OK but "foo" is an error.
40233   #
40234   # This test is therefore slightly more accurate than "test -f" to check for file presence.
40235   # It is also a way to make sure we got the proper file name for the real test later on.
40236   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
40237   if test "x$test_shortpath" = x; then
40238     # Short path failed, file does not exist as specified.
40239     # Try adding .exe or .cmd
40240     if test -f "${new_path}.exe"; then
40241       input_to_shortpath="${new_path}.exe"
40242     elif test -f "${new_path}.cmd"; then
40243       input_to_shortpath="${new_path}.cmd"
40244     else
40245       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5
40246 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;}
40247       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
40248 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
40249       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40250     fi
40251   else
40252     input_to_shortpath="$new_path"
40253   fi
40254 
40255   # Call helper function which possibly converts this using DOS-style short mode.
40256   # If so, the updated path is stored in $new_path.
40257   new_path="$input_to_shortpath"
40258 
40259   input_path="$input_to_shortpath"
40260   # Check if we need to convert this using DOS-style short mode. If the path
40261   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40262   # take no chances and rewrite it.
40263   # Note: m4 eats our [], so we need to use [ and ] instead.
40264   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
40265   if test "x$has_forbidden_chars" != x; then
40266     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40267     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
40268     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
40269     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
40270       # Going to short mode and back again did indeed matter. Since short mode is
40271       # case insensitive, let's make it lowercase to improve readability.
40272       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40273       # Now convert it back to Unix-stile (cygpath)
40274       input_path=`$CYGPATH -u "$shortmode_path"`
40275       new_path="$input_path"
40276     fi
40277   fi
40278 
40279   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
40280   if test "x$test_cygdrive_prefix" = x; then
40281     # As a simple fix, exclude /usr/bin since it's not a real path.
40282     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
40283       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
40284       # a path prefixed by /cygdrive for fixpath to work.
40285       new_path="$CYGWIN_ROOT_PATH$input_path"
40286     fi
40287   fi
40288 
40289   # remove trailing .exe if any
40290   new_path="${new_path/%.exe/}"
40291 
40292   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40293 
40294   # First separate the path from the arguments. This will split at the first
40295   # space.
40296   complete="$OBJDUMP"
40297   path="${complete%% *}"
40298   tmp="$complete EOL"
40299   arguments="${tmp#* }"
40300 
40301   # Input might be given as Windows format, start by converting to
40302   # unix format.
40303   new_path="$path"
40304 
40305   windows_path="$new_path"
40306   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40307     unix_path=`$CYGPATH -u "$windows_path"`
40308     new_path="$unix_path"
40309   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40310     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40311     new_path="$unix_path"
40312   fi
40313 
40314 
40315   # Now try to locate executable using which
40316   new_path=`$WHICH "$new_path" 2> /dev/null`
40317 
40318   if test "x$new_path" = x; then
40319     # Oops. Which didn't find the executable.
40320     # The splitting of arguments from the executable at a space might have been incorrect,
40321     # since paths with space are more likely in Windows. Give it another try with the whole
40322     # argument.
40323     path="$complete"
40324     arguments="EOL"
40325     new_path="$path"
40326 
40327   windows_path="$new_path"
40328   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40329     unix_path=`$CYGPATH -u "$windows_path"`
40330     new_path="$unix_path"
40331   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40332     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40333     new_path="$unix_path"
40334   fi
40335 
40336 
40337     new_path=`$WHICH "$new_path" 2> /dev/null`
40338 
40339     if test "x$new_path" = x; then
40340       # It's still not found. Now this is an unrecoverable error.
40341       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
40342 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
40343       has_space=`$ECHO "$complete" | $GREP " "`
40344       if test "x$has_space" != x; then
40345         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40346 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40347       fi
40348       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40349     fi
40350   fi
40351 
40352   # Now new_path has a complete unix path to the binary
40353   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
40354     # Keep paths in /bin as-is, but remove trailing .exe if any
40355     new_path="${new_path/%.exe/}"
40356     # Do not save /bin paths to all_fixpath_prefixes!
40357   else
40358     # Not in mixed or Windows style, start by that.
40359     new_path=`cmd //c echo $new_path`
40360 
40361   input_path="$new_path"
40362   # Check if we need to convert this using DOS-style short mode. If the path
40363   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40364   # take no chances and rewrite it.
40365   # Note: m4 eats our [], so we need to use [ and ] instead.
40366   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
40367   if test "x$has_forbidden_chars" != x; then
40368     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40369     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40370   fi
40371 
40372     # Output is in $new_path
40373 
40374   windows_path="$new_path"
40375   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40376     unix_path=`$CYGPATH -u "$windows_path"`
40377     new_path="$unix_path"
40378   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40379     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40380     new_path="$unix_path"
40381   fi
40382 
40383     # remove trailing .exe if any
40384     new_path="${new_path/%.exe/}"
40385 
40386     # Save the first 10 bytes of this path to the storage, so fixpath can work.
40387     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
40388   fi
40389 
40390   else
40391     # We're on a posix platform. Hooray! :)
40392     # First separate the path from the arguments. This will split at the first
40393     # space.
40394     complete="$OBJDUMP"
40395     path="${complete%% *}"
40396     tmp="$complete EOL"
40397     arguments="${tmp#* }"
40398 
40399     # Cannot rely on the command "which" here since it doesn't always work.
40400     is_absolute_path=`$ECHO "$path" | $GREP ^/`
40401     if test -z "$is_absolute_path"; then
40402       # Path to executable is not absolute. Find it.
40403       IFS_save="$IFS"
40404       IFS=:
40405       for p in $PATH; do
40406         if test -f "$p/$path" && test -x "$p/$path"; then
40407           new_path="$p/$path"
40408           break
40409         fi
40410       done
40411       IFS="$IFS_save"
40412     else
40413       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJDUMP (as $path) failed, using $path directly." >&5
40414 $as_echo "$as_me: Resolving OBJDUMP (as $path) failed, using $path directly." >&6;}
40415       new_path="$path"
40416     fi
40417 
40418     if test "x$new_path" = x; then
40419       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
40420 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
40421       has_space=`$ECHO "$complete" | $GREP " "`
40422       if test "x$has_space" != x; then
40423         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
40424 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
40425       fi
40426       as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
40427     fi
40428   fi
40429 
40430   # Now join together the path and the arguments once again
40431   if test "x$arguments" != xEOL; then
40432     new_complete="$new_path ${arguments% *}"
40433   else
40434     new_complete="$new_path"
40435   fi
40436 
40437   if test "x$complete" != "x$new_complete"; then
40438     OBJDUMP="$new_complete"
40439     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
40440 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
40441   fi
40442 
40443   fi
40444 
40445   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
40446 
40447 
40448   # Publish this variable in the help.
40449 
40450 
40451   if test "x$LIPO" = x; then
40452     # The variable is not set by user, try to locate tool using the code snippet
40453     for ac_prog in lipo
40454 do
40455   # Extract the first word of "$ac_prog", so it can be a program name with args.
40456 set dummy $ac_prog; ac_word=$2
40457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40458 $as_echo_n "checking for $ac_word... " >&6; }
40459 if ${ac_cv_path_LIPO+:} false; then :
40460   $as_echo_n "(cached) " >&6
40461 else
40462   case $LIPO in
40463   [\\/]* | ?:[\\/]*)
40464   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
40465   ;;
40466   *)
40467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40468 for as_dir in $PATH
40469 do
40470   IFS=$as_save_IFS
40471   test -z "$as_dir" && as_dir=.
40472     for ac_exec_ext in '' $ac_executable_extensions; do
40473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40474     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
40475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40476     break 2
40477   fi
40478 done
40479   done
40480 IFS=$as_save_IFS
40481 
40482   ;;
40483 esac
40484 fi
40485 LIPO=$ac_cv_path_LIPO
40486 if test -n "$LIPO"; then
40487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
40488 $as_echo "$LIPO" >&6; }
40489 else
40490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40491 $as_echo "no" >&6; }
40492 fi
40493 
40494 
40495   test -n "$LIPO" && break
40496 done
40497 
40498   else
40499     # The variable is set, but is it from the command line or the environment?
40500 
40501     # Try to remove the string !LIPO! from our list.
40502     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/}
40503     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
40504       # If it failed, the variable was not from the command line. Ignore it,
40505       # but warn the user (except for BASH, which is always set by the calling BASH).
40506       if test "xLIPO" != xBASH; then
40507         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5
40508 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;}
40509       fi
40510       # Try to locate tool using the code snippet
40511       for ac_prog in lipo
40512 do
40513   # Extract the first word of "$ac_prog", so it can be a program name with args.
40514 set dummy $ac_prog; ac_word=$2
40515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40516 $as_echo_n "checking for $ac_word... " >&6; }
40517 if ${ac_cv_path_LIPO+:} false; then :
40518   $as_echo_n "(cached) " >&6
40519 else
40520   case $LIPO in
40521   [\\/]* | ?:[\\/]*)
40522   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
40523   ;;
40524   *)
40525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40526 for as_dir in $PATH
40527 do
40528   IFS=$as_save_IFS
40529   test -z "$as_dir" && as_dir=.
40530     for ac_exec_ext in '' $ac_executable_extensions; do
40531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40532     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
40533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40534     break 2
40535   fi
40536 done
40537   done
40538 IFS=$as_save_IFS
40539 
40540   ;;
40541 esac
40542 fi
40543 LIPO=$ac_cv_path_LIPO
40544 if test -n "$LIPO"; then
40545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
40546 $as_echo "$LIPO" >&6; }
40547 else
40548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40549 $as_echo "no" >&6; }
40550 fi
40551 
40552 
40553   test -n "$LIPO" && break
40554 done
40555 
40556     else
40557       # If it succeeded, then it was overridden by the user. We will use it
40558       # for the tool.
40559 
40560       # First remove it from the list of overridden variables, so we can test
40561       # for unknown variables in the end.
40562       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
40563 
40564       # Check if the provided tool contains a complete path.
40565       tool_specified="$LIPO"
40566       tool_basename="${tool_specified##*/}"
40567       if test "x$tool_basename" = "x$tool_specified"; then
40568         # A command without a complete path is provided, search $PATH.
40569         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5
40570 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;}
40571         # Extract the first word of "$tool_basename", so it can be a program name with args.
40572 set dummy $tool_basename; ac_word=$2
40573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40574 $as_echo_n "checking for $ac_word... " >&6; }
40575 if ${ac_cv_path_LIPO+:} false; then :
40576   $as_echo_n "(cached) " >&6
40577 else
40578   case $LIPO in
40579   [\\/]* | ?:[\\/]*)
40580   ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
40581   ;;
40582   *)
40583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40584 for as_dir in $PATH
40585 do
40586   IFS=$as_save_IFS
40587   test -z "$as_dir" && as_dir=.
40588     for ac_exec_ext in '' $ac_executable_extensions; do
40589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40590     ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
40591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40592     break 2
40593   fi
40594 done
40595   done
40596 IFS=$as_save_IFS
40597 
40598   ;;
40599 esac
40600 fi
40601 LIPO=$ac_cv_path_LIPO
40602 if test -n "$LIPO"; then
40603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
40604 $as_echo "$LIPO" >&6; }
40605 else
40606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40607 $as_echo "no" >&6; }
40608 fi
40609 
40610 
40611         if test "x$LIPO" = x; then
40612           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
40613         fi
40614       else
40615         # Otherwise we believe it is a complete path. Use it as it is.
40616         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5
40617 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;}
40618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5
40619 $as_echo_n "checking for LIPO... " >&6; }
40620         if test ! -x "$tool_specified"; then
40621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
40622 $as_echo "not found" >&6; }
40623           as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5
40624         fi
40625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
40626 $as_echo "$tool_specified" >&6; }
40627       fi
40628     fi
40629   fi
40630 
40631 
40632 
40633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40634 
40635   # First separate the path from the arguments. This will split at the first
40636   # space.
40637   complete="$LIPO"
40638   path="${complete%% *}"
40639   tmp="$complete EOL"
40640   arguments="${tmp#* }"
40641 
40642   # Input might be given as Windows format, start by converting to
40643   # unix format.
40644   new_path=`$CYGPATH -u "$path"`
40645 
40646   # Now try to locate executable using which
40647   new_path=`$WHICH "$new_path" 2> /dev/null`
40648   # bat and cmd files are not always considered executable in cygwin causing which
40649   # to not find them
40650   if test "x$new_path" = x \
40651       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40652       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40653     new_path=`$CYGPATH -u "$path"`
40654   fi
40655   if test "x$new_path" = x; then
40656     # Oops. Which didn't find the executable.
40657     # The splitting of arguments from the executable at a space might have been incorrect,
40658     # since paths with space are more likely in Windows. Give it another try with the whole
40659     # argument.
40660     path="$complete"
40661     arguments="EOL"
40662     new_path=`$CYGPATH -u "$path"`
40663     new_path=`$WHICH "$new_path" 2> /dev/null`
40664     # bat and cmd files are not always considered executable in cygwin causing which
40665     # to not find them
40666     if test "x$new_path" = x \
40667         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
40668         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
40669       new_path=`$CYGPATH -u "$path"`
40670     fi
40671     if test "x$new_path" = x; then
40672       # It's still not found. Now this is an unrecoverable error.
40673       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
40674 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
40675       has_space=`$ECHO "$complete" | $GREP " "`
40676       if test "x$has_space" != x; then
40677         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40678 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40679       fi
40680       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40681     fi
40682   fi
40683 
40684   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
40685   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
40686   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
40687   # "foo.exe" is OK but "foo" is an error.
40688   #
40689   # This test is therefore slightly more accurate than "test -f" to check for file presence.
40690   # It is also a way to make sure we got the proper file name for the real test later on.
40691   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
40692   if test "x$test_shortpath" = x; then
40693     # Short path failed, file does not exist as specified.
40694     # Try adding .exe or .cmd
40695     if test -f "${new_path}.exe"; then
40696       input_to_shortpath="${new_path}.exe"
40697     elif test -f "${new_path}.cmd"; then
40698       input_to_shortpath="${new_path}.cmd"
40699     else
40700       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5
40701 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;}
40702       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
40703 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
40704       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40705     fi
40706   else
40707     input_to_shortpath="$new_path"
40708   fi
40709 
40710   # Call helper function which possibly converts this using DOS-style short mode.
40711   # If so, the updated path is stored in $new_path.
40712   new_path="$input_to_shortpath"
40713 
40714   input_path="$input_to_shortpath"
40715   # Check if we need to convert this using DOS-style short mode. If the path
40716   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40717   # take no chances and rewrite it.
40718   # Note: m4 eats our [], so we need to use [ and ] instead.
40719   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
40720   if test "x$has_forbidden_chars" != x; then
40721     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40722     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
40723     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
40724     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
40725       # Going to short mode and back again did indeed matter. Since short mode is
40726       # case insensitive, let's make it lowercase to improve readability.
40727       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40728       # Now convert it back to Unix-stile (cygpath)
40729       input_path=`$CYGPATH -u "$shortmode_path"`
40730       new_path="$input_path"
40731     fi
40732   fi
40733 
40734   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
40735   if test "x$test_cygdrive_prefix" = x; then
40736     # As a simple fix, exclude /usr/bin since it's not a real path.
40737     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
40738       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
40739       # a path prefixed by /cygdrive for fixpath to work.
40740       new_path="$CYGWIN_ROOT_PATH$input_path"
40741     fi
40742   fi
40743 
40744   # remove trailing .exe if any
40745   new_path="${new_path/%.exe/}"
40746 
40747   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40748 
40749   # First separate the path from the arguments. This will split at the first
40750   # space.
40751   complete="$LIPO"
40752   path="${complete%% *}"
40753   tmp="$complete EOL"
40754   arguments="${tmp#* }"
40755 
40756   # Input might be given as Windows format, start by converting to
40757   # unix format.
40758   new_path="$path"
40759 
40760   windows_path="$new_path"
40761   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40762     unix_path=`$CYGPATH -u "$windows_path"`
40763     new_path="$unix_path"
40764   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40765     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40766     new_path="$unix_path"
40767   fi
40768 
40769 
40770   # Now try to locate executable using which
40771   new_path=`$WHICH "$new_path" 2> /dev/null`
40772 
40773   if test "x$new_path" = x; then
40774     # Oops. Which didn't find the executable.
40775     # The splitting of arguments from the executable at a space might have been incorrect,
40776     # since paths with space are more likely in Windows. Give it another try with the whole
40777     # argument.
40778     path="$complete"
40779     arguments="EOL"
40780     new_path="$path"
40781 
40782   windows_path="$new_path"
40783   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40784     unix_path=`$CYGPATH -u "$windows_path"`
40785     new_path="$unix_path"
40786   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40787     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40788     new_path="$unix_path"
40789   fi
40790 
40791 
40792     new_path=`$WHICH "$new_path" 2> /dev/null`
40793 
40794     if test "x$new_path" = x; then
40795       # It's still not found. Now this is an unrecoverable error.
40796       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
40797 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
40798       has_space=`$ECHO "$complete" | $GREP " "`
40799       if test "x$has_space" != x; then
40800         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40801 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40802       fi
40803       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40804     fi
40805   fi
40806 
40807   # Now new_path has a complete unix path to the binary
40808   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
40809     # Keep paths in /bin as-is, but remove trailing .exe if any
40810     new_path="${new_path/%.exe/}"
40811     # Do not save /bin paths to all_fixpath_prefixes!
40812   else
40813     # Not in mixed or Windows style, start by that.
40814     new_path=`cmd //c echo $new_path`
40815 
40816   input_path="$new_path"
40817   # Check if we need to convert this using DOS-style short mode. If the path
40818   # contains just simple characters, use it. Otherwise (spaces, weird characters),
40819   # take no chances and rewrite it.
40820   # Note: m4 eats our [], so we need to use [ and ] instead.
40821   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
40822   if test "x$has_forbidden_chars" != x; then
40823     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40824     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40825   fi
40826 
40827     # Output is in $new_path
40828 
40829   windows_path="$new_path"
40830   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40831     unix_path=`$CYGPATH -u "$windows_path"`
40832     new_path="$unix_path"
40833   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40834     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40835     new_path="$unix_path"
40836   fi
40837 
40838     # remove trailing .exe if any
40839     new_path="${new_path/%.exe/}"
40840 
40841     # Save the first 10 bytes of this path to the storage, so fixpath can work.
40842     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
40843   fi
40844 
40845   else
40846     # We're on a posix platform. Hooray! :)
40847     # First separate the path from the arguments. This will split at the first
40848     # space.
40849     complete="$LIPO"
40850     path="${complete%% *}"
40851     tmp="$complete EOL"
40852     arguments="${tmp#* }"
40853 
40854     # Cannot rely on the command "which" here since it doesn't always work.
40855     is_absolute_path=`$ECHO "$path" | $GREP ^/`
40856     if test -z "$is_absolute_path"; then
40857       # Path to executable is not absolute. Find it.
40858       IFS_save="$IFS"
40859       IFS=:
40860       for p in $PATH; do
40861         if test -f "$p/$path" && test -x "$p/$path"; then
40862           new_path="$p/$path"
40863           break
40864         fi
40865       done
40866       IFS="$IFS_save"
40867     else
40868       { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving LIPO (as $path) failed, using $path directly." >&5
40869 $as_echo "$as_me: Resolving LIPO (as $path) failed, using $path directly." >&6;}
40870       new_path="$path"
40871     fi
40872 
40873     if test "x$new_path" = x; then
40874       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
40875 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
40876       has_space=`$ECHO "$complete" | $GREP " "`
40877       if test "x$has_space" != x; then
40878         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
40879 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
40880       fi
40881       as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
40882     fi
40883   fi
40884 
40885   # Now join together the path and the arguments once again
40886   if test "x$arguments" != xEOL; then
40887     new_complete="$new_path ${arguments% *}"
40888   else
40889     new_complete="$new_path"
40890   fi
40891 
40892   if test "x$complete" != "x$new_complete"; then
40893     LIPO="$new_complete"
40894     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
40895 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
40896   fi
40897 
40898   fi
40899 
40900 
40901 
40902   # Restore old path without tools dir
40903   PATH="$OLD_PATH"
40904 
40905 
40906 # FIXME: Currently we must test this after paths but before flags. Fix!
40907 
40908 # And we can test some aspects on the target using configure macros.
40909 
40910 
40911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
40912 $as_echo_n "checking for ANSI C header files... " >&6; }
40913 if ${ac_cv_header_stdc+:} false; then :
40914   $as_echo_n "(cached) " >&6
40915 else
40916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40917 /* end confdefs.h.  */
40918 #include <stdlib.h>
40919 #include <stdarg.h>
40920 #include <string.h>
40921 #include <float.h>
40922 
40923 int
40924 main ()
40925 {
40926 
40927   ;
40928   return 0;
40929 }
40930 _ACEOF
40931 if ac_fn_cxx_try_compile "$LINENO"; then :
40932   ac_cv_header_stdc=yes
40933 else
40934   ac_cv_header_stdc=no
40935 fi
40936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40937 
40938 if test $ac_cv_header_stdc = yes; then
40939   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
40940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40941 /* end confdefs.h.  */
40942 #include <string.h>
40943 
40944 _ACEOF
40945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40946   $EGREP "memchr" >/dev/null 2>&1; then :
40947 
40948 else
40949   ac_cv_header_stdc=no
40950 fi
40951 rm -f conftest*
40952 
40953 fi
40954 
40955 if test $ac_cv_header_stdc = yes; then
40956   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
40957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40958 /* end confdefs.h.  */
40959 #include <stdlib.h>
40960 
40961 _ACEOF
40962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40963   $EGREP "free" >/dev/null 2>&1; then :
40964 
40965 else
40966   ac_cv_header_stdc=no
40967 fi
40968 rm -f conftest*
40969 
40970 fi
40971 
40972 if test $ac_cv_header_stdc = yes; then
40973   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
40974   if test "$cross_compiling" = yes; then :
40975   :
40976 else
40977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40978 /* end confdefs.h.  */
40979 #include <ctype.h>
40980 #include <stdlib.h>
40981 #if ((' ' & 0x0FF) == 0x020)
40982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
40983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
40984 #else
40985 # define ISLOWER(c) \
40986                    (('a' <= (c) && (c) <= 'i') \
40987                      || ('j' <= (c) && (c) <= 'r') \
40988                      || ('s' <= (c) && (c) <= 'z'))
40989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
40990 #endif
40991 
40992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
40993 int
40994 main ()
40995 {
40996   int i;
40997   for (i = 0; i < 256; i++)
40998     if (XOR (islower (i), ISLOWER (i))
40999         || toupper (i) != TOUPPER (i))
41000       return 2;
41001   return 0;
41002 }
41003 _ACEOF
41004 if ac_fn_cxx_try_run "$LINENO"; then :
41005 
41006 else
41007   ac_cv_header_stdc=no
41008 fi
41009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41010   conftest.$ac_objext conftest.beam conftest.$ac_ext
41011 fi
41012 
41013 fi
41014 fi
41015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
41016 $as_echo "$ac_cv_header_stdc" >&6; }
41017 if test $ac_cv_header_stdc = yes; then
41018 
41019 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
41020 
41021 fi
41022 
41023 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
41024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
41025                   inttypes.h stdint.h unistd.h
41026 do :
41027   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41028 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
41029 "
41030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41031   cat >>confdefs.h <<_ACEOF
41032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41033 _ACEOF
41034 
41035 fi
41036 
41037 done
41038 
41039 
41040 
41041   ###############################################################################
41042   #
41043   # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
41044   # (The JVM can use 32 or 64 bit Java pointers but that decision
41045   # is made at runtime.)
41046   #
41047 
41048   if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then
41049     # Always specify -m flag on Solaris
41050     # And -q on AIX because otherwise the compiler produces 32-bit objects by default
41051 
41052   # When we add flags to the "official" CFLAGS etc, we need to
41053   # keep track of these additions in ADDED_CFLAGS etc. These
41054   # will later be checked to make sure only controlled additions
41055   # have been made to CFLAGS etc.
41056   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41057   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41058   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41059 
41060   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
41061   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
41062   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
41063 
41064   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
41065   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
41066   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
41067 
41068   elif test "x$COMPILE_TYPE" = xreduced; then
41069     if test "x$OPENJDK_TARGET_OS" != xwindows; then
41070       # Specify -m if running reduced on other Posix platforms
41071 
41072   # When we add flags to the "official" CFLAGS etc, we need to
41073   # keep track of these additions in ADDED_CFLAGS etc. These
41074   # will later be checked to make sure only controlled additions
41075   # have been made to CFLAGS etc.
41076   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41077   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41078   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41079 
41080   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
41081   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
41082   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
41083 
41084   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
41085   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
41086   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
41087 
41088     fi
41089   fi
41090 
41091   # Make compilation sanity check
41092   for ac_header in stdio.h
41093 do :
41094   ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
41095 if test "x$ac_cv_header_stdio_h" = xyes; then :
41096   cat >>confdefs.h <<_ACEOF
41097 #define HAVE_STDIO_H 1
41098 _ACEOF
41099 
41100 else
41101 
41102     { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
41103 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
41104     if test "x$COMPILE_TYPE" = xreduced; then
41105       { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
41106 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
41107     elif test "x$COMPILE_TYPE" = xcross; then
41108       { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
41109 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
41110     fi
41111     as_fn_error $? "Cannot continue." "$LINENO" 5
41112 
41113 fi
41114 
41115 done
41116 
41117 
41118   # The cast to long int works around a bug in the HP C Compiler
41119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41121 # This bug is HP SR number 8606223364.
41122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
41123 $as_echo_n "checking size of int *... " >&6; }
41124 if ${ac_cv_sizeof_int_p+:} false; then :
41125   $as_echo_n "(cached) " >&6
41126 else
41127   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
41128 
41129 else
41130   if test "$ac_cv_type_int_p" = yes; then
41131      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41133 as_fn_error 77 "cannot compute sizeof (int *)
41134 See \`config.log' for more details" "$LINENO" 5; }
41135    else
41136      ac_cv_sizeof_int_p=0
41137    fi
41138 fi
41139 
41140 fi
41141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
41142 $as_echo "$ac_cv_sizeof_int_p" >&6; }
41143 
41144 
41145 
41146 cat >>confdefs.h <<_ACEOF
41147 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
41148 _ACEOF
41149 
41150 
41151 
41152   # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*'
41153   if test "x$ac_cv_sizeof_int_p" = x; then
41154     # The test failed, lets stick to the assumed value.
41155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&5
41156 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;}
41157   else
41158     TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
41159 
41160     if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
41161       # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects
41162       # Let's try to implicitely set the compilers target architecture and retry the test
41163       { $as_echo "$as_me:${as_lineno-$LINENO}: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&5
41164 $as_echo "$as_me: The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)." >&6;}
41165       { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5
41166 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;}
41167 
41168   # When we add flags to the "official" CFLAGS etc, we need to
41169   # keep track of these additions in ADDED_CFLAGS etc. These
41170   # will later be checked to make sure only controlled additions
41171   # have been made to CFLAGS etc.
41172   ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41173   ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41174   ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41175 
41176   CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
41177   CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
41178   LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
41179 
41180   CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
41181   CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
41182   LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
41183 
41184 
41185       # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value!
41186       unset ac_cv_sizeof_int_p
41187       # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF
41188       cat >>confdefs.h <<_ACEOF
41189 #undef SIZEOF_INT_P
41190 _ACEOF
41191 
41192       # The cast to long int works around a bug in the HP C Compiler
41193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41195 # This bug is HP SR number 8606223364.
41196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
41197 $as_echo_n "checking size of int *... " >&6; }
41198 if ${ac_cv_sizeof_int_p+:} false; then :
41199   $as_echo_n "(cached) " >&6
41200 else
41201   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
41202 
41203 else
41204   if test "$ac_cv_type_int_p" = yes; then
41205      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41207 as_fn_error 77 "cannot compute sizeof (int *)
41208 See \`config.log' for more details" "$LINENO" 5; }
41209    else
41210      ac_cv_sizeof_int_p=0
41211    fi
41212 fi
41213 
41214 fi
41215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
41216 $as_echo "$ac_cv_sizeof_int_p" >&6; }
41217 
41218 
41219 
41220 cat >>confdefs.h <<_ACEOF
41221 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
41222 _ACEOF
41223 
41224 
41225 
41226       TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
41227 
41228       if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
41229         as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5
41230       fi
41231     fi
41232   fi
41233 
41234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
41235 $as_echo_n "checking for target address size... " >&6; }
41236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
41237 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
41238 
41239 
41240   ###############################################################################
41241   #
41242   # Is the target little of big endian?
41243   #
41244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
41245 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
41246 if ${ac_cv_c_bigendian+:} false; then :
41247   $as_echo_n "(cached) " >&6
41248 else
41249   ac_cv_c_bigendian=unknown
41250     # See if we're dealing with a universal compiler.
41251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41252 /* end confdefs.h.  */
41253 #ifndef __APPLE_CC__
41254                not a universal capable compiler
41255              #endif
41256              typedef int dummy;
41257 
41258 _ACEOF
41259 if ac_fn_cxx_try_compile "$LINENO"; then :
41260 
41261         # Check for potential -arch flags.  It is not universal unless
41262         # there are at least two -arch flags with different values.
41263         ac_arch=
41264         ac_prev=
41265         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
41266          if test -n "$ac_prev"; then
41267            case $ac_word in
41268              i?86 | x86_64 | ppc | ppc64)
41269                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
41270                  ac_arch=$ac_word
41271                else
41272                  ac_cv_c_bigendian=universal
41273                  break
41274                fi
41275                ;;
41276            esac
41277            ac_prev=
41278          elif test "x$ac_word" = "x-arch"; then
41279            ac_prev=arch
41280          fi
41281        done
41282 fi
41283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41284     if test $ac_cv_c_bigendian = unknown; then
41285       # See if sys/param.h defines the BYTE_ORDER macro.
41286       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41287 /* end confdefs.h.  */
41288 #include <sys/types.h>
41289              #include <sys/param.h>
41290 
41291 int
41292 main ()
41293 {
41294 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
41295                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
41296                      && LITTLE_ENDIAN)
41297               bogus endian macros
41298              #endif
41299 
41300   ;
41301   return 0;
41302 }
41303 _ACEOF
41304 if ac_fn_cxx_try_compile "$LINENO"; then :
41305   # It does; now see whether it defined to BIG_ENDIAN or not.
41306          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41307 /* end confdefs.h.  */
41308 #include <sys/types.h>
41309                 #include <sys/param.h>
41310 
41311 int
41312 main ()
41313 {
41314 #if BYTE_ORDER != BIG_ENDIAN
41315                  not big endian
41316                 #endif
41317 
41318   ;
41319   return 0;
41320 }
41321 _ACEOF
41322 if ac_fn_cxx_try_compile "$LINENO"; then :
41323   ac_cv_c_bigendian=yes
41324 else
41325   ac_cv_c_bigendian=no
41326 fi
41327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41328 fi
41329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41330     fi
41331     if test $ac_cv_c_bigendian = unknown; then
41332       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
41333       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41334 /* end confdefs.h.  */
41335 #include <limits.h>
41336 
41337 int
41338 main ()
41339 {
41340 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
41341               bogus endian macros
41342              #endif
41343 
41344   ;
41345   return 0;
41346 }
41347 _ACEOF
41348 if ac_fn_cxx_try_compile "$LINENO"; then :
41349   # It does; now see whether it defined to _BIG_ENDIAN or not.
41350          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41351 /* end confdefs.h.  */
41352 #include <limits.h>
41353 
41354 int
41355 main ()
41356 {
41357 #ifndef _BIG_ENDIAN
41358                  not big endian
41359                 #endif
41360 
41361   ;
41362   return 0;
41363 }
41364 _ACEOF
41365 if ac_fn_cxx_try_compile "$LINENO"; then :
41366   ac_cv_c_bigendian=yes
41367 else
41368   ac_cv_c_bigendian=no
41369 fi
41370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41371 fi
41372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41373     fi
41374     if test $ac_cv_c_bigendian = unknown; then
41375       # Compile a test program.
41376       if test "$cross_compiling" = yes; then :
41377   # Try to guess by grepping values from an object file.
41378          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41379 /* end confdefs.h.  */
41380 short int ascii_mm[] =
41381                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
41382                 short int ascii_ii[] =
41383                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
41384                 int use_ascii (int i) {
41385                   return ascii_mm[i] + ascii_ii[i];
41386                 }
41387                 short int ebcdic_ii[] =
41388                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
41389                 short int ebcdic_mm[] =
41390                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
41391                 int use_ebcdic (int i) {
41392                   return ebcdic_mm[i] + ebcdic_ii[i];
41393                 }
41394                 extern int foo;
41395 
41396 int
41397 main ()
41398 {
41399 return use_ascii (foo) == use_ebcdic (foo);
41400   ;
41401   return 0;
41402 }
41403 _ACEOF
41404 if ac_fn_cxx_try_compile "$LINENO"; then :
41405   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
41406               ac_cv_c_bigendian=yes
41407             fi
41408             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
41409               if test "$ac_cv_c_bigendian" = unknown; then
41410                 ac_cv_c_bigendian=no
41411               else
41412                 # finding both strings is unlikely to happen, but who knows?
41413                 ac_cv_c_bigendian=unknown
41414               fi
41415             fi
41416 fi
41417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41418 else
41419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41420 /* end confdefs.h.  */
41421 $ac_includes_default
41422 int
41423 main ()
41424 {
41425 
41426              /* Are we little or big endian?  From Harbison&Steele.  */
41427              union
41428              {
41429                long int l;
41430                char c[sizeof (long int)];
41431              } u;
41432              u.l = 1;
41433              return u.c[sizeof (long int) - 1] == 1;
41434 
41435   ;
41436   return 0;
41437 }
41438 _ACEOF
41439 if ac_fn_cxx_try_run "$LINENO"; then :
41440   ac_cv_c_bigendian=no
41441 else
41442   ac_cv_c_bigendian=yes
41443 fi
41444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41445   conftest.$ac_objext conftest.beam conftest.$ac_ext
41446 fi
41447 
41448     fi
41449 fi
41450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
41451 $as_echo "$ac_cv_c_bigendian" >&6; }
41452  case $ac_cv_c_bigendian in #(
41453    yes)
41454      ENDIAN="big";; #(
41455    no)
41456      ENDIAN="little" ;; #(
41457    universal)
41458      ENDIAN="universal_endianness"
41459      ;; #(
41460    *)
41461      ENDIAN="unknown" ;;
41462  esac
41463 
41464 
41465   if test "x$ENDIAN" = xuniversal_endianness; then
41466     as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5
41467   fi
41468   if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then
41469     as_fn_error $? "The tested endian in the target ($ENDIAN) differs from the endian expected to be found in the target ($OPENJDK_TARGET_CPU_ENDIAN)" "$LINENO" 5
41470   fi
41471 
41472 
41473 # Configure flags for the tools
41474 
41475 
41476   ###############################################################################
41477   #
41478   # How to compile shared libraries.
41479   #
41480 
41481   if test "x$GCC" = xyes; then
41482     COMPILER_NAME=gcc
41483     PICFLAG="-fPIC"
41484     LIBRARY_PREFIX=lib
41485     SHARED_LIBRARY='lib$1.so'
41486     STATIC_LIBRARY='lib$1.a'
41487     SHARED_LIBRARY_FLAGS="-shared"
41488     SHARED_LIBRARY_SUFFIX='.so'
41489     STATIC_LIBRARY_SUFFIX='.a'
41490     OBJ_SUFFIX='.o'
41491     EXE_SUFFIX=''
41492     SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
41493     SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
41494     C_FLAG_REORDER=''
41495     CXX_FLAG_REORDER=''
41496     SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
41497     SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
41498     LD="$CC"
41499     LDEXE="$CC"
41500     LDCXX="$CXX"
41501     LDEXECXX="$CXX"
41502     POST_STRIP_CMD="$STRIP -g"
41503 
41504     # Linking is different on MacOSX
41505     if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41506       # Might change in the future to clang.
41507       COMPILER_NAME=gcc
41508       SHARED_LIBRARY='lib$1.dylib'
41509       SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
41510       SHARED_LIBRARY_SUFFIX='.dylib'
41511       EXE_SUFFIX=''
41512       SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
41513       SET_SHARED_LIBRARY_MAPFILE=''
41514       SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
41515       SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
41516       POST_STRIP_CMD="$STRIP -S"
41517     fi
41518   else
41519     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41520       # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler
41521       COMPILER_NAME=ossc
41522       PICFLAG="-KPIC"
41523       LIBRARY_PREFIX=lib
41524       SHARED_LIBRARY='lib$1.so'
41525       STATIC_LIBRARY='lib$1.a'
41526       SHARED_LIBRARY_FLAGS="-G"
41527       SHARED_LIBRARY_SUFFIX='.so'
41528       STATIC_LIBRARY_SUFFIX='.a'
41529       OBJ_SUFFIX='.o'
41530       EXE_SUFFIX=''
41531       SET_SHARED_LIBRARY_NAME=''
41532       SET_SHARED_LIBRARY_MAPFILE='-M$1'
41533       C_FLAG_REORDER='-xF'
41534       CXX_FLAG_REORDER='-xF'
41535       SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1'
41536       SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN"
41537       CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
41538       CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
41539       CFLAGS_JDKLIB_EXTRA='-xstrconst'
41540       POST_STRIP_CMD="$STRIP -x"
41541       POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
41542     fi
41543     if test "x$OPENJDK_TARGET_OS" = xaix; then
41544         COMPILER_NAME=xlc
41545         PICFLAG="-qpic=large"
41546         LIBRARY_PREFIX=lib
41547         SHARED_LIBRARY='lib$1.so'
41548         STATIC_LIBRARY='lib$1.a'
41549         SHARED_LIBRARY_FLAGS="-qmkshrobj"
41550         SHARED_LIBRARY_SUFFIX='.so'
41551         STATIC_LIBRARY_SUFFIX='.a'
41552         OBJ_SUFFIX='.o'
41553         EXE_SUFFIX=''
41554         SET_SHARED_LIBRARY_NAME=''
41555         SET_SHARED_LIBRARY_MAPFILE=''
41556         C_FLAG_REORDER=''
41557         CXX_FLAG_REORDER=''
41558         SET_SHARED_LIBRARY_ORIGIN=''
41559         SET_EXECUTABLE_ORIGIN=""
41560         CFLAGS_JDK=""
41561         CXXFLAGS_JDK=""
41562         CFLAGS_JDKLIB_EXTRA=''
41563         POST_STRIP_CMD="$STRIP -X32_64"
41564         POST_MCS_CMD=""
41565     fi
41566     if test "x$OPENJDK_TARGET_OS" = xwindows; then
41567       # If it is not gcc, then assume it is the MS Visual Studio compiler
41568       COMPILER_NAME=cl
41569       PICFLAG=""
41570       LIBRARY_PREFIX=
41571       SHARED_LIBRARY='$1.dll'
41572       STATIC_LIBRARY='$1.lib'
41573       SHARED_LIBRARY_FLAGS="-LD"
41574       SHARED_LIBRARY_SUFFIX='.dll'
41575       STATIC_LIBRARY_SUFFIX='.lib'
41576       OBJ_SUFFIX='.obj'
41577       EXE_SUFFIX='.exe'
41578       SET_SHARED_LIBRARY_NAME=''
41579       SET_SHARED_LIBRARY_MAPFILE=''
41580       SET_SHARED_LIBRARY_ORIGIN=''
41581       SET_EXECUTABLE_ORIGIN=''
41582     fi
41583   fi
41584 
41585 
41586 
41587 
41588 
41589 
41590 
41591 
41592 
41593 
41594 
41595 
41596 
41597 
41598 
41599 
41600 
41601 
41602 
41603   # The (cross) compiler is now configured, we can now test capabilities
41604   # of the target platform.
41605 
41606 
41607 
41608   ###############################################################################
41609   #
41610   # Setup the opt flags for different compilers
41611   # and different operating systems.
41612   #
41613 
41614   #
41615   # NOTE: check for -mstackrealign needs to be below potential addition of -m32
41616   #
41617   if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" = xmacosx; then
41618     # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
41619     # While waiting for a better solution, the current workaround is to use -mstackrealign.
41620     CFLAGS="$CFLAGS -mstackrealign"
41621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5
41622 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; }
41623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41624 /* end confdefs.h.  */
41625 int main() { return 0; }
41626 _ACEOF
41627 if ac_fn_cxx_try_link "$LINENO"; then :
41628 
41629           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41630 $as_echo "yes" >&6; }
41631 
41632 else
41633 
41634           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41635 $as_echo "no" >&6; }
41636           as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
41637 
41638 
41639 fi
41640 rm -f core conftest.err conftest.$ac_objext \
41641     conftest$ac_exeext conftest.$ac_ext
41642   fi
41643 
41644   C_FLAG_DEPS="-MMD -MF"
41645   CXX_FLAG_DEPS="-MMD -MF"
41646 
41647   case $COMPILER_TYPE in
41648     CC )
41649       case $COMPILER_NAME in
41650         gcc )
41651           case $OPENJDK_TARGET_OS in
41652             macosx )
41653               # On MacOSX we optimize for size, something
41654               # we should do for all platforms?
41655               C_O_FLAG_HI="-Os"
41656               C_O_FLAG_NORM="-Os"
41657               C_O_FLAG_NONE=""
41658               ;;
41659             *)
41660               C_O_FLAG_HI="-O3"
41661               C_O_FLAG_NORM="-O2"
41662               C_O_FLAG_NONE="-O0"
41663               ;;
41664           esac
41665           CXX_O_FLAG_HI="$C_O_FLAG_HI"
41666           CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
41667           CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
41668           CFLAGS_DEBUG_SYMBOLS="-g"
41669           CXXFLAGS_DEBUG_SYMBOLS="-g"
41670           if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
41671             CFLAGS_DEBUG_SYMBOLS="-g1"
41672             CXXFLAGS_DEBUG_SYMBOLS="-g1"
41673           fi
41674           ;;
41675         ossc )
41676           #
41677           # Forte has different names for this with their C++ compiler...
41678           #
41679           C_FLAG_DEPS="-xMMD -xMF"
41680           CXX_FLAG_DEPS="-xMMD -xMF"
41681 
41682           # Extra options used with HIGHEST
41683           #
41684           # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
41685           #          done with care, there are some assumptions below that need to
41686           #          be understood about the use of pointers, and IEEE behavior.
41687           #
41688           # Use non-standard floating point mode (not IEEE 754)
41689           CC_HIGHEST="$CC_HIGHEST -fns"
41690           # Do some simplification of floating point arithmetic (not IEEE 754)
41691           CC_HIGHEST="$CC_HIGHEST -fsimple"
41692           # Use single precision floating point with 'float'
41693           CC_HIGHEST="$CC_HIGHEST -fsingle"
41694           # Assume memory references via basic pointer types do not alias
41695           #   (Source with excessing pointer casting and data access with mixed
41696           #    pointer types are not recommended)
41697           CC_HIGHEST="$CC_HIGHEST -xalias_level=basic"
41698           # Use intrinsic or inline versions for math/std functions
41699           #   (If you expect perfect errno behavior, do not use this)
41700           CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all"
41701           # Loop data dependency optimizations (need -xO3 or higher)
41702           CC_HIGHEST="$CC_HIGHEST -xdepend"
41703           # Pointer parameters to functions do not overlap
41704           #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
41705           #    If you pass in multiple pointers to the same data, do not use this)
41706           CC_HIGHEST="$CC_HIGHEST -xrestrict"
41707           # Inline some library routines
41708           #   (If you expect perfect errno behavior, do not use this)
41709           CC_HIGHEST="$CC_HIGHEST -xlibmil"
41710           # Use optimized math routines
41711           #   (If you expect perfect errno behavior, do not use this)
41712           #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
41713           #CC_HIGHEST="$CC_HIGHEST -xlibmopt"
41714 
41715           if test "x$OPENJDK_TARGET_CPU" = xsparc; then
41716             CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
41717             CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
41718           fi
41719 
41720           case $OPENJDK_TARGET_CPU_ARCH in
41721             x86)
41722               C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr"
41723               C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr"
41724               C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr"
41725               C_O_FLAG_NONE="-xregs=no%frameptr"
41726               CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr"
41727               CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr"
41728               CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr"
41729               CXX_O_FLAG_NONE="-xregs=no%frameptr"
41730               if test "x$OPENJDK_TARGET_CPU" = xx86; then
41731                 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
41732                 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
41733               fi
41734               ;;
41735             sparc)
41736               CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
41737               CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
41738               C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
41739               C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
41740               C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
41741               C_O_FLAG_NONE=""
41742               CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
41743               CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
41744               CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
41745               CXX_O_FLAG_NONE=""
41746               ;;
41747           esac
41748 
41749           CFLAGS_DEBUG_SYMBOLS="-g -xs"
41750           CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
41751           ;;
41752         xlc )
41753           C_FLAG_DEPS="-qmakedep=gcc -MF"
41754           CXX_FLAG_DEPS="-qmakedep=gcc -MF"
41755           C_O_FLAG_HIGHEST="-O3"
41756           C_O_FLAG_HI="-O3 -qstrict"
41757           C_O_FLAG_NORM="-O2"
41758           C_O_FLAG_NONE=""
41759           CXX_O_FLAG_HIGHEST="-O3"
41760           CXX_O_FLAG_HI="-O3 -qstrict"
41761           CXX_O_FLAG_NORM="-O2"
41762           CXX_O_FLAG_NONE=""
41763           CFLAGS_DEBUG_SYMBOLS="-g"
41764           CXXFLAGS_DEBUG_SYMBOLS="-g"
41765           LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
41766           CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
41767           CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
41768           ;;
41769       esac
41770       ;;
41771     CL )
41772       C_O_FLAG_HIGHEST="-O2"
41773       C_O_FLAG_HI="-O1"
41774       C_O_FLAG_NORM="-O1"
41775       C_O_FLAG_NONE="-Od"
41776       CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
41777       CXX_O_FLAG_HI="$C_O_FLAG_HI"
41778       CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
41779       CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
41780       ;;
41781   esac
41782 
41783   if test -z "$C_O_FLAG_HIGHEST"; then
41784     C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
41785   fi
41786 
41787   if test -z "$CXX_O_FLAG_HIGHEST"; then
41788     CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
41789   fi
41790 
41791 
41792 
41793 
41794 
41795 
41796 
41797 
41798 
41799 
41800 
41801 
41802 
41803 
41804   if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
41805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
41806 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
41807   fi
41808 
41809   if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
41810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
41811 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
41812   fi
41813 
41814   if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
41815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
41816 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
41817   fi
41818 
41819 
41820 # Check whether --with-extra-cflags was given.
41821 if test "${with_extra_cflags+set}" = set; then :
41822   withval=$with_extra_cflags;
41823 fi
41824 
41825 
41826 
41827 # Check whether --with-extra-cxxflags was given.
41828 if test "${with_extra_cxxflags+set}" = set; then :
41829   withval=$with_extra_cxxflags;
41830 fi
41831 
41832 
41833 
41834 # Check whether --with-extra-ldflags was given.
41835 if test "${with_extra_ldflags+set}" = set; then :
41836   withval=$with_extra_ldflags;
41837 fi
41838 
41839 
41840   CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags"
41841   CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags"
41842   LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags"
41843 
41844   # Hotspot needs these set in their legacy form
41845   LEGACY_EXTRA_CFLAGS=$with_extra_cflags
41846   LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags
41847   LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags
41848 
41849 
41850 
41851 
41852 
41853   ###############################################################################
41854   #
41855   # Now setup the CFLAGS and LDFLAGS for the JDK build.
41856   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
41857   #
41858   case $COMPILER_NAME in
41859     gcc )
41860       CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \
41861       -pipe \
41862       -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
41863       case $OPENJDK_TARGET_CPU_ARCH in
41864         arm )
41865           # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
41866           CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41867           ;;
41868         ppc )
41869           # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing
41870           ;;
41871         * )
41872           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
41873           CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41874           ;;
41875       esac
41876       ;;
41877     ossc )
41878       CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
41879       case $OPENJDK_TARGET_CPU_ARCH in
41880         x86 )
41881           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
41882           CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
41883           ;;
41884       esac
41885 
41886       CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
41887       CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
41888 
41889       LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
41890       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
41891       ;;
41892     xlc )
41893       CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41894       CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41895 
41896       LDFLAGS_JDK="$LDFLAGS_JDK"
41897       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK"
41898       ;;
41899     cl )
41900       CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
41901       -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
41902       -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
41903       -DWIN32 -DIAL"
41904       case $OPENJDK_TARGET_CPU in
41905         x86 )
41906           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
41907           ;;
41908         x86_64 )
41909           CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
41910           ;;
41911       esac
41912       ;;
41913   esac
41914 
41915   ###############################################################################
41916 
41917   # Adjust flags according to debug level.
41918   case $DEBUG_LEVEL in
41919     fastdebug )
41920       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41921       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41922       C_O_FLAG_HI="$C_O_FLAG_NORM"
41923       C_O_FLAG_NORM="$C_O_FLAG_NORM"
41924       CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
41925       CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
41926       JAVAC_FLAGS="$JAVAC_FLAGS -g"
41927       ;;
41928     slowdebug )
41929       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41930       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41931       C_O_FLAG_HI="$C_O_FLAG_NONE"
41932       C_O_FLAG_NORM="$C_O_FLAG_NONE"
41933       CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
41934       CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
41935       JAVAC_FLAGS="$JAVAC_FLAGS -g"
41936       ;;
41937   esac
41938 
41939   CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
41940 
41941   # The package path is used only on macosx?
41942   PACKAGE_PATH=/opt/local
41943 
41944 
41945   if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then
41946     # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the
41947     #   Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN
41948     #   (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
41949     #   Note: -Dmacro         is the same as    #define macro 1
41950     #         -Dmacro=        is the same as    #define macro
41951     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41952       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
41953     else
41954       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
41955     fi
41956   else
41957     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
41958   fi
41959   if test "x$OPENJDK_TARGET_OS" = xlinux; then
41960     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
41961   fi
41962   if test "x$OPENJDK_TARGET_OS" = xwindows; then
41963     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
41964   fi
41965   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41966     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
41967   fi
41968   if test "x$OPENJDK_TARGET_OS" = xaix; then
41969     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DAIX -DPPC64"
41970   fi
41971   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41972     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
41973     # Setting these parameters makes it an error to link to macosx APIs that are
41974     # newer than the given OS version and makes the linked binaries compatible even
41975     # if built on a newer version of the OS.
41976     # The expected format is X.Y.Z
41977     MACOSX_VERSION_MIN=10.7.0
41978 
41979     # The macro takes the version with no dots, ex: 1070
41980     # Let the flags variables get resolved in make for easier override on make
41981     # command line.
41982     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
41983     LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
41984   fi
41985   if test "x$OPENJDK_TARGET_OS" = xbsd; then
41986     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
41987   fi
41988   if test "x$DEBUG_LEVEL" = xrelease; then
41989     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
41990   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41991     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED"
41992   fi
41993   else
41994     CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG"
41995   fi
41996 
41997   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY"
41998   CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'"
41999 
42000   CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
42001       -I${JDK_OUTPUTDIR}/include \
42002       -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \
42003       -I${JDK_TOPDIR}/src/share/javavm/export \
42004       -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \
42005       -I${JDK_TOPDIR}/src/share/native/common \
42006       -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common"
42007 
42008   # The shared libraries are compiled using the picflag.
42009   CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
42010   CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
42011 
42012   # Executable flags
42013   CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK"
42014   CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
42015 
42016   # Now this is odd. The JDK native libraries have to link against libjvm.so
42017   # On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
42018   # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
42019   # is identical for client and server? Yes. Which is picked at runtime (client or server)?
42020   # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
42021   # libraries will link to whatever is in memory. Yuck.
42022   #
42023   # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
42024   if test "x$COMPILER_NAME" = xcl; then
42025     LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no"
42026     if test "x$OPENJDK_TARGET_CPU" = xx86; then
42027       LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
42028     fi
42029     # TODO: make -debug optional "--disable-full-debug-symbols"
42030     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
42031     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
42032     LDFLAGS_JDKLIB_SUFFIX=""
42033     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
42034       LDFLAGS_STACK_SIZE=1048576
42035     else
42036       LDFLAGS_STACK_SIZE=327680
42037     fi
42038     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
42039   else
42040     if test "x$COMPILER_NAME" = xgcc; then
42041       # If this is a --hash-style=gnu system, use --hash-style=both, why?
42042       HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
42043       if test -n "$HAS_GNU_HASH"; then
42044         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
42045       fi
42046       if test "x$OPENJDK_TARGET_OS" = xlinux; then
42047         # And since we now know that the linker is gnu, then add -z defs, to forbid
42048         # undefined symbols in object files.
42049         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs"
42050         if test "x$DEBUG_LEVEL" = "xrelease"; then
42051           # When building release libraries, tell the linker optimize them.
42052           # Should this be supplied to the OSS linker as well?
42053           LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
42054         fi
42055       fi
42056     fi
42057     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
42058         -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
42059 
42060     # On some platforms (mac) the linker warns about non existing -L dirs.
42061     # Add server first if available. Linking aginst client does not always produce the same results.
42062     # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
42063     # Default to server for other variants.
42064     if test "x$JVM_VARIANT_SERVER" = xtrue; then
42065       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
42066     elif test "x$JVM_VARIANT_CLIENT" = xtrue; then
42067       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client"
42068     elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
42069       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal"
42070     else
42071       LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
42072     fi
42073 
42074     LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm"
42075     if test "x$COMPILER_NAME" = xossc; then
42076       LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
42077     fi
42078 
42079     LDFLAGS_JDKEXE="${LDFLAGS_JDK}"
42080     if test "x$OPENJDK_TARGET_OS" = xlinux; then
42081       LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
42082     fi
42083   fi
42084 
42085 
42086 
42087 
42088 
42089 
42090 
42091 
42092 
42093 
42094 
42095 
42096 
42097 
42098 
42099   # Some Zero and Shark settings.
42100   # ZERO_ARCHFLAG tells the compiler which mode to build for
42101   case "${OPENJDK_TARGET_CPU}" in
42102     s390)
42103       ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31"
42104       ;;
42105     *)
42106       ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
42107   esac
42108 
42109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5
42110 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
42111   supports=yes
42112 
42113   saved_cflags="$CFLAGS"
42114   CFLAGS="$CFLAGS $ZERO_ARCHFLAG"
42115   ac_ext=c
42116 ac_cpp='$CPP $CPPFLAGS'
42117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42120 
42121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42122 /* end confdefs.h.  */
42123 int i;
42124 _ACEOF
42125 if ac_fn_c_try_compile "$LINENO"; then :
42126 
42127 else
42128   supports=no
42129 fi
42130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42131   ac_ext=cpp
42132 ac_cpp='$CXXCPP $CPPFLAGS'
42133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42136 
42137   CFLAGS="$saved_cflags"
42138 
42139   saved_cxxflags="$CXXFLAGS"
42140   CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG"
42141   ac_ext=cpp
42142 ac_cpp='$CXXCPP $CPPFLAGS'
42143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42146 
42147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42148 /* end confdefs.h.  */
42149 int i;
42150 _ACEOF
42151 if ac_fn_cxx_try_compile "$LINENO"; then :
42152 
42153 else
42154   supports=no
42155 fi
42156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42157   ac_ext=cpp
42158 ac_cpp='$CXXCPP $CPPFLAGS'
42159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42162 
42163   CXXFLAGS="$saved_cxxflags"
42164 
42165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42166 $as_echo "$supports" >&6; }
42167   if test "x$supports" = "xyes" ; then
42168     :
42169   else
42170     ZERO_ARCHFLAG=""
42171   fi
42172 
42173 
42174 
42175   # Check that the compiler supports -mX (or -qX on AIX) flags
42176   # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
42177 
42178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5
42179 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
42180   supports=yes
42181 
42182   saved_cflags="$CFLAGS"
42183   CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
42184   ac_ext=c
42185 ac_cpp='$CPP $CPPFLAGS'
42186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42189 
42190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42191 /* end confdefs.h.  */
42192 int i;
42193 _ACEOF
42194 if ac_fn_c_try_compile "$LINENO"; then :
42195 
42196 else
42197   supports=no
42198 fi
42199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42200   ac_ext=cpp
42201 ac_cpp='$CXXCPP $CPPFLAGS'
42202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42205 
42206   CFLAGS="$saved_cflags"
42207 
42208   saved_cxxflags="$CXXFLAGS"
42209   CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
42210   ac_ext=cpp
42211 ac_cpp='$CXXCPP $CPPFLAGS'
42212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42215 
42216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42217 /* end confdefs.h.  */
42218 int i;
42219 _ACEOF
42220 if ac_fn_cxx_try_compile "$LINENO"; then :
42221 
42222 else
42223   supports=no
42224 fi
42225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42226   ac_ext=cpp
42227 ac_cpp='$CXXCPP $CPPFLAGS'
42228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42231 
42232   CXXFLAGS="$saved_cxxflags"
42233 
42234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42235 $as_echo "$supports" >&6; }
42236   if test "x$supports" = "xyes" ; then
42237     COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
42238   else
42239     COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
42240   fi
42241 
42242 
42243 
42244 
42245   # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed in executable.'
42246   USING_BROKEN_SUSE_LD=no
42247   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$GCC" = xyes; then
42248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5
42249 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; }
42250     echo "SUNWprivate_1.1 { local: *; };" > version-script.map
42251     echo "int main() { }" > main.c
42252     if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then
42253       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42254 $as_echo "no" >&6; }
42255       USING_BROKEN_SUSE_LD=no
42256     else
42257       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42258 $as_echo "yes" >&6; }
42259       USING_BROKEN_SUSE_LD=yes
42260     fi
42261     rm -rf version-script.map main.c
42262   fi
42263 
42264 
42265 
42266 # Setup debug symbols (need objcopy from the toolchain for that)
42267 
42268   #
42269   # ENABLE_DEBUG_SYMBOLS
42270   # This must be done after the toolchain is setup, since we're looking at objcopy.
42271   #
42272   # Check whether --enable-debug-symbols was given.
42273 if test "${enable_debug_symbols+set}" = set; then :
42274   enableval=$enable_debug_symbols;
42275 fi
42276 
42277 
42278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
42279 $as_echo_n "checking if we should generate debug symbols... " >&6; }
42280 
42281   if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
42282     # explicit enabling of enable-debug-symbols and can't find objcopy
42283     #   this is an error
42284     as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
42285   fi
42286 
42287   if test "x$enable_debug_symbols" = "xyes"; then
42288     ENABLE_DEBUG_SYMBOLS=true
42289   elif test "x$enable_debug_symbols" = "xno"; then
42290     ENABLE_DEBUG_SYMBOLS=false
42291   else
42292     # Default is on if objcopy is found
42293     if test "x$OBJCOPY" != x; then
42294       ENABLE_DEBUG_SYMBOLS=true
42295     # MacOS X and Windows don't use objcopy but default is on for those OSes
42296     elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
42297       ENABLE_DEBUG_SYMBOLS=true
42298     else
42299       ENABLE_DEBUG_SYMBOLS=false
42300     fi
42301   fi
42302 
42303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
42304 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
42305 
42306   #
42307   # ZIP_DEBUGINFO_FILES
42308   #
42309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
42310 $as_echo_n "checking if we should zip debug-info files... " >&6; }
42311   # Check whether --enable-zip-debug-info was given.
42312 if test "${enable_zip_debug_info+set}" = set; then :
42313   enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}"
42314 else
42315   enable_zip_debug_info="yes"
42316 fi
42317 
42318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5
42319 $as_echo "${enable_zip_debug_info}" >&6; }
42320 
42321   if test "x${enable_zip_debug_info}" = "xno"; then
42322     ZIP_DEBUGINFO_FILES=false
42323   else
42324     ZIP_DEBUGINFO_FILES=true
42325   fi
42326 
42327 
42328 
42329 
42330 
42331 
42332 
42333 ###############################################################################
42334 #
42335 # Check dependencies for external and internal libraries.
42336 #
42337 ###############################################################################
42338 
42339 # After we have toolchain, we can compile fixpath. It's needed by the lib checks.
42340 
42341   # When using cygwin or msys, we need a wrapper binary that renames
42342   # /cygdrive/c/ arguments into c:/ arguments and peeks into
42343   # @files and rewrites these too! This wrapper binary is
42344   # called fixpath.
42345   FIXPATH=
42346   if test "x$OPENJDK_BUILD_OS" = xwindows; then
42347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5
42348 $as_echo_n "checking if fixpath can be created... " >&6; }
42349     FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
42350     FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe"
42351     if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
42352       FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC`
42353       FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN`
42354       # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
42355       FIXPATH="$OUTPUT_ROOT/fixpath.exe -c"
42356     elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
42357       FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC`
42358       FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN`
42359 
42360       # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
42361       # @ was chosen as separator to minimize risk of other tools messing around with it
42362       all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq`
42363       fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
42364 
42365       FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list"
42366     fi
42367     rm -f $OUTPUT_ROOT/fixpath*
42368     cd $OUTPUT_ROOT
42369     $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1
42370     cd $CURDIR
42371 
42372     if test ! -x $OUTPUT_ROOT/fixpath.exe; then
42373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42374 $as_echo "no" >&6; }
42375       cat $OUTPUT_ROOT/fixpath1.log
42376       as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5
42377     fi
42378     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42379 $as_echo "yes" >&6; }
42380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
42381 $as_echo_n "checking if fixpath.exe works... " >&6; }
42382     cd $OUTPUT_ROOT
42383     $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1
42384     cd $CURDIR
42385     if test ! -x $OUTPUT_ROOT/fixpath2.exe; then
42386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42387 $as_echo "no" >&6; }
42388       cat $OUTPUT_ROOT/fixpath2.log
42389       as_fn_error $? "fixpath did not work!" "$LINENO" 5
42390     fi
42391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42392 $as_echo "yes" >&6; }
42393     rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj
42394   fi
42395 
42396 
42397 
42398 
42399 
42400 
42401   ###############################################################################
42402   #
42403   # OS specific settings that we never will need to probe.
42404   #
42405   if test "x$OPENJDK_TARGET_OS" = xlinux; then
42406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
42407 $as_echo_n "checking what is not needed on Linux?... " >&6; }
42408     PULSE_NOT_NEEDED=yes
42409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
42410 $as_echo "pulse" >&6; }
42411   fi
42412 
42413   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
42414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
42415 $as_echo_n "checking what is not needed on Solaris?... " >&6; }
42416     ALSA_NOT_NEEDED=yes
42417     PULSE_NOT_NEEDED=yes
42418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
42419 $as_echo "alsa pulse" >&6; }
42420   fi
42421 
42422   if test "x$OPENJDK_TARGET_OS" = xaix; then
42423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5
42424 $as_echo_n "checking what is not needed on AIX?... " >&6; }
42425     ALSA_NOT_NEEDED=yes
42426     PULSE_NOT_NEEDED=yes
42427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
42428 $as_echo "alsa pulse" >&6; }
42429   fi
42430 
42431 
42432   if test "x$OPENJDK_TARGET_OS" = xwindows; then
42433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
42434 $as_echo_n "checking what is not needed on Windows?... " >&6; }
42435     CUPS_NOT_NEEDED=yes
42436     ALSA_NOT_NEEDED=yes
42437     PULSE_NOT_NEEDED=yes
42438     X11_NOT_NEEDED=yes
42439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
42440 $as_echo "alsa cups pulse x11" >&6; }
42441   fi
42442 
42443   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
42445 $as_echo_n "checking what is not needed on MacOSX?... " >&6; }
42446     ALSA_NOT_NEEDED=yes
42447     PULSE_NOT_NEEDED=yes
42448     X11_NOT_NEEDED=yes
42449     # If the java runtime framework is disabled, then we need X11.
42450     # This will be adjusted below.
42451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
42452 $as_echo "alsa pulse x11" >&6; }
42453   fi
42454 
42455   if test "x$OPENJDK_TARGET_OS" = xbsd; then
42456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
42457 $as_echo_n "checking what is not needed on bsd?... " >&6; }
42458     ALSA_NOT_NEEDED=yes
42459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
42460 $as_echo "alsa" >&6; }
42461   fi
42462 
42463   if test "x$OPENJDK" = "xfalse"; then
42464     FREETYPE_NOT_NEEDED=yes
42465   fi
42466 
42467   if test "x$SUPPORT_HEADFUL" = xno; then
42468     X11_NOT_NEEDED=yes
42469   fi
42470 
42471   ###############################################################################
42472   #
42473   # Check for MacOSX support for OpenJDK.
42474   #
42475 
42476 
42477   # Check whether --enable-macosx-runtime-support was given.
42478 if test "${enable_macosx_runtime_support+set}" = set; then :
42479   enableval=$enable_macosx_runtime_support;
42480 fi
42481 
42482   if test "x$enable_macosx_runtime_support" != x; then
42483     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5
42484 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;}
42485   fi
42486 
42487 
42488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5
42489 $as_echo_n "checking for Mac OS X Java Framework... " >&6; }
42490   if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
42491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5
42492 $as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; }
42493   else
42494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42495 $as_echo "no" >&6; }
42496   fi
42497 
42498 
42499 
42500   ###############################################################################
42501   #
42502   # Check for X Windows
42503   #
42504 
42505   # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
42506   # Make a simple check for the libraries at the sysroot, and setup --x-includes and
42507   # --x-libraries for the sysroot, if that seems to be correct.
42508   if test "x$SYS_ROOT" != "x/"; then
42509     if test "x$x_includes" = xNONE; then
42510       if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then
42511         x_includes="$SYS_ROOT/usr/X11R6/include"
42512       elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then
42513         x_includes="$SYS_ROOT/usr/include"
42514       fi
42515     fi
42516     if test "x$x_libraries" = xNONE; then
42517       if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
42518         x_libraries="$SYS_ROOT/usr/X11R6/lib"
42519       elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
42520         x_libraries="$SYS_ROOT/usr/lib64"
42521       elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then
42522         x_libraries="$SYS_ROOT/usr/lib"
42523       fi
42524     fi
42525   fi
42526 
42527   # Now let autoconf do it's magic
42528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
42529 $as_echo_n "checking for X... " >&6; }
42530 
42531 
42532 # Check whether --with-x was given.
42533 if test "${with_x+set}" = set; then :
42534   withval=$with_x;
42535 fi
42536 
42537 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
42538 if test "x$with_x" = xno; then
42539   # The user explicitly disabled X.
42540   have_x=disabled
42541 else
42542   case $x_includes,$x_libraries in #(
42543     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
42544     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
42545   $as_echo_n "(cached) " >&6
42546 else
42547   # One or both of the vars are not set, and there is no cached value.
42548 ac_x_includes=no ac_x_libraries=no
42549 rm -f -r conftest.dir
42550 if mkdir conftest.dir; then
42551   cd conftest.dir
42552   cat >Imakefile <<'_ACEOF'
42553 incroot:
42554         @echo incroot='${INCROOT}'
42555 usrlibdir:
42556         @echo usrlibdir='${USRLIBDIR}'
42557 libdir:
42558         @echo libdir='${LIBDIR}'
42559 _ACEOF
42560   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
42561     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
42562     for ac_var in incroot usrlibdir libdir; do
42563       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
42564     done
42565     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
42566     for ac_extension in a so sl dylib la dll; do
42567       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
42568          test -f "$ac_im_libdir/libX11.$ac_extension"; then
42569         ac_im_usrlibdir=$ac_im_libdir; break
42570       fi
42571     done
42572     # Screen out bogus values from the imake configuration.  They are
42573     # bogus both because they are the default anyway, and because
42574     # using them would break gcc on systems where it needs fixed includes.
42575     case $ac_im_incroot in
42576         /usr/include) ac_x_includes= ;;
42577         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
42578     esac
42579     case $ac_im_usrlibdir in
42580         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
42581         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
42582     esac
42583   fi
42584   cd ..
42585   rm -f -r conftest.dir
42586 fi
42587 
42588 # Standard set of common directories for X headers.
42589 # Check X11 before X11Rn because it is often a symlink to the current release.
42590 ac_x_header_dirs='
42591 /usr/X11/include
42592 /usr/X11R7/include
42593 /usr/X11R6/include
42594 /usr/X11R5/include
42595 /usr/X11R4/include
42596 
42597 /usr/include/X11
42598 /usr/include/X11R7
42599 /usr/include/X11R6
42600 /usr/include/X11R5
42601 /usr/include/X11R4
42602 
42603 /usr/local/X11/include
42604 /usr/local/X11R7/include
42605 /usr/local/X11R6/include
42606 /usr/local/X11R5/include
42607 /usr/local/X11R4/include
42608 
42609 /usr/local/include/X11
42610 /usr/local/include/X11R7
42611 /usr/local/include/X11R6
42612 /usr/local/include/X11R5
42613 /usr/local/include/X11R4
42614 
42615 /usr/X386/include
42616 /usr/x386/include
42617 /usr/XFree86/include/X11
42618 
42619 /usr/include
42620 /usr/local/include
42621 /usr/unsupported/include
42622 /usr/athena/include
42623 /usr/local/x11r5/include
42624 /usr/lpp/Xamples/include
42625 
42626 /usr/openwin/include
42627 /usr/openwin/share/include'
42628 
42629 if test "$ac_x_includes" = no; then
42630   # Guess where to find include files, by looking for Xlib.h.
42631   # First, try using that file with no special directory specified.
42632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42633 /* end confdefs.h.  */
42634 #include <X11/Xlib.h>
42635 _ACEOF
42636 if ac_fn_cxx_try_cpp "$LINENO"; then :
42637   # We can compile using X headers with no special include directory.
42638 ac_x_includes=
42639 else
42640   for ac_dir in $ac_x_header_dirs; do
42641   if test -r "$ac_dir/X11/Xlib.h"; then
42642     ac_x_includes=$ac_dir
42643     break
42644   fi
42645 done
42646 fi
42647 rm -f conftest.err conftest.i conftest.$ac_ext
42648 fi # $ac_x_includes = no
42649 
42650 if test "$ac_x_libraries" = no; then
42651   # Check for the libraries.
42652   # See if we find them without any special options.
42653   # Don't add to $LIBS permanently.
42654   ac_save_LIBS=$LIBS
42655   LIBS="-lX11 $LIBS"
42656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42657 /* end confdefs.h.  */
42658 #include <X11/Xlib.h>
42659 int
42660 main ()
42661 {
42662 XrmInitialize ()
42663   ;
42664   return 0;
42665 }
42666 _ACEOF
42667 if ac_fn_cxx_try_link "$LINENO"; then :
42668   LIBS=$ac_save_LIBS
42669 # We can link X programs with no special library path.
42670 ac_x_libraries=
42671 else
42672   LIBS=$ac_save_LIBS
42673 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
42674 do
42675   # Don't even attempt the hair of trying to link an X program!
42676   for ac_extension in a so sl dylib la dll; do
42677     if test -r "$ac_dir/libX11.$ac_extension"; then
42678       ac_x_libraries=$ac_dir
42679       break 2
42680     fi
42681   done
42682 done
42683 fi
42684 rm -f core conftest.err conftest.$ac_objext \
42685     conftest$ac_exeext conftest.$ac_ext
42686 fi # $ac_x_libraries = no
42687 
42688 case $ac_x_includes,$ac_x_libraries in #(
42689   no,* | *,no | *\'*)
42690     # Didn't find X, or a directory has "'" in its name.
42691     ac_cv_have_x="have_x=no";; #(
42692   *)
42693     # Record where we found X for the cache.
42694     ac_cv_have_x="have_x=yes\
42695         ac_x_includes='$ac_x_includes'\
42696         ac_x_libraries='$ac_x_libraries'"
42697 esac
42698 fi
42699 ;; #(
42700     *) have_x=yes;;
42701   esac
42702   eval "$ac_cv_have_x"
42703 fi # $with_x != no
42704 
42705 if test "$have_x" != yes; then
42706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
42707 $as_echo "$have_x" >&6; }
42708   no_x=yes
42709 else
42710   # If each of the values was on the command line, it overrides each guess.
42711   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
42712   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
42713   # Update the cache value to reflect the command line values.
42714   ac_cv_have_x="have_x=yes\
42715         ac_x_includes='$x_includes'\
42716         ac_x_libraries='$x_libraries'"
42717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
42718 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
42719 fi
42720 
42721   if test "$no_x" = yes; then
42722   # Not all programs may use this symbol, but it does not hurt to define it.
42723 
42724 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
42725 
42726   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
42727 else
42728   if test -n "$x_includes"; then
42729     X_CFLAGS="$X_CFLAGS -I$x_includes"
42730   fi
42731 
42732   # It would also be nice to do this for all -L options, not just this one.
42733   if test -n "$x_libraries"; then
42734     X_LIBS="$X_LIBS -L$x_libraries"
42735     # For Solaris; some versions of Sun CC require a space after -R and
42736     # others require no space.  Words are not sufficient . . . .
42737     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
42738 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
42739     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
42740     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
42741     ac_cxx_werror_flag=yes
42742     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42743 /* end confdefs.h.  */
42744 
42745 int
42746 main ()
42747 {
42748 
42749   ;
42750   return 0;
42751 }
42752 _ACEOF
42753 if ac_fn_cxx_try_link "$LINENO"; then :
42754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42755 $as_echo "no" >&6; }
42756        X_LIBS="$X_LIBS -R$x_libraries"
42757 else
42758   LIBS="$ac_xsave_LIBS -R $x_libraries"
42759        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42760 /* end confdefs.h.  */
42761 
42762 int
42763 main ()
42764 {
42765 
42766   ;
42767   return 0;
42768 }
42769 _ACEOF
42770 if ac_fn_cxx_try_link "$LINENO"; then :
42771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42772 $as_echo "yes" >&6; }
42773           X_LIBS="$X_LIBS -R $x_libraries"
42774 else
42775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
42776 $as_echo "neither works" >&6; }
42777 fi
42778 rm -f core conftest.err conftest.$ac_objext \
42779     conftest$ac_exeext conftest.$ac_ext
42780 fi
42781 rm -f core conftest.err conftest.$ac_objext \
42782     conftest$ac_exeext conftest.$ac_ext
42783     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
42784     LIBS=$ac_xsave_LIBS
42785   fi
42786 
42787   # Check for system-dependent libraries X programs must link with.
42788   # Do this before checking for the system-independent R6 libraries
42789   # (-lICE), since we may need -lsocket or whatever for X linking.
42790 
42791   if test "$ISC" = yes; then
42792     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
42793   else
42794     # Martyn Johnson says this is needed for Ultrix, if the X
42795     # libraries were built with DECnet support.  And Karl Berry says
42796     # the Alpha needs dnet_stub (dnet does not exist).
42797     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
42798     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42799 /* end confdefs.h.  */
42800 
42801 /* Override any GCC internal prototype to avoid an error.
42802    Use char because int might match the return type of a GCC
42803    builtin and then its argument prototype would still apply.  */
42804 #ifdef __cplusplus
42805 extern "C"
42806 #endif
42807 char XOpenDisplay ();
42808 int
42809 main ()
42810 {
42811 return XOpenDisplay ();
42812   ;
42813   return 0;
42814 }
42815 _ACEOF
42816 if ac_fn_cxx_try_link "$LINENO"; then :
42817 
42818 else
42819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
42820 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
42821 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
42822   $as_echo_n "(cached) " >&6
42823 else
42824   ac_check_lib_save_LIBS=$LIBS
42825 LIBS="-ldnet  $LIBS"
42826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42827 /* end confdefs.h.  */
42828 
42829 /* Override any GCC internal prototype to avoid an error.
42830    Use char because int might match the return type of a GCC
42831    builtin and then its argument prototype would still apply.  */
42832 #ifdef __cplusplus
42833 extern "C"
42834 #endif
42835 char dnet_ntoa ();
42836 int
42837 main ()
42838 {
42839 return dnet_ntoa ();
42840   ;
42841   return 0;
42842 }
42843 _ACEOF
42844 if ac_fn_cxx_try_link "$LINENO"; then :
42845   ac_cv_lib_dnet_dnet_ntoa=yes
42846 else
42847   ac_cv_lib_dnet_dnet_ntoa=no
42848 fi
42849 rm -f core conftest.err conftest.$ac_objext \
42850     conftest$ac_exeext conftest.$ac_ext
42851 LIBS=$ac_check_lib_save_LIBS
42852 fi
42853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
42854 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
42855 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
42856   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
42857 fi
42858 
42859     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
42860       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
42861 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
42862 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
42863   $as_echo_n "(cached) " >&6
42864 else
42865   ac_check_lib_save_LIBS=$LIBS
42866 LIBS="-ldnet_stub  $LIBS"
42867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42868 /* end confdefs.h.  */
42869 
42870 /* Override any GCC internal prototype to avoid an error.
42871    Use char because int might match the return type of a GCC
42872    builtin and then its argument prototype would still apply.  */
42873 #ifdef __cplusplus
42874 extern "C"
42875 #endif
42876 char dnet_ntoa ();
42877 int
42878 main ()
42879 {
42880 return dnet_ntoa ();
42881   ;
42882   return 0;
42883 }
42884 _ACEOF
42885 if ac_fn_cxx_try_link "$LINENO"; then :
42886   ac_cv_lib_dnet_stub_dnet_ntoa=yes
42887 else
42888   ac_cv_lib_dnet_stub_dnet_ntoa=no
42889 fi
42890 rm -f core conftest.err conftest.$ac_objext \
42891     conftest$ac_exeext conftest.$ac_ext
42892 LIBS=$ac_check_lib_save_LIBS
42893 fi
42894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
42895 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
42896 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
42897   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
42898 fi
42899 
42900     fi
42901 fi
42902 rm -f core conftest.err conftest.$ac_objext \
42903     conftest$ac_exeext conftest.$ac_ext
42904     LIBS="$ac_xsave_LIBS"
42905 
42906     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
42907     # to get the SysV transport functions.
42908     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
42909     # needs -lnsl.
42910     # The nsl library prevents programs from opening the X display
42911     # on Irix 5.2, according to T.E. Dickey.
42912     # The functions gethostbyname, getservbyname, and inet_addr are
42913     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
42914     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
42915 if test "x$ac_cv_func_gethostbyname" = xyes; then :
42916 
42917 fi
42918 
42919     if test $ac_cv_func_gethostbyname = no; then
42920       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
42921 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
42922 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
42923   $as_echo_n "(cached) " >&6
42924 else
42925   ac_check_lib_save_LIBS=$LIBS
42926 LIBS="-lnsl  $LIBS"
42927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42928 /* end confdefs.h.  */
42929 
42930 /* Override any GCC internal prototype to avoid an error.
42931    Use char because int might match the return type of a GCC
42932    builtin and then its argument prototype would still apply.  */
42933 #ifdef __cplusplus
42934 extern "C"
42935 #endif
42936 char gethostbyname ();
42937 int
42938 main ()
42939 {
42940 return gethostbyname ();
42941   ;
42942   return 0;
42943 }
42944 _ACEOF
42945 if ac_fn_cxx_try_link "$LINENO"; then :
42946   ac_cv_lib_nsl_gethostbyname=yes
42947 else
42948   ac_cv_lib_nsl_gethostbyname=no
42949 fi
42950 rm -f core conftest.err conftest.$ac_objext \
42951     conftest$ac_exeext conftest.$ac_ext
42952 LIBS=$ac_check_lib_save_LIBS
42953 fi
42954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
42955 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
42956 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
42957   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
42958 fi
42959 
42960       if test $ac_cv_lib_nsl_gethostbyname = no; then
42961         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
42962 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
42963 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
42964   $as_echo_n "(cached) " >&6
42965 else
42966   ac_check_lib_save_LIBS=$LIBS
42967 LIBS="-lbsd  $LIBS"
42968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42969 /* end confdefs.h.  */
42970 
42971 /* Override any GCC internal prototype to avoid an error.
42972    Use char because int might match the return type of a GCC
42973    builtin and then its argument prototype would still apply.  */
42974 #ifdef __cplusplus
42975 extern "C"
42976 #endif
42977 char gethostbyname ();
42978 int
42979 main ()
42980 {
42981 return gethostbyname ();
42982   ;
42983   return 0;
42984 }
42985 _ACEOF
42986 if ac_fn_cxx_try_link "$LINENO"; then :
42987   ac_cv_lib_bsd_gethostbyname=yes
42988 else
42989   ac_cv_lib_bsd_gethostbyname=no
42990 fi
42991 rm -f core conftest.err conftest.$ac_objext \
42992     conftest$ac_exeext conftest.$ac_ext
42993 LIBS=$ac_check_lib_save_LIBS
42994 fi
42995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
42996 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
42997 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
42998   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
42999 fi
43000 
43001       fi
43002     fi
43003 
43004     # lieder@skyler.mavd.honeywell.com says without -lsocket,
43005     # socket/setsockopt and other routines are undefined under SCO ODT
43006     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
43007     # on later versions), says Simon Leinen: it contains gethostby*
43008     # variants that don't use the name server (or something).  -lsocket
43009     # must be given before -lnsl if both are needed.  We assume that
43010     # if connect needs -lnsl, so does gethostbyname.
43011     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
43012 if test "x$ac_cv_func_connect" = xyes; then :
43013 
43014 fi
43015 
43016     if test $ac_cv_func_connect = no; then
43017       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
43018 $as_echo_n "checking for connect in -lsocket... " >&6; }
43019 if ${ac_cv_lib_socket_connect+:} false; then :
43020   $as_echo_n "(cached) " >&6
43021 else
43022   ac_check_lib_save_LIBS=$LIBS
43023 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
43024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43025 /* end confdefs.h.  */
43026 
43027 /* Override any GCC internal prototype to avoid an error.
43028    Use char because int might match the return type of a GCC
43029    builtin and then its argument prototype would still apply.  */
43030 #ifdef __cplusplus
43031 extern "C"
43032 #endif
43033 char connect ();
43034 int
43035 main ()
43036 {
43037 return connect ();
43038   ;
43039   return 0;
43040 }
43041 _ACEOF
43042 if ac_fn_cxx_try_link "$LINENO"; then :
43043   ac_cv_lib_socket_connect=yes
43044 else
43045   ac_cv_lib_socket_connect=no
43046 fi
43047 rm -f core conftest.err conftest.$ac_objext \
43048     conftest$ac_exeext conftest.$ac_ext
43049 LIBS=$ac_check_lib_save_LIBS
43050 fi
43051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
43052 $as_echo "$ac_cv_lib_socket_connect" >&6; }
43053 if test "x$ac_cv_lib_socket_connect" = xyes; then :
43054   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
43055 fi
43056 
43057     fi
43058 
43059     # Guillermo Gomez says -lposix is necessary on A/UX.
43060     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
43061 if test "x$ac_cv_func_remove" = xyes; then :
43062 
43063 fi
43064 
43065     if test $ac_cv_func_remove = no; then
43066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
43067 $as_echo_n "checking for remove in -lposix... " >&6; }
43068 if ${ac_cv_lib_posix_remove+:} false; then :
43069   $as_echo_n "(cached) " >&6
43070 else
43071   ac_check_lib_save_LIBS=$LIBS
43072 LIBS="-lposix  $LIBS"
43073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43074 /* end confdefs.h.  */
43075 
43076 /* Override any GCC internal prototype to avoid an error.
43077    Use char because int might match the return type of a GCC
43078    builtin and then its argument prototype would still apply.  */
43079 #ifdef __cplusplus
43080 extern "C"
43081 #endif
43082 char remove ();
43083 int
43084 main ()
43085 {
43086 return remove ();
43087   ;
43088   return 0;
43089 }
43090 _ACEOF
43091 if ac_fn_cxx_try_link "$LINENO"; then :
43092   ac_cv_lib_posix_remove=yes
43093 else
43094   ac_cv_lib_posix_remove=no
43095 fi
43096 rm -f core conftest.err conftest.$ac_objext \
43097     conftest$ac_exeext conftest.$ac_ext
43098 LIBS=$ac_check_lib_save_LIBS
43099 fi
43100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
43101 $as_echo "$ac_cv_lib_posix_remove" >&6; }
43102 if test "x$ac_cv_lib_posix_remove" = xyes; then :
43103   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
43104 fi
43105 
43106     fi
43107 
43108     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
43109     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
43110 if test "x$ac_cv_func_shmat" = xyes; then :
43111 
43112 fi
43113 
43114     if test $ac_cv_func_shmat = no; then
43115       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
43116 $as_echo_n "checking for shmat in -lipc... " >&6; }
43117 if ${ac_cv_lib_ipc_shmat+:} false; then :
43118   $as_echo_n "(cached) " >&6
43119 else
43120   ac_check_lib_save_LIBS=$LIBS
43121 LIBS="-lipc  $LIBS"
43122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43123 /* end confdefs.h.  */
43124 
43125 /* Override any GCC internal prototype to avoid an error.
43126    Use char because int might match the return type of a GCC
43127    builtin and then its argument prototype would still apply.  */
43128 #ifdef __cplusplus
43129 extern "C"
43130 #endif
43131 char shmat ();
43132 int
43133 main ()
43134 {
43135 return shmat ();
43136   ;
43137   return 0;
43138 }
43139 _ACEOF
43140 if ac_fn_cxx_try_link "$LINENO"; then :
43141   ac_cv_lib_ipc_shmat=yes
43142 else
43143   ac_cv_lib_ipc_shmat=no
43144 fi
43145 rm -f core conftest.err conftest.$ac_objext \
43146     conftest$ac_exeext conftest.$ac_ext
43147 LIBS=$ac_check_lib_save_LIBS
43148 fi
43149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
43150 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
43151 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
43152   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
43153 fi
43154 
43155     fi
43156   fi
43157 
43158   # Check for libraries that X11R6 Xt/Xaw programs need.
43159   ac_save_LDFLAGS=$LDFLAGS
43160   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
43161   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
43162   # check for ICE first), but we must link in the order -lSM -lICE or
43163   # we get undefined symbols.  So assume we have SM if we have ICE.
43164   # These have to be linked with before -lX11, unlike the other
43165   # libraries we check for below, so use a different variable.
43166   # John Interrante, Karl Berry
43167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
43168 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
43169 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
43170   $as_echo_n "(cached) " >&6
43171 else
43172   ac_check_lib_save_LIBS=$LIBS
43173 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
43174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43175 /* end confdefs.h.  */
43176 
43177 /* Override any GCC internal prototype to avoid an error.
43178    Use char because int might match the return type of a GCC
43179    builtin and then its argument prototype would still apply.  */
43180 #ifdef __cplusplus
43181 extern "C"
43182 #endif
43183 char IceConnectionNumber ();
43184 int
43185 main ()
43186 {
43187 return IceConnectionNumber ();
43188   ;
43189   return 0;
43190 }
43191 _ACEOF
43192 if ac_fn_cxx_try_link "$LINENO"; then :
43193   ac_cv_lib_ICE_IceConnectionNumber=yes
43194 else
43195   ac_cv_lib_ICE_IceConnectionNumber=no
43196 fi
43197 rm -f core conftest.err conftest.$ac_objext \
43198     conftest$ac_exeext conftest.$ac_ext
43199 LIBS=$ac_check_lib_save_LIBS
43200 fi
43201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
43202 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
43203 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
43204   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
43205 fi
43206 
43207   LDFLAGS=$ac_save_LDFLAGS
43208 
43209 fi
43210 
43211 
43212   # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
43213   # this doesn't make sense so we remove it.
43214   if test "x$COMPILE_TYPE" = xcross; then
43215     X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
43216   fi
43217 
43218   if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
43219 
43220   # Print a helpful message on how to acquire the necessary build dependency.
43221   # x11 is the help tag: freetype, cups, pulse, alsa etc
43222   MISSING_DEPENDENCY=x11
43223 
43224   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43225     cygwin_help $MISSING_DEPENDENCY
43226   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43227     msys_help $MISSING_DEPENDENCY
43228   else
43229     PKGHANDLER_COMMAND=
43230 
43231     case $PKGHANDLER in
43232       apt-get)
43233         apt_help     $MISSING_DEPENDENCY ;;
43234       yum)
43235         yum_help     $MISSING_DEPENDENCY ;;
43236       port)
43237         port_help    $MISSING_DEPENDENCY ;;
43238       pkgutil)
43239         pkgutil_help $MISSING_DEPENDENCY ;;
43240       pkgadd)
43241         pkgadd_help  $MISSING_DEPENDENCY ;;
43242     esac
43243 
43244     if test "x$PKGHANDLER_COMMAND" != x; then
43245       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43246     fi
43247   fi
43248 
43249     as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
43250   fi
43251 
43252   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
43253     OPENWIN_HOME="/usr/openwin"
43254   fi
43255 
43256 
43257 
43258   #
43259   # Weird Sol10 something check...TODO change to try compile
43260   #
43261   if test "x${OPENJDK_TARGET_OS}" = xsolaris; then
43262     if test "`uname -r`" = "5.10"; then
43263       if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then
43264         X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS"
43265       fi
43266     fi
43267   fi
43268 
43269   ac_ext=c
43270 ac_cpp='$CPP $CPPFLAGS'
43271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43274 
43275   OLD_CFLAGS="$CFLAGS"
43276   CFLAGS="$CFLAGS $X_CFLAGS"
43277 
43278   # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
43279   for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h
43280 do :
43281   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43282 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
43283         # include <X11/Xlib.h>
43284         # include <X11/Xutil.h>
43285 
43286 
43287 "
43288 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43289   cat >>confdefs.h <<_ACEOF
43290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43291 _ACEOF
43292  X11_A_OK=yes
43293 else
43294   X11_A_OK=no; break
43295 fi
43296 
43297 done
43298 
43299 
43300   CFLAGS="$OLD_CFLAGS"
43301   ac_ext=cpp
43302 ac_cpp='$CXXCPP $CPPFLAGS'
43303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43306 
43307 
43308   if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
43309 
43310   # Print a helpful message on how to acquire the necessary build dependency.
43311   # x11 is the help tag: freetype, cups, pulse, alsa etc
43312   MISSING_DEPENDENCY=x11
43313 
43314   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43315     cygwin_help $MISSING_DEPENDENCY
43316   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43317     msys_help $MISSING_DEPENDENCY
43318   else
43319     PKGHANDLER_COMMAND=
43320 
43321     case $PKGHANDLER in
43322       apt-get)
43323         apt_help     $MISSING_DEPENDENCY ;;
43324       yum)
43325         yum_help     $MISSING_DEPENDENCY ;;
43326       port)
43327         port_help    $MISSING_DEPENDENCY ;;
43328       pkgutil)
43329         pkgutil_help $MISSING_DEPENDENCY ;;
43330       pkgadd)
43331         pkgadd_help  $MISSING_DEPENDENCY ;;
43332     esac
43333 
43334     if test "x$PKGHANDLER_COMMAND" != x; then
43335       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43336     fi
43337   fi
43338 
43339     as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5
43340   fi
43341 
43342 
43343 
43344 
43345 
43346 
43347   ###############################################################################
43348   #
43349   # The common unix printing system cups is used to print from java.
43350   #
43351 
43352 # Check whether --with-cups was given.
43353 if test "${with_cups+set}" = set; then :
43354   withval=$with_cups;
43355 fi
43356 
43357 
43358 # Check whether --with-cups-include was given.
43359 if test "${with_cups_include+set}" = set; then :
43360   withval=$with_cups_include;
43361 fi
43362 
43363 
43364   if test "x$CUPS_NOT_NEEDED" = xyes; then
43365     if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then
43366       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
43367 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
43368     fi
43369     CUPS_CFLAGS=
43370   else
43371     CUPS_FOUND=no
43372 
43373     if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then
43374       as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
43375     fi
43376 
43377     if test "x${with_cups}" != x; then
43378       CUPS_CFLAGS="-I${with_cups}/include"
43379       CUPS_FOUND=yes
43380     fi
43381     if test "x${with_cups_include}" != x; then
43382       CUPS_CFLAGS="-I${with_cups_include}"
43383       CUPS_FOUND=yes
43384     fi
43385     if test "x$CUPS_FOUND" = xno; then
43386 
43387 
43388   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
43389     # Source the builddeps file again, to make sure it uses the latest variables!
43390     . $builddepsfile
43391     # Look for a target and build machine specific resource!
43392     eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
43393     if test "x$resource" = x; then
43394       # Ok, lets instead look for a target specific resource
43395       eval resource=\${builddep_cups_TARGET_${rewritten_target_var}}
43396     fi
43397     if test "x$resource" = x; then
43398       # Ok, lets instead look for a build specific resource
43399       eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
43400     fi
43401     if test "x$resource" = x; then
43402       # Ok, lets instead look for a generic resource
43403       # (The cups comes from M4 and not the shell, thus no need for eval here.)
43404       resource=${builddep_cups}
43405     fi
43406     if test "x$resource" != x; then
43407       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
43408 $as_echo "$as_me: Using builddeps $resource for cups" >&6;}
43409       # If the resource in the builddeps.conf file is an existing directory,
43410       # for example /java/linux/cups
43411       if test -d ${resource}; then
43412         depdir=${resource}
43413       else
43414 
43415   # cups is for example mymodule
43416   # $resource is for example libs/general/libmymod_1_2_3.zip
43417   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
43418   # $with_builddeps_dir is for example /localhome/builddeps
43419   # depdir is the name of the variable into which we store the depdir, eg MYMOD
43420   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
43421   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
43422   filename=`basename $resource`
43423   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
43424   filebase=${filename%%.*}
43425   extension=${filename#*.}
43426   installdir=$with_builddeps_dir/$filebase
43427   if test ! -f $installdir/$filename.unpacked; then
43428     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
43429 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
43430     if test ! -d $installdir; then
43431       mkdir -p $installdir
43432     fi
43433     if test ! -d $installdir; then
43434       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
43435     fi
43436     tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
43437     touch $tmpfile
43438     if test ! -f $tmpfile; then
43439       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
43440     fi
43441 
43442   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
43443   # $tmpfile is the local file name for the downloaded file.
43444   VALID_TOOL=no
43445   if test "x$BDEPS_FTP" = xwget; then
43446     VALID_TOOL=yes
43447     wget -O $tmpfile $with_builddeps_server/$resource
43448   fi
43449   if test "x$BDEPS_FTP" = xlftp; then
43450     VALID_TOOL=yes
43451     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
43452   fi
43453   if test "x$BDEPS_FTP" = xftp; then
43454     VALID_TOOL=yes
43455     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
43456     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
43457     FTPUSERPWD=${FTPSERVER%%@*}
43458     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
43459       FTPUSER=${userpwd%%:*}
43460       FTPPWD=${userpwd#*@}
43461       FTPSERVER=${FTPSERVER#*@}
43462     else
43463       FTPUSER=ftp
43464       FTPPWD=ftp
43465     fi
43466     # the "pass" command does not work on some
43467     # ftp clients (read ftp.exe) but if it works,
43468     # passive mode is better!
43469     ( \
43470         echo "user $FTPUSER $FTPPWD"        ; \
43471         echo "pass"                         ; \
43472         echo "bin"                          ; \
43473         echo "get $FTPPATH $tmpfile"              ; \
43474     ) | ftp -in $FTPSERVER
43475   fi
43476   if test "x$VALID_TOOL" != xyes; then
43477     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
43478   fi
43479 
43480     mv $tmpfile $installdir/$filename
43481     if test ! -s $installdir/$filename; then
43482       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
43483     fi
43484     case "$extension" in
43485       zip)  echo "Unzipping $installdir/$filename..."
43486         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
43487         ;;
43488       tar.gz) echo "Untaring $installdir/$filename..."
43489         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43490         ;;
43491       tgz) echo "Untaring $installdir/$filename..."
43492         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43493         ;;
43494       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
43495         ;;
43496     esac
43497   fi
43498   if test -f $installdir/$filename.unpacked; then
43499     depdir=$installdir
43500   fi
43501 
43502       fi
43503       # Source the builddeps file again, because in the previous command, the depdir
43504       # was updated to point at the current build dependency install directory.
43505       . $builddepsfile
43506       # Now extract variables from the builddeps.conf files.
43507       theroot=${builddep_cups_ROOT}
43508       thecflags=${builddep_cups_CFLAGS}
43509       thelibs=${builddep_cups_LIBS}
43510       if test "x$depdir" = x; then
43511         as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
43512       fi
43513       CUPS=$depdir
43514       if test "x$theroot" != x; then
43515         CUPS="$theroot"
43516       fi
43517       if test "x$thecflags" != x; then
43518         CUPS_CFLAGS="$thecflags"
43519       fi
43520       if test "x$thelibs" != x; then
43521         CUPS_LIBS="$thelibs"
43522       fi
43523       CUPS_FOUND=yes
43524 
43525     fi
43526 
43527   fi
43528 
43529     fi
43530     if test "x$CUPS_FOUND" = xno; then
43531       # Are the cups headers installed in the default /usr/include location?
43532       for ac_header in cups/cups.h cups/ppd.h
43533 do :
43534   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43535 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
43536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43537   cat >>confdefs.h <<_ACEOF
43538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43539 _ACEOF
43540 
43541             CUPS_FOUND=yes
43542             CUPS_CFLAGS=
43543             DEFAULT_CUPS=yes
43544 
43545 
43546 fi
43547 
43548 done
43549 
43550     fi
43551     if test "x$CUPS_FOUND" = xno; then
43552       # Getting nervous now? Lets poke around for standard Solaris third-party
43553       # package installation locations.
43554       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5
43555 $as_echo_n "checking for cups headers... " >&6; }
43556       if test -s /opt/sfw/cups/include/cups/cups.h; then
43557         # An SFW package seems to be installed!
43558         CUPS_FOUND=yes
43559         CUPS_CFLAGS="-I/opt/sfw/cups/include"
43560       elif test -s /opt/csw/include/cups/cups.h; then
43561         # A CSW package seems to be installed!
43562         CUPS_FOUND=yes
43563         CUPS_CFLAGS="-I/opt/csw/include"
43564       fi
43565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
43566 $as_echo "$CUPS_FOUND" >&6; }
43567     fi
43568     if test "x$CUPS_FOUND" = xno; then
43569 
43570   # Print a helpful message on how to acquire the necessary build dependency.
43571   # cups is the help tag: freetype, cups, pulse, alsa etc
43572   MISSING_DEPENDENCY=cups
43573 
43574   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43575     cygwin_help $MISSING_DEPENDENCY
43576   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43577     msys_help $MISSING_DEPENDENCY
43578   else
43579     PKGHANDLER_COMMAND=
43580 
43581     case $PKGHANDLER in
43582       apt-get)
43583         apt_help     $MISSING_DEPENDENCY ;;
43584       yum)
43585         yum_help     $MISSING_DEPENDENCY ;;
43586       port)
43587         port_help    $MISSING_DEPENDENCY ;;
43588       pkgutil)
43589         pkgutil_help $MISSING_DEPENDENCY ;;
43590       pkgadd)
43591         pkgadd_help  $MISSING_DEPENDENCY ;;
43592     esac
43593 
43594     if test "x$PKGHANDLER_COMMAND" != x; then
43595       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43596     fi
43597   fi
43598 
43599       as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
43600     fi
43601   fi
43602 
43603 
43604 
43605 
43606 
43607 
43608   ###############################################################################
43609   #
43610   # The ubiquitous freetype library is used to render fonts.
43611   #
43612 
43613 # Check whether --with-freetype was given.
43614 if test "${with_freetype+set}" = set; then :
43615   withval=$with_freetype;
43616 fi
43617 
43618 
43619 # Check whether --with-freetype-include was given.
43620 if test "${with_freetype_include+set}" = set; then :
43621   withval=$with_freetype_include;
43622 fi
43623 
43624 
43625 # Check whether --with-freetype-lib was given.
43626 if test "${with_freetype_lib+set}" = set; then :
43627   withval=$with_freetype_lib;
43628 fi
43629 
43630   # Check whether --enable-freetype-bundling was given.
43631 if test "${enable_freetype_bundling+set}" = set; then :
43632   enableval=$enable_freetype_bundling;
43633 fi
43634 
43635 
43636   FREETYPE_CFLAGS=
43637   FREETYPE_LIBS=
43638   FREETYPE_BUNDLE_LIB_PATH=
43639 
43640   if test "x$FREETYPE_NOT_NEEDED" = xyes; then
43641     if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
43642       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
43643 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
43644     fi
43645     if test "x$enable_freetype_bundling" != x; then
43646       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5
43647 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;}
43648     fi
43649   else
43650     # freetype is needed to build; go get it!
43651 
43652     BUNDLE_FREETYPE="$enable_freetype_bundling"
43653 
43654     if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
43655       # User has specified settings
43656 
43657       if test "x$BUNDLE_FREETYPE" = x; then
43658         # If not specified, default is to bundle freetype
43659         BUNDLE_FREETYPE=yes
43660       fi
43661 
43662       if test "x$with_freetype" != x; then
43663         POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include"
43664         POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib"
43665       fi
43666 
43667       # Allow --with-freetype-lib and --with-freetype-include to override
43668       if test "x$with_freetype_include" != x; then
43669         POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include"
43670       fi
43671       if test "x$with_freetype_lib" != x; then
43672         POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib"
43673       fi
43674 
43675       if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then
43676         # Okay, we got it. Check that it works.
43677 
43678   POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43679   POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43680   METHOD="--with-freetype"
43681 
43682   # First check if the files exists.
43683   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
43684     # We found an arbitrary include file. That's a good sign.
43685     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
43686 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
43687     FOUND_FREETYPE=yes
43688 
43689     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
43690     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
43691       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
43692 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
43693       FOUND_FREETYPE=no
43694     else
43695       if test "x$OPENJDK_TARGET_OS" = xwindows; then
43696         # On Windows, we will need both .lib and .dll file.
43697         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
43698           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
43699 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
43700           FOUND_FREETYPE=no
43701         fi
43702       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
43703         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
43704         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
43705       fi
43706     fi
43707   fi
43708 
43709   if test "x$FOUND_FREETYPE" = xyes; then
43710 
43711   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43712 
43713   # Input might be given as Windows format, start by converting to
43714   # unix format.
43715   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43716   new_path=`$CYGPATH -u "$path"`
43717 
43718   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43719   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43720   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43721   # "foo.exe" is OK but "foo" is an error.
43722   #
43723   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43724   # It is also a way to make sure we got the proper file name for the real test later on.
43725   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43726   if test "x$test_shortpath" = x; then
43727     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43728 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43729     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
43730   fi
43731 
43732   # Call helper function which possibly converts this using DOS-style short mode.
43733   # If so, the updated path is stored in $new_path.
43734 
43735   input_path="$new_path"
43736   # Check if we need to convert this using DOS-style short mode. If the path
43737   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43738   # take no chances and rewrite it.
43739   # Note: m4 eats our [], so we need to use [ and ] instead.
43740   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43741   if test "x$has_forbidden_chars" != x; then
43742     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43743     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43744     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43745     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43746       # Going to short mode and back again did indeed matter. Since short mode is
43747       # case insensitive, let's make it lowercase to improve readability.
43748       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43749       # Now convert it back to Unix-stile (cygpath)
43750       input_path=`$CYGPATH -u "$shortmode_path"`
43751       new_path="$input_path"
43752     fi
43753   fi
43754 
43755   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43756   if test "x$test_cygdrive_prefix" = x; then
43757     # As a simple fix, exclude /usr/bin since it's not a real path.
43758     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43759       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43760       # a path prefixed by /cygdrive for fixpath to work.
43761       new_path="$CYGWIN_ROOT_PATH$input_path"
43762     fi
43763   fi
43764 
43765 
43766   if test "x$path" != "x$new_path"; then
43767     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43768     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43769 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43770   fi
43771 
43772   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43773 
43774   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43775   has_colon=`$ECHO $path | $GREP ^.:`
43776   new_path="$path"
43777   if test "x$has_colon" = x; then
43778     # Not in mixed or Windows style, start by that.
43779     new_path=`cmd //c echo $path`
43780   fi
43781 
43782 
43783   input_path="$new_path"
43784   # Check if we need to convert this using DOS-style short mode. If the path
43785   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43786   # take no chances and rewrite it.
43787   # Note: m4 eats our [], so we need to use [ and ] instead.
43788   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43789   if test "x$has_forbidden_chars" != x; then
43790     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43791     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43792   fi
43793 
43794 
43795   windows_path="$new_path"
43796   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43797     unix_path=`$CYGPATH -u "$windows_path"`
43798     new_path="$unix_path"
43799   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43800     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43801     new_path="$unix_path"
43802   fi
43803 
43804   if test "x$path" != "x$new_path"; then
43805     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43806     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43807 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43808   fi
43809 
43810   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43811   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43812 
43813   else
43814     # We're on a posix platform. Hooray! :)
43815     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43816     has_space=`$ECHO "$path" | $GREP " "`
43817     if test "x$has_space" != x; then
43818       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43819 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43820       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43821     fi
43822 
43823     # Use eval to expand a potential ~
43824     eval path="$path"
43825     if test ! -f "$path" && test ! -d "$path"; then
43826       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43827     fi
43828 
43829     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
43830   fi
43831 
43832 
43833   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43834 
43835   # Input might be given as Windows format, start by converting to
43836   # unix format.
43837   path="$POTENTIAL_FREETYPE_LIB_PATH"
43838   new_path=`$CYGPATH -u "$path"`
43839 
43840   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43841   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43842   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43843   # "foo.exe" is OK but "foo" is an error.
43844   #
43845   # This test is therefore slightly more accurate than "test -f" to check for file precense.
43846   # It is also a way to make sure we got the proper file name for the real test later on.
43847   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43848   if test "x$test_shortpath" = x; then
43849     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43850 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43851     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
43852   fi
43853 
43854   # Call helper function which possibly converts this using DOS-style short mode.
43855   # If so, the updated path is stored in $new_path.
43856 
43857   input_path="$new_path"
43858   # Check if we need to convert this using DOS-style short mode. If the path
43859   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43860   # take no chances and rewrite it.
43861   # Note: m4 eats our [], so we need to use [ and ] instead.
43862   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43863   if test "x$has_forbidden_chars" != x; then
43864     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43865     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43866     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43867     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43868       # Going to short mode and back again did indeed matter. Since short mode is
43869       # case insensitive, let's make it lowercase to improve readability.
43870       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43871       # Now convert it back to Unix-stile (cygpath)
43872       input_path=`$CYGPATH -u "$shortmode_path"`
43873       new_path="$input_path"
43874     fi
43875   fi
43876 
43877   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43878   if test "x$test_cygdrive_prefix" = x; then
43879     # As a simple fix, exclude /usr/bin since it's not a real path.
43880     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43881       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43882       # a path prefixed by /cygdrive for fixpath to work.
43883       new_path="$CYGWIN_ROOT_PATH$input_path"
43884     fi
43885   fi
43886 
43887 
43888   if test "x$path" != "x$new_path"; then
43889     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43890     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43891 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43892   fi
43893 
43894   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43895 
43896   path="$POTENTIAL_FREETYPE_LIB_PATH"
43897   has_colon=`$ECHO $path | $GREP ^.:`
43898   new_path="$path"
43899   if test "x$has_colon" = x; then
43900     # Not in mixed or Windows style, start by that.
43901     new_path=`cmd //c echo $path`
43902   fi
43903 
43904 
43905   input_path="$new_path"
43906   # Check if we need to convert this using DOS-style short mode. If the path
43907   # contains just simple characters, use it. Otherwise (spaces, weird characters),
43908   # take no chances and rewrite it.
43909   # Note: m4 eats our [], so we need to use [ and ] instead.
43910   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43911   if test "x$has_forbidden_chars" != x; then
43912     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43913     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43914   fi
43915 
43916 
43917   windows_path="$new_path"
43918   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43919     unix_path=`$CYGPATH -u "$windows_path"`
43920     new_path="$unix_path"
43921   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43922     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43923     new_path="$unix_path"
43924   fi
43925 
43926   if test "x$path" != "x$new_path"; then
43927     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43928     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43929 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43930   fi
43931 
43932   # Save the first 10 bytes of this path to the storage, so fixpath can work.
43933   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43934 
43935   else
43936     # We're on a posix platform. Hooray! :)
43937     path="$POTENTIAL_FREETYPE_LIB_PATH"
43938     has_space=`$ECHO "$path" | $GREP " "`
43939     if test "x$has_space" != x; then
43940       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43942       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43943     fi
43944 
43945     # Use eval to expand a potential ~
43946     eval path="$path"
43947     if test ! -f "$path" && test ! -d "$path"; then
43948       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43949     fi
43950 
43951     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
43952   fi
43953 
43954 
43955     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
43957 $as_echo_n "checking for freetype includes... " >&6; }
43958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
43959 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
43960     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
43962 $as_echo_n "checking for freetype libraries... " >&6; }
43963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
43964 $as_echo "$FREETYPE_LIB_PATH" >&6; }
43965   fi
43966 
43967         if test "x$FOUND_FREETYPE" != xyes; then
43968           as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5
43969         fi
43970       else
43971         # User specified only one of lib or include. This is an error.
43972         if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then
43973           { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5
43974 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;}
43975           as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
43976         else
43977           { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5
43978 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;}
43979           as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
43980         fi
43981       fi
43982     else
43983       # User did not specify settings, but we need freetype. Try to locate it.
43984 
43985       if test "x$BUNDLE_FREETYPE" = x; then
43986         # If not specified, default is to bundle freetype only on windows
43987         if test "x$OPENJDK_TARGET_OS" = xwindows; then
43988           BUNDLE_FREETYPE=yes
43989         else
43990           BUNDLE_FREETYPE=no
43991         fi
43992       fi
43993 
43994       if test "x$FOUND_FREETYPE" != xyes; then
43995         # Check builddeps
43996 
43997 
43998   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
43999     # Source the builddeps file again, to make sure it uses the latest variables!
44000     . $builddepsfile
44001     # Look for a target and build machine specific resource!
44002     eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
44003     if test "x$resource" = x; then
44004       # Ok, lets instead look for a target specific resource
44005       eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}}
44006     fi
44007     if test "x$resource" = x; then
44008       # Ok, lets instead look for a build specific resource
44009       eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
44010     fi
44011     if test "x$resource" = x; then
44012       # Ok, lets instead look for a generic resource
44013       # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
44014       resource=${builddep_freetype2}
44015     fi
44016     if test "x$resource" != x; then
44017       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
44018 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
44019       # If the resource in the builddeps.conf file is an existing directory,
44020       # for example /java/linux/cups
44021       if test -d ${resource}; then
44022         depdir=${resource}
44023       else
44024 
44025   # freetype2 is for example mymodule
44026   # $resource is for example libs/general/libmymod_1_2_3.zip
44027   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
44028   # $with_builddeps_dir is for example /localhome/builddeps
44029   # depdir is the name of the variable into which we store the depdir, eg MYMOD
44030   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
44031   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
44032   filename=`basename $resource`
44033   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
44034   filebase=${filename%%.*}
44035   extension=${filename#*.}
44036   installdir=$with_builddeps_dir/$filebase
44037   if test ! -f $installdir/$filename.unpacked; then
44038     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
44039 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
44040     if test ! -d $installdir; then
44041       mkdir -p $installdir
44042     fi
44043     if test ! -d $installdir; then
44044       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
44045     fi
44046     tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
44047     touch $tmpfile
44048     if test ! -f $tmpfile; then
44049       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
44050     fi
44051 
44052   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
44053   # $tmpfile is the local file name for the downloaded file.
44054   VALID_TOOL=no
44055   if test "x$BDEPS_FTP" = xwget; then
44056     VALID_TOOL=yes
44057     wget -O $tmpfile $with_builddeps_server/$resource
44058   fi
44059   if test "x$BDEPS_FTP" = xlftp; then
44060     VALID_TOOL=yes
44061     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
44062   fi
44063   if test "x$BDEPS_FTP" = xftp; then
44064     VALID_TOOL=yes
44065     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
44066     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
44067     FTPUSERPWD=${FTPSERVER%%@*}
44068     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
44069       FTPUSER=${userpwd%%:*}
44070       FTPPWD=${userpwd#*@}
44071       FTPSERVER=${FTPSERVER#*@}
44072     else
44073       FTPUSER=ftp
44074       FTPPWD=ftp
44075     fi
44076     # the "pass" command does not work on some
44077     # ftp clients (read ftp.exe) but if it works,
44078     # passive mode is better!
44079     ( \
44080         echo "user $FTPUSER $FTPPWD"        ; \
44081         echo "pass"                         ; \
44082         echo "bin"                          ; \
44083         echo "get $FTPPATH $tmpfile"              ; \
44084     ) | ftp -in $FTPSERVER
44085   fi
44086   if test "x$VALID_TOOL" != xyes; then
44087     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
44088   fi
44089 
44090     mv $tmpfile $installdir/$filename
44091     if test ! -s $installdir/$filename; then
44092       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
44093     fi
44094     case "$extension" in
44095       zip)  echo "Unzipping $installdir/$filename..."
44096         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
44097         ;;
44098       tar.gz) echo "Untaring $installdir/$filename..."
44099         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
44100         ;;
44101       tgz) echo "Untaring $installdir/$filename..."
44102         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
44103         ;;
44104       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
44105         ;;
44106     esac
44107   fi
44108   if test -f $installdir/$filename.unpacked; then
44109     depdir=$installdir
44110   fi
44111 
44112       fi
44113       # Source the builddeps file again, because in the previous command, the depdir
44114       # was updated to point at the current build dependency install directory.
44115       . $builddepsfile
44116       # Now extract variables from the builddeps.conf files.
44117       theroot=${builddep_freetype2_ROOT}
44118       thecflags=${builddep_freetype2_CFLAGS}
44119       thelibs=${builddep_freetype2_LIBS}
44120       if test "x$depdir" = x; then
44121         as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
44122       fi
44123       FREETYPE=$depdir
44124       if test "x$theroot" != x; then
44125         FREETYPE="$theroot"
44126       fi
44127       if test "x$thecflags" != x; then
44128         FREETYPE_CFLAGS="$thecflags"
44129       fi
44130       if test "x$thelibs" != x; then
44131         FREETYPE_LIBS="$thelibs"
44132       fi
44133       FOUND_FREETYPE=yes
44134       else FOUND_FREETYPE=no
44135 
44136     fi
44137     else FOUND_FREETYPE=no
44138 
44139   fi
44140 
44141         # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
44142         if test "x$FOUND_FREETYPE" = xyes; then
44143           if test "x$BUNDLE_FREETYPE" = xyes; then
44144             { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5
44145 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;}
44146             FOUND_FREETYPE=no
44147           else
44148             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
44149 $as_echo_n "checking for freetype... " >&6; }
44150             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5
44151 $as_echo "yes (using builddeps)" >&6; }
44152           fi
44153         fi
44154       fi
44155 
44156       if test "x$FOUND_FREETYPE" != xyes; then
44157         # Check modules using pkg-config, but only if we have it (ugly output results otherwise)
44158         if test "x$PKG_CONFIG" != x; then
44159 
44160 pkg_failed=no
44161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
44162 $as_echo_n "checking for FREETYPE... " >&6; }
44163 
44164 if test -n "$FREETYPE_CFLAGS"; then
44165     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
44166  elif test -n "$PKG_CONFIG"; then
44167     if test -n "$PKG_CONFIG" && \
44168     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
44169   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
44170   ac_status=$?
44171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44172   test $ac_status = 0; }; then
44173   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
44174 else
44175   pkg_failed=yes
44176 fi
44177  else
44178     pkg_failed=untried
44179 fi
44180 if test -n "$FREETYPE_LIBS"; then
44181     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
44182  elif test -n "$PKG_CONFIG"; then
44183     if test -n "$PKG_CONFIG" && \
44184     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
44185   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
44186   ac_status=$?
44187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44188   test $ac_status = 0; }; then
44189   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
44190 else
44191   pkg_failed=yes
44192 fi
44193  else
44194     pkg_failed=untried
44195 fi
44196 
44197 
44198 
44199 if test $pkg_failed = yes; then
44200 
44201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44202         _pkg_short_errors_supported=yes
44203 else
44204         _pkg_short_errors_supported=no
44205 fi
44206         if test $_pkg_short_errors_supported = yes; then
44207                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
44208         else
44209                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
44210         fi
44211         # Put the nasty error message in config.log where it belongs
44212         echo "$FREETYPE_PKG_ERRORS" >&5
44213 
44214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44215 $as_echo "no" >&6; }
44216                 FOUND_FREETYPE=no
44217 elif test $pkg_failed = untried; then
44218         FOUND_FREETYPE=no
44219 else
44220         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
44221         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
44222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44223 $as_echo "yes" >&6; }
44224         FOUND_FREETYPE=yes
44225 fi
44226           if test "x$FOUND_FREETYPE" = xyes; then
44227             # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us.
44228             FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'`
44229             # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64
44230             if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
44231               FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'`
44232             fi
44233             # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
44234             if test "x$BUNDLE_FREETYPE" = xyes; then
44235               { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5
44236 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;}
44237               FOUND_FREETYPE=no
44238             else
44239               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
44240 $as_echo_n "checking for freetype... " >&6; }
44241               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5
44242 $as_echo "yes (using pkg-config)" >&6; }
44243             fi
44244           fi
44245         fi
44246       fi
44247 
44248       if test "x$FOUND_FREETYPE" != xyes; then
44249         # Check in well-known locations
44250         if test "x$OPENJDK_TARGET_OS" = xwindows; then
44251           FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32"
44252 
44253   windows_path="$FREETYPE_BASE_DIR"
44254   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44255     unix_path=`$CYGPATH -u "$windows_path"`
44256     FREETYPE_BASE_DIR="$unix_path"
44257   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44258     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44259     FREETYPE_BASE_DIR="$unix_path"
44260   fi
44261 
44262 
44263   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44264   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44265   METHOD="well-known location"
44266 
44267   # First check if the files exists.
44268   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44269     # We found an arbitrary include file. That's a good sign.
44270     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44271 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44272     FOUND_FREETYPE=yes
44273 
44274     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44275     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44276       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44277 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44278       FOUND_FREETYPE=no
44279     else
44280       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44281         # On Windows, we will need both .lib and .dll file.
44282         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44283           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44284 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44285           FOUND_FREETYPE=no
44286         fi
44287       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
44288         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44289         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44290       fi
44291     fi
44292   fi
44293 
44294   if test "x$FOUND_FREETYPE" = xyes; then
44295 
44296   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44297 
44298   # Input might be given as Windows format, start by converting to
44299   # unix format.
44300   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44301   new_path=`$CYGPATH -u "$path"`
44302 
44303   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44304   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44305   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44306   # "foo.exe" is OK but "foo" is an error.
44307   #
44308   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44309   # It is also a way to make sure we got the proper file name for the real test later on.
44310   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44311   if test "x$test_shortpath" = x; then
44312     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44313 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44314     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44315   fi
44316 
44317   # Call helper function which possibly converts this using DOS-style short mode.
44318   # If so, the updated path is stored in $new_path.
44319 
44320   input_path="$new_path"
44321   # Check if we need to convert this using DOS-style short mode. If the path
44322   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44323   # take no chances and rewrite it.
44324   # Note: m4 eats our [], so we need to use [ and ] instead.
44325   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44326   if test "x$has_forbidden_chars" != x; then
44327     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44328     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44329     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44330     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44331       # Going to short mode and back again did indeed matter. Since short mode is
44332       # case insensitive, let's make it lowercase to improve readability.
44333       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44334       # Now convert it back to Unix-stile (cygpath)
44335       input_path=`$CYGPATH -u "$shortmode_path"`
44336       new_path="$input_path"
44337     fi
44338   fi
44339 
44340   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44341   if test "x$test_cygdrive_prefix" = x; then
44342     # As a simple fix, exclude /usr/bin since it's not a real path.
44343     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44344       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44345       # a path prefixed by /cygdrive for fixpath to work.
44346       new_path="$CYGWIN_ROOT_PATH$input_path"
44347     fi
44348   fi
44349 
44350 
44351   if test "x$path" != "x$new_path"; then
44352     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44353     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44354 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44355   fi
44356 
44357   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44358 
44359   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44360   has_colon=`$ECHO $path | $GREP ^.:`
44361   new_path="$path"
44362   if test "x$has_colon" = x; then
44363     # Not in mixed or Windows style, start by that.
44364     new_path=`cmd //c echo $path`
44365   fi
44366 
44367 
44368   input_path="$new_path"
44369   # Check if we need to convert this using DOS-style short mode. If the path
44370   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44371   # take no chances and rewrite it.
44372   # Note: m4 eats our [], so we need to use [ and ] instead.
44373   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44374   if test "x$has_forbidden_chars" != x; then
44375     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44376     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44377   fi
44378 
44379 
44380   windows_path="$new_path"
44381   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44382     unix_path=`$CYGPATH -u "$windows_path"`
44383     new_path="$unix_path"
44384   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44385     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44386     new_path="$unix_path"
44387   fi
44388 
44389   if test "x$path" != "x$new_path"; then
44390     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44391     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44392 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44393   fi
44394 
44395   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44396   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44397 
44398   else
44399     # We're on a posix platform. Hooray! :)
44400     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44401     has_space=`$ECHO "$path" | $GREP " "`
44402     if test "x$has_space" != x; then
44403       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44404 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44405       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44406     fi
44407 
44408     # Use eval to expand a potential ~
44409     eval path="$path"
44410     if test ! -f "$path" && test ! -d "$path"; then
44411       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44412     fi
44413 
44414     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44415   fi
44416 
44417 
44418   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44419 
44420   # Input might be given as Windows format, start by converting to
44421   # unix format.
44422   path="$POTENTIAL_FREETYPE_LIB_PATH"
44423   new_path=`$CYGPATH -u "$path"`
44424 
44425   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44426   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44427   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44428   # "foo.exe" is OK but "foo" is an error.
44429   #
44430   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44431   # It is also a way to make sure we got the proper file name for the real test later on.
44432   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44433   if test "x$test_shortpath" = x; then
44434     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44435 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44436     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44437   fi
44438 
44439   # Call helper function which possibly converts this using DOS-style short mode.
44440   # If so, the updated path is stored in $new_path.
44441 
44442   input_path="$new_path"
44443   # Check if we need to convert this using DOS-style short mode. If the path
44444   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44445   # take no chances and rewrite it.
44446   # Note: m4 eats our [], so we need to use [ and ] instead.
44447   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44448   if test "x$has_forbidden_chars" != x; then
44449     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44450     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44451     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44452     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44453       # Going to short mode and back again did indeed matter. Since short mode is
44454       # case insensitive, let's make it lowercase to improve readability.
44455       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44456       # Now convert it back to Unix-stile (cygpath)
44457       input_path=`$CYGPATH -u "$shortmode_path"`
44458       new_path="$input_path"
44459     fi
44460   fi
44461 
44462   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44463   if test "x$test_cygdrive_prefix" = x; then
44464     # As a simple fix, exclude /usr/bin since it's not a real path.
44465     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44466       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44467       # a path prefixed by /cygdrive for fixpath to work.
44468       new_path="$CYGWIN_ROOT_PATH$input_path"
44469     fi
44470   fi
44471 
44472 
44473   if test "x$path" != "x$new_path"; then
44474     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44475     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44476 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44477   fi
44478 
44479   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44480 
44481   path="$POTENTIAL_FREETYPE_LIB_PATH"
44482   has_colon=`$ECHO $path | $GREP ^.:`
44483   new_path="$path"
44484   if test "x$has_colon" = x; then
44485     # Not in mixed or Windows style, start by that.
44486     new_path=`cmd //c echo $path`
44487   fi
44488 
44489 
44490   input_path="$new_path"
44491   # Check if we need to convert this using DOS-style short mode. If the path
44492   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44493   # take no chances and rewrite it.
44494   # Note: m4 eats our [], so we need to use [ and ] instead.
44495   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44496   if test "x$has_forbidden_chars" != x; then
44497     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44498     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44499   fi
44500 
44501 
44502   windows_path="$new_path"
44503   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44504     unix_path=`$CYGPATH -u "$windows_path"`
44505     new_path="$unix_path"
44506   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44507     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44508     new_path="$unix_path"
44509   fi
44510 
44511   if test "x$path" != "x$new_path"; then
44512     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44513     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44514 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44515   fi
44516 
44517   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44518   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44519 
44520   else
44521     # We're on a posix platform. Hooray! :)
44522     path="$POTENTIAL_FREETYPE_LIB_PATH"
44523     has_space=`$ECHO "$path" | $GREP " "`
44524     if test "x$has_space" != x; then
44525       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44526 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44527       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44528     fi
44529 
44530     # Use eval to expand a potential ~
44531     eval path="$path"
44532     if test ! -f "$path" && test ! -d "$path"; then
44533       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44534     fi
44535 
44536     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44537   fi
44538 
44539 
44540     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44542 $as_echo_n "checking for freetype includes... " >&6; }
44543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44544 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44545     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44547 $as_echo_n "checking for freetype libraries... " >&6; }
44548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44549 $as_echo "$FREETYPE_LIB_PATH" >&6; }
44550   fi
44551 
44552           if test "x$FOUND_FREETYPE" != xyes; then
44553             FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32"
44554 
44555   windows_path="$FREETYPE_BASE_DIR"
44556   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44557     unix_path=`$CYGPATH -u "$windows_path"`
44558     FREETYPE_BASE_DIR="$unix_path"
44559   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44560     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44561     FREETYPE_BASE_DIR="$unix_path"
44562   fi
44563 
44564 
44565   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44566   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44567   METHOD="well-known location"
44568 
44569   # First check if the files exists.
44570   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44571     # We found an arbitrary include file. That's a good sign.
44572     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44573 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44574     FOUND_FREETYPE=yes
44575 
44576     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44577     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44578       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44579 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44580       FOUND_FREETYPE=no
44581     else
44582       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44583         # On Windows, we will need both .lib and .dll file.
44584         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44585           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44586 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44587           FOUND_FREETYPE=no
44588         fi
44589       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
44590         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44591         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44592       fi
44593     fi
44594   fi
44595 
44596   if test "x$FOUND_FREETYPE" = xyes; then
44597 
44598   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44599 
44600   # Input might be given as Windows format, start by converting to
44601   # unix format.
44602   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44603   new_path=`$CYGPATH -u "$path"`
44604 
44605   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44606   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44607   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44608   # "foo.exe" is OK but "foo" is an error.
44609   #
44610   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44611   # It is also a way to make sure we got the proper file name for the real test later on.
44612   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44613   if test "x$test_shortpath" = x; then
44614     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44615 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44616     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44617   fi
44618 
44619   # Call helper function which possibly converts this using DOS-style short mode.
44620   # If so, the updated path is stored in $new_path.
44621 
44622   input_path="$new_path"
44623   # Check if we need to convert this using DOS-style short mode. If the path
44624   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44625   # take no chances and rewrite it.
44626   # Note: m4 eats our [], so we need to use [ and ] instead.
44627   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44628   if test "x$has_forbidden_chars" != x; then
44629     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44630     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44631     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44632     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44633       # Going to short mode and back again did indeed matter. Since short mode is
44634       # case insensitive, let's make it lowercase to improve readability.
44635       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44636       # Now convert it back to Unix-stile (cygpath)
44637       input_path=`$CYGPATH -u "$shortmode_path"`
44638       new_path="$input_path"
44639     fi
44640   fi
44641 
44642   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44643   if test "x$test_cygdrive_prefix" = x; then
44644     # As a simple fix, exclude /usr/bin since it's not a real path.
44645     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44646       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44647       # a path prefixed by /cygdrive for fixpath to work.
44648       new_path="$CYGWIN_ROOT_PATH$input_path"
44649     fi
44650   fi
44651 
44652 
44653   if test "x$path" != "x$new_path"; then
44654     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44655     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44656 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44657   fi
44658 
44659   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44660 
44661   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44662   has_colon=`$ECHO $path | $GREP ^.:`
44663   new_path="$path"
44664   if test "x$has_colon" = x; then
44665     # Not in mixed or Windows style, start by that.
44666     new_path=`cmd //c echo $path`
44667   fi
44668 
44669 
44670   input_path="$new_path"
44671   # Check if we need to convert this using DOS-style short mode. If the path
44672   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44673   # take no chances and rewrite it.
44674   # Note: m4 eats our [], so we need to use [ and ] instead.
44675   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44676   if test "x$has_forbidden_chars" != x; then
44677     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44678     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44679   fi
44680 
44681 
44682   windows_path="$new_path"
44683   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44684     unix_path=`$CYGPATH -u "$windows_path"`
44685     new_path="$unix_path"
44686   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44687     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44688     new_path="$unix_path"
44689   fi
44690 
44691   if test "x$path" != "x$new_path"; then
44692     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44693     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44694 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44695   fi
44696 
44697   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44698   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44699 
44700   else
44701     # We're on a posix platform. Hooray! :)
44702     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44703     has_space=`$ECHO "$path" | $GREP " "`
44704     if test "x$has_space" != x; then
44705       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44706 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44707       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44708     fi
44709 
44710     # Use eval to expand a potential ~
44711     eval path="$path"
44712     if test ! -f "$path" && test ! -d "$path"; then
44713       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44714     fi
44715 
44716     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44717   fi
44718 
44719 
44720   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44721 
44722   # Input might be given as Windows format, start by converting to
44723   # unix format.
44724   path="$POTENTIAL_FREETYPE_LIB_PATH"
44725   new_path=`$CYGPATH -u "$path"`
44726 
44727   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44728   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44729   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44730   # "foo.exe" is OK but "foo" is an error.
44731   #
44732   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44733   # It is also a way to make sure we got the proper file name for the real test later on.
44734   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44735   if test "x$test_shortpath" = x; then
44736     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44737 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44738     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44739   fi
44740 
44741   # Call helper function which possibly converts this using DOS-style short mode.
44742   # If so, the updated path is stored in $new_path.
44743 
44744   input_path="$new_path"
44745   # Check if we need to convert this using DOS-style short mode. If the path
44746   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44747   # take no chances and rewrite it.
44748   # Note: m4 eats our [], so we need to use [ and ] instead.
44749   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44750   if test "x$has_forbidden_chars" != x; then
44751     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44752     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44753     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44754     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44755       # Going to short mode and back again did indeed matter. Since short mode is
44756       # case insensitive, let's make it lowercase to improve readability.
44757       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44758       # Now convert it back to Unix-stile (cygpath)
44759       input_path=`$CYGPATH -u "$shortmode_path"`
44760       new_path="$input_path"
44761     fi
44762   fi
44763 
44764   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44765   if test "x$test_cygdrive_prefix" = x; then
44766     # As a simple fix, exclude /usr/bin since it's not a real path.
44767     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44768       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44769       # a path prefixed by /cygdrive for fixpath to work.
44770       new_path="$CYGWIN_ROOT_PATH$input_path"
44771     fi
44772   fi
44773 
44774 
44775   if test "x$path" != "x$new_path"; then
44776     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44777     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44778 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44779   fi
44780 
44781   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44782 
44783   path="$POTENTIAL_FREETYPE_LIB_PATH"
44784   has_colon=`$ECHO $path | $GREP ^.:`
44785   new_path="$path"
44786   if test "x$has_colon" = x; then
44787     # Not in mixed or Windows style, start by that.
44788     new_path=`cmd //c echo $path`
44789   fi
44790 
44791 
44792   input_path="$new_path"
44793   # Check if we need to convert this using DOS-style short mode. If the path
44794   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44795   # take no chances and rewrite it.
44796   # Note: m4 eats our [], so we need to use [ and ] instead.
44797   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44798   if test "x$has_forbidden_chars" != x; then
44799     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44800     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44801   fi
44802 
44803 
44804   windows_path="$new_path"
44805   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44806     unix_path=`$CYGPATH -u "$windows_path"`
44807     new_path="$unix_path"
44808   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44809     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44810     new_path="$unix_path"
44811   fi
44812 
44813   if test "x$path" != "x$new_path"; then
44814     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44815     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44816 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44817   fi
44818 
44819   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44820   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44821 
44822   else
44823     # We're on a posix platform. Hooray! :)
44824     path="$POTENTIAL_FREETYPE_LIB_PATH"
44825     has_space=`$ECHO "$path" | $GREP " "`
44826     if test "x$has_space" != x; then
44827       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44828 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44829       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44830     fi
44831 
44832     # Use eval to expand a potential ~
44833     eval path="$path"
44834     if test ! -f "$path" && test ! -d "$path"; then
44835       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44836     fi
44837 
44838     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44839   fi
44840 
44841 
44842     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44844 $as_echo_n "checking for freetype includes... " >&6; }
44845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44846 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44847     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44849 $as_echo_n "checking for freetype libraries... " >&6; }
44850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44851 $as_echo "$FREETYPE_LIB_PATH" >&6; }
44852   fi
44853 
44854           fi
44855         else
44856           if test "x$SYS_ROOT" = "x/"; then
44857             FREETYPE_ROOT=
44858           else
44859             FREETYPE_ROOT="$SYS_ROOT"
44860           fi
44861           FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr"
44862 
44863   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44864   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44865   METHOD="well-known location"
44866 
44867   # First check if the files exists.
44868   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44869     # We found an arbitrary include file. That's a good sign.
44870     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44871 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44872     FOUND_FREETYPE=yes
44873 
44874     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44875     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44876       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44877 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44878       FOUND_FREETYPE=no
44879     else
44880       if test "x$OPENJDK_TARGET_OS" = xwindows; then
44881         # On Windows, we will need both .lib and .dll file.
44882         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44883           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44884 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44885           FOUND_FREETYPE=no
44886         fi
44887       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
44888         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44889         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44890       fi
44891     fi
44892   fi
44893 
44894   if test "x$FOUND_FREETYPE" = xyes; then
44895 
44896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44897 
44898   # Input might be given as Windows format, start by converting to
44899   # unix format.
44900   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44901   new_path=`$CYGPATH -u "$path"`
44902 
44903   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44904   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44905   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44906   # "foo.exe" is OK but "foo" is an error.
44907   #
44908   # This test is therefore slightly more accurate than "test -f" to check for file precense.
44909   # It is also a way to make sure we got the proper file name for the real test later on.
44910   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44911   if test "x$test_shortpath" = x; then
44912     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44913 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44914     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44915   fi
44916 
44917   # Call helper function which possibly converts this using DOS-style short mode.
44918   # If so, the updated path is stored in $new_path.
44919 
44920   input_path="$new_path"
44921   # Check if we need to convert this using DOS-style short mode. If the path
44922   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44923   # take no chances and rewrite it.
44924   # Note: m4 eats our [], so we need to use [ and ] instead.
44925   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44926   if test "x$has_forbidden_chars" != x; then
44927     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44928     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44929     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44930     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44931       # Going to short mode and back again did indeed matter. Since short mode is
44932       # case insensitive, let's make it lowercase to improve readability.
44933       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44934       # Now convert it back to Unix-stile (cygpath)
44935       input_path=`$CYGPATH -u "$shortmode_path"`
44936       new_path="$input_path"
44937     fi
44938   fi
44939 
44940   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44941   if test "x$test_cygdrive_prefix" = x; then
44942     # As a simple fix, exclude /usr/bin since it's not a real path.
44943     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44944       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44945       # a path prefixed by /cygdrive for fixpath to work.
44946       new_path="$CYGWIN_ROOT_PATH$input_path"
44947     fi
44948   fi
44949 
44950 
44951   if test "x$path" != "x$new_path"; then
44952     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44953     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44954 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44955   fi
44956 
44957   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44958 
44959   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44960   has_colon=`$ECHO $path | $GREP ^.:`
44961   new_path="$path"
44962   if test "x$has_colon" = x; then
44963     # Not in mixed or Windows style, start by that.
44964     new_path=`cmd //c echo $path`
44965   fi
44966 
44967 
44968   input_path="$new_path"
44969   # Check if we need to convert this using DOS-style short mode. If the path
44970   # contains just simple characters, use it. Otherwise (spaces, weird characters),
44971   # take no chances and rewrite it.
44972   # Note: m4 eats our [], so we need to use [ and ] instead.
44973   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44974   if test "x$has_forbidden_chars" != x; then
44975     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44976     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44977   fi
44978 
44979 
44980   windows_path="$new_path"
44981   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44982     unix_path=`$CYGPATH -u "$windows_path"`
44983     new_path="$unix_path"
44984   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44985     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44986     new_path="$unix_path"
44987   fi
44988 
44989   if test "x$path" != "x$new_path"; then
44990     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44991     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44992 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44993   fi
44994 
44995   # Save the first 10 bytes of this path to the storage, so fixpath can work.
44996   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44997 
44998   else
44999     # We're on a posix platform. Hooray! :)
45000     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45001     has_space=`$ECHO "$path" | $GREP " "`
45002     if test "x$has_space" != x; then
45003       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45004 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45005       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45006     fi
45007 
45008     # Use eval to expand a potential ~
45009     eval path="$path"
45010     if test ! -f "$path" && test ! -d "$path"; then
45011       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45012     fi
45013 
45014     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45015   fi
45016 
45017 
45018   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45019 
45020   # Input might be given as Windows format, start by converting to
45021   # unix format.
45022   path="$POTENTIAL_FREETYPE_LIB_PATH"
45023   new_path=`$CYGPATH -u "$path"`
45024 
45025   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45026   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45027   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45028   # "foo.exe" is OK but "foo" is an error.
45029   #
45030   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45031   # It is also a way to make sure we got the proper file name for the real test later on.
45032   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45033   if test "x$test_shortpath" = x; then
45034     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45035 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45036     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45037   fi
45038 
45039   # Call helper function which possibly converts this using DOS-style short mode.
45040   # If so, the updated path is stored in $new_path.
45041 
45042   input_path="$new_path"
45043   # Check if we need to convert this using DOS-style short mode. If the path
45044   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45045   # take no chances and rewrite it.
45046   # Note: m4 eats our [], so we need to use [ and ] instead.
45047   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45048   if test "x$has_forbidden_chars" != x; then
45049     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45050     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45051     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45052     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45053       # Going to short mode and back again did indeed matter. Since short mode is
45054       # case insensitive, let's make it lowercase to improve readability.
45055       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45056       # Now convert it back to Unix-stile (cygpath)
45057       input_path=`$CYGPATH -u "$shortmode_path"`
45058       new_path="$input_path"
45059     fi
45060   fi
45061 
45062   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45063   if test "x$test_cygdrive_prefix" = x; then
45064     # As a simple fix, exclude /usr/bin since it's not a real path.
45065     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45066       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45067       # a path prefixed by /cygdrive for fixpath to work.
45068       new_path="$CYGWIN_ROOT_PATH$input_path"
45069     fi
45070   fi
45071 
45072 
45073   if test "x$path" != "x$new_path"; then
45074     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45075     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45076 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45077   fi
45078 
45079   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45080 
45081   path="$POTENTIAL_FREETYPE_LIB_PATH"
45082   has_colon=`$ECHO $path | $GREP ^.:`
45083   new_path="$path"
45084   if test "x$has_colon" = x; then
45085     # Not in mixed or Windows style, start by that.
45086     new_path=`cmd //c echo $path`
45087   fi
45088 
45089 
45090   input_path="$new_path"
45091   # Check if we need to convert this using DOS-style short mode. If the path
45092   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45093   # take no chances and rewrite it.
45094   # Note: m4 eats our [], so we need to use [ and ] instead.
45095   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45096   if test "x$has_forbidden_chars" != x; then
45097     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45098     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45099   fi
45100 
45101 
45102   windows_path="$new_path"
45103   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45104     unix_path=`$CYGPATH -u "$windows_path"`
45105     new_path="$unix_path"
45106   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45107     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45108     new_path="$unix_path"
45109   fi
45110 
45111   if test "x$path" != "x$new_path"; then
45112     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45113     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45114 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45115   fi
45116 
45117   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45118   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45119 
45120   else
45121     # We're on a posix platform. Hooray! :)
45122     path="$POTENTIAL_FREETYPE_LIB_PATH"
45123     has_space=`$ECHO "$path" | $GREP " "`
45124     if test "x$has_space" != x; then
45125       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45126 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45127       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45128     fi
45129 
45130     # Use eval to expand a potential ~
45131     eval path="$path"
45132     if test ! -f "$path" && test ! -d "$path"; then
45133       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45134     fi
45135 
45136     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45137   fi
45138 
45139 
45140     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45142 $as_echo_n "checking for freetype includes... " >&6; }
45143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45144 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45145     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45147 $as_echo_n "checking for freetype libraries... " >&6; }
45148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45149 $as_echo "$FREETYPE_LIB_PATH" >&6; }
45150   fi
45151 
45152 
45153           if test "x$FOUND_FREETYPE" != xyes; then
45154             FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr/X11"
45155 
45156   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45157   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
45158   METHOD="well-known location"
45159 
45160   # First check if the files exists.
45161   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45162     # We found an arbitrary include file. That's a good sign.
45163     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45164 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45165     FOUND_FREETYPE=yes
45166 
45167     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45168     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45169       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45170 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45171       FOUND_FREETYPE=no
45172     else
45173       if test "x$OPENJDK_TARGET_OS" = xwindows; then
45174         # On Windows, we will need both .lib and .dll file.
45175         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45176           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45177 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45178           FOUND_FREETYPE=no
45179         fi
45180       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
45181         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45182         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45183       fi
45184     fi
45185   fi
45186 
45187   if test "x$FOUND_FREETYPE" = xyes; then
45188 
45189   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45190 
45191   # Input might be given as Windows format, start by converting to
45192   # unix format.
45193   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45194   new_path=`$CYGPATH -u "$path"`
45195 
45196   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45197   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45198   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45199   # "foo.exe" is OK but "foo" is an error.
45200   #
45201   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45202   # It is also a way to make sure we got the proper file name for the real test later on.
45203   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45204   if test "x$test_shortpath" = x; then
45205     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45206 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45207     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45208   fi
45209 
45210   # Call helper function which possibly converts this using DOS-style short mode.
45211   # If so, the updated path is stored in $new_path.
45212 
45213   input_path="$new_path"
45214   # Check if we need to convert this using DOS-style short mode. If the path
45215   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45216   # take no chances and rewrite it.
45217   # Note: m4 eats our [], so we need to use [ and ] instead.
45218   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45219   if test "x$has_forbidden_chars" != x; then
45220     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45221     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45222     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45223     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45224       # Going to short mode and back again did indeed matter. Since short mode is
45225       # case insensitive, let's make it lowercase to improve readability.
45226       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45227       # Now convert it back to Unix-stile (cygpath)
45228       input_path=`$CYGPATH -u "$shortmode_path"`
45229       new_path="$input_path"
45230     fi
45231   fi
45232 
45233   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45234   if test "x$test_cygdrive_prefix" = x; then
45235     # As a simple fix, exclude /usr/bin since it's not a real path.
45236     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45237       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45238       # a path prefixed by /cygdrive for fixpath to work.
45239       new_path="$CYGWIN_ROOT_PATH$input_path"
45240     fi
45241   fi
45242 
45243 
45244   if test "x$path" != "x$new_path"; then
45245     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45246     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45247 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45248   fi
45249 
45250   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45251 
45252   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45253   has_colon=`$ECHO $path | $GREP ^.:`
45254   new_path="$path"
45255   if test "x$has_colon" = x; then
45256     # Not in mixed or Windows style, start by that.
45257     new_path=`cmd //c echo $path`
45258   fi
45259 
45260 
45261   input_path="$new_path"
45262   # Check if we need to convert this using DOS-style short mode. If the path
45263   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45264   # take no chances and rewrite it.
45265   # Note: m4 eats our [], so we need to use [ and ] instead.
45266   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45267   if test "x$has_forbidden_chars" != x; then
45268     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45269     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45270   fi
45271 
45272 
45273   windows_path="$new_path"
45274   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45275     unix_path=`$CYGPATH -u "$windows_path"`
45276     new_path="$unix_path"
45277   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45278     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45279     new_path="$unix_path"
45280   fi
45281 
45282   if test "x$path" != "x$new_path"; then
45283     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45284     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45285 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45286   fi
45287 
45288   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45289   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45290 
45291   else
45292     # We're on a posix platform. Hooray! :)
45293     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45294     has_space=`$ECHO "$path" | $GREP " "`
45295     if test "x$has_space" != x; then
45296       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45297 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45298       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45299     fi
45300 
45301     # Use eval to expand a potential ~
45302     eval path="$path"
45303     if test ! -f "$path" && test ! -d "$path"; then
45304       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45305     fi
45306 
45307     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45308   fi
45309 
45310 
45311   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45312 
45313   # Input might be given as Windows format, start by converting to
45314   # unix format.
45315   path="$POTENTIAL_FREETYPE_LIB_PATH"
45316   new_path=`$CYGPATH -u "$path"`
45317 
45318   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45319   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45320   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45321   # "foo.exe" is OK but "foo" is an error.
45322   #
45323   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45324   # It is also a way to make sure we got the proper file name for the real test later on.
45325   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45326   if test "x$test_shortpath" = x; then
45327     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45328 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45329     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45330   fi
45331 
45332   # Call helper function which possibly converts this using DOS-style short mode.
45333   # If so, the updated path is stored in $new_path.
45334 
45335   input_path="$new_path"
45336   # Check if we need to convert this using DOS-style short mode. If the path
45337   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45338   # take no chances and rewrite it.
45339   # Note: m4 eats our [], so we need to use [ and ] instead.
45340   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45341   if test "x$has_forbidden_chars" != x; then
45342     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45343     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45344     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45345     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45346       # Going to short mode and back again did indeed matter. Since short mode is
45347       # case insensitive, let's make it lowercase to improve readability.
45348       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45349       # Now convert it back to Unix-stile (cygpath)
45350       input_path=`$CYGPATH -u "$shortmode_path"`
45351       new_path="$input_path"
45352     fi
45353   fi
45354 
45355   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45356   if test "x$test_cygdrive_prefix" = x; then
45357     # As a simple fix, exclude /usr/bin since it's not a real path.
45358     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45359       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45360       # a path prefixed by /cygdrive for fixpath to work.
45361       new_path="$CYGWIN_ROOT_PATH$input_path"
45362     fi
45363   fi
45364 
45365 
45366   if test "x$path" != "x$new_path"; then
45367     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45368     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45369 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45370   fi
45371 
45372   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45373 
45374   path="$POTENTIAL_FREETYPE_LIB_PATH"
45375   has_colon=`$ECHO $path | $GREP ^.:`
45376   new_path="$path"
45377   if test "x$has_colon" = x; then
45378     # Not in mixed or Windows style, start by that.
45379     new_path=`cmd //c echo $path`
45380   fi
45381 
45382 
45383   input_path="$new_path"
45384   # Check if we need to convert this using DOS-style short mode. If the path
45385   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45386   # take no chances and rewrite it.
45387   # Note: m4 eats our [], so we need to use [ and ] instead.
45388   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45389   if test "x$has_forbidden_chars" != x; then
45390     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45391     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45392   fi
45393 
45394 
45395   windows_path="$new_path"
45396   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45397     unix_path=`$CYGPATH -u "$windows_path"`
45398     new_path="$unix_path"
45399   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45400     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45401     new_path="$unix_path"
45402   fi
45403 
45404   if test "x$path" != "x$new_path"; then
45405     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45406     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45407 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45408   fi
45409 
45410   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45411   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45412 
45413   else
45414     # We're on a posix platform. Hooray! :)
45415     path="$POTENTIAL_FREETYPE_LIB_PATH"
45416     has_space=`$ECHO "$path" | $GREP " "`
45417     if test "x$has_space" != x; then
45418       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45419 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45420       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45421     fi
45422 
45423     # Use eval to expand a potential ~
45424     eval path="$path"
45425     if test ! -f "$path" && test ! -d "$path"; then
45426       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45427     fi
45428 
45429     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45430   fi
45431 
45432 
45433     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45435 $as_echo_n "checking for freetype includes... " >&6; }
45436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45437 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45438     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45440 $as_echo_n "checking for freetype libraries... " >&6; }
45441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45442 $as_echo "$FREETYPE_LIB_PATH" >&6; }
45443   fi
45444 
45445           fi
45446 
45447           if test "x$FOUND_FREETYPE" != xyes; then
45448             FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr"
45449             if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
45450 
45451   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45452   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu"
45453   METHOD="well-known location"
45454 
45455   # First check if the files exists.
45456   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45457     # We found an arbitrary include file. That's a good sign.
45458     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45459 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45460     FOUND_FREETYPE=yes
45461 
45462     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45463     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45464       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45465 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45466       FOUND_FREETYPE=no
45467     else
45468       if test "x$OPENJDK_TARGET_OS" = xwindows; then
45469         # On Windows, we will need both .lib and .dll file.
45470         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45471           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45472 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45473           FOUND_FREETYPE=no
45474         fi
45475       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
45476         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45477         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45478       fi
45479     fi
45480   fi
45481 
45482   if test "x$FOUND_FREETYPE" = xyes; then
45483 
45484   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45485 
45486   # Input might be given as Windows format, start by converting to
45487   # unix format.
45488   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45489   new_path=`$CYGPATH -u "$path"`
45490 
45491   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45492   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45493   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45494   # "foo.exe" is OK but "foo" is an error.
45495   #
45496   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45497   # It is also a way to make sure we got the proper file name for the real test later on.
45498   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45499   if test "x$test_shortpath" = x; then
45500     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45501 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45502     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45503   fi
45504 
45505   # Call helper function which possibly converts this using DOS-style short mode.
45506   # If so, the updated path is stored in $new_path.
45507 
45508   input_path="$new_path"
45509   # Check if we need to convert this using DOS-style short mode. If the path
45510   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45511   # take no chances and rewrite it.
45512   # Note: m4 eats our [], so we need to use [ and ] instead.
45513   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45514   if test "x$has_forbidden_chars" != x; then
45515     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45516     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45517     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45518     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45519       # Going to short mode and back again did indeed matter. Since short mode is
45520       # case insensitive, let's make it lowercase to improve readability.
45521       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45522       # Now convert it back to Unix-stile (cygpath)
45523       input_path=`$CYGPATH -u "$shortmode_path"`
45524       new_path="$input_path"
45525     fi
45526   fi
45527 
45528   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45529   if test "x$test_cygdrive_prefix" = x; then
45530     # As a simple fix, exclude /usr/bin since it's not a real path.
45531     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45532       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45533       # a path prefixed by /cygdrive for fixpath to work.
45534       new_path="$CYGWIN_ROOT_PATH$input_path"
45535     fi
45536   fi
45537 
45538 
45539   if test "x$path" != "x$new_path"; then
45540     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45541     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45542 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45543   fi
45544 
45545   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45546 
45547   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45548   has_colon=`$ECHO $path | $GREP ^.:`
45549   new_path="$path"
45550   if test "x$has_colon" = x; then
45551     # Not in mixed or Windows style, start by that.
45552     new_path=`cmd //c echo $path`
45553   fi
45554 
45555 
45556   input_path="$new_path"
45557   # Check if we need to convert this using DOS-style short mode. If the path
45558   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45559   # take no chances and rewrite it.
45560   # Note: m4 eats our [], so we need to use [ and ] instead.
45561   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45562   if test "x$has_forbidden_chars" != x; then
45563     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45564     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45565   fi
45566 
45567 
45568   windows_path="$new_path"
45569   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45570     unix_path=`$CYGPATH -u "$windows_path"`
45571     new_path="$unix_path"
45572   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45573     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45574     new_path="$unix_path"
45575   fi
45576 
45577   if test "x$path" != "x$new_path"; then
45578     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45579     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45580 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45581   fi
45582 
45583   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45584   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45585 
45586   else
45587     # We're on a posix platform. Hooray! :)
45588     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45589     has_space=`$ECHO "$path" | $GREP " "`
45590     if test "x$has_space" != x; then
45591       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45592 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45593       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45594     fi
45595 
45596     # Use eval to expand a potential ~
45597     eval path="$path"
45598     if test ! -f "$path" && test ! -d "$path"; then
45599       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45600     fi
45601 
45602     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45603   fi
45604 
45605 
45606   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45607 
45608   # Input might be given as Windows format, start by converting to
45609   # unix format.
45610   path="$POTENTIAL_FREETYPE_LIB_PATH"
45611   new_path=`$CYGPATH -u "$path"`
45612 
45613   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45614   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45615   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45616   # "foo.exe" is OK but "foo" is an error.
45617   #
45618   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45619   # It is also a way to make sure we got the proper file name for the real test later on.
45620   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45621   if test "x$test_shortpath" = x; then
45622     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45623 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45624     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45625   fi
45626 
45627   # Call helper function which possibly converts this using DOS-style short mode.
45628   # If so, the updated path is stored in $new_path.
45629 
45630   input_path="$new_path"
45631   # Check if we need to convert this using DOS-style short mode. If the path
45632   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45633   # take no chances and rewrite it.
45634   # Note: m4 eats our [], so we need to use [ and ] instead.
45635   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45636   if test "x$has_forbidden_chars" != x; then
45637     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45638     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45639     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45640     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45641       # Going to short mode and back again did indeed matter. Since short mode is
45642       # case insensitive, let's make it lowercase to improve readability.
45643       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45644       # Now convert it back to Unix-stile (cygpath)
45645       input_path=`$CYGPATH -u "$shortmode_path"`
45646       new_path="$input_path"
45647     fi
45648   fi
45649 
45650   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45651   if test "x$test_cygdrive_prefix" = x; then
45652     # As a simple fix, exclude /usr/bin since it's not a real path.
45653     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45654       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45655       # a path prefixed by /cygdrive for fixpath to work.
45656       new_path="$CYGWIN_ROOT_PATH$input_path"
45657     fi
45658   fi
45659 
45660 
45661   if test "x$path" != "x$new_path"; then
45662     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45663     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45664 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45665   fi
45666 
45667   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45668 
45669   path="$POTENTIAL_FREETYPE_LIB_PATH"
45670   has_colon=`$ECHO $path | $GREP ^.:`
45671   new_path="$path"
45672   if test "x$has_colon" = x; then
45673     # Not in mixed or Windows style, start by that.
45674     new_path=`cmd //c echo $path`
45675   fi
45676 
45677 
45678   input_path="$new_path"
45679   # Check if we need to convert this using DOS-style short mode. If the path
45680   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45681   # take no chances and rewrite it.
45682   # Note: m4 eats our [], so we need to use [ and ] instead.
45683   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45684   if test "x$has_forbidden_chars" != x; then
45685     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45686     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45687   fi
45688 
45689 
45690   windows_path="$new_path"
45691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45692     unix_path=`$CYGPATH -u "$windows_path"`
45693     new_path="$unix_path"
45694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45695     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45696     new_path="$unix_path"
45697   fi
45698 
45699   if test "x$path" != "x$new_path"; then
45700     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45702 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45703   fi
45704 
45705   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45706   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45707 
45708   else
45709     # We're on a posix platform. Hooray! :)
45710     path="$POTENTIAL_FREETYPE_LIB_PATH"
45711     has_space=`$ECHO "$path" | $GREP " "`
45712     if test "x$has_space" != x; then
45713       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45714 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45715       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45716     fi
45717 
45718     # Use eval to expand a potential ~
45719     eval path="$path"
45720     if test ! -f "$path" && test ! -d "$path"; then
45721       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45722     fi
45723 
45724     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45725   fi
45726 
45727 
45728     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45730 $as_echo_n "checking for freetype includes... " >&6; }
45731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45732 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45733     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45735 $as_echo_n "checking for freetype libraries... " >&6; }
45736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45737 $as_echo "$FREETYPE_LIB_PATH" >&6; }
45738   fi
45739 
45740             else
45741 
45742   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45743   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu"
45744   METHOD="well-known location"
45745 
45746   # First check if the files exists.
45747   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45748     # We found an arbitrary include file. That's a good sign.
45749     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45750 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45751     FOUND_FREETYPE=yes
45752 
45753     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45754     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45755       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45756 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45757       FOUND_FREETYPE=no
45758     else
45759       if test "x$OPENJDK_TARGET_OS" = xwindows; then
45760         # On Windows, we will need both .lib and .dll file.
45761         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45762           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45763 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45764           FOUND_FREETYPE=no
45765         fi
45766       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
45767         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45768         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45769       fi
45770     fi
45771   fi
45772 
45773   if test "x$FOUND_FREETYPE" = xyes; then
45774 
45775   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45776 
45777   # Input might be given as Windows format, start by converting to
45778   # unix format.
45779   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45780   new_path=`$CYGPATH -u "$path"`
45781 
45782   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45783   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45784   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45785   # "foo.exe" is OK but "foo" is an error.
45786   #
45787   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45788   # It is also a way to make sure we got the proper file name for the real test later on.
45789   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45790   if test "x$test_shortpath" = x; then
45791     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45792 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45793     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45794   fi
45795 
45796   # Call helper function which possibly converts this using DOS-style short mode.
45797   # If so, the updated path is stored in $new_path.
45798 
45799   input_path="$new_path"
45800   # Check if we need to convert this using DOS-style short mode. If the path
45801   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45802   # take no chances and rewrite it.
45803   # Note: m4 eats our [], so we need to use [ and ] instead.
45804   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45805   if test "x$has_forbidden_chars" != x; then
45806     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45807     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45808     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45809     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45810       # Going to short mode and back again did indeed matter. Since short mode is
45811       # case insensitive, let's make it lowercase to improve readability.
45812       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45813       # Now convert it back to Unix-stile (cygpath)
45814       input_path=`$CYGPATH -u "$shortmode_path"`
45815       new_path="$input_path"
45816     fi
45817   fi
45818 
45819   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45820   if test "x$test_cygdrive_prefix" = x; then
45821     # As a simple fix, exclude /usr/bin since it's not a real path.
45822     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45823       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45824       # a path prefixed by /cygdrive for fixpath to work.
45825       new_path="$CYGWIN_ROOT_PATH$input_path"
45826     fi
45827   fi
45828 
45829 
45830   if test "x$path" != "x$new_path"; then
45831     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45832     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45833 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45834   fi
45835 
45836   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45837 
45838   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45839   has_colon=`$ECHO $path | $GREP ^.:`
45840   new_path="$path"
45841   if test "x$has_colon" = x; then
45842     # Not in mixed or Windows style, start by that.
45843     new_path=`cmd //c echo $path`
45844   fi
45845 
45846 
45847   input_path="$new_path"
45848   # Check if we need to convert this using DOS-style short mode. If the path
45849   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45850   # take no chances and rewrite it.
45851   # Note: m4 eats our [], so we need to use [ and ] instead.
45852   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45853   if test "x$has_forbidden_chars" != x; then
45854     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45855     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45856   fi
45857 
45858 
45859   windows_path="$new_path"
45860   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45861     unix_path=`$CYGPATH -u "$windows_path"`
45862     new_path="$unix_path"
45863   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45864     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45865     new_path="$unix_path"
45866   fi
45867 
45868   if test "x$path" != "x$new_path"; then
45869     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45870     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45871 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45872   fi
45873 
45874   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45875   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45876 
45877   else
45878     # We're on a posix platform. Hooray! :)
45879     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45880     has_space=`$ECHO "$path" | $GREP " "`
45881     if test "x$has_space" != x; then
45882       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45883 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45884       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45885     fi
45886 
45887     # Use eval to expand a potential ~
45888     eval path="$path"
45889     if test ! -f "$path" && test ! -d "$path"; then
45890       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45891     fi
45892 
45893     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45894   fi
45895 
45896 
45897   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45898 
45899   # Input might be given as Windows format, start by converting to
45900   # unix format.
45901   path="$POTENTIAL_FREETYPE_LIB_PATH"
45902   new_path=`$CYGPATH -u "$path"`
45903 
45904   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45905   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45906   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45907   # "foo.exe" is OK but "foo" is an error.
45908   #
45909   # This test is therefore slightly more accurate than "test -f" to check for file precense.
45910   # It is also a way to make sure we got the proper file name for the real test later on.
45911   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45912   if test "x$test_shortpath" = x; then
45913     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45914 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45915     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45916   fi
45917 
45918   # Call helper function which possibly converts this using DOS-style short mode.
45919   # If so, the updated path is stored in $new_path.
45920 
45921   input_path="$new_path"
45922   # Check if we need to convert this using DOS-style short mode. If the path
45923   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45924   # take no chances and rewrite it.
45925   # Note: m4 eats our [], so we need to use [ and ] instead.
45926   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45927   if test "x$has_forbidden_chars" != x; then
45928     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45929     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45930     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45931     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45932       # Going to short mode and back again did indeed matter. Since short mode is
45933       # case insensitive, let's make it lowercase to improve readability.
45934       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45935       # Now convert it back to Unix-stile (cygpath)
45936       input_path=`$CYGPATH -u "$shortmode_path"`
45937       new_path="$input_path"
45938     fi
45939   fi
45940 
45941   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45942   if test "x$test_cygdrive_prefix" = x; then
45943     # As a simple fix, exclude /usr/bin since it's not a real path.
45944     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45945       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45946       # a path prefixed by /cygdrive for fixpath to work.
45947       new_path="$CYGWIN_ROOT_PATH$input_path"
45948     fi
45949   fi
45950 
45951 
45952   if test "x$path" != "x$new_path"; then
45953     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45954     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45955 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45956   fi
45957 
45958   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45959 
45960   path="$POTENTIAL_FREETYPE_LIB_PATH"
45961   has_colon=`$ECHO $path | $GREP ^.:`
45962   new_path="$path"
45963   if test "x$has_colon" = x; then
45964     # Not in mixed or Windows style, start by that.
45965     new_path=`cmd //c echo $path`
45966   fi
45967 
45968 
45969   input_path="$new_path"
45970   # Check if we need to convert this using DOS-style short mode. If the path
45971   # contains just simple characters, use it. Otherwise (spaces, weird characters),
45972   # take no chances and rewrite it.
45973   # Note: m4 eats our [], so we need to use [ and ] instead.
45974   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45975   if test "x$has_forbidden_chars" != x; then
45976     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45977     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45978   fi
45979 
45980 
45981   windows_path="$new_path"
45982   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45983     unix_path=`$CYGPATH -u "$windows_path"`
45984     new_path="$unix_path"
45985   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45986     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45987     new_path="$unix_path"
45988   fi
45989 
45990   if test "x$path" != "x$new_path"; then
45991     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45992     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45993 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45994   fi
45995 
45996   # Save the first 10 bytes of this path to the storage, so fixpath can work.
45997   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45998 
45999   else
46000     # We're on a posix platform. Hooray! :)
46001     path="$POTENTIAL_FREETYPE_LIB_PATH"
46002     has_space=`$ECHO "$path" | $GREP " "`
46003     if test "x$has_space" != x; then
46004       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46005 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46006       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46007     fi
46008 
46009     # Use eval to expand a potential ~
46010     eval path="$path"
46011     if test ! -f "$path" && test ! -d "$path"; then
46012       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46013     fi
46014 
46015     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46016   fi
46017 
46018 
46019     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
46021 $as_echo_n "checking for freetype includes... " >&6; }
46022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
46023 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
46024     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
46025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
46026 $as_echo_n "checking for freetype libraries... " >&6; }
46027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
46028 $as_echo "$FREETYPE_LIB_PATH" >&6; }
46029   fi
46030 
46031               if test "x$FOUND_FREETYPE" != xyes; then
46032 
46033   POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
46034   POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32"
46035   METHOD="well-known location"
46036 
46037   # First check if the files exists.
46038   if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
46039     # We found an arbitrary include file. That's a good sign.
46040     { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
46041 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
46042     FOUND_FREETYPE=yes
46043 
46044     FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
46045     if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
46046       { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
46047 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
46048       FOUND_FREETYPE=no
46049     else
46050       if test "x$OPENJDK_TARGET_OS" = xwindows; then
46051         # On Windows, we will need both .lib and .dll file.
46052         if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
46053           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
46054 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
46055           FOUND_FREETYPE=no
46056         fi
46057       elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then
46058         # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
46059         POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
46060       fi
46061     fi
46062   fi
46063 
46064   if test "x$FOUND_FREETYPE" = xyes; then
46065 
46066   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46067 
46068   # Input might be given as Windows format, start by converting to
46069   # unix format.
46070   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46071   new_path=`$CYGPATH -u "$path"`
46072 
46073   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46074   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46075   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46076   # "foo.exe" is OK but "foo" is an error.
46077   #
46078   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46079   # It is also a way to make sure we got the proper file name for the real test later on.
46080   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46081   if test "x$test_shortpath" = x; then
46082     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46083 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46084     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
46085   fi
46086 
46087   # Call helper function which possibly converts this using DOS-style short mode.
46088   # If so, the updated path is stored in $new_path.
46089 
46090   input_path="$new_path"
46091   # Check if we need to convert this using DOS-style short mode. If the path
46092   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46093   # take no chances and rewrite it.
46094   # Note: m4 eats our [], so we need to use [ and ] instead.
46095   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46096   if test "x$has_forbidden_chars" != x; then
46097     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46098     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46099     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46100     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46101       # Going to short mode and back again did indeed matter. Since short mode is
46102       # case insensitive, let's make it lowercase to improve readability.
46103       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46104       # Now convert it back to Unix-stile (cygpath)
46105       input_path=`$CYGPATH -u "$shortmode_path"`
46106       new_path="$input_path"
46107     fi
46108   fi
46109 
46110   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46111   if test "x$test_cygdrive_prefix" = x; then
46112     # As a simple fix, exclude /usr/bin since it's not a real path.
46113     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46114       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46115       # a path prefixed by /cygdrive for fixpath to work.
46116       new_path="$CYGWIN_ROOT_PATH$input_path"
46117     fi
46118   fi
46119 
46120 
46121   if test "x$path" != "x$new_path"; then
46122     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
46123     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46124 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46125   fi
46126 
46127   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46128 
46129   path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46130   has_colon=`$ECHO $path | $GREP ^.:`
46131   new_path="$path"
46132   if test "x$has_colon" = x; then
46133     # Not in mixed or Windows style, start by that.
46134     new_path=`cmd //c echo $path`
46135   fi
46136 
46137 
46138   input_path="$new_path"
46139   # Check if we need to convert this using DOS-style short mode. If the path
46140   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46141   # take no chances and rewrite it.
46142   # Note: m4 eats our [], so we need to use [ and ] instead.
46143   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46144   if test "x$has_forbidden_chars" != x; then
46145     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46146     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46147   fi
46148 
46149 
46150   windows_path="$new_path"
46151   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46152     unix_path=`$CYGPATH -u "$windows_path"`
46153     new_path="$unix_path"
46154   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46155     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46156     new_path="$unix_path"
46157   fi
46158 
46159   if test "x$path" != "x$new_path"; then
46160     POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
46161     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46162 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46163   fi
46164 
46165   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46166   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46167 
46168   else
46169     # We're on a posix platform. Hooray! :)
46170     path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46171     has_space=`$ECHO "$path" | $GREP " "`
46172     if test "x$has_space" != x; then
46173       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46174 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46175       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46176     fi
46177 
46178     # Use eval to expand a potential ~
46179     eval path="$path"
46180     if test ! -f "$path" && test ! -d "$path"; then
46181       as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46182     fi
46183 
46184     POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
46185   fi
46186 
46187 
46188   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46189 
46190   # Input might be given as Windows format, start by converting to
46191   # unix format.
46192   path="$POTENTIAL_FREETYPE_LIB_PATH"
46193   new_path=`$CYGPATH -u "$path"`
46194 
46195   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46196   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46197   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46198   # "foo.exe" is OK but "foo" is an error.
46199   #
46200   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46201   # It is also a way to make sure we got the proper file name for the real test later on.
46202   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46203   if test "x$test_shortpath" = x; then
46204     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46205 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46206     as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
46207   fi
46208 
46209   # Call helper function which possibly converts this using DOS-style short mode.
46210   # If so, the updated path is stored in $new_path.
46211 
46212   input_path="$new_path"
46213   # Check if we need to convert this using DOS-style short mode. If the path
46214   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46215   # take no chances and rewrite it.
46216   # Note: m4 eats our [], so we need to use [ and ] instead.
46217   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46218   if test "x$has_forbidden_chars" != x; then
46219     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46220     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46221     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46222     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46223       # Going to short mode and back again did indeed matter. Since short mode is
46224       # case insensitive, let's make it lowercase to improve readability.
46225       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46226       # Now convert it back to Unix-stile (cygpath)
46227       input_path=`$CYGPATH -u "$shortmode_path"`
46228       new_path="$input_path"
46229     fi
46230   fi
46231 
46232   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46233   if test "x$test_cygdrive_prefix" = x; then
46234     # As a simple fix, exclude /usr/bin since it's not a real path.
46235     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46236       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46237       # a path prefixed by /cygdrive for fixpath to work.
46238       new_path="$CYGWIN_ROOT_PATH$input_path"
46239     fi
46240   fi
46241 
46242 
46243   if test "x$path" != "x$new_path"; then
46244     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46245     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46246 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46247   fi
46248 
46249   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46250 
46251   path="$POTENTIAL_FREETYPE_LIB_PATH"
46252   has_colon=`$ECHO $path | $GREP ^.:`
46253   new_path="$path"
46254   if test "x$has_colon" = x; then
46255     # Not in mixed or Windows style, start by that.
46256     new_path=`cmd //c echo $path`
46257   fi
46258 
46259 
46260   input_path="$new_path"
46261   # Check if we need to convert this using DOS-style short mode. If the path
46262   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46263   # take no chances and rewrite it.
46264   # Note: m4 eats our [], so we need to use [ and ] instead.
46265   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46266   if test "x$has_forbidden_chars" != x; then
46267     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46268     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46269   fi
46270 
46271 
46272   windows_path="$new_path"
46273   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46274     unix_path=`$CYGPATH -u "$windows_path"`
46275     new_path="$unix_path"
46276   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46277     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46278     new_path="$unix_path"
46279   fi
46280 
46281   if test "x$path" != "x$new_path"; then
46282     POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46283     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46284 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46285   fi
46286 
46287   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46288   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46289 
46290   else
46291     # We're on a posix platform. Hooray! :)
46292     path="$POTENTIAL_FREETYPE_LIB_PATH"
46293     has_space=`$ECHO "$path" | $GREP " "`
46294     if test "x$has_space" != x; then
46295       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46296 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46297       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46298     fi
46299 
46300     # Use eval to expand a potential ~
46301     eval path="$path"
46302     if test ! -f "$path" && test ! -d "$path"; then
46303       as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46304     fi
46305 
46306     POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46307   fi
46308 
46309 
46310     FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
46312 $as_echo_n "checking for freetype includes... " >&6; }
46313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
46314 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
46315     FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
46316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
46317 $as_echo_n "checking for freetype libraries... " >&6; }
46318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
46319 $as_echo "$FREETYPE_LIB_PATH" >&6; }
46320   fi
46321 
46322               fi
46323             fi
46324           fi
46325         fi
46326       fi # end check in well-known locations
46327 
46328       if test "x$FOUND_FREETYPE" != xyes; then
46329 
46330   # Print a helpful message on how to acquire the necessary build dependency.
46331   # freetype is the help tag: freetype, cups, pulse, alsa etc
46332   MISSING_DEPENDENCY=freetype
46333 
46334   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46335     cygwin_help $MISSING_DEPENDENCY
46336   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46337     msys_help $MISSING_DEPENDENCY
46338   else
46339     PKGHANDLER_COMMAND=
46340 
46341     case $PKGHANDLER in
46342       apt-get)
46343         apt_help     $MISSING_DEPENDENCY ;;
46344       yum)
46345         yum_help     $MISSING_DEPENDENCY ;;
46346       port)
46347         port_help    $MISSING_DEPENDENCY ;;
46348       pkgutil)
46349         pkgutil_help $MISSING_DEPENDENCY ;;
46350       pkgadd)
46351         pkgadd_help  $MISSING_DEPENDENCY ;;
46352     esac
46353 
46354     if test "x$PKGHANDLER_COMMAND" != x; then
46355       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
46356     fi
46357   fi
46358 
46359         as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5
46360       fi
46361     fi # end user specified settings
46362 
46363     # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir.
46364     if test "x$FREETYPE_CFLAGS" = x; then
46365 
46366   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46367 
46368   # Input might be given as Windows format, start by converting to
46369   # unix format.
46370   path="$FREETYPE_INCLUDE_PATH"
46371   new_path=`$CYGPATH -u "$path"`
46372 
46373   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46374   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46375   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46376   # "foo.exe" is OK but "foo" is an error.
46377   #
46378   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46379   # It is also a way to make sure we got the proper file name for the real test later on.
46380   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46381   if test "x$test_shortpath" = x; then
46382     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46383 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46384     as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5
46385   fi
46386 
46387   # Call helper function which possibly converts this using DOS-style short mode.
46388   # If so, the updated path is stored in $new_path.
46389 
46390   input_path="$new_path"
46391   # Check if we need to convert this using DOS-style short mode. If the path
46392   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46393   # take no chances and rewrite it.
46394   # Note: m4 eats our [], so we need to use [ and ] instead.
46395   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46396   if test "x$has_forbidden_chars" != x; then
46397     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46398     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46399     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46400     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46401       # Going to short mode and back again did indeed matter. Since short mode is
46402       # case insensitive, let's make it lowercase to improve readability.
46403       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46404       # Now convert it back to Unix-stile (cygpath)
46405       input_path=`$CYGPATH -u "$shortmode_path"`
46406       new_path="$input_path"
46407     fi
46408   fi
46409 
46410   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46411   if test "x$test_cygdrive_prefix" = x; then
46412     # As a simple fix, exclude /usr/bin since it's not a real path.
46413     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46414       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46415       # a path prefixed by /cygdrive for fixpath to work.
46416       new_path="$CYGWIN_ROOT_PATH$input_path"
46417     fi
46418   fi
46419 
46420 
46421   if test "x$path" != "x$new_path"; then
46422     FREETYPE_INCLUDE_PATH="$new_path"
46423     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46424 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46425   fi
46426 
46427   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46428 
46429   path="$FREETYPE_INCLUDE_PATH"
46430   has_colon=`$ECHO $path | $GREP ^.:`
46431   new_path="$path"
46432   if test "x$has_colon" = x; then
46433     # Not in mixed or Windows style, start by that.
46434     new_path=`cmd //c echo $path`
46435   fi
46436 
46437 
46438   input_path="$new_path"
46439   # Check if we need to convert this using DOS-style short mode. If the path
46440   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46441   # take no chances and rewrite it.
46442   # Note: m4 eats our [], so we need to use [ and ] instead.
46443   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46444   if test "x$has_forbidden_chars" != x; then
46445     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46446     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46447   fi
46448 
46449 
46450   windows_path="$new_path"
46451   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46452     unix_path=`$CYGPATH -u "$windows_path"`
46453     new_path="$unix_path"
46454   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46455     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46456     new_path="$unix_path"
46457   fi
46458 
46459   if test "x$path" != "x$new_path"; then
46460     FREETYPE_INCLUDE_PATH="$new_path"
46461     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46462 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46463   fi
46464 
46465   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46466   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46467 
46468   else
46469     # We're on a posix platform. Hooray! :)
46470     path="$FREETYPE_INCLUDE_PATH"
46471     has_space=`$ECHO "$path" | $GREP " "`
46472     if test "x$has_space" != x; then
46473       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46474 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46475       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46476     fi
46477 
46478     # Use eval to expand a potential ~
46479     eval path="$path"
46480     if test ! -f "$path" && test ! -d "$path"; then
46481       as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46482     fi
46483 
46484     FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
46485   fi
46486 
46487       if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then
46488         FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH"
46489       else
46490         FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH"
46491       fi
46492     fi
46493 
46494     if test "x$FREETYPE_LIBS" = x; then
46495 
46496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46497 
46498   # Input might be given as Windows format, start by converting to
46499   # unix format.
46500   path="$FREETYPE_LIB_PATH"
46501   new_path=`$CYGPATH -u "$path"`
46502 
46503   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46504   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46505   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46506   # "foo.exe" is OK but "foo" is an error.
46507   #
46508   # This test is therefore slightly more accurate than "test -f" to check for file precense.
46509   # It is also a way to make sure we got the proper file name for the real test later on.
46510   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46511   if test "x$test_shortpath" = x; then
46512     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46513 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46514     as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5
46515   fi
46516 
46517   # Call helper function which possibly converts this using DOS-style short mode.
46518   # If so, the updated path is stored in $new_path.
46519 
46520   input_path="$new_path"
46521   # Check if we need to convert this using DOS-style short mode. If the path
46522   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46523   # take no chances and rewrite it.
46524   # Note: m4 eats our [], so we need to use [ and ] instead.
46525   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46526   if test "x$has_forbidden_chars" != x; then
46527     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46528     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46529     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46530     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46531       # Going to short mode and back again did indeed matter. Since short mode is
46532       # case insensitive, let's make it lowercase to improve readability.
46533       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46534       # Now convert it back to Unix-stile (cygpath)
46535       input_path=`$CYGPATH -u "$shortmode_path"`
46536       new_path="$input_path"
46537     fi
46538   fi
46539 
46540   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46541   if test "x$test_cygdrive_prefix" = x; then
46542     # As a simple fix, exclude /usr/bin since it's not a real path.
46543     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46544       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46545       # a path prefixed by /cygdrive for fixpath to work.
46546       new_path="$CYGWIN_ROOT_PATH$input_path"
46547     fi
46548   fi
46549 
46550 
46551   if test "x$path" != "x$new_path"; then
46552     FREETYPE_LIB_PATH="$new_path"
46553     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
46554 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46555   fi
46556 
46557   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46558 
46559   path="$FREETYPE_LIB_PATH"
46560   has_colon=`$ECHO $path | $GREP ^.:`
46561   new_path="$path"
46562   if test "x$has_colon" = x; then
46563     # Not in mixed or Windows style, start by that.
46564     new_path=`cmd //c echo $path`
46565   fi
46566 
46567 
46568   input_path="$new_path"
46569   # Check if we need to convert this using DOS-style short mode. If the path
46570   # contains just simple characters, use it. Otherwise (spaces, weird characters),
46571   # take no chances and rewrite it.
46572   # Note: m4 eats our [], so we need to use [ and ] instead.
46573   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46574   if test "x$has_forbidden_chars" != x; then
46575     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46576     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46577   fi
46578 
46579 
46580   windows_path="$new_path"
46581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46582     unix_path=`$CYGPATH -u "$windows_path"`
46583     new_path="$unix_path"
46584   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46585     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46586     new_path="$unix_path"
46587   fi
46588 
46589   if test "x$path" != "x$new_path"; then
46590     FREETYPE_LIB_PATH="$new_path"
46591     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
46592 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46593   fi
46594 
46595   # Save the first 10 bytes of this path to the storage, so fixpath can work.
46596   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46597 
46598   else
46599     # We're on a posix platform. Hooray! :)
46600     path="$FREETYPE_LIB_PATH"
46601     has_space=`$ECHO "$path" | $GREP " "`
46602     if test "x$has_space" != x; then
46603       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46604 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46605       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46606     fi
46607 
46608     # Use eval to expand a potential ~
46609     eval path="$path"
46610     if test ! -f "$path" && test ! -d "$path"; then
46611       as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46612     fi
46613 
46614     FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46615   fi
46616 
46617       if test "x$OPENJDK_TARGET_OS" = xwindows; then
46618         FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib"
46619       else
46620         FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype"
46621       fi
46622     fi
46623 
46624     # Try to compile it
46625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5
46626 $as_echo_n "checking if we can compile and link with freetype... " >&6; }
46627     ac_ext=cpp
46628 ac_cpp='$CXXCPP $CPPFLAGS'
46629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46632 
46633     PREV_CXXCFLAGS="$CXXFLAGS"
46634     PREV_LIBS="$LIBS"
46635     PREV_CXX="$CXX"
46636     CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS"
46637     LIBS="$LIBS $FREETYPE_LIBS"
46638     CXX="$FIXPATH $CXX"
46639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46640 /* end confdefs.h.  */
46641 
46642           #include<ft2build.h>
46643           #include FT_FREETYPE_H
46644           int main () {
46645             FT_Init_FreeType(NULL);
46646             return 0;
46647           }
46648 
46649 _ACEOF
46650 if ac_fn_cxx_try_link "$LINENO"; then :
46651 
46652           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46653 $as_echo "yes" >&6; }
46654 
46655 else
46656 
46657           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46658 $as_echo "no" >&6; }
46659           { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5
46660 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;}
46661           { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5
46662 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;}
46663 
46664 
46665   # Print a helpful message on how to acquire the necessary build dependency.
46666   # freetype is the help tag: freetype, cups, pulse, alsa etc
46667   MISSING_DEPENDENCY=freetype
46668 
46669   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46670     cygwin_help $MISSING_DEPENDENCY
46671   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46672     msys_help $MISSING_DEPENDENCY
46673   else
46674     PKGHANDLER_COMMAND=
46675 
46676     case $PKGHANDLER in
46677       apt-get)
46678         apt_help     $MISSING_DEPENDENCY ;;
46679       yum)
46680         yum_help     $MISSING_DEPENDENCY ;;
46681       port)
46682         port_help    $MISSING_DEPENDENCY ;;
46683       pkgutil)
46684         pkgutil_help $MISSING_DEPENDENCY ;;
46685       pkgadd)
46686         pkgadd_help  $MISSING_DEPENDENCY ;;
46687     esac
46688 
46689     if test "x$PKGHANDLER_COMMAND" != x; then
46690       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
46691     fi
46692   fi
46693 
46694 
46695           as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5
46696 
46697 
46698 fi
46699 rm -f core conftest.err conftest.$ac_objext \
46700     conftest$ac_exeext conftest.$ac_ext
46701     CXXCFLAGS="$PREV_CXXFLAGS"
46702     LIBS="$PREV_LIBS"
46703     CXX="$PREV_CXX"
46704     ac_ext=cpp
46705 ac_cpp='$CXXCPP $CPPFLAGS'
46706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46709 
46710 
46711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5
46712 $as_echo_n "checking if we should bundle freetype... " >&6; }
46713     if test "x$BUNDLE_FREETYPE" = xyes; then
46714       FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH"
46715     fi
46716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5
46717 $as_echo "$BUNDLE_FREETYPE" >&6; }
46718 
46719   fi # end freetype needed
46720 
46721 
46722 
46723 
46724 
46725 
46726 
46727   ###############################################################################
46728   #
46729   # Check for alsa headers and libraries. Used on Linux/GNU systems.
46730   #
46731 
46732 # Check whether --with-alsa was given.
46733 if test "${with_alsa+set}" = set; then :
46734   withval=$with_alsa;
46735 fi
46736 
46737 
46738 # Check whether --with-alsa-include was given.
46739 if test "${with_alsa_include+set}" = set; then :
46740   withval=$with_alsa_include;
46741 fi
46742 
46743 
46744 # Check whether --with-alsa-lib was given.
46745 if test "${with_alsa_lib+set}" = set; then :
46746   withval=$with_alsa_lib;
46747 fi
46748 
46749 
46750   if test "x$ALSA_NOT_NEEDED" = xyes; then
46751     if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then
46752       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
46753 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
46754     fi
46755     ALSA_CFLAGS=
46756     ALSA_LIBS=
46757   else
46758     ALSA_FOUND=no
46759 
46760     if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then
46761       as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
46762     fi
46763 
46764     if test "x${with_alsa}" != x; then
46765       ALSA_LIBS="-L${with_alsa}/lib -lalsa"
46766       ALSA_CFLAGS="-I${with_alsa}/include"
46767       ALSA_FOUND=yes
46768     fi
46769     if test "x${with_alsa_include}" != x; then
46770       ALSA_CFLAGS="-I${with_alsa_include}"
46771       ALSA_FOUND=yes
46772     fi
46773     if test "x${with_alsa_lib}" != x; then
46774       ALSA_LIBS="-L${with_alsa_lib} -lalsa"
46775       ALSA_FOUND=yes
46776     fi
46777     if test "x$ALSA_FOUND" = xno; then
46778 
46779 
46780   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
46781     # Source the builddeps file again, to make sure it uses the latest variables!
46782     . $builddepsfile
46783     # Look for a target and build machine specific resource!
46784     eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
46785     if test "x$resource" = x; then
46786       # Ok, lets instead look for a target specific resource
46787       eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}}
46788     fi
46789     if test "x$resource" = x; then
46790       # Ok, lets instead look for a build specific resource
46791       eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
46792     fi
46793     if test "x$resource" = x; then
46794       # Ok, lets instead look for a generic resource
46795       # (The alsa comes from M4 and not the shell, thus no need for eval here.)
46796       resource=${builddep_alsa}
46797     fi
46798     if test "x$resource" != x; then
46799       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
46800 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
46801       # If the resource in the builddeps.conf file is an existing directory,
46802       # for example /java/linux/cups
46803       if test -d ${resource}; then
46804         depdir=${resource}
46805       else
46806 
46807   # alsa is for example mymodule
46808   # $resource is for example libs/general/libmymod_1_2_3.zip
46809   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
46810   # $with_builddeps_dir is for example /localhome/builddeps
46811   # depdir is the name of the variable into which we store the depdir, eg MYMOD
46812   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
46813   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
46814   filename=`basename $resource`
46815   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
46816   filebase=${filename%%.*}
46817   extension=${filename#*.}
46818   installdir=$with_builddeps_dir/$filebase
46819   if test ! -f $installdir/$filename.unpacked; then
46820     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
46821 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
46822     if test ! -d $installdir; then
46823       mkdir -p $installdir
46824     fi
46825     if test ! -d $installdir; then
46826       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
46827     fi
46828     tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
46829     touch $tmpfile
46830     if test ! -f $tmpfile; then
46831       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
46832     fi
46833 
46834   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
46835   # $tmpfile is the local file name for the downloaded file.
46836   VALID_TOOL=no
46837   if test "x$BDEPS_FTP" = xwget; then
46838     VALID_TOOL=yes
46839     wget -O $tmpfile $with_builddeps_server/$resource
46840   fi
46841   if test "x$BDEPS_FTP" = xlftp; then
46842     VALID_TOOL=yes
46843     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
46844   fi
46845   if test "x$BDEPS_FTP" = xftp; then
46846     VALID_TOOL=yes
46847     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
46848     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
46849     FTPUSERPWD=${FTPSERVER%%@*}
46850     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
46851       FTPUSER=${userpwd%%:*}
46852       FTPPWD=${userpwd#*@}
46853       FTPSERVER=${FTPSERVER#*@}
46854     else
46855       FTPUSER=ftp
46856       FTPPWD=ftp
46857     fi
46858     # the "pass" command does not work on some
46859     # ftp clients (read ftp.exe) but if it works,
46860     # passive mode is better!
46861     ( \
46862         echo "user $FTPUSER $FTPPWD"        ; \
46863         echo "pass"                         ; \
46864         echo "bin"                          ; \
46865         echo "get $FTPPATH $tmpfile"              ; \
46866     ) | ftp -in $FTPSERVER
46867   fi
46868   if test "x$VALID_TOOL" != xyes; then
46869     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
46870   fi
46871 
46872     mv $tmpfile $installdir/$filename
46873     if test ! -s $installdir/$filename; then
46874       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
46875     fi
46876     case "$extension" in
46877       zip)  echo "Unzipping $installdir/$filename..."
46878         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
46879         ;;
46880       tar.gz) echo "Untaring $installdir/$filename..."
46881         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
46882         ;;
46883       tgz) echo "Untaring $installdir/$filename..."
46884         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
46885         ;;
46886       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
46887         ;;
46888     esac
46889   fi
46890   if test -f $installdir/$filename.unpacked; then
46891     depdir=$installdir
46892   fi
46893 
46894       fi
46895       # Source the builddeps file again, because in the previous command, the depdir
46896       # was updated to point at the current build dependency install directory.
46897       . $builddepsfile
46898       # Now extract variables from the builddeps.conf files.
46899       theroot=${builddep_alsa_ROOT}
46900       thecflags=${builddep_alsa_CFLAGS}
46901       thelibs=${builddep_alsa_LIBS}
46902       if test "x$depdir" = x; then
46903         as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
46904       fi
46905       ALSA=$depdir
46906       if test "x$theroot" != x; then
46907         ALSA="$theroot"
46908       fi
46909       if test "x$thecflags" != x; then
46910         ALSA_CFLAGS="$thecflags"
46911       fi
46912       if test "x$thelibs" != x; then
46913         ALSA_LIBS="$thelibs"
46914       fi
46915       ALSA_FOUND=yes
46916       else ALSA_FOUND=no
46917 
46918     fi
46919     else ALSA_FOUND=no
46920 
46921   fi
46922 
46923     fi
46924     if test "x$ALSA_FOUND" = xno; then
46925 
46926 pkg_failed=no
46927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
46928 $as_echo_n "checking for ALSA... " >&6; }
46929 
46930 if test -n "$ALSA_CFLAGS"; then
46931     pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
46932  elif test -n "$PKG_CONFIG"; then
46933     if test -n "$PKG_CONFIG" && \
46934     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
46935   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
46936   ac_status=$?
46937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46938   test $ac_status = 0; }; then
46939   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
46940 else
46941   pkg_failed=yes
46942 fi
46943  else
46944     pkg_failed=untried
46945 fi
46946 if test -n "$ALSA_LIBS"; then
46947     pkg_cv_ALSA_LIBS="$ALSA_LIBS"
46948  elif test -n "$PKG_CONFIG"; then
46949     if test -n "$PKG_CONFIG" && \
46950     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
46951   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
46952   ac_status=$?
46953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46954   test $ac_status = 0; }; then
46955   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
46956 else
46957   pkg_failed=yes
46958 fi
46959  else
46960     pkg_failed=untried
46961 fi
46962 
46963 
46964 
46965 if test $pkg_failed = yes; then
46966 
46967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46968         _pkg_short_errors_supported=yes
46969 else
46970         _pkg_short_errors_supported=no
46971 fi
46972         if test $_pkg_short_errors_supported = yes; then
46973                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
46974         else
46975                 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
46976         fi
46977         # Put the nasty error message in config.log where it belongs
46978         echo "$ALSA_PKG_ERRORS" >&5
46979 
46980         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46981 $as_echo "no" >&6; }
46982                 ALSA_FOUND=no
46983 elif test $pkg_failed = untried; then
46984         ALSA_FOUND=no
46985 else
46986         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
46987         ALSA_LIBS=$pkg_cv_ALSA_LIBS
46988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46989 $as_echo "yes" >&6; }
46990         ALSA_FOUND=yes
46991 fi
46992     fi
46993     if test "x$ALSA_FOUND" = xno; then
46994       for ac_header in alsa/asoundlib.h
46995 do :
46996   ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
46997 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
46998   cat >>confdefs.h <<_ACEOF
46999 #define HAVE_ALSA_ASOUNDLIB_H 1
47000 _ACEOF
47001 
47002             ALSA_FOUND=yes
47003             ALSA_CFLAGS=-Iignoreme
47004             ALSA_LIBS=-lasound
47005             DEFAULT_ALSA=yes
47006 
47007 else
47008   ALSA_FOUND=no
47009 fi
47010 
47011 done
47012 
47013     fi
47014     if test "x$ALSA_FOUND" = xno; then
47015 
47016   # Print a helpful message on how to acquire the necessary build dependency.
47017   # alsa is the help tag: freetype, cups, pulse, alsa etc
47018   MISSING_DEPENDENCY=alsa
47019 
47020   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
47021     cygwin_help $MISSING_DEPENDENCY
47022   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
47023     msys_help $MISSING_DEPENDENCY
47024   else
47025     PKGHANDLER_COMMAND=
47026 
47027     case $PKGHANDLER in
47028       apt-get)
47029         apt_help     $MISSING_DEPENDENCY ;;
47030       yum)
47031         yum_help     $MISSING_DEPENDENCY ;;
47032       port)
47033         port_help    $MISSING_DEPENDENCY ;;
47034       pkgutil)
47035         pkgutil_help $MISSING_DEPENDENCY ;;
47036       pkgadd)
47037         pkgadd_help  $MISSING_DEPENDENCY ;;
47038     esac
47039 
47040     if test "x$PKGHANDLER_COMMAND" != x; then
47041       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
47042     fi
47043   fi
47044 
47045       as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
47046     fi
47047   fi
47048 
47049 
47050 
47051 
47052 
47053 
47054   ###############################################################################
47055   #
47056   # Check for the jpeg library
47057   #
47058 
47059   USE_EXTERNAL_LIBJPEG=true
47060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
47061 $as_echo_n "checking for main in -ljpeg... " >&6; }
47062 if ${ac_cv_lib_jpeg_main+:} false; then :
47063   $as_echo_n "(cached) " >&6
47064 else
47065   ac_check_lib_save_LIBS=$LIBS
47066 LIBS="-ljpeg  $LIBS"
47067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47068 /* end confdefs.h.  */
47069 
47070 
47071 int
47072 main ()
47073 {
47074 return main ();
47075   ;
47076   return 0;
47077 }
47078 _ACEOF
47079 if ac_fn_cxx_try_link "$LINENO"; then :
47080   ac_cv_lib_jpeg_main=yes
47081 else
47082   ac_cv_lib_jpeg_main=no
47083 fi
47084 rm -f core conftest.err conftest.$ac_objext \
47085     conftest$ac_exeext conftest.$ac_ext
47086 LIBS=$ac_check_lib_save_LIBS
47087 fi
47088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
47089 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
47090 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
47091   cat >>confdefs.h <<_ACEOF
47092 #define HAVE_LIBJPEG 1
47093 _ACEOF
47094 
47095   LIBS="-ljpeg $LIBS"
47096 
47097 else
47098    USE_EXTERNAL_LIBJPEG=false
47099       { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
47100 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
47101 
47102 fi
47103 
47104 
47105 
47106   ###############################################################################
47107   #
47108   # Check for the gif library
47109   #
47110 
47111 
47112 # Check whether --with-giflib was given.
47113 if test "${with_giflib+set}" = set; then :
47114   withval=$with_giflib;
47115 fi
47116 
47117 
47118 
47119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
47120 $as_echo_n "checking for which giflib to use... " >&6; }
47121 
47122   # default is bundled
47123   DEFAULT_GIFLIB=bundled
47124 
47125   #
47126   # if user didn't specify, use DEFAULT_GIFLIB
47127   #
47128   if test "x${with_giflib}" = "x"; then
47129     with_giflib=${DEFAULT_GIFLIB}
47130   fi
47131 
47132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
47133 $as_echo "${with_giflib}" >&6; }
47134 
47135   if test "x${with_giflib}" = "xbundled"; then
47136     USE_EXTERNAL_LIBGIF=false
47137   elif test "x${with_giflib}" = "xsystem"; then
47138     ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
47139 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
47140 
47141 else
47142    as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
47143 fi
47144 
47145 
47146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
47147 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
47148 if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
47149   $as_echo_n "(cached) " >&6
47150 else
47151   ac_check_lib_save_LIBS=$LIBS
47152 LIBS="-lgif  $LIBS"
47153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47154 /* end confdefs.h.  */
47155 
47156 /* Override any GCC internal prototype to avoid an error.
47157    Use char because int might match the return type of a GCC
47158    builtin and then its argument prototype would still apply.  */
47159 #ifdef __cplusplus
47160 extern "C"
47161 #endif
47162 char DGifGetCode ();
47163 int
47164 main ()
47165 {
47166 return DGifGetCode ();
47167   ;
47168   return 0;
47169 }
47170 _ACEOF
47171 if ac_fn_cxx_try_link "$LINENO"; then :
47172   ac_cv_lib_gif_DGifGetCode=yes
47173 else
47174   ac_cv_lib_gif_DGifGetCode=no
47175 fi
47176 rm -f core conftest.err conftest.$ac_objext \
47177     conftest$ac_exeext conftest.$ac_ext
47178 LIBS=$ac_check_lib_save_LIBS
47179 fi
47180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
47181 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
47182 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
47183   cat >>confdefs.h <<_ACEOF
47184 #define HAVE_LIBGIF 1
47185 _ACEOF
47186 
47187   LIBS="-lgif $LIBS"
47188 
47189 else
47190    as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
47191 fi
47192 
47193 
47194     USE_EXTERNAL_LIBGIF=true
47195   else
47196     as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
47197   fi
47198 
47199 
47200   ###############################################################################
47201   #
47202   # Check for the png library
47203   #
47204 
47205 
47206 # Check whether --with-libpng was given.
47207 if test "${with_libpng+set}" = set; then :
47208   withval=$with_libpng;
47209 fi
47210 
47211 
47212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_sig_cmp in -lpng" >&5
47213 $as_echo_n "checking for png_sig_cmp in -lpng... " >&6; }
47214 if ${ac_cv_lib_png_png_sig_cmp+:} false; then :
47215   $as_echo_n "(cached) " >&6
47216 else
47217   ac_check_lib_save_LIBS=$LIBS
47218 LIBS="-lpng  $LIBS"
47219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47220 /* end confdefs.h.  */
47221 
47222 /* Override any GCC internal prototype to avoid an error.
47223    Use char because int might match the return type of a GCC
47224    builtin and then its argument prototype would still apply.  */
47225 #ifdef __cplusplus
47226 extern "C"
47227 #endif
47228 char png_sig_cmp ();
47229 int
47230 main ()
47231 {
47232 return png_sig_cmp ();
47233   ;
47234   return 0;
47235 }
47236 _ACEOF
47237 if ac_fn_cxx_try_link "$LINENO"; then :
47238   ac_cv_lib_png_png_sig_cmp=yes
47239 else
47240   ac_cv_lib_png_png_sig_cmp=no
47241 fi
47242 rm -f core conftest.err conftest.$ac_objext \
47243     conftest$ac_exeext conftest.$ac_ext
47244 LIBS=$ac_check_lib_save_LIBS
47245 fi
47246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_sig_cmp" >&5
47247 $as_echo "$ac_cv_lib_png_png_sig_cmp" >&6; }
47248 if test "x$ac_cv_lib_png_png_sig_cmp" = xyes; then :
47249    LIBPNG_FOUND=yes
47250 else
47251    LIBPNG_FOUND=no
47252 fi
47253 
47254 
47255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
47256 $as_echo_n "checking for which libpng to use... " >&6; }
47257 
47258   # default is bundled
47259   DEFAULT_LIBPNG=bundled
47260 
47261   #
47262   # if user didn't specify, use DEFAULT_LIBPNG
47263   #
47264   if test "x${with_libpng}" = "x"; then
47265       with_libpng=${DEFAULT_libpng}
47266   fi
47267 
47268   if test "x${with_libpng}" = "xbundled"; then
47269       USE_EXTERNAL_LIBPNG=false
47270       { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
47271 $as_echo "bundled" >&6; }
47272   elif test "x${with_libpng}" = "xsystem"; then
47273       if test "x${LIBPNG_FOUND}" = "xyes"; then
47274           USE_EXTERNAL_LIBPNG=true
47275           { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
47276 $as_echo "system" >&6; }
47277       else
47278           { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
47279 $as_echo "system not found" >&6; }
47280           as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5
47281       fi
47282   else
47283       as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5
47284   fi
47285 
47286 
47287   ###############################################################################
47288   #
47289   # Check for the zlib library
47290   #
47291 
47292 
47293 # Check whether --with-zlib was given.
47294 if test "${with_zlib+set}" = set; then :
47295   withval=$with_zlib;
47296 fi
47297 
47298 
47299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
47300 $as_echo_n "checking for compress in -lz... " >&6; }
47301 if ${ac_cv_lib_z_compress+:} false; then :
47302   $as_echo_n "(cached) " >&6
47303 else
47304   ac_check_lib_save_LIBS=$LIBS
47305 LIBS="-lz  $LIBS"
47306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47307 /* end confdefs.h.  */
47308 
47309 /* Override any GCC internal prototype to avoid an error.
47310    Use char because int might match the return type of a GCC
47311    builtin and then its argument prototype would still apply.  */
47312 #ifdef __cplusplus
47313 extern "C"
47314 #endif
47315 char compress ();
47316 int
47317 main ()
47318 {
47319 return compress ();
47320   ;
47321   return 0;
47322 }
47323 _ACEOF
47324 if ac_fn_cxx_try_link "$LINENO"; then :
47325   ac_cv_lib_z_compress=yes
47326 else
47327   ac_cv_lib_z_compress=no
47328 fi
47329 rm -f core conftest.err conftest.$ac_objext \
47330     conftest$ac_exeext conftest.$ac_ext
47331 LIBS=$ac_check_lib_save_LIBS
47332 fi
47333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
47334 $as_echo "$ac_cv_lib_z_compress" >&6; }
47335 if test "x$ac_cv_lib_z_compress" = xyes; then :
47336    ZLIB_FOUND=yes
47337 else
47338    ZLIB_FOUND=no
47339 fi
47340 
47341 
47342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
47343 $as_echo_n "checking for which zlib to use... " >&6; }
47344 
47345   DEFAULT_ZLIB=bundled
47346   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
47347     #
47348     # On macosx default is system...on others default is
47349     #
47350     DEFAULT_ZLIB=system
47351   fi
47352 
47353   if test "x${ZLIB_FOUND}" != "xyes"; then
47354     #
47355     # If we don't find any system...set default to bundled
47356     #
47357     DEFAULT_ZLIB=bundled
47358   fi
47359 
47360   #
47361   # If user didn't specify, use DEFAULT_ZLIB
47362   #
47363   if test "x${with_zlib}" = "x"; then
47364     with_zlib=${DEFAULT_ZLIB}
47365   fi
47366 
47367   if test "x${with_zlib}" = "xbundled"; then
47368     USE_EXTERNAL_LIBZ=false
47369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
47370 $as_echo "bundled" >&6; }
47371   elif test "x${with_zlib}" = "xsystem"; then
47372     if test "x${ZLIB_FOUND}" = "xyes"; then
47373       USE_EXTERNAL_LIBZ=true
47374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
47375 $as_echo "system" >&6; }
47376     else
47377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
47378 $as_echo "system not found" >&6; }
47379       as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5
47380     fi
47381   else
47382     as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5
47383   fi
47384 
47385 
47386 
47387   ###############################################################################
47388   LIBZIP_CAN_USE_MMAP=true
47389 
47390 
47391 
47392   ###############################################################################
47393   #
47394   # Check if altzone exists in time.h
47395   #
47396 
47397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47398 /* end confdefs.h.  */
47399 #include <time.h>
47400 int
47401 main ()
47402 {
47403 return (int)altzone;
47404   ;
47405   return 0;
47406 }
47407 _ACEOF
47408 if ac_fn_cxx_try_link "$LINENO"; then :
47409   has_altzone=yes
47410 else
47411   has_altzone=no
47412 fi
47413 rm -f core conftest.err conftest.$ac_objext \
47414     conftest$ac_exeext conftest.$ac_ext
47415   if test "x$has_altzone" = xyes; then
47416 
47417 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
47418 
47419   fi
47420 
47421   ###############################################################################
47422   #
47423   # Check the maths library
47424   #
47425 
47426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
47427 $as_echo_n "checking for cos in -lm... " >&6; }
47428 if ${ac_cv_lib_m_cos+:} false; then :
47429   $as_echo_n "(cached) " >&6
47430 else
47431   ac_check_lib_save_LIBS=$LIBS
47432 LIBS="-lm  $LIBS"
47433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47434 /* end confdefs.h.  */
47435 
47436 /* Override any GCC internal prototype to avoid an error.
47437    Use char because int might match the return type of a GCC
47438    builtin and then its argument prototype would still apply.  */
47439 #ifdef __cplusplus
47440 extern "C"
47441 #endif
47442 char cos ();
47443 int
47444 main ()
47445 {
47446 return cos ();
47447   ;
47448   return 0;
47449 }
47450 _ACEOF
47451 if ac_fn_cxx_try_link "$LINENO"; then :
47452   ac_cv_lib_m_cos=yes
47453 else
47454   ac_cv_lib_m_cos=no
47455 fi
47456 rm -f core conftest.err conftest.$ac_objext \
47457     conftest$ac_exeext conftest.$ac_ext
47458 LIBS=$ac_check_lib_save_LIBS
47459 fi
47460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
47461 $as_echo "$ac_cv_lib_m_cos" >&6; }
47462 if test "x$ac_cv_lib_m_cos" = xyes; then :
47463   cat >>confdefs.h <<_ACEOF
47464 #define HAVE_LIBM 1
47465 _ACEOF
47466 
47467   LIBS="-lm $LIBS"
47468 
47469 else
47470 
47471         { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
47472 $as_echo "$as_me: Maths library was not found" >&6;}
47473 
47474 
47475 fi
47476 
47477 
47478 
47479   ###############################################################################
47480   #
47481   # Check for libdl.so
47482 
47483   save_LIBS="$LIBS"
47484   LIBS=""
47485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
47486 $as_echo_n "checking for dlopen in -ldl... " >&6; }
47487 if ${ac_cv_lib_dl_dlopen+:} false; then :
47488   $as_echo_n "(cached) " >&6
47489 else
47490   ac_check_lib_save_LIBS=$LIBS
47491 LIBS="-ldl  $LIBS"
47492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47493 /* end confdefs.h.  */
47494 
47495 /* Override any GCC internal prototype to avoid an error.
47496    Use char because int might match the return type of a GCC
47497    builtin and then its argument prototype would still apply.  */
47498 #ifdef __cplusplus
47499 extern "C"
47500 #endif
47501 char dlopen ();
47502 int
47503 main ()
47504 {
47505 return dlopen ();
47506   ;
47507   return 0;
47508 }
47509 _ACEOF
47510 if ac_fn_cxx_try_link "$LINENO"; then :
47511   ac_cv_lib_dl_dlopen=yes
47512 else
47513   ac_cv_lib_dl_dlopen=no
47514 fi
47515 rm -f core conftest.err conftest.$ac_objext \
47516     conftest$ac_exeext conftest.$ac_ext
47517 LIBS=$ac_check_lib_save_LIBS
47518 fi
47519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
47520 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
47521 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
47522   cat >>confdefs.h <<_ACEOF
47523 #define HAVE_LIBDL 1
47524 _ACEOF
47525 
47526   LIBS="-ldl $LIBS"
47527 
47528 fi
47529 
47530   LIBDL="$LIBS"
47531 
47532   LIBS="$save_LIBS"
47533 
47534 
47535   ###############################################################################
47536   #
47537   # statically link libstdc++ before C++ ABI is stablized on Linux unless
47538   # dynamic build is configured on command line.
47539   #
47540 
47541 # Check whether --with-stdc++lib was given.
47542 if test "${with_stdc__lib+set}" = set; then :
47543   withval=$with_stdc__lib;
47544         if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \
47545                 && test "x$with_stdc__lib" != xdefault; then
47546           as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5
47547         fi
47548 
47549 else
47550   with_stdc__lib=default
47551 
47552 fi
47553 
47554 
47555   if test "x$OPENJDK_TARGET_OS" = xlinux; then
47556     # Test if -lstdc++ works.
47557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
47558 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
47559     ac_ext=cpp
47560 ac_cpp='$CXXCPP $CPPFLAGS'
47561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47564 
47565     OLD_CXXFLAGS="$CXXFLAGS"
47566     CXXFLAGS="$CXXFLAGS -lstdc++"
47567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47568 /* end confdefs.h.  */
47569 
47570 int
47571 main ()
47572 {
47573 return 0;
47574   ;
47575   return 0;
47576 }
47577 _ACEOF
47578 if ac_fn_cxx_try_link "$LINENO"; then :
47579   has_dynamic_libstdcxx=yes
47580 else
47581   has_dynamic_libstdcxx=no
47582 fi
47583 rm -f core conftest.err conftest.$ac_objext \
47584     conftest$ac_exeext conftest.$ac_ext
47585     CXXFLAGS="$OLD_CXXFLAGS"
47586     ac_ext=cpp
47587 ac_cpp='$CXXCPP $CPPFLAGS'
47588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47591 
47592     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
47593 $as_echo "$has_dynamic_libstdcxx" >&6; }
47594 
47595     # Test if stdc++ can be linked statically.
47596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
47597 $as_echo_n "checking if static link of stdc++ is possible... " >&6; }
47598     STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
47599     ac_ext=cpp
47600 ac_cpp='$CXXCPP $CPPFLAGS'
47601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47604 
47605     OLD_LIBS="$LIBS"
47606     OLD_CXX="$CXX"
47607     LIBS="$STATIC_STDCXX_FLAGS"
47608     CXX="$CC"
47609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47610 /* end confdefs.h.  */
47611 
47612 int
47613 main ()
47614 {
47615 return 0;
47616   ;
47617   return 0;
47618 }
47619 _ACEOF
47620 if ac_fn_cxx_try_link "$LINENO"; then :
47621   has_static_libstdcxx=yes
47622 else
47623   has_static_libstdcxx=no
47624 fi
47625 rm -f core conftest.err conftest.$ac_objext \
47626     conftest$ac_exeext conftest.$ac_ext
47627     LIBS="$OLD_LIBS"
47628     CXX="$OLD_CXX"
47629     ac_ext=cpp
47630 ac_cpp='$CXXCPP $CPPFLAGS'
47631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47634 
47635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
47636 $as_echo "$has_static_libstdcxx" >&6; }
47637 
47638     if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then
47639       as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5
47640     fi
47641 
47642     if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
47643       as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5
47644     fi
47645 
47646     if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then
47647       as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5
47648     fi
47649 
47650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
47651 $as_echo_n "checking how to link with libstdc++... " >&6; }
47652     # If dynamic was requested, it's available since it would fail above otherwise.
47653     # If dynamic wasn't requested, go with static unless it isn't available.
47654     if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47655       LIBCXX="$LIBCXX -lstdc++"
47656       LDCXX="$CXX"
47657       STATIC_CXX_SETTING="STATIC_CXX=false"
47658       { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
47659 $as_echo "dynamic" >&6; }
47660     else
47661       LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
47662       LDCXX="$CC"
47663       STATIC_CXX_SETTING="STATIC_CXX=true"
47664       { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
47665 $as_echo "static" >&6; }
47666     fi
47667   fi
47668 
47669 
47670   if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47671     # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS
47672 
47673 pkg_failed=no
47674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
47675 $as_echo_n "checking for LIBFFI... " >&6; }
47676 
47677 if test -n "$LIBFFI_CFLAGS"; then
47678     pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
47679  elif test -n "$PKG_CONFIG"; then
47680     if test -n "$PKG_CONFIG" && \
47681     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
47682   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
47683   ac_status=$?
47684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47685   test $ac_status = 0; }; then
47686   pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
47687 else
47688   pkg_failed=yes
47689 fi
47690  else
47691     pkg_failed=untried
47692 fi
47693 if test -n "$LIBFFI_LIBS"; then
47694     pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
47695  elif test -n "$PKG_CONFIG"; then
47696     if test -n "$PKG_CONFIG" && \
47697     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
47698   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
47699   ac_status=$?
47700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47701   test $ac_status = 0; }; then
47702   pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
47703 else
47704   pkg_failed=yes
47705 fi
47706  else
47707     pkg_failed=untried
47708 fi
47709 
47710 
47711 
47712 if test $pkg_failed = yes; then
47713 
47714 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47715         _pkg_short_errors_supported=yes
47716 else
47717         _pkg_short_errors_supported=no
47718 fi
47719         if test $_pkg_short_errors_supported = yes; then
47720                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
47721         else
47722                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
47723         fi
47724         # Put the nasty error message in config.log where it belongs
47725         echo "$LIBFFI_PKG_ERRORS" >&5
47726 
47727         as_fn_error $? "Package requirements (libffi) were not met:
47728 
47729 $LIBFFI_PKG_ERRORS
47730 
47731 Consider adjusting the PKG_CONFIG_PATH environment variable if you
47732 installed software in a non-standard prefix.
47733 
47734 Alternatively, you may set the environment variables LIBFFI_CFLAGS
47735 and LIBFFI_LIBS to avoid the need to call pkg-config.
47736 See the pkg-config man page for more details.
47737 " "$LINENO" 5
47738 elif test $pkg_failed = untried; then
47739         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47741 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
47742 is in your PATH or set the PKG_CONFIG environment variable to the full
47743 path to pkg-config.
47744 
47745 Alternatively, you may set the environment variables LIBFFI_CFLAGS
47746 and LIBFFI_LIBS to avoid the need to call pkg-config.
47747 See the pkg-config man page for more details.
47748 
47749 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
47750 See \`config.log' for more details" "$LINENO" 5; }
47751 else
47752         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
47753         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
47754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47755 $as_echo "yes" >&6; }
47756         :
47757 fi
47758 
47759   fi
47760 
47761   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47762     # Extract the first word of "llvm-config", so it can be a program name with args.
47763 set dummy llvm-config; ac_word=$2
47764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47765 $as_echo_n "checking for $ac_word... " >&6; }
47766 if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
47767   $as_echo_n "(cached) " >&6
47768 else
47769   if test -n "$LLVM_CONFIG"; then
47770   ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
47771 else
47772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47773 for as_dir in $PATH
47774 do
47775   IFS=$as_save_IFS
47776   test -z "$as_dir" && as_dir=.
47777     for ac_exec_ext in '' $ac_executable_extensions; do
47778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47779     ac_cv_prog_LLVM_CONFIG="llvm-config"
47780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47781     break 2
47782   fi
47783 done
47784   done
47785 IFS=$as_save_IFS
47786 
47787 fi
47788 fi
47789 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
47790 if test -n "$LLVM_CONFIG"; then
47791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
47792 $as_echo "$LLVM_CONFIG" >&6; }
47793 else
47794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47795 $as_echo "no" >&6; }
47796 fi
47797 
47798 
47799 
47800     if test "x$LLVM_CONFIG" != xllvm-config; then
47801       as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5
47802     fi
47803 
47804     llvm_components="jit mcjit engine nativecodegen native"
47805     unset LLVM_CFLAGS
47806     for flag in $("$LLVM_CONFIG" --cxxflags); do
47807       if echo "${flag}" | grep -q '^-[ID]'; then
47808         if test "${flag}" != "-D_DEBUG" ; then
47809           if test "${LLVM_CFLAGS}" != "" ; then
47810             LLVM_CFLAGS="${LLVM_CFLAGS} "
47811           fi
47812           LLVM_CFLAGS="${LLVM_CFLAGS}${flag}"
47813         fi
47814       fi
47815     done
47816     llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//')
47817     LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}"
47818 
47819     unset LLVM_LDFLAGS
47820     for flag in $("${LLVM_CONFIG}" --ldflags); do
47821       if echo "${flag}" | grep -q '^-L'; then
47822         if test "${LLVM_LDFLAGS}" != ""; then
47823           LLVM_LDFLAGS="${LLVM_LDFLAGS} "
47824         fi
47825         LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}"
47826       fi
47827     done
47828 
47829     unset LLVM_LIBS
47830     for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do
47831       if echo "${flag}" | grep -q '^-l'; then
47832         if test "${LLVM_LIBS}" != ""; then
47833           LLVM_LIBS="${LLVM_LIBS} "
47834         fi
47835         LLVM_LIBS="${LLVM_LIBS}${flag}"
47836       fi
47837     done
47838 
47839 
47840 
47841 
47842   fi
47843 
47844   # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
47845   if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then
47846     LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"
47847   fi
47848 
47849   # TODO better (platform agnostic) test
47850   if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then
47851     LIBCXX="-lstdc++"
47852   fi
47853 
47854 
47855 
47856 
47857 
47858 ###############################################################################
47859 #
47860 # We need to do some final tweaking, when everything else is done.
47861 #
47862 ###############################################################################
47863 
47864 
47865   HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET"
47866 
47867 
47868   # The name of the Service Agent jar.
47869   SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
47870   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
47871     SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
47872   fi
47873 
47874 
47875 
47876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5
47877 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; }
47878 
47879     if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then
47880       ENABLE_INTREE_EC=yes
47881       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47882 $as_echo "yes" >&6; }
47883     else
47884       ENABLE_INTREE_EC=no
47885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47886 $as_echo "no" >&6; }
47887     fi
47888 
47889 
47890 
47891 
47892 ###############################################################################
47893 #
47894 # Configure parts of the build that only affect the build performance,
47895 # not the result.
47896 #
47897 ###############################################################################
47898 
47899 
47900   # How many cores do we have on this build system?
47901 
47902 # Check whether --with-num-cores was given.
47903 if test "${with_num_cores+set}" = set; then :
47904   withval=$with_num_cores;
47905 fi
47906 
47907   if test "x$with_num_cores" = x; then
47908     # The number of cores were not specified, try to probe them.
47909 
47910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
47911 $as_echo_n "checking for number of cores... " >&6; }
47912   NUM_CORES=1
47913   FOUND_CORES=no
47914 
47915   if test -f /proc/cpuinfo; then
47916     # Looks like a Linux (or cygwin) system
47917     NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
47918     FOUND_CORES=yes
47919   elif test -x /usr/sbin/psrinfo; then
47920     # Looks like a Solaris system
47921     NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
47922     FOUND_CORES=yes
47923   elif test -x /usr/sbin/system_profiler; then
47924     # Looks like a MacOSX system
47925     NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
47926     FOUND_CORES=yes
47927   elif test "x$OPENJDK_BUILD_OS" = xaix ; then
47928     NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'`
47929     FOUND_CORES=yes
47930   elif test -n "$NUMBER_OF_PROCESSORS"; then
47931     # On windows, look in the env
47932     NUM_CORES=$NUMBER_OF_PROCESSORS
47933     FOUND_CORES=yes
47934   fi
47935 
47936   if test "x$FOUND_CORES" = xyes; then
47937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
47938 $as_echo "$NUM_CORES" >&6; }
47939   else
47940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
47941 $as_echo "could not detect number of cores, defaulting to 1" >&6; }
47942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
47943 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
47944   fi
47945 
47946   else
47947     NUM_CORES=$with_num_cores
47948   fi
47949 
47950 
47951 
47952   # How much memory do we have on this build system?
47953 
47954 # Check whether --with-memory-size was given.
47955 if test "${with_memory_size+set}" = set; then :
47956   withval=$with_memory_size;
47957 fi
47958 
47959   if test "x$with_memory_size" = x; then
47960     # The memory size was not specified, try to probe it.
47961 
47962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
47963 $as_echo_n "checking for memory size... " >&6; }
47964   # Default to 1024 MB
47965   MEMORY_SIZE=1024
47966   FOUND_MEM=no
47967 
47968   if test -f /proc/meminfo; then
47969     # Looks like a Linux (or cygwin) system
47970     MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
47971     MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
47972     FOUND_MEM=yes
47973   elif test -x /usr/sbin/prtconf; then
47974     # Looks like a Solaris or AIX system
47975     MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'`
47976     FOUND_MEM=yes
47977   elif test -x /usr/sbin/system_profiler; then
47978     # Looks like a MacOSX system
47979     MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
47980     MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
47981     FOUND_MEM=yes
47982   elif test "x$OPENJDK_BUILD_OS" = xwindows; then
47983     # Windows, but without cygwin
47984     MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
47985     MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
47986     FOUND_MEM=yes
47987   fi
47988 
47989   if test "x$FOUND_MEM" = xyes; then
47990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
47991 $as_echo "$MEMORY_SIZE MB" >&6; }
47992   else
47993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
47994 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
47995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5
47996 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;}
47997   fi
47998 
47999   else
48000     MEMORY_SIZE=$with_memory_size
48001   fi
48002 
48003 
48004 
48005   # Provide a decent default number of parallel jobs for make depending on
48006   # number of cores, amount of memory and machine architecture.
48007 
48008 # Check whether --with-jobs was given.
48009 if test "${with_jobs+set}" = set; then :
48010   withval=$with_jobs;
48011 fi
48012 
48013   if test "x$with_jobs" = x; then
48014     # Number of jobs was not specified, calculate.
48015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5
48016 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; }
48017     # Approximate memory in GB, rounding up a bit.
48018     memory_gb=`expr $MEMORY_SIZE / 1100`
48019     # Pick the lowest of memory in gb and number of cores.
48020     if test "$memory_gb" -lt "$NUM_CORES"; then
48021       JOBS="$memory_gb"
48022     else
48023       JOBS="$NUM_CORES"
48024       # On bigger machines, leave some room for other processes to run
48025       if test "$JOBS" -gt "4"; then
48026         JOBS=`expr $JOBS '*' 90 / 100`
48027       fi
48028     fi
48029     # Cap number of jobs to 16
48030     if test "$JOBS" -gt "16"; then
48031       JOBS=16
48032     fi
48033     if test "$JOBS" -eq "0"; then
48034       JOBS=1
48035     fi
48036     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5
48037 $as_echo "$JOBS" >&6; }
48038   else
48039     JOBS=$with_jobs
48040   fi
48041 
48042 
48043 
48044 # Setup smart javac (after cores and memory have been setup)
48045 
48046 
48047 # Check whether --with-sjavac-server-java was given.
48048 if test "${with_sjavac_server_java+set}" = set; then :
48049   withval=$with_sjavac_server_java;
48050 fi
48051 
48052 
48053   if test "x$with_sjavac_server_java" != x; then
48054     SJAVAC_SERVER_JAVA="$with_sjavac_server_java"
48055     FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""`
48056     if test "x$FOUND_VERSION" = x; then
48057       as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5
48058     fi
48059   else
48060     SJAVAC_SERVER_JAVA=""
48061     # Hotspot specific options.
48062 
48063   $ECHO "Check if jvm arg is ok: -verbosegc" >&5
48064   $ECHO "Command: $JAVA -verbosegc -version" >&5
48065   OUTPUT=`$JAVA -verbosegc -version 2>&1`
48066   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48067   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48068   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48069     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc"
48070     JVM_ARG_OK=true
48071   else
48072     $ECHO "Arg failed:" >&5
48073     $ECHO "$OUTPUT" >&5
48074     JVM_ARG_OK=false
48075   fi
48076 
48077     # JRockit specific options.
48078 
48079   $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5
48080   $ECHO "Command: $JAVA -Xverbose:gc -version" >&5
48081   OUTPUT=`$JAVA -Xverbose:gc -version 2>&1`
48082   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48083   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48084   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48085     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc"
48086     JVM_ARG_OK=true
48087   else
48088     $ECHO "Arg failed:" >&5
48089     $ECHO "$OUTPUT" >&5
48090     JVM_ARG_OK=false
48091   fi
48092 
48093     SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA"
48094   fi
48095 
48096 
48097   if test "$MEMORY_SIZE" -gt "2500"; then
48098 
48099   $ECHO "Check if jvm arg is ok: -d64" >&5
48100   $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5
48101   OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1`
48102   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48103   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48104   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48105     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64"
48106     JVM_ARG_OK=true
48107   else
48108     $ECHO "Arg failed:" >&5
48109     $ECHO "$OUTPUT" >&5
48110     JVM_ARG_OK=false
48111   fi
48112 
48113     if test "$JVM_ARG_OK" = true; then
48114       JVM_64BIT=true
48115       JVM_ARG_OK=false
48116     fi
48117   fi
48118 
48119   if test "$JVM_64BIT" = true; then
48120     if test "$MEMORY_SIZE" -gt "17000"; then
48121 
48122   $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5
48123   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5
48124   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1`
48125   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48126   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48127   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48128     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G"
48129     JVM_ARG_OK=true
48130   else
48131     $ECHO "Arg failed:" >&5
48132     $ECHO "$OUTPUT" >&5
48133     JVM_ARG_OK=false
48134   fi
48135 
48136     fi
48137     if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then
48138 
48139   $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5
48140   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5
48141   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1`
48142   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48143   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48144   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48145     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G"
48146     JVM_ARG_OK=true
48147   else
48148     $ECHO "Arg failed:" >&5
48149     $ECHO "$OUTPUT" >&5
48150     JVM_ARG_OK=false
48151   fi
48152 
48153     fi
48154     if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then
48155 
48156   $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5
48157   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5
48158   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1`
48159   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48160   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48161   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48162     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G"
48163     JVM_ARG_OK=true
48164   else
48165     $ECHO "Arg failed:" >&5
48166     $ECHO "$OUTPUT" >&5
48167     JVM_ARG_OK=false
48168   fi
48169 
48170     fi
48171     if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then
48172 
48173   $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5
48174   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5
48175   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1`
48176   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48177   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48178   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48179     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M"
48180     JVM_ARG_OK=true
48181   else
48182     $ECHO "Arg failed:" >&5
48183     $ECHO "$OUTPUT" >&5
48184     JVM_ARG_OK=false
48185   fi
48186 
48187     fi
48188   fi
48189   if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then
48190 
48191   $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5
48192   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5
48193   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1`
48194   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48195   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48196   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48197     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M"
48198     JVM_ARG_OK=true
48199   else
48200     $ECHO "Arg failed:" >&5
48201     $ECHO "$OUTPUT" >&5
48202     JVM_ARG_OK=false
48203   fi
48204 
48205   fi
48206   if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then
48207 
48208   $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5
48209   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5
48210   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1`
48211   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48212   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48213   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48214     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M"
48215     JVM_ARG_OK=true
48216   else
48217     $ECHO "Arg failed:" >&5
48218     $ECHO "$OUTPUT" >&5
48219     JVM_ARG_OK=false
48220   fi
48221 
48222   fi
48223   if test "$JVM_ARG_OK" = false; then
48224 
48225   $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5
48226   $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5
48227   OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1`
48228   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48229   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48230   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48231     SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M"
48232     JVM_ARG_OK=true
48233   else
48234     $ECHO "Arg failed:" >&5
48235     $ECHO "$OUTPUT" >&5
48236     JVM_ARG_OK=false
48237   fi
48238 
48239   fi
48240 
48241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5
48242 $as_echo_n "checking whether to use sjavac... " >&6; }
48243   # Check whether --enable-sjavac was given.
48244 if test "${enable_sjavac+set}" = set; then :
48245   enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}"
48246 else
48247   ENABLE_SJAVAC='no'
48248 fi
48249 
48250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
48251 $as_echo "$ENABLE_SJAVAC" >&6; }
48252 
48253 
48254   if test "x$ENABLE_SJAVAC" = xyes; then
48255     SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers"
48256   else
48257     SJAVAC_SERVER_DIR=
48258   fi
48259 
48260 
48261 
48262 # Can the C/C++ compiler use precompiled headers?
48263 
48264 
48265   ###############################################################################
48266   #
48267   # Can the C/C++ compiler use precompiled headers?
48268   #
48269   # Check whether --enable-precompiled-headers was given.
48270 if test "${enable_precompiled_headers+set}" = set; then :
48271   enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers}
48272 else
48273   ENABLE_PRECOMPH=yes
48274 fi
48275 
48276 
48277   USE_PRECOMPILED_HEADER=1
48278   if test "x$ENABLE_PRECOMPH" = xno; then
48279     USE_PRECOMPILED_HEADER=0
48280   fi
48281 
48282   if test "x$ENABLE_PRECOMPH" = xyes; then
48283     # Check that the compiler actually supports precomp headers.
48284     if test "x$GCC" = xyes; then
48285       { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
48286 $as_echo_n "checking that precompiled headers work... " >&6; }
48287       echo "int alfa();" > conftest.h
48288       $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5
48289       if test ! -f conftest.hpp.gch; then
48290         USE_PRECOMPILED_HEADER=0
48291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48292 $as_echo "no" >&6; }
48293       else
48294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48295 $as_echo "yes" >&6; }
48296       fi
48297       rm -f conftest.h conftest.hpp.gch
48298     fi
48299   fi
48300 
48301 
48302 
48303 
48304 # Setup use of ccache, if available
48305 
48306   # Check whether --enable-ccache was given.
48307 if test "${enable_ccache+set}" = set; then :
48308   enableval=$enable_ccache;
48309 fi
48310 
48311 
48312   CCACHE=
48313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5
48314 $as_echo_n "checking is ccache enabled... " >&6; }
48315   ENABLE_CCACHE=$enable_ccache
48316   if test "x$enable_ccache" = xyes; then
48317     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48318 $as_echo "yes" >&6; }
48319     OLD_PATH="$PATH"
48320     if test "x$TOOLS_DIR" != x; then
48321       PATH=$TOOLS_DIR:$PATH
48322     fi
48323 
48324 
48325 
48326   # Publish this variable in the help.
48327 
48328 
48329   if test "x$CCACHE" = x; then
48330     # The variable is not set by user, try to locate tool using the code snippet
48331     for ac_prog in ccache
48332 do
48333   # Extract the first word of "$ac_prog", so it can be a program name with args.
48334 set dummy $ac_prog; ac_word=$2
48335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48336 $as_echo_n "checking for $ac_word... " >&6; }
48337 if ${ac_cv_path_CCACHE+:} false; then :
48338   $as_echo_n "(cached) " >&6
48339 else
48340   case $CCACHE in
48341   [\\/]* | ?:[\\/]*)
48342   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48343   ;;
48344   *)
48345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48346 for as_dir in $PATH
48347 do
48348   IFS=$as_save_IFS
48349   test -z "$as_dir" && as_dir=.
48350     for ac_exec_ext in '' $ac_executable_extensions; do
48351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48352     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48354     break 2
48355   fi
48356 done
48357   done
48358 IFS=$as_save_IFS
48359 
48360   ;;
48361 esac
48362 fi
48363 CCACHE=$ac_cv_path_CCACHE
48364 if test -n "$CCACHE"; then
48365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48366 $as_echo "$CCACHE" >&6; }
48367 else
48368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48369 $as_echo "no" >&6; }
48370 fi
48371 
48372 
48373   test -n "$CCACHE" && break
48374 done
48375 
48376   else
48377     # The variable is set, but is it from the command line or the environment?
48378 
48379     # Try to remove the string !CCACHE! from our list.
48380     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/}
48381     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
48382       # If it failed, the variable was not from the command line. Ignore it,
48383       # but warn the user (except for BASH, which is always set by the calling BASH).
48384       if test "xCCACHE" != xBASH; then
48385         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5
48386 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;}
48387       fi
48388       # Try to locate tool using the code snippet
48389       for ac_prog in ccache
48390 do
48391   # Extract the first word of "$ac_prog", so it can be a program name with args.
48392 set dummy $ac_prog; ac_word=$2
48393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48394 $as_echo_n "checking for $ac_word... " >&6; }
48395 if ${ac_cv_path_CCACHE+:} false; then :
48396   $as_echo_n "(cached) " >&6
48397 else
48398   case $CCACHE in
48399   [\\/]* | ?:[\\/]*)
48400   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48401   ;;
48402   *)
48403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48404 for as_dir in $PATH
48405 do
48406   IFS=$as_save_IFS
48407   test -z "$as_dir" && as_dir=.
48408     for ac_exec_ext in '' $ac_executable_extensions; do
48409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48410     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48412     break 2
48413   fi
48414 done
48415   done
48416 IFS=$as_save_IFS
48417 
48418   ;;
48419 esac
48420 fi
48421 CCACHE=$ac_cv_path_CCACHE
48422 if test -n "$CCACHE"; then
48423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48424 $as_echo "$CCACHE" >&6; }
48425 else
48426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48427 $as_echo "no" >&6; }
48428 fi
48429 
48430 
48431   test -n "$CCACHE" && break
48432 done
48433 
48434     else
48435       # If it succeeded, then it was overridden by the user. We will use it
48436       # for the tool.
48437 
48438       # First remove it from the list of overridden variables, so we can test
48439       # for unknown variables in the end.
48440       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
48441 
48442       # Check if the provided tool contains a complete path.
48443       tool_specified="$CCACHE"
48444       tool_basename="${tool_specified##*/}"
48445       if test "x$tool_basename" = "x$tool_specified"; then
48446         # A command without a complete path is provided, search $PATH.
48447         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5
48448 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;}
48449         # Extract the first word of "$tool_basename", so it can be a program name with args.
48450 set dummy $tool_basename; ac_word=$2
48451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48452 $as_echo_n "checking for $ac_word... " >&6; }
48453 if ${ac_cv_path_CCACHE+:} false; then :
48454   $as_echo_n "(cached) " >&6
48455 else
48456   case $CCACHE in
48457   [\\/]* | ?:[\\/]*)
48458   ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48459   ;;
48460   *)
48461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48462 for as_dir in $PATH
48463 do
48464   IFS=$as_save_IFS
48465   test -z "$as_dir" && as_dir=.
48466     for ac_exec_ext in '' $ac_executable_extensions; do
48467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48468     ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48470     break 2
48471   fi
48472 done
48473   done
48474 IFS=$as_save_IFS
48475 
48476   ;;
48477 esac
48478 fi
48479 CCACHE=$ac_cv_path_CCACHE
48480 if test -n "$CCACHE"; then
48481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48482 $as_echo "$CCACHE" >&6; }
48483 else
48484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48485 $as_echo "no" >&6; }
48486 fi
48487 
48488 
48489         if test "x$CCACHE" = x; then
48490           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
48491         fi
48492       else
48493         # Otherwise we believe it is a complete path. Use it as it is.
48494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5
48495 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;}
48496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5
48497 $as_echo_n "checking for CCACHE... " >&6; }
48498         if test ! -x "$tool_specified"; then
48499           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
48500 $as_echo "not found" >&6; }
48501           as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5
48502         fi
48503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
48504 $as_echo "$tool_specified" >&6; }
48505       fi
48506     fi
48507   fi
48508 
48509 
48510 
48511   if test "x$CCACHE" = x; then
48512     as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5
48513   fi
48514 
48515 
48516     CCACHE_STATUS="enabled"
48517     PATH="$OLD_PATH"
48518   elif test "x$enable_ccache" = xno; then
48519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5
48520 $as_echo "no, explicitly disabled" >&6; }
48521   elif test "x$enable_ccache" = x; then
48522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48523 $as_echo "no" >&6; }
48524   else
48525     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
48526 $as_echo "unknown" >&6; }
48527     as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5
48528   fi
48529 
48530 
48531 
48532 # Check whether --with-ccache-dir was given.
48533 if test "${with_ccache_dir+set}" = set; then :
48534   withval=$with_ccache_dir;
48535 fi
48536 
48537 
48538   if test "x$with_ccache_dir" != x; then
48539     # When using a non home ccache directory, assume the use is to share ccache files
48540     # with other users. Thus change the umask.
48541     SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
48542     if test "x$CCACHE" = x; then
48543       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5
48544 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;}
48545     fi
48546   fi
48547 
48548   if test "x$CCACHE" != x; then
48549 
48550   if test "x$CCACHE" != x; then
48551     # Only use ccache if it is 3.1.4 or later, which supports
48552     # precompiled headers.
48553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
48554 $as_echo_n "checking if ccache supports precompiled headers... " >&6; }
48555     HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
48556     if test "x$HAS_GOOD_CCACHE" = x; then
48557       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
48558 $as_echo "no, disabling ccache" >&6; }
48559       CCACHE=
48560       CCACHE_STATUS="disabled"
48561     else
48562       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48563 $as_echo "yes" >&6; }
48564       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
48565 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
48566       PUSHED_FLAGS="$CXXFLAGS"
48567       CXXFLAGS="-fpch-preprocess $CXXFLAGS"
48568       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48569 /* end confdefs.h.  */
48570 
48571 int
48572 main ()
48573 {
48574 
48575   ;
48576   return 0;
48577 }
48578 _ACEOF
48579 if ac_fn_cxx_try_compile "$LINENO"; then :
48580   CC_KNOWS_CCACHE_TRICK=yes
48581 else
48582   CC_KNOWS_CCACHE_TRICK=no
48583 fi
48584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48585       CXXFLAGS="$PUSHED_FLAGS"
48586       if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
48587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48588 $as_echo "yes" >&6; }
48589       else
48590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
48591 $as_echo "no, disabling ccaching of precompiled headers" >&6; }
48592         CCACHE=
48593         CCACHE_STATUS="disabled"
48594       fi
48595     fi
48596   fi
48597 
48598   if test "x$CCACHE" != x; then
48599     CCACHE_SLOPPINESS=time_macros
48600     CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
48601     CCACHE_FLAGS=-fpch-preprocess
48602 
48603     if test "x$SET_CCACHE_DIR" != x; then
48604       mkdir -p $CCACHE_DIR > /dev/null 2>&1
48605       chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
48606     fi
48607   fi
48608 
48609   fi
48610 
48611 
48612 ###############################################################################
48613 #
48614 # And now the finish...
48615 #
48616 ###############################################################################
48617 
48618 # Check for some common pitfalls
48619 
48620   if test x"$OPENJDK_BUILD_OS" = xwindows; then
48621     file_to_test="$SRC_ROOT/LICENSE"
48622     if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
48623       as_fn_error $? "Bad file permissions on src files. This is usually caused by cloning the repositories with a non cygwin hg in a directory not created in cygwin." "$LINENO" 5
48624     fi
48625   fi
48626 
48627 
48628   # Did user specify any unknown variables?
48629 
48630   if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
48631     # Replace the separating ! with spaces before presenting for end user.
48632     unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
48633     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5
48634 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;}
48635   fi
48636 
48637 
48638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5
48639 $as_echo_n "checking if build directory is on local disk... " >&6; }
48640 
48641   # df -l lists only local disks; if the given directory is not found then
48642   # a non-zero exit code is given
48643   if test "x$DF" = x; then
48644     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
48645       # msys does not have df; use Windows "net use" instead.
48646       IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:`
48647       if test "x$IS_NETWORK_DISK" = x; then
48648         OUTPUT_DIR_IS_LOCAL="yes"
48649       else
48650         OUTPUT_DIR_IS_LOCAL="no"
48651       fi
48652     else
48653       # No df here, say it's local
48654       OUTPUT_DIR_IS_LOCAL="yes"
48655     fi
48656   else
48657     if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then
48658       OUTPUT_DIR_IS_LOCAL="yes"
48659     else
48660       OUTPUT_DIR_IS_LOCAL="no"
48661     fi
48662   fi
48663 
48664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5
48665 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; }
48666 
48667 
48668 
48669   # Check if the user has any old-style ALT_ variables set.
48670   FOUND_ALT_VARIABLES=`env | grep ^ALT_`
48671 
48672   # Before generating output files, test if they exist. If they do, this is a reconfigure.
48673   # Since we can't properly handle the dependencies for this, warn the user about the situation
48674   if test -e $OUTPUT_ROOT/spec.gmk; then
48675     IS_RECONFIGURE=yes
48676   else
48677     IS_RECONFIGURE=no
48678   fi
48679 
48680 
48681 # At the end, call the custom hook. (Dummy macro if no custom sources available)
48682 
48683 
48684 # We're messing a bit with internal autoconf variables to put the config.status
48685 # in the output directory instead of the current directory.
48686 CONFIG_STATUS="$OUTPUT_ROOT/config.status"
48687 
48688 # Create the actual output files. Now the main work of configure is done.
48689 cat >confcache <<\_ACEOF
48690 # This file is a shell script that caches the results of configure
48691 # tests run on this system so they can be shared between configure
48692 # scripts and configure runs, see configure's option --config-cache.
48693 # It is not useful on other systems.  If it contains results you don't
48694 # want to keep, you may remove or edit it.
48695 #
48696 # config.status only pays attention to the cache file if you give it
48697 # the --recheck option to rerun configure.
48698 #
48699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
48700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
48701 # following values.
48702 
48703 _ACEOF
48704 
48705 # The following way of writing the cache mishandles newlines in values,
48706 # but we know of no workaround that is simple, portable, and efficient.
48707 # So, we kill variables containing newlines.
48708 # Ultrix sh set writes to stderr and can't be redirected directly,
48709 # and sets the high bit in the cache file unless we assign to the vars.
48710 (
48711   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
48712     eval ac_val=\$$ac_var
48713     case $ac_val in #(
48714     *${as_nl}*)
48715       case $ac_var in #(
48716       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
48717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
48718       esac
48719       case $ac_var in #(
48720       _ | IFS | as_nl) ;; #(
48721       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
48722       *) { eval $ac_var=; unset $ac_var;} ;;
48723       esac ;;
48724     esac
48725   done
48726 
48727   (set) 2>&1 |
48728     case $as_nl`(ac_space=' '; set) 2>&1` in #(
48729     *${as_nl}ac_space=\ *)
48730       # `set' does not quote correctly, so add quotes: double-quote
48731       # substitution turns \\\\ into \\, and sed turns \\ into \.
48732       sed -n \
48733         "s/'/'\\\\''/g;
48734           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
48735       ;; #(
48736     *)
48737       # `set' quotes correctly as required by POSIX, so do not add quotes.
48738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
48739       ;;
48740     esac |
48741     sort
48742 ) |
48743   sed '
48744      /^ac_cv_env_/b end
48745      t clear
48746      :clear
48747      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48748      t end
48749      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48750      :end' >>confcache
48751 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
48752   if test -w "$cache_file"; then
48753     if test "x$cache_file" != "x/dev/null"; then
48754       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
48755 $as_echo "$as_me: updating cache $cache_file" >&6;}
48756       if test ! -f "$cache_file" || test -h "$cache_file"; then
48757         cat confcache >"$cache_file"
48758       else
48759         case $cache_file in #(
48760         */* | ?:*)
48761           mv -f confcache "$cache_file"$$ &&
48762           mv -f "$cache_file"$$ "$cache_file" ;; #(
48763         *)
48764           mv -f confcache "$cache_file" ;;
48765         esac
48766       fi
48767     fi
48768   else
48769     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
48770 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
48771   fi
48772 fi
48773 rm -f confcache
48774 
48775 test "x$prefix" = xNONE && prefix=$ac_default_prefix
48776 # Let make expand exec_prefix.
48777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48778 
48779 DEFS=-DHAVE_CONFIG_H
48780 
48781 ac_libobjs=
48782 ac_ltlibobjs=
48783 U=
48784 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48785   # 1. Remove the extension, and $U if already installed.
48786   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48787   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
48788   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
48789   #    will be set to the directory where LIBOBJS objects are built.
48790   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
48791   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
48792 done
48793 LIBOBJS=$ac_libobjs
48794 
48795 LTLIBOBJS=$ac_ltlibobjs
48796 
48797 
48798 
48799 : "${CONFIG_STATUS=./config.status}"
48800 ac_write_fail=0
48801 ac_clean_files_save=$ac_clean_files
48802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
48804 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
48805 as_write_fail=0
48806 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
48807 #! $SHELL
48808 # Generated by $as_me.
48809 # Run this file to recreate the current configuration.
48810 # Compiler output produced by configure, useful for debugging
48811 # configure, is in config.log if it exists.
48812 
48813 debug=false
48814 ac_cs_recheck=false
48815 ac_cs_silent=false
48816 
48817 SHELL=\${CONFIG_SHELL-$SHELL}
48818 export SHELL
48819 _ASEOF
48820 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
48821 ## -------------------- ##
48822 ## M4sh Initialization. ##
48823 ## -------------------- ##
48824 
48825 # Be more Bourne compatible
48826 DUALCASE=1; export DUALCASE # for MKS sh
48827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
48828   emulate sh
48829   NULLCMD=:
48830   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
48831   # is contrary to our usage.  Disable this feature.
48832   alias -g '${1+"$@"}'='"$@"'
48833   setopt NO_GLOB_SUBST
48834 else
48835   case `(set -o) 2>/dev/null` in #(
48836   *posix*) :
48837     set -o posix ;; #(
48838   *) :
48839      ;;
48840 esac
48841 fi
48842 
48843 
48844 as_nl='
48845 '
48846 export as_nl
48847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48848 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48851 # Prefer a ksh shell builtin over an external printf program on Solaris,
48852 # but without wasting forks for bash or zsh.
48853 if test -z "$BASH_VERSION$ZSH_VERSION" \
48854     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48855   as_echo='print -r --'
48856   as_echo_n='print -rn --'
48857 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48858   as_echo='printf %s\n'
48859   as_echo_n='printf %s'
48860 else
48861   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
48862     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
48863     as_echo_n='/usr/ucb/echo -n'
48864   else
48865     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
48866     as_echo_n_body='eval
48867       arg=$1;
48868       case $arg in #(
48869       *"$as_nl"*)
48870         expr "X$arg" : "X\\(.*\\)$as_nl";
48871         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
48872       esac;
48873       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
48874     '
48875     export as_echo_n_body
48876     as_echo_n='sh -c $as_echo_n_body as_echo'
48877   fi
48878   export as_echo_body
48879   as_echo='sh -c $as_echo_body as_echo'
48880 fi
48881 
48882 # The user is always right.
48883 if test "${PATH_SEPARATOR+set}" != set; then
48884   PATH_SEPARATOR=:
48885   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
48886     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
48887       PATH_SEPARATOR=';'
48888   }
48889 fi
48890 
48891 
48892 # IFS
48893 # We need space, tab and new line, in precisely that order.  Quoting is
48894 # there to prevent editors from complaining about space-tab.
48895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
48896 # splitting by setting IFS to empty value.)
48897 IFS=" ""        $as_nl"
48898 
48899 # Find who we are.  Look in the path if we contain no directory separator.
48900 as_myself=
48901 case $0 in #((
48902   *[\\/]* ) as_myself=$0 ;;
48903   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48904 for as_dir in $PATH
48905 do
48906   IFS=$as_save_IFS
48907   test -z "$as_dir" && as_dir=.
48908     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48909   done
48910 IFS=$as_save_IFS
48911 
48912      ;;
48913 esac
48914 # We did not find ourselves, most probably we were run as `sh COMMAND'
48915 # in which case we are not to be found in the path.
48916 if test "x$as_myself" = x; then
48917   as_myself=$0
48918 fi
48919 if test ! -f "$as_myself"; then
48920   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
48921   exit 1
48922 fi
48923 
48924 # Unset variables that we do not need and which cause bugs (e.g. in
48925 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
48926 # suppresses any "Segmentation fault" message there.  '((' could
48927 # trigger a bug in pdksh 5.2.14.
48928 for as_var in BASH_ENV ENV MAIL MAILPATH
48929 do eval test x\${$as_var+set} = xset \
48930   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
48931 done
48932 PS1='$ '
48933 PS2='> '
48934 PS4='+ '
48935 
48936 # NLS nuisances.
48937 LC_ALL=C
48938 export LC_ALL
48939 LANGUAGE=C
48940 export LANGUAGE
48941 
48942 # CDPATH.
48943 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48944 
48945 
48946 # as_fn_error STATUS ERROR [LINENO LOG_FD]
48947 # ----------------------------------------
48948 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
48949 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
48950 # script with STATUS, using 1 if that was 0.
48951 as_fn_error ()
48952 {
48953   as_status=$1; test $as_status -eq 0 && as_status=1
48954   if test "$4"; then
48955     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
48956     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
48957   fi
48958   $as_echo "$as_me: error: $2" >&2
48959   as_fn_exit $as_status
48960 } # as_fn_error
48961 
48962 
48963 # as_fn_set_status STATUS
48964 # -----------------------
48965 # Set $? to STATUS, without forking.
48966 as_fn_set_status ()
48967 {
48968   return $1
48969 } # as_fn_set_status
48970 
48971 # as_fn_exit STATUS
48972 # -----------------
48973 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
48974 as_fn_exit ()
48975 {
48976   set +e
48977   as_fn_set_status $1
48978   exit $1
48979 } # as_fn_exit
48980 
48981 # as_fn_unset VAR
48982 # ---------------
48983 # Portably unset VAR.
48984 as_fn_unset ()
48985 {
48986   { eval $1=; unset $1;}
48987 }
48988 as_unset=as_fn_unset
48989 # as_fn_append VAR VALUE
48990 # ----------------------
48991 # Append the text in VALUE to the end of the definition contained in VAR. Take
48992 # advantage of any shell optimizations that allow amortized linear growth over
48993 # repeated appends, instead of the typical quadratic growth present in naive
48994 # implementations.
48995 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
48996   eval 'as_fn_append ()
48997   {
48998     eval $1+=\$2
48999   }'
49000 else
49001   as_fn_append ()
49002   {
49003     eval $1=\$$1\$2
49004   }
49005 fi # as_fn_append
49006 
49007 # as_fn_arith ARG...
49008 # ------------------
49009 # Perform arithmetic evaluation on the ARGs, and store the result in the
49010 # global $as_val. Take advantage of shells that can avoid forks. The arguments
49011 # must be portable across $(()) and expr.
49012 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
49013   eval 'as_fn_arith ()
49014   {
49015     as_val=$(( $* ))
49016   }'
49017 else
49018   as_fn_arith ()
49019   {
49020     as_val=`expr "$@" || test $? -eq 1`
49021   }
49022 fi # as_fn_arith
49023 
49024 
49025 if expr a : '\(a\)' >/dev/null 2>&1 &&
49026    test "X`expr 00001 : '.*\(...\)'`" = X001; then
49027   as_expr=expr
49028 else
49029   as_expr=false
49030 fi
49031 
49032 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49033   as_basename=basename
49034 else
49035   as_basename=false
49036 fi
49037 
49038 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
49039   as_dirname=dirname
49040 else
49041   as_dirname=false
49042 fi
49043 
49044 as_me=`$as_basename -- "$0" ||
49045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49046          X"$0" : 'X\(//\)$' \| \
49047          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
49048 $as_echo X/"$0" |
49049     sed '/^.*\/\([^/][^/]*\)\/*$/{
49050             s//\1/
49051             q
49052           }
49053           /^X\/\(\/\/\)$/{
49054             s//\1/
49055             q
49056           }
49057           /^X\/\(\/\).*/{
49058             s//\1/
49059             q
49060           }
49061           s/.*/./; q'`
49062 
49063 # Avoid depending upon Character Ranges.
49064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49067 as_cr_digits='0123456789'
49068 as_cr_alnum=$as_cr_Letters$as_cr_digits
49069 
49070 ECHO_C= ECHO_N= ECHO_T=
49071 case `echo -n x` in #(((((
49072 -n*)
49073   case `echo 'xy\c'` in
49074   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
49075   xy)  ECHO_C='\c';;
49076   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
49077        ECHO_T=' ';;
49078   esac;;
49079 *)
49080   ECHO_N='-n';;
49081 esac
49082 
49083 rm -f conf$$ conf$$.exe conf$$.file
49084 if test -d conf$$.dir; then
49085   rm -f conf$$.dir/conf$$.file
49086 else
49087   rm -f conf$$.dir
49088   mkdir conf$$.dir 2>/dev/null
49089 fi
49090 if (echo >conf$$.file) 2>/dev/null; then
49091   if ln -s conf$$.file conf$$ 2>/dev/null; then
49092     as_ln_s='ln -s'
49093     # ... but there are two gotchas:
49094     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49095     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49096     # In both cases, we have to default to `cp -pR'.
49097     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49098       as_ln_s='cp -pR'
49099   elif ln conf$$.file conf$$ 2>/dev/null; then
49100     as_ln_s=ln
49101   else
49102     as_ln_s='cp -pR'
49103   fi
49104 else
49105   as_ln_s='cp -pR'
49106 fi
49107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49108 rmdir conf$$.dir 2>/dev/null
49109 
49110 
49111 # as_fn_mkdir_p
49112 # -------------
49113 # Create "$as_dir" as a directory, including parents if necessary.
49114 as_fn_mkdir_p ()
49115 {
49116 
49117   case $as_dir in #(
49118   -*) as_dir=./$as_dir;;
49119   esac
49120   test -d "$as_dir" || eval $as_mkdir_p || {
49121     as_dirs=
49122     while :; do
49123       case $as_dir in #(
49124       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
49125       *) as_qdir=$as_dir;;
49126       esac
49127       as_dirs="'$as_qdir' $as_dirs"
49128       as_dir=`$as_dirname -- "$as_dir" ||
49129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49130          X"$as_dir" : 'X\(//\)[^/]' \| \
49131          X"$as_dir" : 'X\(//\)$' \| \
49132          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49133 $as_echo X"$as_dir" |
49134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49135             s//\1/
49136             q
49137           }
49138           /^X\(\/\/\)[^/].*/{
49139             s//\1/
49140             q
49141           }
49142           /^X\(\/\/\)$/{
49143             s//\1/
49144             q
49145           }
49146           /^X\(\/\).*/{
49147             s//\1/
49148             q
49149           }
49150           s/.*/./; q'`
49151       test -d "$as_dir" && break
49152     done
49153     test -z "$as_dirs" || eval "mkdir $as_dirs"
49154   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
49155 
49156 
49157 } # as_fn_mkdir_p
49158 if mkdir -p . 2>/dev/null; then
49159   as_mkdir_p='mkdir -p "$as_dir"'
49160 else
49161   test -d ./-p && rmdir ./-p
49162   as_mkdir_p=false
49163 fi
49164 
49165 
49166 # as_fn_executable_p FILE
49167 # -----------------------
49168 # Test if FILE is an executable regular file.
49169 as_fn_executable_p ()
49170 {
49171   test -f "$1" && test -x "$1"
49172 } # as_fn_executable_p
49173 as_test_x='test -x'
49174 as_executable_p=as_fn_executable_p
49175 
49176 # Sed expression to map a string onto a valid CPP name.
49177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49178 
49179 # Sed expression to map a string onto a valid variable name.
49180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49181 
49182 
49183 exec 6>&1
49184 ## ----------------------------------- ##
49185 ## Main body of $CONFIG_STATUS script. ##
49186 ## ----------------------------------- ##
49187 _ASEOF
49188 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
49189 
49190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49191 # Save the log message, to keep $0 and so on meaningful, and to
49192 # report actual input values of CONFIG_FILES etc. instead of their
49193 # values after options handling.
49194 ac_log="
49195 This file was extended by OpenJDK $as_me jdk8, which was
49196 generated by GNU Autoconf 2.69.  Invocation command line was
49197 
49198   CONFIG_FILES    = $CONFIG_FILES
49199   CONFIG_HEADERS  = $CONFIG_HEADERS
49200   CONFIG_LINKS    = $CONFIG_LINKS
49201   CONFIG_COMMANDS = $CONFIG_COMMANDS
49202   $ $0 $@
49203 
49204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
49205 "
49206 
49207 _ACEOF
49208 
49209 case $ac_config_files in *"
49210 "*) set x $ac_config_files; shift; ac_config_files=$*;;
49211 esac
49212 
49213 case $ac_config_headers in *"
49214 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
49215 esac
49216 
49217 
49218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49219 # Files that config.status was made for.
49220 config_files="$ac_config_files"
49221 config_headers="$ac_config_headers"
49222 
49223 _ACEOF
49224 
49225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49226 ac_cs_usage="\
49227 \`$as_me' instantiates files and other configuration actions
49228 from templates according to the current configuration.  Unless the files
49229 and actions are specified as TAGs, all are instantiated by default.
49230 
49231 Usage: $0 [OPTION]... [TAG]...
49232 
49233   -h, --help       print this help, then exit
49234   -V, --version    print version number and configuration settings, then exit
49235       --config     print configuration, then exit
49236   -q, --quiet, --silent
49237                    do not print progress messages
49238   -d, --debug      don't remove temporary files
49239       --recheck    update $as_me by reconfiguring in the same conditions
49240       --file=FILE[:TEMPLATE]
49241                    instantiate the configuration file FILE
49242       --header=FILE[:TEMPLATE]
49243                    instantiate the configuration header FILE
49244 
49245 Configuration files:
49246 $config_files
49247 
49248 Configuration headers:
49249 $config_headers
49250 
49251 Report bugs to <build-dev@openjdk.java.net>.
49252 OpenJDK home page: <http://openjdk.java.net>."
49253 
49254 _ACEOF
49255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49256 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
49257 ac_cs_version="\\
49258 OpenJDK config.status jdk8
49259 configured by $0, generated by GNU Autoconf 2.69,
49260   with options \\"\$ac_cs_config\\"
49261 
49262 Copyright (C) 2012 Free Software Foundation, Inc.
49263 This config.status script is free software; the Free Software Foundation
49264 gives unlimited permission to copy, distribute and modify it."
49265 
49266 ac_pwd='$ac_pwd'
49267 srcdir='$srcdir'
49268 AWK='$AWK'
49269 test -n "\$AWK" || AWK=awk
49270 _ACEOF
49271 
49272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49273 # The default lists apply if the user does not specify any file.
49274 ac_need_defaults=:
49275 while test $# != 0
49276 do
49277   case $1 in
49278   --*=?*)
49279     ac_option=`expr "X$1" : 'X\([^=]*\)='`
49280     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
49281     ac_shift=:
49282     ;;
49283   --*=)
49284     ac_option=`expr "X$1" : 'X\([^=]*\)='`
49285     ac_optarg=
49286     ac_shift=:
49287     ;;
49288   *)
49289     ac_option=$1
49290     ac_optarg=$2
49291     ac_shift=shift
49292     ;;
49293   esac
49294 
49295   case $ac_option in
49296   # Handling of the options.
49297   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49298     ac_cs_recheck=: ;;
49299   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
49300     $as_echo "$ac_cs_version"; exit ;;
49301   --config | --confi | --conf | --con | --co | --c )
49302     $as_echo "$ac_cs_config"; exit ;;
49303   --debug | --debu | --deb | --de | --d | -d )
49304     debug=: ;;
49305   --file | --fil | --fi | --f )
49306     $ac_shift
49307     case $ac_optarg in
49308     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49309     '') as_fn_error $? "missing file argument" ;;
49310     esac
49311     as_fn_append CONFIG_FILES " '$ac_optarg'"
49312     ac_need_defaults=false;;
49313   --header | --heade | --head | --hea )
49314     $ac_shift
49315     case $ac_optarg in
49316     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49317     esac
49318     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
49319     ac_need_defaults=false;;
49320   --he | --h)
49321     # Conflict between --help and --header
49322     as_fn_error $? "ambiguous option: \`$1'
49323 Try \`$0 --help' for more information.";;
49324   --help | --hel | -h )
49325     $as_echo "$ac_cs_usage"; exit ;;
49326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49327   | -silent | --silent | --silen | --sile | --sil | --si | --s)
49328     ac_cs_silent=: ;;
49329 
49330   # This is an error.
49331   -*) as_fn_error $? "unrecognized option: \`$1'
49332 Try \`$0 --help' for more information." ;;
49333 
49334   *) as_fn_append ac_config_targets " $1"
49335      ac_need_defaults=false ;;
49336 
49337   esac
49338   shift
49339 done
49340 
49341 ac_configure_extra_args=
49342 
49343 if $ac_cs_silent; then
49344   exec 6>/dev/null
49345   ac_configure_extra_args="$ac_configure_extra_args --silent"
49346 fi
49347 
49348 _ACEOF
49349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49350 if \$ac_cs_recheck; then
49351   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49352   shift
49353   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
49354   CONFIG_SHELL='$SHELL'
49355   export CONFIG_SHELL
49356   exec "\$@"
49357 fi
49358 
49359 _ACEOF
49360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49361 exec 5>>config.log
49362 {
49363   echo
49364   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49365 ## Running $as_me. ##
49366 _ASBOX
49367   $as_echo "$ac_log"
49368 } >&5
49369 
49370 _ACEOF
49371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49372 _ACEOF
49373 
49374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49375 
49376 # Handling of arguments.
49377 for ac_config_target in $ac_config_targets
49378 do
49379   case $ac_config_target in
49380     "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
49381     "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
49382     "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
49383     "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
49384     "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
49385     "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
49386     "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
49387 
49388   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
49389   esac
49390 done
49391 
49392 
49393 # If the user did not use the arguments to specify the items to instantiate,
49394 # then the envvar interface is used.  Set only those that are not.
49395 # We use the long form for the default assignment because of an extremely
49396 # bizarre bug on SunOS 4.1.3.
49397 if $ac_need_defaults; then
49398   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49399   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49400 fi
49401 
49402 # Have a temporary directory for convenience.  Make it in the build tree
49403 # simply because there is no reason against having it here, and in addition,
49404 # creating and moving files from /tmp can sometimes cause problems.
49405 # Hook for its removal unless debugging.
49406 # Note that there is a small window in which the directory will not be cleaned:
49407 # after its creation but before its name has been assigned to `$tmp'.
49408 $debug ||
49409 {
49410   tmp= ac_tmp=
49411   trap 'exit_status=$?
49412   : "${ac_tmp:=$tmp}"
49413   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
49414 ' 0
49415   trap 'as_fn_exit 1' 1 2 13 15
49416 }
49417 # Create a (secure) tmp directory for tmp files.
49418 
49419 {
49420   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49421   test -d "$tmp"
49422 }  ||
49423 {
49424   tmp=./conf$$-$RANDOM
49425   (umask 077 && mkdir "$tmp")
49426 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
49427 ac_tmp=$tmp
49428 
49429 # Set up the scripts for CONFIG_FILES section.
49430 # No need to generate them if there are no CONFIG_FILES.
49431 # This happens for instance with `./config.status config.h'.
49432 if test -n "$CONFIG_FILES"; then
49433 
49434 
49435 ac_cr=`echo X | tr X '\015'`
49436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
49437 # But we know of no other shell where ac_cr would be empty at this
49438 # point, so we can use a bashism as a fallback.
49439 if test "x$ac_cr" = x; then
49440   eval ac_cr=\$\'\\r\'
49441 fi
49442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
49443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
49444   ac_cs_awk_cr='\\r'
49445 else
49446   ac_cs_awk_cr=$ac_cr
49447 fi
49448 
49449 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
49450 _ACEOF
49451 
49452 
49453 {
49454   echo "cat >conf$$subs.awk <<_ACEOF" &&
49455   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
49456   echo "_ACEOF"
49457 } >conf$$subs.sh ||
49458   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
49459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
49460 ac_delim='%!_!# '
49461 for ac_last_try in false false false false false :; do
49462   . ./conf$$subs.sh ||
49463     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
49464 
49465   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
49466   if test $ac_delim_n = $ac_delim_num; then
49467     break
49468   elif $ac_last_try; then
49469     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
49470   else
49471     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49472   fi
49473 done
49474 rm -f conf$$subs.sh
49475 
49476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49477 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
49478 _ACEOF
49479 sed -n '
49480 h
49481 s/^/S["/; s/!.*/"]=/
49482 p
49483 g
49484 s/^[^!]*!//
49485 :repl
49486 t repl
49487 s/'"$ac_delim"'$//
49488 t delim
49489 :nl
49490 h
49491 s/\(.\{148\}\)..*/\1/
49492 t more1
49493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
49494 p
49495 n
49496 b repl
49497 :more1
49498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49499 p
49500 g
49501 s/.\{148\}//
49502 t nl
49503 :delim
49504 h
49505 s/\(.\{148\}\)..*/\1/
49506 t more2
49507 s/["\\]/\\&/g; s/^/"/; s/$/"/
49508 p
49509 b
49510 :more2
49511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
49512 p
49513 g
49514 s/.\{148\}//
49515 t delim
49516 ' <conf$$subs.awk | sed '
49517 /^[^""]/{
49518   N
49519   s/\n//
49520 }
49521 ' >>$CONFIG_STATUS || ac_write_fail=1
49522 rm -f conf$$subs.awk
49523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49524 _ACAWK
49525 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
49526   for (key in S) S_is_set[key] = 1
49527   FS = ""
49528 
49529 }
49530 {
49531   line = $ 0
49532   nfields = split(line, field, "@")
49533   substed = 0
49534   len = length(field[1])
49535   for (i = 2; i < nfields; i++) {
49536     key = field[i]
49537     keylen = length(key)
49538     if (S_is_set[key]) {
49539       value = S[key]
49540       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
49541       len += length(value) + length(field[++i])
49542       substed = 1
49543     } else
49544       len += 1 + keylen
49545   }
49546 
49547   print line
49548 }
49549 
49550 _ACAWK
49551 _ACEOF
49552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49553 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
49554   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
49555 else
49556   cat
49557 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
49558   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
49559 _ACEOF
49560 
49561 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
49562 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
49563 # trailing colons and then remove the whole line if VPATH becomes empty
49564 # (actually we leave an empty line to preserve line numbers).
49565 if test "x$srcdir" = x.; then
49566   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
49567 h
49568 s///
49569 s/^/:/
49570 s/[      ]*$/:/
49571 s/:\$(srcdir):/:/g
49572 s/:\${srcdir}:/:/g
49573 s/:@srcdir@:/:/g
49574 s/^:*//
49575 s/:*$//
49576 x
49577 s/\(=[   ]*\).*/\1/
49578 G
49579 s/\n//
49580 s/^[^=]*=[       ]*$//
49581 }'
49582 fi
49583 
49584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49585 fi # test -n "$CONFIG_FILES"
49586 
49587 # Set up the scripts for CONFIG_HEADERS section.
49588 # No need to generate them if there are no CONFIG_HEADERS.
49589 # This happens for instance with `./config.status Makefile'.
49590 if test -n "$CONFIG_HEADERS"; then
49591 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
49592 BEGIN {
49593 _ACEOF
49594 
49595 # Transform confdefs.h into an awk script `defines.awk', embedded as
49596 # here-document in config.status, that substitutes the proper values into
49597 # config.h.in to produce config.h.
49598 
49599 # Create a delimiter string that does not exist in confdefs.h, to ease
49600 # handling of long lines.
49601 ac_delim='%!_!# '
49602 for ac_last_try in false false :; do
49603   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
49604   if test -z "$ac_tt"; then
49605     break
49606   elif $ac_last_try; then
49607     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
49608   else
49609     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
49610   fi
49611 done
49612 
49613 # For the awk script, D is an array of macro values keyed by name,
49614 # likewise P contains macro parameters if any.  Preserve backslash
49615 # newline sequences.
49616 
49617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
49618 sed -n '
49619 s/.\{148\}/&'"$ac_delim"'/g
49620 t rset
49621 :rset
49622 s/^[     ]*#[    ]*define[       ][      ]*/ /
49623 t def
49624 d
49625 :def
49626 s/\\$//
49627 t bsnl
49628 s/["\\]/\\&/g
49629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
49630 D["\1"]=" \3"/p
49631 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
49632 d
49633 :bsnl
49634 s/["\\]/\\&/g
49635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
49636 D["\1"]=" \3\\\\\\n"\\/p
49637 t cont
49638 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
49639 t cont
49640 d
49641 :cont
49642 n
49643 s/.\{148\}/&'"$ac_delim"'/g
49644 t clear
49645 :clear
49646 s/\\$//
49647 t bsnlc
49648 s/["\\]/\\&/g; s/^/"/; s/$/"/p
49649 d
49650 :bsnlc
49651 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
49652 b cont
49653 ' <confdefs.h | sed '
49654 s/'"$ac_delim"'/"\\\
49655 "/g' >>$CONFIG_STATUS || ac_write_fail=1
49656 
49657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49658   for (key in D) D_is_set[key] = 1
49659   FS = ""
49660 }
49661 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
49662   line = \$ 0
49663   split(line, arg, " ")
49664   if (arg[1] == "#") {
49665     defundef = arg[2]
49666     mac1 = arg[3]
49667   } else {
49668     defundef = substr(arg[1], 2)
49669     mac1 = arg[2]
49670   }
49671   split(mac1, mac2, "(") #)
49672   macro = mac2[1]
49673   prefix = substr(line, 1, index(line, defundef) - 1)
49674   if (D_is_set[macro]) {
49675     # Preserve the white space surrounding the "#".
49676     print prefix "define", macro P[macro] D[macro]
49677     next
49678   } else {
49679     # Replace #undef with comments.  This is necessary, for example,
49680     # in the case of _POSIX_SOURCE, which is predefined and required
49681     # on some systems where configure will not decide to define it.
49682     if (defundef == "undef") {
49683       print "/*", prefix defundef, macro, "*/"
49684       next
49685     }
49686   }
49687 }
49688 { print }
49689 _ACAWK
49690 _ACEOF
49691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49692   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
49693 fi # test -n "$CONFIG_HEADERS"
49694 
49695 
49696 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
49697 shift
49698 for ac_tag
49699 do
49700   case $ac_tag in
49701   :[FHLC]) ac_mode=$ac_tag; continue;;
49702   esac
49703   case $ac_mode$ac_tag in
49704   :[FHL]*:*);;
49705   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
49706   :[FH]-) ac_tag=-:-;;
49707   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
49708   esac
49709   ac_save_IFS=$IFS
49710   IFS=:
49711   set x $ac_tag
49712   IFS=$ac_save_IFS
49713   shift
49714   ac_file=$1
49715   shift
49716 
49717   case $ac_mode in
49718   :L) ac_source=$1;;
49719   :[FH])
49720     ac_file_inputs=
49721     for ac_f
49722     do
49723       case $ac_f in
49724       -) ac_f="$ac_tmp/stdin";;
49725       *) # Look for the file first in the build tree, then in the source tree
49726          # (if the path is not absolute).  The absolute path cannot be DOS-style,
49727          # because $ac_f cannot contain `:'.
49728          test -f "$ac_f" ||
49729            case $ac_f in
49730            [\\/$]*) false;;
49731            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
49732            esac ||
49733            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
49734       esac
49735       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
49736       as_fn_append ac_file_inputs " '$ac_f'"
49737     done
49738 
49739     # Let's still pretend it is `configure' which instantiates (i.e., don't
49740     # use $as_me), people would be surprised to read:
49741     #    /* config.h.  Generated by config.status.  */
49742     configure_input='Generated from '`
49743           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49744         `' by configure.'
49745     if test x"$ac_file" != x-; then
49746       configure_input="$ac_file.  $configure_input"
49747       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
49748 $as_echo "$as_me: creating $ac_file" >&6;}
49749     fi
49750     # Neutralize special characters interpreted by sed in replacement strings.
49751     case $configure_input in #(
49752     *\&* | *\|* | *\\* )
49753        ac_sed_conf_input=`$as_echo "$configure_input" |
49754        sed 's/[\\\\&|]/\\\\&/g'`;; #(
49755     *) ac_sed_conf_input=$configure_input;;
49756     esac
49757 
49758     case $ac_tag in
49759     *:-:* | *:-) cat >"$ac_tmp/stdin" \
49760       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
49761     esac
49762     ;;
49763   esac
49764 
49765   ac_dir=`$as_dirname -- "$ac_file" ||
49766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49767          X"$ac_file" : 'X\(//\)[^/]' \| \
49768          X"$ac_file" : 'X\(//\)$' \| \
49769          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49770 $as_echo X"$ac_file" |
49771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49772             s//\1/
49773             q
49774           }
49775           /^X\(\/\/\)[^/].*/{
49776             s//\1/
49777             q
49778           }
49779           /^X\(\/\/\)$/{
49780             s//\1/
49781             q
49782           }
49783           /^X\(\/\).*/{
49784             s//\1/
49785             q
49786           }
49787           s/.*/./; q'`
49788   as_dir="$ac_dir"; as_fn_mkdir_p
49789   ac_builddir=.
49790 
49791 case "$ac_dir" in
49792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
49793 *)
49794   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
49795   # A ".." for each directory in $ac_dir_suffix.
49796   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
49797   case $ac_top_builddir_sub in
49798   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
49799   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
49800   esac ;;
49801 esac
49802 ac_abs_top_builddir=$ac_pwd
49803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
49804 # for backward compatibility:
49805 ac_top_builddir=$ac_top_build_prefix
49806 
49807 case $srcdir in
49808   .)  # We are building in place.
49809     ac_srcdir=.
49810     ac_top_srcdir=$ac_top_builddir_sub
49811     ac_abs_top_srcdir=$ac_pwd ;;
49812   [\\/]* | ?:[\\/]* )  # Absolute name.
49813     ac_srcdir=$srcdir$ac_dir_suffix;
49814     ac_top_srcdir=$srcdir
49815     ac_abs_top_srcdir=$srcdir ;;
49816   *) # Relative name.
49817     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49818     ac_top_srcdir=$ac_top_build_prefix$srcdir
49819     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49820 esac
49821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49822 
49823 
49824   case $ac_mode in
49825   :F)
49826   #
49827   # CONFIG_FILE
49828   #
49829 
49830 _ACEOF
49831 
49832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49833 # If the template does not know about datarootdir, expand it.
49834 # FIXME: This hack should be removed a few years after 2.60.
49835 ac_datarootdir_hack=; ac_datarootdir_seen=
49836 ac_sed_dataroot='
49837 /datarootdir/ {
49838   p
49839   q
49840 }
49841 /@datadir@/p
49842 /@docdir@/p
49843 /@infodir@/p
49844 /@localedir@/p
49845 /@mandir@/p'
49846 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
49847 *datarootdir*) ac_datarootdir_seen=yes;;
49848 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49850 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49851 _ACEOF
49852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49853   ac_datarootdir_hack='
49854   s&@datadir@&$datadir&g
49855   s&@docdir@&$docdir&g
49856   s&@infodir@&$infodir&g
49857   s&@localedir@&$localedir&g
49858   s&@mandir@&$mandir&g
49859   s&\\\${datarootdir}&$datarootdir&g' ;;
49860 esac
49861 _ACEOF
49862 
49863 # Neutralize VPATH when `$srcdir' = `.'.
49864 # Shell code in configure.ac might set extrasub.
49865 # FIXME: do we really want to maintain this feature?
49866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49867 ac_sed_extra="$ac_vpsub
49868 $extrasub
49869 _ACEOF
49870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49871 :t
49872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49873 s|@configure_input@|$ac_sed_conf_input|;t t
49874 s&@top_builddir@&$ac_top_builddir_sub&;t t
49875 s&@top_build_prefix@&$ac_top_build_prefix&;t t
49876 s&@srcdir@&$ac_srcdir&;t t
49877 s&@abs_srcdir@&$ac_abs_srcdir&;t t
49878 s&@top_srcdir@&$ac_top_srcdir&;t t
49879 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
49880 s&@builddir@&$ac_builddir&;t t
49881 s&@abs_builddir@&$ac_abs_builddir&;t t
49882 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
49883 $ac_datarootdir_hack
49884 "
49885 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
49886   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49887 
49888 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49889   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
49890   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
49891       "$ac_tmp/out"`; test -z "$ac_out"; } &&
49892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49893 which seems to be undefined.  Please make sure it is defined" >&5
49894 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49895 which seems to be undefined.  Please make sure it is defined" >&2;}
49896 
49897   rm -f "$ac_tmp/stdin"
49898   case $ac_file in
49899   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
49900   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
49901   esac \
49902   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49903  ;;
49904   :H)
49905   #
49906   # CONFIG_HEADER
49907   #
49908   if test x"$ac_file" != x-; then
49909     {
49910       $as_echo "/* $configure_input  */" \
49911       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
49912     } >"$ac_tmp/config.h" \
49913       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49914     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
49915       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
49916 $as_echo "$as_me: $ac_file is unchanged" >&6;}
49917     else
49918       rm -f "$ac_file"
49919       mv "$ac_tmp/config.h" "$ac_file" \
49920         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49921     fi
49922   else
49923     $as_echo "/* $configure_input  */" \
49924       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
49925       || as_fn_error $? "could not create -" "$LINENO" 5
49926   fi
49927  ;;
49928 
49929 
49930   esac
49931 
49932 done # for ac_tag
49933 
49934 
49935 as_fn_exit 0
49936 _ACEOF
49937 ac_clean_files=$ac_clean_files_save
49938 
49939 test $ac_write_fail = 0 ||
49940   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
49941 
49942 
49943 # configure is writing to config.log, and then calls config.status.
49944 # config.status does its own redirection, appending to config.log.
49945 # Unfortunately, on DOS this fails, as config.log is still kept open
49946 # by configure, so config.status won't be able to write to it; its
49947 # output is simply discarded.  So we exec the FD to /dev/null,
49948 # effectively closing config.log, so it can be properly (re)opened and
49949 # appended to by config.status.  When coming back to configure, we
49950 # need to make the FD available again.
49951 if test "$no_create" != yes; then
49952   ac_cs_success=:
49953   ac_config_status_args=
49954   test "$silent" = yes &&
49955     ac_config_status_args="$ac_config_status_args --quiet"
49956   exec 5>/dev/null
49957   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49958   exec 5>>config.log
49959   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49960   # would make configure fail if this is the last instruction.
49961   $ac_cs_success || as_fn_exit 1
49962 fi
49963 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49964   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49965 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49966 fi
49967 
49968 
49969 # Try to move the config.log file to the output directory.
49970 if test -e ./config.log; then
49971   $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null
49972 fi
49973 
49974 # Make the compare script executable
49975 $CHMOD +x $OUTPUT_ROOT/compare.sh
49976 
49977 # Finally output some useful information to the user
49978 
49979   # Finally output some useful information to the user
49980 
49981   printf "\n"
49982   printf "====================================================\n"
49983   printf "A new configuration has been successfully created in\n"
49984   printf "$OUTPUT_ROOT\n"
49985   if test "x$CONFIGURE_COMMAND_LINE" != x; then
49986     printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
49987   else
49988     printf "using default settings.\n"
49989   fi
49990 
49991   printf "\n"
49992   printf "Configuration summary:\n"
49993   printf "* Debug level:    $DEBUG_LEVEL\n"
49994   printf "* JDK variant:    $JDK_VARIANT\n"
49995   printf "* JVM variants:   $with_jvm_variants\n"
49996   printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
49997 
49998   printf "\n"
49999   printf "Tools summary:\n"
50000   if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
50001     printf "* Environment:    $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
50002   fi
50003   printf "* Boot JDK:       $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
50004   printf "* C Compiler:     $CC_VENDOR version $CC_VERSION (at $CC)\n"
50005   printf "* C++ Compiler:   $CXX_VENDOR version $CXX_VERSION (at $CXX)\n"
50006 
50007   printf "\n"
50008   printf "Build performance summary:\n"
50009   printf "* Cores to use:   $JOBS\n"
50010   printf "* Memory limit:   $MEMORY_SIZE MB\n"
50011   if test "x$CCACHE_STATUS" != "x"; then
50012     printf "* ccache status:  $CCACHE_STATUS\n"
50013   fi
50014   printf "\n"
50015 
50016   if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
50017     printf "NOTE: You have requested to build more than one version of the JVM, which\n"
50018     printf "will result in longer build times.\n"
50019     printf "\n"
50020   fi
50021 
50022   if test "x$FOUND_ALT_VARIABLES" != "x"; then
50023     printf "WARNING: You have old-style ALT_ environment variables set.\n"
50024     printf "These are not respected, and will be ignored. It is recommended\n"
50025     printf "that you clean your environment. The following variables are set:\n"
50026     printf "$FOUND_ALT_VARIABLES\n"
50027     printf "\n"
50028   fi
50029 
50030   if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
50031     printf "WARNING: Your build output directory is not on a local disk.\n"
50032     printf "This will severely degrade build performance!\n"
50033     printf "It is recommended that you create an output directory on a local disk,\n"
50034     printf "and run the configure script again from that directory.\n"
50035     printf "\n"
50036   fi
50037 
50038   if test "x$IS_RECONFIGURE" = "xyes"; then
50039     printf "WARNING: The result of this configuration has overridden an older\n"
50040     printf "configuration. You *should* run 'make clean' to make sure you get a\n"
50041     printf "proper build. Failure to do so might result in strange build problems.\n"
50042     printf "\n"
50043   fi
50044